blob: 8461a4bf3c78f0dd78acbdf496bfd69e0fa86b27 [file] [log] [blame]
xf.li84027492024-04-09 00:17:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for ppp 2.5.0.
4#
5# Report bugs to <https://github.com/ppp-project/ppp>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196then :
197 as_have_required=yes
198else $as_nop
199 as_have_required=no
200fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227 break 2
228fi
229fi
230 done;;
231 esac
232 as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247 if test "x$CONFIG_SHELL" != x
248then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno
271then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://github.com/ppp-project/ppp about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283 fi
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329 return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386 test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430 return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453else
454 as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459else
460 as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465else
466 as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544*)
545 ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n. New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576else
577 as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='ppp'
623PACKAGE_TARNAME='ppp'
624PACKAGE_VERSION='2.5.0'
625PACKAGE_STRING='ppp 2.5.0'
626PACKAGE_BUGREPORT='https://github.com/ppp-project/ppp'
627PACKAGE_URL=''
628
629ac_unique_file="pppd/main.c"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666WITH_GTK_FALSE
667WITH_GTK_TRUE
668GLIB_LIBS
669GLIB_CFLAGS
670GTK_LIBS
671GTK_CFLAGS
672PPP_WITH_FILTER_FALSE
673PPP_WITH_FILTER_TRUE
674WITH_PCAP_FALSE
675WITH_PCAP_TRUE
676PCAP_LDFLAGS
677PCAP_LIBS
678PCAP_CFLAGS
679PPP_WITH_PAM_FALSE
680PPP_WITH_PAM_TRUE
681WITH_LIBPAM_FALSE
682WITH_LIBPAM_TRUE
683PAM_LDFLAGS
684PAM_LIBS
685PAM_CFLAGS
686WITH_LIBATM_FALSE
687WITH_LIBATM_TRUE
688ATM_LDFLAGS
689ATM_LIBS
690ATM_CFLAGS
691WITH_SRP_FALSE
692WITH_SRP_TRUE
693SRP_LDFLAGS
694SRP_LIBS
695SRP_CFLAGS
696OPENSSL_HAVE_DES_FALSE
697OPENSSL_HAVE_DES_TRUE
698OPENSSL_HAVE_SHA_FALSE
699OPENSSL_HAVE_SHA_TRUE
700OPENSSL_HAVE_MD5_FALSE
701OPENSSL_HAVE_MD5_TRUE
702OPENSSL_HAVE_MD4_FALSE
703OPENSSL_HAVE_MD4_TRUE
704CPP
705PPP_WITH_OPENSSL_FALSE
706PPP_WITH_OPENSSL_TRUE
707OPENSSL_LDFLAGS
708OPENSSL_LIBS
709OPENSSL_INCLUDES
710SYSTEM_CA_PATH
711PPP_WITH_SYSTEM_CA_PATH_FALSE
712PPP_WITH_SYSTEM_CA_PATH_TRUE
713PPPD_LOGFILE_DIR
714PPPD_RUNTIME_DIR
715PPPD_PLUGIN_DIR
716PPP_WITH_PEAP_FALSE
717PPP_WITH_PEAP_TRUE
718PPP_WITH_EAPTLS_FALSE
719PPP_WITH_EAPTLS_TRUE
720PPP_WITH_PLUGINS_FALSE
721PPP_WITH_PLUGINS_TRUE
722PPP_WITH_TDB_FALSE
723PPP_WITH_TDB_TRUE
724PPP_WITH_MULTILINK_FALSE
725PPP_WITH_MULTILINK_TRUE
726PPP_WITH_IPV6CP_FALSE
727PPP_WITH_IPV6CP_TRUE
728PPP_WITH_MPPE_FALSE
729PPP_WITH_MPPE_TRUE
730PPP_WITH_CHAPMS_FALSE
731PPP_WITH_CHAPMS_TRUE
732PPP_WITH_CBCP_FALSE
733PPP_WITH_CBCP_TRUE
734SYSTEMD_LIBS
735SYSTEMD_CFLAGS
736WITH_SYSTEMD_FALSE
737WITH_SYSTEMD_TRUE
738CRYPT_LIBS
739UTIL_LIBS
740SUNOS_FALSE
741SUNOS_TRUE
742LINUX_FALSE
743LINUX_TRUE
744PKG_CONFIG_LIBDIR
745PKG_CONFIG_PATH
746PKG_CONFIG
747LT_SYS_LIBRARY_PATH
748OTOOL64
749OTOOL
750LIPO
751NMEDIT
752DSYMUTIL
753MANIFEST_TOOL
754RANLIB
755ac_ct_AR
756AR
757DLLTOOL
758OBJDUMP
759FILECMD
760NM
761ac_ct_DUMPBIN
762DUMPBIN
763LD
764FGREP
765EGREP
766GREP
767SED
768host_os
769host_vendor
770host_cpu
771host
772build_os
773build_vendor
774build_cpu
775build
776LIBTOOL
777LN_S
778am__fastdepCC_FALSE
779am__fastdepCC_TRUE
780CCDEPMODE
781am__nodep
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__include
786DEPDIR
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794MAINT
795MAINTAINER_MODE_FALSE
796MAINTAINER_MODE_TRUE
797CSCOPE
798ETAGS
799CTAGS
800am__untar
801am__tar
802AMTAR
803am__leading_dot
804SET_MAKE
805AWK
806mkdir_p
807MKDIR_P
808INSTALL_STRIP_PROGRAM
809STRIP
810install_sh
811MAKEINFO
812AUTOHEADER
813AUTOMAKE
814AUTOCONF
815ACLOCAL
816VERSION
817PACKAGE
818CYGPATH_W
819am__isrc
820INSTALL_DATA
821INSTALL_SCRIPT
822INSTALL_PROGRAM
823AM_BACKSLASH
824AM_DEFAULT_VERBOSITY
825AM_DEFAULT_V
826AM_V
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846runstatedir
847localstatedir
848sharedstatedir
849sysconfdir
850datadir
851datarootdir
852libexecdir
853sbindir
854bindir
855program_transform_name
856prefix
857exec_prefix
858PACKAGE_URL
859PACKAGE_BUGREPORT
860PACKAGE_STRING
861PACKAGE_VERSION
862PACKAGE_TARNAME
863PACKAGE_NAME
864PATH_SEPARATOR
865SHELL
866am__quote'
867ac_subst_files=''
868ac_user_opts='
869enable_option_checking
870enable_silent_rules
871enable_maintainer_mode
872enable_static
873enable_dependency_tracking
874enable_shared
875with_pic
876enable_fast_install
877with_aix_soname
878with_gnu_ld
879with_sysroot
880enable_libtool_lock
881enable_systemd
882enable_cbcp
883enable_microsoft_extensions
884enable_mslanman
885enable_ipv6cp
886enable_multilink
887enable_plugins
888enable_eaptls
889enable_peap
890enable_openssl_engine
891with_plugin_dir
892with_runtime_dir
893with_logfile_dir
894with_system_ca_path
895with_openssl
896with_srp
897with_atm
898with_pam
899with_pcap
900with_gtk
901'
902 ac_precious_vars='build_alias
903host_alias
904target_alias
905CC
906CFLAGS
907LDFLAGS
908LIBS
909CPPFLAGS
910LT_SYS_LIBRARY_PATH
911PKG_CONFIG
912PKG_CONFIG_PATH
913PKG_CONFIG_LIBDIR
914SYSTEMD_CFLAGS
915SYSTEMD_LIBS
916CPP
917GTK_CFLAGS
918GTK_LIBS
919GLIB_CFLAGS
920GLIB_LIBS'
921
922
923# Initialize some variables set by options.
924ac_init_help=
925ac_init_version=false
926ac_unrecognized_opts=
927ac_unrecognized_sep=
928# The variables have the same names as the options, with
929# dashes changed to underlines.
930cache_file=/dev/null
931exec_prefix=NONE
932no_create=
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
941verbose=
942x_includes=NONE
943x_libraries=NONE
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
950# (The list follows the same order as the GNU Coding Standards.)
951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
959runstatedir='${localstatedir}/run'
960includedir='${prefix}/include'
961oldincludedir='/usr/include'
962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963infodir='${datarootdir}/info'
964htmldir='${docdir}'
965dvidir='${docdir}'
966pdfdir='${docdir}'
967psdir='${docdir}'
968libdir='${exec_prefix}/lib'
969localedir='${datarootdir}/locale'
970mandir='${datarootdir}/man'
971
972ac_prev=
973ac_dashdash=
974for ac_option
975do
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
981 fi
982
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -runstatedir | --runstatedir | --runstatedi | --runstated \
1211 | --runstate | --runstat | --runsta | --runst | --runs \
1212 | --run | --ru | --r)
1213 ac_prev=runstatedir ;;
1214 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1215 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1216 | --run=* | --ru=* | --r=*)
1217 runstatedir=$ac_optarg ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: \`$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273"with_$ac_useropt"
1274"*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1279
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: \`$ac_useropt'"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315Try \`$0 --help' for more information"
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1342fi
1343
1344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350fi
1351
1352# Check all directory arguments for consistency.
1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir runstatedir
1357do
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371done
1372
1373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
1375# FIXME: To remove some day.
1376build=$build_alias
1377host=$host_alias
1378target=$target_alias
1379
1380# FIXME: To remove some day.
1381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
1393
1394
1395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412printf "%s\n" X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
1437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440fi
1441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
1461
1462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469\`configure' configures ppp 2.5.0 to adapt to many kinds of systems.
1470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
1489Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/ppp]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523_ACEOF
1524
1525 cat <<\_ACEOF
1526
1527Program names:
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531
1532System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of ppp 2.5.0:";;
1541 esac
1542 cat <<\_ACEOF
1543
1544Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-silent-rules less verbose build output (undo: "make V=1")
1549 --disable-silent-rules verbose build output (undo: "make V=0")
1550 --disable-maintainer-mode
1551 disable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-static[=PKGS] build static libraries [default=no]
1554 --enable-dependency-tracking
1555 do not reject slow dependency extractors
1556 --disable-dependency-tracking
1557 speeds up one-time build
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-fast-install[=PKGS]
1560 optimize for fast installation [default=yes]
1561 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --enable-systemd Enable support for systemd notification
1563 --enable-cbcp Enable Callback Protocol
1564 --disable-microsoft-extensions
1565 Disable Microsoft CHAP / MPPE extensions
1566 --enable-mslanman Enable Microsoft LAN Manager support
1567 --disable-ipv6cp Disable IPv6 Control Protocol
1568 --enable-multilink Enable multilink support
1569 --disable-plugins Disable support for loadable plugins
1570 --disable-eaptls Disable EAP-TLS authentication support
1571 --disable-peap Disable PEAP authentication support
1572 --disable-openssl-engine
1573 Disable OpenSSL engine support
1574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-aix-soname=aix|svr4|both
1581 shared library versioning (aka "SONAME") variant to
1582 provide on AIX, [default=aix].
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1585 compiler's sysroot if not specified).
1586 --with-plugin-dir=DIR Specify the plugin directory for pppd
1587 --with-runtime-dir=DIR Specify the runtime directory for pppd
1588 --with-logfile-dir=DIR Specify the log directory for pppd
1589 --with-system-ca-path=/path/to/ssl/certs
1590 path to system CA certificates
1591 --with-openssl=DIR With openssl support, see http://www.openssl.org
1592 --with-srp=DIR With libsrp support, see http://srp.stanford.edu
1593 --with-atm=DIR With libatm support, see
1594 http://linux-atm.sourceforge.net
1595 --with-pam=DIR With libpam support, see ftp.redhat.com:/pub/pam
1596 --with-pcap=DIR With libpcap support, see https://www.tcpdump.org
1597 --with-gtk Build contributions with the GTK+ interface
1598
1599Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 LT_SYS_LIBRARY_PATH
1608 User-defined run-time library search path.
1609 PKG_CONFIG path to pkg-config utility
1610 PKG_CONFIG_PATH
1611 directories to add to pkg-config's search path
1612 PKG_CONFIG_LIBDIR
1613 path overriding pkg-config's built-in search path
1614 SYSTEMD_CFLAGS
1615 C compiler flags for SYSTEMD, overriding pkg-config
1616 SYSTEMD_LIBS
1617 linker flags for SYSTEMD, overriding pkg-config
1618 CPP C preprocessor
1619 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1620 GTK_LIBS linker flags for GTK, overriding pkg-config
1621 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1622 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1623
1624Use these variables to override the choices made by `configure' or to help
1625it to find libraries and programs with nonstandard names/locations.
1626
1627Report bugs to <https://github.com/ppp-project/ppp>.
1628_ACEOF
1629ac_status=$?
1630fi
1631
1632if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 continue
1638 ac_builddir=.
1639
1640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
1643 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
1655
1656case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669esac
1670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for configure.gnu first; this name is used for a wrapper for
1674 # Metaconfig's "Configure" on case-insensitive file systems.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1681 else
1682 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 fi || ac_status=$?
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1685 done
1686fi
1687
1688test -n "$ac_init_help" && exit $ac_status
1689if $ac_init_version; then
1690 cat <<\_ACEOF
1691ppp configure 2.5.0
1692generated by GNU Autoconf 2.71
1693
1694Copyright (C) 2021 Free Software Foundation, Inc.
1695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697_ACEOF
1698 exit
1699fi
1700
1701## ------------------------ ##
1702## Autoconf initialization. ##
1703## ------------------------ ##
1704
1705# ac_fn_c_try_compile LINENO
1706# --------------------------
1707# Try to compile conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_compile ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest.beam
1712 if { { ac_try="$ac_compile"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718printf "%s\n" "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext
1731then :
1732 ac_retval=0
1733else $as_nop
1734 printf "%s\n" "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_compile
1743
1744# ac_fn_c_try_link LINENO
1745# -----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757printf "%s\n" "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 test -x conftest$ac_exeext
1772 }
1773then :
1774 ac_retval=0
1775else $as_nop
1776 printf "%s\n" "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_link
1790
1791# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists and can be compiled using the include files in
1794# INCLUDES, setting the cache variable VAR accordingly.
1795ac_fn_c_check_header_compile ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799printf %s "checking for $2... " >&6; }
1800if eval test \${$3+y}
1801then :
1802 printf %s "(cached) " >&6
1803else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h. */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"
1810then :
1811 eval "$3=yes"
1812else $as_nop
1813 eval "$3=no"
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822} # ac_fn_c_check_header_compile
1823
1824# ac_fn_c_check_func LINENO FUNC VAR
1825# ----------------------------------
1826# Tests whether FUNC exists, setting the cache variable VAR accordingly
1827ac_fn_c_check_func ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831printf %s "checking for $2... " >&6; }
1832if eval test \${$3+y}
1833then :
1834 printf %s "(cached) " >&6
1835else $as_nop
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below. */
1844
1845#include <limits.h>
1846#undef $2
1847
1848/* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854char $2 ();
1855/* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858#if defined __stub_$2 || defined __stub___$2
1859choke me
1860#endif
1861
1862int
1863main (void)
1864{
1865return $2 ();
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_link "$LINENO"
1871then :
1872 eval "$3=yes"
1873else $as_nop
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.beam \
1877 conftest$ac_exeext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881printf "%s\n" "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_func
1885
1886# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1887# -------------------------------------------
1888# Tests whether TYPE exists after having included INCLUDES, setting cache
1889# variable VAR accordingly.
1890ac_fn_c_check_type ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894printf %s "checking for $2... " >&6; }
1895if eval test \${$3+y}
1896then :
1897 printf %s "(cached) " >&6
1898else $as_nop
1899 eval "$3=no"
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h. */
1902$4
1903int
1904main (void)
1905{
1906if (sizeof ($2))
1907 return 0;
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"
1913then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917int
1918main (void)
1919{
1920if (sizeof (($2)))
1921 return 0;
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"
1927then :
1928
1929else $as_nop
1930 eval "$3=yes"
1931fi
1932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938printf "%s\n" "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941} # ac_fn_c_check_type
1942
1943# ac_fn_c_try_run LINENO
1944# ----------------------
1945# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1946# executables *can* be run.
1947ac_fn_c_try_run ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956printf "%s\n" "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1958 ac_status=$?
1959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966printf "%s\n" "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }
1971then :
1972 ac_retval=0
1973else $as_nop
1974 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1975 printf "%s\n" "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=$ac_status
1979fi
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984} # ac_fn_c_try_run
1985
1986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987# --------------------------------------------
1988# Tries to find the compile-time value of EXPR in a program that includes
1989# INCLUDES, setting VAR accordingly. Returns whether the value could be
1990# computed
1991ac_fn_c_compute_int ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999int
2000main (void)
2001{
2002static int test_array [1 - 2 * !(($2) >= 0)];
2003test_array [0] = 0;
2004return test_array [0];
2005
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"
2011then :
2012 ac_lo=0 ac_mid=0
2013 while :; do
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main (void)
2019{
2020static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021test_array [0] = 0;
2022return test_array [0];
2023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"
2029then :
2030 ac_hi=$ac_mid; break
2031else $as_nop
2032 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2033 if test $ac_lo -le $ac_mid; then
2034 ac_lo= ac_hi=
2035 break
2036 fi
2037 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2040 done
2041else $as_nop
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h. */
2044$4
2045int
2046main (void)
2047{
2048static int test_array [1 - 2 * !(($2) < 0)];
2049test_array [0] = 0;
2050return test_array [0];
2051
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"
2057then :
2058 ac_hi=-1 ac_mid=-1
2059 while :; do
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h. */
2062$4
2063int
2064main (void)
2065{
2066static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2067test_array [0] = 0;
2068return test_array [0];
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"
2075then :
2076 ac_lo=$ac_mid; break
2077else $as_nop
2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079 if test $ac_mid -le $ac_hi; then
2080 ac_lo= ac_hi=
2081 break
2082 fi
2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 done
2087else $as_nop
2088 ac_lo= ac_hi=
2089fi
2090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2093# Binary search between lo and hi bounds.
2094while test "x$ac_lo" != "x$ac_hi"; do
2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main (void)
2101{
2102static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103test_array [0] = 0;
2104return test_array [0];
2105
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"
2111then :
2112 ac_hi=$ac_mid
2113else $as_nop
2114 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2115fi
2116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2117done
2118case $ac_lo in #((
2119?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120'') ac_retval=1 ;;
2121esac
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$4
2126static long int longval (void) { return $2; }
2127static unsigned long int ulongval (void) { return $2; }
2128#include <stdio.h>
2129#include <stdlib.h>
2130int
2131main (void)
2132{
2133
2134 FILE *f = fopen ("conftest.val", "w");
2135 if (! f)
2136 return 1;
2137 if (($2) < 0)
2138 {
2139 long int i = longval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%ld", i);
2143 }
2144 else
2145 {
2146 unsigned long int i = ulongval ();
2147 if (i != ($2))
2148 return 1;
2149 fprintf (f, "%lu", i);
2150 }
2151 /* Do not output a trailing newline, as this causes \r\n confusion
2152 on some platforms. */
2153 return ferror (f) || fclose (f) != 0;
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_run "$LINENO"
2160then :
2161 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2162else $as_nop
2163 ac_retval=1
2164fi
2165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2166 conftest.$ac_objext conftest.beam conftest.$ac_ext
2167rm -f conftest.val
2168
2169 fi
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 as_fn_set_status $ac_retval
2172
2173} # ac_fn_c_compute_int
2174
2175# ac_fn_c_try_cpp LINENO
2176# ----------------------
2177# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2178ac_fn_c_try_cpp ()
2179{
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_cpp conftest.$ac_ext"
2182case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185esac
2186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187printf "%s\n" "$ac_try_echo"; } >&5
2188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2189 ac_status=$?
2190 if test -s conftest.err; then
2191 grep -v '^ *+' conftest.err >conftest.er1
2192 cat conftest.er1 >&5
2193 mv -f conftest.er1 conftest.err
2194 fi
2195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; } > conftest.i && {
2197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2198 test ! -s conftest.err
2199 }
2200then :
2201 ac_retval=0
2202else $as_nop
2203 printf "%s\n" "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207fi
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 as_fn_set_status $ac_retval
2210
2211} # ac_fn_c_try_cpp
2212ac_configure_args_raw=
2213for ac_arg
2214do
2215 case $ac_arg in
2216 *\'*)
2217 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac
2219 as_fn_append ac_configure_args_raw " '$ac_arg'"
2220done
2221
2222case $ac_configure_args_raw in
2223 *$as_nl*)
2224 ac_safe_unquote= ;;
2225 *)
2226 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2227 ac_unsafe_a="$ac_unsafe_z#~"
2228 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2229 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2230esac
2231
2232cat >config.log <<_ACEOF
2233This file contains any messages produced by compilers while
2234running configure, to aid debugging if configure makes a mistake.
2235
2236It was created by ppp $as_me 2.5.0, which was
2237generated by GNU Autoconf 2.71. Invocation command line was
2238
2239 $ $0$ac_configure_args_raw
2240
2241_ACEOF
2242exec 5>>config.log
2243{
2244cat <<_ASUNAME
2245## --------- ##
2246## Platform. ##
2247## --------- ##
2248
2249hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2250uname -m = `(uname -m) 2>/dev/null || echo unknown`
2251uname -r = `(uname -r) 2>/dev/null || echo unknown`
2252uname -s = `(uname -s) 2>/dev/null || echo unknown`
2253uname -v = `(uname -v) 2>/dev/null || echo unknown`
2254
2255/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2256/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2257
2258/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2259/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2260/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2261/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2262/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2263/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2264/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2265
2266_ASUNAME
2267
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 case $as_dir in #(((
2273 '') as_dir=./ ;;
2274 */) ;;
2275 *) as_dir=$as_dir/ ;;
2276 esac
2277 printf "%s\n" "PATH: $as_dir"
2278 done
2279IFS=$as_save_IFS
2280
2281} >&5
2282
2283cat >&5 <<_ACEOF
2284
2285
2286## ----------- ##
2287## Core tests. ##
2288## ----------- ##
2289
2290_ACEOF
2291
2292
2293# Keep a trace of the command line.
2294# Strip out --no-create and --no-recursion so they do not pile up.
2295# Strip out --silent because we don't want to record it for future runs.
2296# Also quote any args containing shell meta-characters.
2297# Make two passes to allow for proper duplicate-argument suppression.
2298ac_configure_args=
2299ac_configure_args0=
2300ac_configure_args1=
2301ac_must_keep_next=false
2302for ac_pass in 1 2
2303do
2304 for ac_arg
2305 do
2306 case $ac_arg in
2307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309 | -silent | --silent | --silen | --sile | --sil)
2310 continue ;;
2311 *\'*)
2312 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313 esac
2314 case $ac_pass in
2315 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316 2)
2317 as_fn_append ac_configure_args1 " '$ac_arg'"
2318 if test $ac_must_keep_next = true; then
2319 ac_must_keep_next=false # Got value, back to normal.
2320 else
2321 case $ac_arg in
2322 *=* | --config-cache | -C | -disable-* | --disable-* \
2323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325 | -with-* | --with-* | -without-* | --without-* | --x)
2326 case "$ac_configure_args0 " in
2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328 esac
2329 ;;
2330 -* ) ac_must_keep_next=true ;;
2331 esac
2332 fi
2333 as_fn_append ac_configure_args " '$ac_arg'"
2334 ;;
2335 esac
2336 done
2337done
2338{ ac_configure_args0=; unset ac_configure_args0;}
2339{ ac_configure_args1=; unset ac_configure_args1;}
2340
2341# When interrupted or exit'd, cleanup temporary files, and complete
2342# config.log. We remove comments because anyway the quotes in there
2343# would cause problems or look ugly.
2344# WARNING: Use '\'' to represent an apostrophe within the trap.
2345# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346trap 'exit_status=$?
2347 # Sanitize IFS.
2348 IFS=" "" $as_nl"
2349 # Save into config.log some information that might help in debugging.
2350 {
2351 echo
2352
2353 printf "%s\n" "## ---------------- ##
2354## Cache variables. ##
2355## ---------------- ##"
2356 echo
2357 # The following way of writing the cache mishandles newlines in values,
2358(
2359 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360 eval ac_val=\$$ac_var
2361 case $ac_val in #(
2362 *${as_nl}*)
2363 case $ac_var in #(
2364 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366 esac
2367 case $ac_var in #(
2368 _ | IFS | as_nl) ;; #(
2369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370 *) { eval $ac_var=; unset $ac_var;} ;;
2371 esac ;;
2372 esac
2373 done
2374 (set) 2>&1 |
2375 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376 *${as_nl}ac_space=\ *)
2377 sed -n \
2378 "s/'\''/'\''\\\\'\'''\''/g;
2379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380 ;; #(
2381 *)
2382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383 ;;
2384 esac |
2385 sort
2386)
2387 echo
2388
2389 printf "%s\n" "## ----------------- ##
2390## Output variables. ##
2391## ----------------- ##"
2392 echo
2393 for ac_var in $ac_subst_vars
2394 do
2395 eval ac_val=\$$ac_var
2396 case $ac_val in
2397 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 esac
2399 printf "%s\n" "$ac_var='\''$ac_val'\''"
2400 done | sort
2401 echo
2402
2403 if test -n "$ac_subst_files"; then
2404 printf "%s\n" "## ------------------- ##
2405## File substitutions. ##
2406## ------------------- ##"
2407 echo
2408 for ac_var in $ac_subst_files
2409 do
2410 eval ac_val=\$$ac_var
2411 case $ac_val in
2412 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 esac
2414 printf "%s\n" "$ac_var='\''$ac_val'\''"
2415 done | sort
2416 echo
2417 fi
2418
2419 if test -s confdefs.h; then
2420 printf "%s\n" "## ----------- ##
2421## confdefs.h. ##
2422## ----------- ##"
2423 echo
2424 cat confdefs.h
2425 echo
2426 fi
2427 test "$ac_signal" != 0 &&
2428 printf "%s\n" "$as_me: caught signal $ac_signal"
2429 printf "%s\n" "$as_me: exit $exit_status"
2430 } >&5
2431 rm -f core *.core core.conftest.* &&
2432 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433 exit $exit_status
2434' 0
2435for ac_signal in 1 2 13 15; do
2436 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2437done
2438ac_signal=0
2439
2440# confdefs.h avoids OS command line length limits that DEFS can exceed.
2441rm -f -r conftest* confdefs.h
2442
2443printf "%s\n" "/* confdefs.h */" > confdefs.h
2444
2445# Predefined preprocessor variables.
2446
2447printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2448
2449printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2450
2451printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2452
2453printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2454
2455printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2456
2457printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2458
2459
2460# Let the site file select an alternate cache file if it wants to.
2461# Prefer an explicitly selected file to automatically selected ones.
2462if test -n "$CONFIG_SITE"; then
2463 ac_site_files="$CONFIG_SITE"
2464elif test "x$prefix" != xNONE; then
2465 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2466else
2467 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2468fi
2469
2470for ac_site_file in $ac_site_files
2471do
2472 case $ac_site_file in #(
2473 */*) :
2474 ;; #(
2475 *) :
2476 ac_site_file=./$ac_site_file ;;
2477esac
2478 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5
2482 . "$ac_site_file" \
2483 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2485as_fn_error $? "failed to load site script $ac_site_file
2486See \`config.log' for more details" "$LINENO" 5; }
2487 fi
2488done
2489
2490if test -r "$cache_file"; then
2491 # Some versions of bash will fail to source /dev/null (special files
2492 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2493 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2495printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2496 case $cache_file in
2497 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2498 *) . "./$cache_file";;
2499 esac
2500 fi
2501else
2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2503printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2504 >$cache_file
2505fi
2506
2507# Test code for whether the C compiler supports C89 (global declarations)
2508ac_c_conftest_c89_globals='
2509/* Does the compiler advertise C89 conformance?
2510 Do not test the value of __STDC__, because some compilers set it to 0
2511 while being otherwise adequately conformant. */
2512#if !defined __STDC__
2513# error "Compiler does not advertise C89 conformance"
2514#endif
2515
2516#include <stddef.h>
2517#include <stdarg.h>
2518struct stat;
2519/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2520struct buf { int x; };
2521struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2522static char *e (p, i)
2523 char **p;
2524 int i;
2525{
2526 return p[i];
2527}
2528static char *f (char * (*g) (char **, int), char **p, ...)
2529{
2530 char *s;
2531 va_list v;
2532 va_start (v,p);
2533 s = g (p, va_arg (v,int));
2534 va_end (v);
2535 return s;
2536}
2537
2538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not \xHH hex character constants.
2540 These do not provoke an error unfortunately, instead are silently treated
2541 as an "x". The following induces an error, until -std is added to get
2542 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2543 array size at least. It is necessary to write \x00 == 0 to get something
2544 that is true only with -std. */
2545int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2546
2547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2548 inside strings and character constants. */
2549#define FOO(x) '\''x'\''
2550int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2551
2552int test (int i, double x);
2553struct s1 {int (*f) (int a);};
2554struct s2 {int (*f) (double a);};
2555int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2556 int, int);'
2557
2558# Test code for whether the C compiler supports C89 (body of main).
2559ac_c_conftest_c89_main='
2560ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2561'
2562
2563# Test code for whether the C compiler supports C99 (global declarations)
2564ac_c_conftest_c99_globals='
2565// Does the compiler advertise C99 conformance?
2566#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2567# error "Compiler does not advertise C99 conformance"
2568#endif
2569
2570#include <stdbool.h>
2571extern int puts (const char *);
2572extern int printf (const char *, ...);
2573extern int dprintf (int, const char *, ...);
2574extern void *malloc (size_t);
2575
2576// Check varargs macros. These examples are taken from C99 6.10.3.5.
2577// dprintf is used instead of fprintf to avoid needing to declare
2578// FILE and stderr.
2579#define debug(...) dprintf (2, __VA_ARGS__)
2580#define showlist(...) puts (#__VA_ARGS__)
2581#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2582static void
2583test_varargs_macros (void)
2584{
2585 int x = 1234;
2586 int y = 5678;
2587 debug ("Flag");
2588 debug ("X = %d\n", x);
2589 showlist (The first, second, and third items.);
2590 report (x>y, "x is %d but y is %d", x, y);
2591}
2592
2593// Check long long types.
2594#define BIG64 18446744073709551615ull
2595#define BIG32 4294967295ul
2596#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2597#if !BIG_OK
2598 #error "your preprocessor is broken"
2599#endif
2600#if BIG_OK
2601#else
2602 #error "your preprocessor is broken"
2603#endif
2604static long long int bignum = -9223372036854775807LL;
2605static unsigned long long int ubignum = BIG64;
2606
2607struct incomplete_array
2608{
2609 int datasize;
2610 double data[];
2611};
2612
2613struct named_init {
2614 int number;
2615 const wchar_t *name;
2616 double average;
2617};
2618
2619typedef const char *ccp;
2620
2621static inline int
2622test_restrict (ccp restrict text)
2623{
2624 // See if C++-style comments work.
2625 // Iterate through items via the restricted pointer.
2626 // Also check for declarations in for loops.
2627 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2628 continue;
2629 return 0;
2630}
2631
2632// Check varargs and va_copy.
2633static bool
2634test_varargs (const char *format, ...)
2635{
2636 va_list args;
2637 va_start (args, format);
2638 va_list args_copy;
2639 va_copy (args_copy, args);
2640
2641 const char *str = "";
2642 int number = 0;
2643 float fnumber = 0;
2644
2645 while (*format)
2646 {
2647 switch (*format++)
2648 {
2649 case '\''s'\'': // string
2650 str = va_arg (args_copy, const char *);
2651 break;
2652 case '\''d'\'': // int
2653 number = va_arg (args_copy, int);
2654 break;
2655 case '\''f'\'': // float
2656 fnumber = va_arg (args_copy, double);
2657 break;
2658 default:
2659 break;
2660 }
2661 }
2662 va_end (args_copy);
2663 va_end (args);
2664
2665 return *str && number && fnumber;
2666}
2667'
2668
2669# Test code for whether the C compiler supports C99 (body of main).
2670ac_c_conftest_c99_main='
2671 // Check bool.
2672 _Bool success = false;
2673 success |= (argc != 0);
2674
2675 // Check restrict.
2676 if (test_restrict ("String literal") == 0)
2677 success = true;
2678 char *restrict newvar = "Another string";
2679
2680 // Check varargs.
2681 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2682 test_varargs_macros ();
2683
2684 // Check flexible array members.
2685 struct incomplete_array *ia =
2686 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2687 ia->datasize = 10;
2688 for (int i = 0; i < ia->datasize; ++i)
2689 ia->data[i] = i * 1.234;
2690
2691 // Check named initializers.
2692 struct named_init ni = {
2693 .number = 34,
2694 .name = L"Test wide string",
2695 .average = 543.34343,
2696 };
2697
2698 ni.number = 58;
2699
2700 int dynamic_array[ni.number];
2701 dynamic_array[0] = argv[0][0];
2702 dynamic_array[ni.number - 1] = 543;
2703
2704 // work around unused variable warnings
2705 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2706 || dynamic_array[ni.number - 1] != 543);
2707'
2708
2709# Test code for whether the C compiler supports C11 (global declarations)
2710ac_c_conftest_c11_globals='
2711// Does the compiler advertise C11 conformance?
2712#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2713# error "Compiler does not advertise C11 conformance"
2714#endif
2715
2716// Check _Alignas.
2717char _Alignas (double) aligned_as_double;
2718char _Alignas (0) no_special_alignment;
2719extern char aligned_as_int;
2720char _Alignas (0) _Alignas (int) aligned_as_int;
2721
2722// Check _Alignof.
2723enum
2724{
2725 int_alignment = _Alignof (int),
2726 int_array_alignment = _Alignof (int[100]),
2727 char_alignment = _Alignof (char)
2728};
2729_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2730
2731// Check _Noreturn.
2732int _Noreturn does_not_return (void) { for (;;) continue; }
2733
2734// Check _Static_assert.
2735struct test_static_assert
2736{
2737 int x;
2738 _Static_assert (sizeof (int) <= sizeof (long int),
2739 "_Static_assert does not work in struct");
2740 long int y;
2741};
2742
2743// Check UTF-8 literals.
2744#define u8 syntax error!
2745char const utf8_literal[] = u8"happens to be ASCII" "another string";
2746
2747// Check duplicate typedefs.
2748typedef long *long_ptr;
2749typedef long int *long_ptr;
2750typedef long_ptr long_ptr;
2751
2752// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2753struct anonymous
2754{
2755 union {
2756 struct { int i; int j; };
2757 struct { int k; long int l; } w;
2758 };
2759 int m;
2760} v1;
2761'
2762
2763# Test code for whether the C compiler supports C11 (body of main).
2764ac_c_conftest_c11_main='
2765 _Static_assert ((offsetof (struct anonymous, i)
2766 == offsetof (struct anonymous, w.k)),
2767 "Anonymous union alignment botch");
2768 v1.i = 2;
2769 v1.w.k = 5;
2770 ok |= v1.i != 5;
2771'
2772
2773# Test code for whether the C compiler supports C11 (complete).
2774ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2775${ac_c_conftest_c99_globals}
2776${ac_c_conftest_c11_globals}
2777
2778int
2779main (int argc, char **argv)
2780{
2781 int ok = 0;
2782 ${ac_c_conftest_c89_main}
2783 ${ac_c_conftest_c99_main}
2784 ${ac_c_conftest_c11_main}
2785 return ok;
2786}
2787"
2788
2789# Test code for whether the C compiler supports C99 (complete).
2790ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2791${ac_c_conftest_c99_globals}
2792
2793int
2794main (int argc, char **argv)
2795{
2796 int ok = 0;
2797 ${ac_c_conftest_c89_main}
2798 ${ac_c_conftest_c99_main}
2799 return ok;
2800}
2801"
2802
2803# Test code for whether the C compiler supports C89 (complete).
2804ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2805
2806int
2807main (int argc, char **argv)
2808{
2809 int ok = 0;
2810 ${ac_c_conftest_c89_main}
2811 return ok;
2812}
2813"
2814
2815as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2816as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2817as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2818as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2819as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2820as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2821as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2822as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2823as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2824
2825# Auxiliary files required by this configure script.
2826ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2827
2828# Locations in which to look for auxiliary files.
2829ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2830
2831# Search for a directory containing all of the required auxiliary files,
2832# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2833# If we don't find one directory that contains all the files we need,
2834# we report the set of missing files from the *first* directory in
2835# $ac_aux_dir_candidates and give up.
2836ac_missing_aux_files=""
2837ac_first_candidate=:
2838printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840as_found=false
2841for as_dir in $ac_aux_dir_candidates
2842do
2843 IFS=$as_save_IFS
2844 case $as_dir in #(((
2845 '') as_dir=./ ;;
2846 */) ;;
2847 *) as_dir=$as_dir/ ;;
2848 esac
2849 as_found=:
2850
2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2852 ac_aux_dir_found=yes
2853 ac_install_sh=
2854 for ac_aux in $ac_aux_files
2855 do
2856 # As a special case, if "install-sh" is required, that requirement
2857 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2858 # and $ac_install_sh is set appropriately for whichever one is found.
2859 if test x"$ac_aux" = x"install-sh"
2860 then
2861 if test -f "${as_dir}install-sh"; then
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2863 ac_install_sh="${as_dir}install-sh -c"
2864 elif test -f "${as_dir}install.sh"; then
2865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2866 ac_install_sh="${as_dir}install.sh -c"
2867 elif test -f "${as_dir}shtool"; then
2868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2869 ac_install_sh="${as_dir}shtool install -c"
2870 else
2871 ac_aux_dir_found=no
2872 if $ac_first_candidate; then
2873 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2874 else
2875 break
2876 fi
2877 fi
2878 else
2879 if test -f "${as_dir}${ac_aux}"; then
2880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2881 else
2882 ac_aux_dir_found=no
2883 if $ac_first_candidate; then
2884 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2885 else
2886 break
2887 fi
2888 fi
2889 fi
2890 done
2891 if test "$ac_aux_dir_found" = yes; then
2892 ac_aux_dir="$as_dir"
2893 break
2894 fi
2895 ac_first_candidate=false
2896
2897 as_found=false
2898done
2899IFS=$as_save_IFS
2900if $as_found
2901then :
2902
2903else $as_nop
2904 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2905fi
2906
2907
2908# These three variables are undocumented and unsupported,
2909# and are intended to be withdrawn in a future Autoconf release.
2910# They can cause serious problems if a builder's source tree is in a directory
2911# whose full name contains unusual characters.
2912if test -f "${ac_aux_dir}config.guess"; then
2913 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2914fi
2915if test -f "${ac_aux_dir}config.sub"; then
2916 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2917fi
2918if test -f "$ac_aux_dir/configure"; then
2919 ac_configure="$SHELL ${ac_aux_dir}configure"
2920fi
2921
2922# Check that the precious variables saved in the cache have kept the same
2923# value.
2924ac_cache_corrupted=false
2925for ac_var in $ac_precious_vars; do
2926 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2927 eval ac_new_set=\$ac_env_${ac_var}_set
2928 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2929 eval ac_new_val=\$ac_env_${ac_var}_value
2930 case $ac_old_set,$ac_new_set in
2931 set,)
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2933printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2935 ,set)
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2937printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2939 ,);;
2940 *)
2941 if test "x$ac_old_val" != "x$ac_new_val"; then
2942 # differences in whitespace do not lead to failure.
2943 ac_old_val_w=`echo x $ac_old_val`
2944 ac_new_val_w=`echo x $ac_new_val`
2945 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2947printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2948 ac_cache_corrupted=:
2949 else
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2951printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2952 eval $ac_var=\$ac_old_val
2953 fi
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2955printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2957printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2958 fi;;
2959 esac
2960 # Pass precious variables to config.status.
2961 if test "$ac_new_set" = set; then
2962 case $ac_new_val in
2963 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2964 *) ac_arg=$ac_var=$ac_new_val ;;
2965 esac
2966 case " $ac_configure_args " in
2967 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2968 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2969 esac
2970 fi
2971done
2972if $ac_cache_corrupted; then
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2976printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2977 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2978 and start over" "$LINENO" 5
2979fi
2980## -------------------- ##
2981## Main body of script. ##
2982## -------------------- ##
2983
2984ac_ext=c
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990
2991
2992# Check whether --enable-silent-rules was given.
2993if test ${enable_silent_rules+y}
2994then :
2995 enableval=$enable_silent_rules;
2996fi
2997
2998case $enable_silent_rules in # (((
2999 yes) AM_DEFAULT_VERBOSITY=0;;
3000 no) AM_DEFAULT_VERBOSITY=1;;
3001 *) AM_DEFAULT_VERBOSITY=0;;
3002esac
3003am_make=${MAKE-make}
3004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3005printf %s "checking whether $am_make supports nested variables... " >&6; }
3006if test ${am_cv_make_support_nested_variables+y}
3007then :
3008 printf %s "(cached) " >&6
3009else $as_nop
3010 if printf "%s\n" 'TRUE=$(BAR$(V))
3011BAR0=false
3012BAR1=true
3013V=1
3014am__doit:
3015 @$(TRUE)
3016.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3017 am_cv_make_support_nested_variables=yes
3018else
3019 am_cv_make_support_nested_variables=no
3020fi
3021fi
3022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3023printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3024if test $am_cv_make_support_nested_variables = yes; then
3025 AM_V='$(V)'
3026 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3027else
3028 AM_V=$AM_DEFAULT_VERBOSITY
3029 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3030fi
3031AM_BACKSLASH='\'
3032
3033
3034
3035am__api_version='1.16'
3036
3037
3038
3039 # Find a good install program. We prefer a C program (faster),
3040# so one script is as good as another. But avoid the broken or
3041# incompatible versions:
3042# SysV /etc/install, /usr/sbin/install
3043# SunOS /usr/etc/install
3044# IRIX /sbin/install
3045# AIX /bin/install
3046# AmigaOS /C/install, which installs bootblocks on floppy discs
3047# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3048# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3049# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3050# OS/2's system install, which has a completely different semantic
3051# ./install, which can be erroneously created by make from ./install.sh.
3052# Reject install programs that cannot install multiple files.
3053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3054printf %s "checking for a BSD-compatible install... " >&6; }
3055if test -z "$INSTALL"; then
3056if test ${ac_cv_path_install+y}
3057then :
3058 printf %s "(cached) " >&6
3059else $as_nop
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 # Account for fact that we put trailing slashes in our PATH walk.
3070case $as_dir in #((
3071 ./ | /[cC]/* | \
3072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3074 /usr/ucb/* ) ;;
3075 *)
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3078 # by default.
3079 for ac_prog in ginstall scoinst install; do
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3082 if test $ac_prog = install &&
3083 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3085 :
3086 elif test $ac_prog = install &&
3087 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3089 :
3090 else
3091 rm -rf conftest.one conftest.two conftest.dir
3092 echo one > conftest.one
3093 echo two > conftest.two
3094 mkdir conftest.dir
3095 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3096 test -s conftest.one && test -s conftest.two &&
3097 test -s conftest.dir/conftest.one &&
3098 test -s conftest.dir/conftest.two
3099 then
3100 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3101 break 3
3102 fi
3103 fi
3104 fi
3105 done
3106 done
3107 ;;
3108esac
3109
3110 done
3111IFS=$as_save_IFS
3112
3113rm -rf conftest.one conftest.two conftest.dir
3114
3115fi
3116 if test ${ac_cv_path_install+y}; then
3117 INSTALL=$ac_cv_path_install
3118 else
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for INSTALL within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 INSTALL=$ac_install_sh
3124 fi
3125fi
3126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3127printf "%s\n" "$INSTALL" >&6; }
3128
3129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3130# It thinks the first close brace ends the variable substitution.
3131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3132
3133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3134
3135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3136
3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3138printf %s "checking whether build environment is sane... " >&6; }
3139# Reject unsafe characters in $srcdir or the absolute working directory
3140# name. Accept space and tab only in the latter.
3141am_lf='
3142'
3143case `pwd` in
3144 *[\\\"\#\$\&\'\`$am_lf]*)
3145 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3146esac
3147case $srcdir in
3148 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3149 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3150esac
3151
3152# Do 'set' in a subshell so we don't clobber the current shell's
3153# arguments. Must try -L first in case configure is actually a
3154# symlink; some systems play weird games with the mod time of symlinks
3155# (eg FreeBSD returns the mod time of the symlink's containing
3156# directory).
3157if (
3158 am_has_slept=no
3159 for am_try in 1 2; do
3160 echo "timestamp, slept: $am_has_slept" > conftest.file
3161 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3162 if test "$*" = "X"; then
3163 # -L didn't work.
3164 set X `ls -t "$srcdir/configure" conftest.file`
3165 fi
3166 if test "$*" != "X $srcdir/configure conftest.file" \
3167 && test "$*" != "X conftest.file $srcdir/configure"; then
3168
3169 # If neither matched, then we have a broken ls. This can happen
3170 # if, for instance, CONFIG_SHELL is bash and it inherits a
3171 # broken ls alias from the environment. This has actually
3172 # happened. Such a system could not be considered "sane".
3173 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3174 alias in your environment" "$LINENO" 5
3175 fi
3176 if test "$2" = conftest.file || test $am_try -eq 2; then
3177 break
3178 fi
3179 # Just in case.
3180 sleep 1
3181 am_has_slept=yes
3182 done
3183 test "$2" = conftest.file
3184 )
3185then
3186 # Ok.
3187 :
3188else
3189 as_fn_error $? "newly created file is older than distributed files!
3190Check your system clock" "$LINENO" 5
3191fi
3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3193printf "%s\n" "yes" >&6; }
3194# If we didn't sleep, we still need to ensure time stamps of config.status and
3195# generated files are strictly newer.
3196am_sleep_pid=
3197if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3198 ( sleep 1 ) &
3199 am_sleep_pid=$!
3200fi
3201
3202rm -f conftest.file
3203
3204test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206# Use a double $ so make ignores it.
3207test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209# Double any \ or $.
3210# By default was `s,x,x', remove it if useless.
3211ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3212program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3213
3214
3215# Expand $ac_aux_dir to an absolute path.
3216am_aux_dir=`cd "$ac_aux_dir" && pwd`
3217
3218
3219 if test x"${MISSING+set}" != xset; then
3220 MISSING="\${SHELL} '$am_aux_dir/missing'"
3221fi
3222# Use eval to expand $SHELL
3223if eval "$MISSING --is-lightweight"; then
3224 am_missing_run="$MISSING "
3225else
3226 am_missing_run=
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3228printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3229fi
3230
3231if test x"${install_sh+set}" != xset; then
3232 case $am_aux_dir in
3233 *\ * | *\ *)
3234 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3235 *)
3236 install_sh="\${SHELL} $am_aux_dir/install-sh"
3237 esac
3238fi
3239
3240# Installed binaries are usually stripped using 'strip' when the user
3241# run "make install-strip". However 'strip' might not be the right
3242# tool to use in cross-compilation environments, therefore Automake
3243# will honor the 'STRIP' environment variable to overrule this program.
3244if test "$cross_compiling" != no; then
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3247set dummy ${ac_tool_prefix}strip; ac_word=$2
3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249printf %s "checking for $ac_word... " >&6; }
3250if test ${ac_cv_prog_STRIP+y}
3251then :
3252 printf %s "(cached) " >&6
3253else $as_nop
3254 if test -n "$STRIP"; then
3255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 case $as_dir in #(((
3262 '') as_dir=./ ;;
3263 */) ;;
3264 *) as_dir=$as_dir/ ;;
3265 esac
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273 done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278STRIP=$ac_cv_prog_STRIP
3279if test -n "$STRIP"; then
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3281printf "%s\n" "$STRIP" >&6; }
3282else
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284printf "%s\n" "no" >&6; }
3285fi
3286
3287
3288fi
3289if test -z "$ac_cv_prog_STRIP"; then
3290 ac_ct_STRIP=$STRIP
3291 # Extract the first word of "strip", so it can be a program name with args.
3292set dummy strip; ac_word=$2
3293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294printf %s "checking for $ac_word... " >&6; }
3295if test ${ac_cv_prog_ac_ct_STRIP+y}
3296then :
3297 printf %s "(cached) " >&6
3298else $as_nop
3299 if test -n "$ac_ct_STRIP"; then
3300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 case $as_dir in #(((
3307 '') as_dir=./ ;;
3308 */) ;;
3309 *) as_dir=$as_dir/ ;;
3310 esac
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_STRIP="strip"
3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317done
3318 done
3319IFS=$as_save_IFS
3320
3321fi
3322fi
3323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3324if test -n "$ac_ct_STRIP"; then
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3326printf "%s\n" "$ac_ct_STRIP" >&6; }
3327else
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329printf "%s\n" "no" >&6; }
3330fi
3331
3332 if test "x$ac_ct_STRIP" = x; then
3333 STRIP=":"
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336yes:)
3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339ac_tool_warned=yes ;;
3340esac
3341 STRIP=$ac_ct_STRIP
3342 fi
3343else
3344 STRIP="$ac_cv_prog_STRIP"
3345fi
3346
3347fi
3348INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3349
3350
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3352printf %s "checking for a race-free mkdir -p... " >&6; }
3353if test -z "$MKDIR_P"; then
3354 if test ${ac_cv_path_mkdir+y}
3355then :
3356 printf %s "(cached) " >&6
3357else $as_nop
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3360do
3361 IFS=$as_save_IFS
3362 case $as_dir in #(((
3363 '') as_dir=./ ;;
3364 */) ;;
3365 *) as_dir=$as_dir/ ;;
3366 esac
3367 for ac_prog in mkdir gmkdir; do
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3370 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3371 'mkdir ('*'coreutils) '* | \
3372 'BusyBox '* | \
3373 'mkdir (fileutils) '4.1*)
3374 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3375 break 3;;
3376 esac
3377 done
3378 done
3379 done
3380IFS=$as_save_IFS
3381
3382fi
3383
3384 test -d ./--version && rmdir ./--version
3385 if test ${ac_cv_path_mkdir+y}; then
3386 MKDIR_P="$ac_cv_path_mkdir -p"
3387 else
3388 # As a last resort, use the slow shell script. Don't cache a
3389 # value for MKDIR_P within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the value is a relative name.
3392 MKDIR_P="$ac_install_sh -d"
3393 fi
3394fi
3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3396printf "%s\n" "$MKDIR_P" >&6; }
3397
3398for ac_prog in gawk mawk nawk awk
3399do
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401set dummy $ac_prog; ac_word=$2
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403printf %s "checking for $ac_word... " >&6; }
3404if test ${ac_cv_prog_AWK+y}
3405then :
3406 printf %s "(cached) " >&6
3407else $as_nop
3408 if test -n "$AWK"; then
3409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414 IFS=$as_save_IFS
3415 case $as_dir in #(((
3416 '') as_dir=./ ;;
3417 */) ;;
3418 *) as_dir=$as_dir/ ;;
3419 esac
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_AWK="$ac_prog"
3423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432AWK=$ac_cv_prog_AWK
3433if test -n "$AWK"; then
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3435printf "%s\n" "$AWK" >&6; }
3436else
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438printf "%s\n" "no" >&6; }
3439fi
3440
3441
3442 test -n "$AWK" && break
3443done
3444
3445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3446printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3447set x ${MAKE-make}
3448ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3449if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3450then :
3451 printf %s "(cached) " >&6
3452else $as_nop
3453 cat >conftest.make <<\_ACEOF
3454SHELL = /bin/sh
3455all:
3456 @echo '@@@%%%=$(MAKE)=@@@%%%'
3457_ACEOF
3458# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3459case `${MAKE-make} -f conftest.make 2>/dev/null` in
3460 *@@@%%%=?*=@@@%%%*)
3461 eval ac_cv_prog_make_${ac_make}_set=yes;;
3462 *)
3463 eval ac_cv_prog_make_${ac_make}_set=no;;
3464esac
3465rm -f conftest.make
3466fi
3467if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469printf "%s\n" "yes" >&6; }
3470 SET_MAKE=
3471else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473printf "%s\n" "no" >&6; }
3474 SET_MAKE="MAKE=${MAKE-make}"
3475fi
3476
3477rm -rf .tst 2>/dev/null
3478mkdir .tst 2>/dev/null
3479if test -d .tst; then
3480 am__leading_dot=.
3481else
3482 am__leading_dot=_
3483fi
3484rmdir .tst 2>/dev/null
3485
3486if test "`cd $srcdir && pwd`" != "`pwd`"; then
3487 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3488 # is not polluted with repeated "-I."
3489 am__isrc=' -I$(srcdir)'
3490 # test to see if srcdir already configured
3491 if test -f $srcdir/config.status; then
3492 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3493 fi
3494fi
3495
3496# test whether we have cygpath
3497if test -z "$CYGPATH_W"; then
3498 if (cygpath --version) >/dev/null 2>/dev/null; then
3499 CYGPATH_W='cygpath -w'
3500 else
3501 CYGPATH_W=echo
3502 fi
3503fi
3504
3505
3506# Define the identity of the package.
3507 PACKAGE='ppp'
3508 VERSION='2.5.0'
3509
3510
3511printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3512
3513
3514printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3515
3516# Some tools Automake needs.
3517
3518ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3519
3520
3521AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3522
3523
3524AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3525
3526
3527AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3528
3529
3530MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3531
3532# For better backward compatibility. To be removed once Automake 1.9.x
3533# dies out for good. For more background, see:
3534# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3535# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3536mkdir_p='$(MKDIR_P)'
3537
3538# We need awk for the "check" target (and possibly the TAP driver). The
3539# system "awk" is bad on some platforms.
3540# Always define AMTAR for backward compatibility. Yes, it's still used
3541# in the wild :-( We should find a proper way to deprecate it ...
3542AMTAR='$${TAR-tar}'
3543
3544
3545# We'll loop over all known methods to create a tar archive until one works.
3546_am_tools='gnutar pax cpio none'
3547
3548am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3549
3550
3551
3552
3553
3554# Variables for tags utilities; see am/tags.am
3555if test -z "$CTAGS"; then
3556 CTAGS=ctags
3557fi
3558
3559if test -z "$ETAGS"; then
3560 ETAGS=etags
3561fi
3562
3563if test -z "$CSCOPE"; then
3564 CSCOPE=cscope
3565fi
3566
3567
3568
3569# POSIX will say in a future version that running "rm -f" with no argument
3570# is OK; and we want to be able to make that assumption in our Makefile
3571# recipes. So use an aggressive probe to check that the usage we want is
3572# actually supported "in the wild" to an acceptable degree.
3573# See automake bug#10828.
3574# To make any issue more visible, cause the running configure to be aborted
3575# by default if the 'rm' program in use doesn't match our expectations; the
3576# user can still override this though.
3577if rm -f && rm -fr && rm -rf; then : OK; else
3578 cat >&2 <<'END'
3579Oops!
3580
3581Your 'rm' program seems unable to run without file operands specified
3582on the command line, even when the '-f' option is present. This is contrary
3583to the behaviour of most rm programs out there, and not conforming with
3584the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3585
3586Please tell bug-automake@gnu.org about your system, including the value
3587of your $PATH and any error possibly output before this message. This
3588can help us improve future automake versions.
3589
3590END
3591 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3592 echo 'Configuration will proceed anyway, since you have set the' >&2
3593 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3594 echo >&2
3595 else
3596 cat >&2 <<'END'
3597Aborting the configuration process, to ensure you take notice of the issue.
3598
3599You can download and install GNU coreutils to get an 'rm' implementation
3600that behaves properly: <https://www.gnu.org/software/coreutils/>.
3601
3602If you want to complete the configuration process using your problematic
3603'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3604to "yes", and re-run configure.
3605
3606END
3607 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3608 fi
3609fi
3610
3611
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3613printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3614 # Check whether --enable-maintainer-mode was given.
3615if test ${enable_maintainer_mode+y}
3616then :
3617 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3618else $as_nop
3619 USE_MAINTAINER_MODE=yes
3620fi
3621
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3623printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3624 if test $USE_MAINTAINER_MODE = yes; then
3625 MAINTAINER_MODE_TRUE=
3626 MAINTAINER_MODE_FALSE='#'
3627else
3628 MAINTAINER_MODE_TRUE='#'
3629 MAINTAINER_MODE_FALSE=
3630fi
3631
3632 MAINT=$MAINTAINER_MODE_TRUE
3633
3634
3635
3636ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642
3643ac_config_headers="$ac_config_headers pppd/config.h pppd/pppdconf.h pppd/plugins/pppoe/config.h"
3644
3645# Check whether --enable-static was given.
3646if test ${enable_static+y}
3647then :
3648 enableval=$enable_static; p=${PACKAGE-default}
3649 case $enableval in
3650 yes) enable_static=yes ;;
3651 no) enable_static=no ;;
3652 *)
3653 enable_static=no
3654 # Look at the argument we got. We use all the common list separators.
3655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3656 for pkg in $enableval; do
3657 IFS=$lt_save_ifs
3658 if test "X$pkg" = "X$p"; then
3659 enable_static=yes
3660 fi
3661 done
3662 IFS=$lt_save_ifs
3663 ;;
3664 esac
3665else $as_nop
3666 enable_static=no
3667fi
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678# Checks for programs.
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688ac_ext=c
3689ac_cpp='$CPP $CPPFLAGS'
3690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3695set dummy ${ac_tool_prefix}gcc; ac_word=$2
3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697printf %s "checking for $ac_word... " >&6; }
3698if test ${ac_cv_prog_CC+y}
3699then :
3700 printf %s "(cached) " >&6
3701else $as_nop
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 case $as_dir in #(((
3710 '') as_dir=./ ;;
3711 */) ;;
3712 *) as_dir=$as_dir/ ;;
3713 esac
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720done
3721 done
3722IFS=$as_save_IFS
3723
3724fi
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729printf "%s\n" "$CC" >&6; }
3730else
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732printf "%s\n" "no" >&6; }
3733fi
3734
3735
3736fi
3737if test -z "$ac_cv_prog_CC"; then
3738 ac_ct_CC=$CC
3739 # Extract the first word of "gcc", so it can be a program name with args.
3740set dummy gcc; ac_word=$2
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742printf %s "checking for $ac_word... " >&6; }
3743if test ${ac_cv_prog_ac_ct_CC+y}
3744then :
3745 printf %s "(cached) " >&6
3746else $as_nop
3747 if test -n "$ac_ct_CC"; then
3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753 IFS=$as_save_IFS
3754 case $as_dir in #(((
3755 '') as_dir=./ ;;
3756 */) ;;
3757 *) as_dir=$as_dir/ ;;
3758 esac
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_CC="gcc"
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766 done
3767IFS=$as_save_IFS
3768
3769fi
3770fi
3771ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772if test -n "$ac_ct_CC"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774printf "%s\n" "$ac_ct_CC" >&6; }
3775else
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777printf "%s\n" "no" >&6; }
3778fi
3779
3780 if test "x$ac_ct_CC" = x; then
3781 CC=""
3782 else
3783 case $cross_compiling:$ac_tool_warned in
3784yes:)
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787ac_tool_warned=yes ;;
3788esac
3789 CC=$ac_ct_CC
3790 fi
3791else
3792 CC="$ac_cv_prog_CC"
3793fi
3794
3795if test -z "$CC"; then
3796 if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3798set dummy ${ac_tool_prefix}cc; ac_word=$2
3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800printf %s "checking for $ac_word... " >&6; }
3801if test ${ac_cv_prog_CC+y}
3802then :
3803 printf %s "(cached) " >&6
3804else $as_nop
3805 if test -n "$CC"; then
3806 ac_cv_prog_CC="$CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 case $as_dir in #(((
3813 '') as_dir=./ ;;
3814 */) ;;
3815 *) as_dir=$as_dir/ ;;
3816 esac
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_CC="${ac_tool_prefix}cc"
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829CC=$ac_cv_prog_CC
3830if test -n "$CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832printf "%s\n" "$CC" >&6; }
3833else
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835printf "%s\n" "no" >&6; }
3836fi
3837
3838
3839 fi
3840fi
3841if test -z "$CC"; then
3842 # Extract the first word of "cc", so it can be a program name with args.
3843set dummy cc; ac_word=$2
3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845printf %s "checking for $ac_word... " >&6; }
3846if test ${ac_cv_prog_CC+y}
3847then :
3848 printf %s "(cached) " >&6
3849else $as_nop
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852else
3853 ac_prog_rejected=no
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 case $as_dir in #(((
3859 '') as_dir=./ ;;
3860 */) ;;
3861 *) as_dir=$as_dir/ ;;
3862 esac
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3865 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3866 ac_prog_rejected=yes
3867 continue
3868 fi
3869 ac_cv_prog_CC="cc"
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877if test $ac_prog_rejected = yes; then
3878 # We found a bogon in the path, so make sure we never use it.
3879 set dummy $ac_cv_prog_CC
3880 shift
3881 if test $# != 0; then
3882 # We chose a different compiler from the bogus one.
3883 # However, it has the same basename, so the bogon will be chosen
3884 # first if we set CC to just the basename; use the full file name.
3885 shift
3886 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3887 fi
3888fi
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894printf "%s\n" "$CC" >&6; }
3895else
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897printf "%s\n" "no" >&6; }
3898fi
3899
3900
3901fi
3902if test -z "$CC"; then
3903 if test -n "$ac_tool_prefix"; then
3904 for ac_prog in cl.exe
3905 do
3906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3907set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909printf %s "checking for $ac_word... " >&6; }
3910if test ${ac_cv_prog_CC+y}
3911then :
3912 printf %s "(cached) " >&6
3913else $as_nop
3914 if test -n "$CC"; then
3915 ac_cv_prog_CC="$CC" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 case $as_dir in #(((
3922 '') as_dir=./ ;;
3923 */) ;;
3924 *) as_dir=$as_dir/ ;;
3925 esac
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933 done
3934IFS=$as_save_IFS
3935
3936fi
3937fi
3938CC=$ac_cv_prog_CC
3939if test -n "$CC"; then
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941printf "%s\n" "$CC" >&6; }
3942else
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944printf "%s\n" "no" >&6; }
3945fi
3946
3947
3948 test -n "$CC" && break
3949 done
3950fi
3951if test -z "$CC"; then
3952 ac_ct_CC=$CC
3953 for ac_prog in cl.exe
3954do
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956set dummy $ac_prog; ac_word=$2
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958printf %s "checking for $ac_word... " >&6; }
3959if test ${ac_cv_prog_ac_ct_CC+y}
3960then :
3961 printf %s "(cached) " >&6
3962else $as_nop
3963 if test -n "$ac_ct_CC"; then
3964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 case $as_dir in #(((
3971 '') as_dir=./ ;;
3972 */) ;;
3973 *) as_dir=$as_dir/ ;;
3974 esac
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="$ac_prog"
3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982 done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988if test -n "$ac_ct_CC"; then
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990printf "%s\n" "$ac_ct_CC" >&6; }
3991else
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993printf "%s\n" "no" >&6; }
3994fi
3995
3996
3997 test -n "$ac_ct_CC" && break
3998done
3999
4000 if test "x$ac_ct_CC" = x; then
4001 CC=""
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004yes:)
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009 CC=$ac_ct_CC
4010 fi
4011fi
4012
4013fi
4014if test -z "$CC"; then
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4017set dummy ${ac_tool_prefix}clang; ac_word=$2
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019printf %s "checking for $ac_word... " >&6; }
4020if test ${ac_cv_prog_CC+y}
4021then :
4022 printf %s "(cached) " >&6
4023else $as_nop
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026else
4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="${ac_tool_prefix}clang"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042done
4043 done
4044IFS=$as_save_IFS
4045
4046fi
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051printf "%s\n" "$CC" >&6; }
4052else
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054printf "%s\n" "no" >&6; }
4055fi
4056
4057
4058fi
4059if test -z "$ac_cv_prog_CC"; then
4060 ac_ct_CC=$CC
4061 # Extract the first word of "clang", so it can be a program name with args.
4062set dummy clang; ac_word=$2
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064printf %s "checking for $ac_word... " >&6; }
4065if test ${ac_cv_prog_ac_ct_CC+y}
4066then :
4067 printf %s "(cached) " >&6
4068else $as_nop
4069 if test -n "$ac_ct_CC"; then
4070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 case $as_dir in #(((
4077 '') as_dir=./ ;;
4078 */) ;;
4079 *) as_dir=$as_dir/ ;;
4080 esac
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CC="clang"
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087done
4088 done
4089IFS=$as_save_IFS
4090
4091fi
4092fi
4093ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094if test -n "$ac_ct_CC"; then
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096printf "%s\n" "$ac_ct_CC" >&6; }
4097else
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099printf "%s\n" "no" >&6; }
4100fi
4101
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106yes:)
4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109ac_tool_warned=yes ;;
4110esac
4111 CC=$ac_ct_CC
4112 fi
4113else
4114 CC="$ac_cv_prog_CC"
4115fi
4116
4117fi
4118
4119
4120test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error $? "no acceptable C compiler found in \$PATH
4123See \`config.log' for more details" "$LINENO" 5; }
4124
4125# Provide some information about the compiler.
4126printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4127set X $ac_compile
4128ac_compiler=$2
4129for ac_option in --version -v -V -qversion -version; do
4130 { { ac_try="$ac_compiler $ac_option >&5"
4131case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136printf "%s\n" "$ac_try_echo"; } >&5
4137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4138 ac_status=$?
4139 if test -s conftest.err; then
4140 sed '10a\
4141... rest of stderr output deleted ...
4142 10q' conftest.err >conftest.er1
4143 cat conftest.er1 >&5
4144 fi
4145 rm -f conftest.er1 conftest.err
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }
4148done
4149
4150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h. */
4152
4153int
4154main (void)
4155{
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161ac_clean_files_save=$ac_clean_files
4162ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4163# Try to create an executable without -o first, disregard a.out.
4164# It will help us diagnose broken compilers, and finding out an intuition
4165# of exeext.
4166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4167printf %s "checking whether the C compiler works... " >&6; }
4168ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4169
4170# The possible output files:
4171ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4172
4173ac_rmfiles=
4174for ac_file in $ac_files
4175do
4176 case $ac_file in
4177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4179 esac
4180done
4181rm -f $ac_rmfiles
4182
4183if { { ac_try="$ac_link_default"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189printf "%s\n" "$ac_try_echo"; } >&5
4190 (eval "$ac_link_default") 2>&5
4191 ac_status=$?
4192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }
4194then :
4195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4196# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4197# in a Makefile. We should not override ac_cv_exeext if it was cached,
4198# so that the user can short-circuit this test for compilers unknown to
4199# Autoconf.
4200for ac_file in $ac_files ''
4201do
4202 test -f "$ac_file" || continue
4203 case $ac_file in
4204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4205 ;;
4206 [ab].out )
4207 # We found the default executable, but exeext='' is most
4208 # certainly right.
4209 break;;
4210 *.* )
4211 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4212 then :; else
4213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4214 fi
4215 # We set ac_cv_exeext here because the later test for it is not
4216 # safe: cross compilers may not add the suffix if given an `-o'
4217 # argument, so we may need to know it at that point already.
4218 # Even if this section looks crufty: it has the advantage of
4219 # actually working.
4220 break;;
4221 * )
4222 break;;
4223 esac
4224done
4225test "$ac_cv_exeext" = no && ac_cv_exeext=
4226
4227else $as_nop
4228 ac_file=''
4229fi
4230if test -z "$ac_file"
4231then :
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233printf "%s\n" "no" >&6; }
4234printf "%s\n" "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4239as_fn_error 77 "C compiler cannot create executables
4240See \`config.log' for more details" "$LINENO" 5; }
4241else $as_nop
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243printf "%s\n" "yes" >&6; }
4244fi
4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4246printf %s "checking for C compiler default output file name... " >&6; }
4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4248printf "%s\n" "$ac_file" >&6; }
4249ac_exeext=$ac_cv_exeext
4250
4251rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4252ac_clean_files=$ac_clean_files_save
4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254printf %s "checking for suffix of executables... " >&6; }
4255if { { ac_try="$ac_link"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261printf "%s\n" "$ac_try_echo"; } >&5
4262 (eval "$ac_link") 2>&5
4263 ac_status=$?
4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }
4266then :
4267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4269# work properly (i.e., refer to `conftest.exe'), while it won't with
4270# `rm'.
4271for ac_file in conftest.exe conftest conftest.*; do
4272 test -f "$ac_file" || continue
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 break;;
4277 * ) break;;
4278 esac
4279done
4280else $as_nop
4281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4282printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4283as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4284See \`config.log' for more details" "$LINENO" 5; }
4285fi
4286rm -f conftest conftest$ac_cv_exeext
4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4288printf "%s\n" "$ac_cv_exeext" >&6; }
4289
4290rm -f conftest.$ac_ext
4291EXEEXT=$ac_cv_exeext
4292ac_exeext=$EXEEXT
4293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295#include <stdio.h>
4296int
4297main (void)
4298{
4299FILE *f = fopen ("conftest.out", "w");
4300 return ferror (f) || fclose (f) != 0;
4301
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306ac_clean_files="$ac_clean_files conftest.out"
4307# Check that the compiler produces executables we can run. If not, either
4308# the compiler is broken, or we cross compile.
4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4310printf %s "checking whether we are cross compiling... " >&6; }
4311if test "$cross_compiling" != yes; then
4312 { { ac_try="$ac_link"
4313case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318printf "%s\n" "$ac_try_echo"; } >&5
4319 (eval "$ac_link") 2>&5
4320 ac_status=$?
4321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }
4323 if { ac_try='./conftest$ac_cv_exeext'
4324 { { case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329printf "%s\n" "$ac_try_echo"; } >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }; }; then
4334 cross_compiling=no
4335 else
4336 if test "$cross_compiling" = maybe; then
4337 cross_compiling=yes
4338 else
4339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4341as_fn_error 77 "cannot run C compiled programs.
4342If you meant to cross compile, use \`--host'.
4343See \`config.log' for more details" "$LINENO" 5; }
4344 fi
4345 fi
4346fi
4347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4348printf "%s\n" "$cross_compiling" >&6; }
4349
4350rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4351ac_clean_files=$ac_clean_files_save
4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4353printf %s "checking for suffix of object files... " >&6; }
4354if test ${ac_cv_objext+y}
4355then :
4356 printf %s "(cached) " >&6
4357else $as_nop
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h. */
4360
4361int
4362main (void)
4363{
4364
4365 ;
4366 return 0;
4367}
4368_ACEOF
4369rm -f conftest.o conftest.obj
4370if { { ac_try="$ac_compile"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376printf "%s\n" "$ac_try_echo"; } >&5
4377 (eval "$ac_compile") 2>&5
4378 ac_status=$?
4379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380 test $ac_status = 0; }
4381then :
4382 for ac_file in conftest.o conftest.obj conftest.*; do
4383 test -f "$ac_file" || continue;
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4387 break;;
4388 esac
4389done
4390else $as_nop
4391 printf "%s\n" "$as_me: failed program was:" >&5
4392sed 's/^/| /' conftest.$ac_ext >&5
4393
4394{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4396as_fn_error $? "cannot compute suffix of object files: cannot compile
4397See \`config.log' for more details" "$LINENO" 5; }
4398fi
4399rm -f conftest.$ac_cv_objext conftest.$ac_ext
4400fi
4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4402printf "%s\n" "$ac_cv_objext" >&6; }
4403OBJEXT=$ac_cv_objext
4404ac_objext=$OBJEXT
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4406printf %s "checking whether the compiler supports GNU C... " >&6; }
4407if test ${ac_cv_c_compiler_gnu+y}
4408then :
4409 printf %s "(cached) " >&6
4410else $as_nop
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h. */
4413
4414int
4415main (void)
4416{
4417#ifndef __GNUC__
4418 choke me
4419#endif
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425if ac_fn_c_try_compile "$LINENO"
4426then :
4427 ac_compiler_gnu=yes
4428else $as_nop
4429 ac_compiler_gnu=no
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4432ac_cv_c_compiler_gnu=$ac_compiler_gnu
4433
4434fi
4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4436printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439if test $ac_compiler_gnu = yes; then
4440 GCC=yes
4441else
4442 GCC=
4443fi
4444ac_test_CFLAGS=${CFLAGS+y}
4445ac_save_CFLAGS=$CFLAGS
4446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4447printf %s "checking whether $CC accepts -g... " >&6; }
4448if test ${ac_cv_prog_cc_g+y}
4449then :
4450 printf %s "(cached) " >&6
4451else $as_nop
4452 ac_save_c_werror_flag=$ac_c_werror_flag
4453 ac_c_werror_flag=yes
4454 ac_cv_prog_cc_g=no
4455 CFLAGS="-g"
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h. */
4458
4459int
4460main (void)
4461{
4462
4463 ;
4464 return 0;
4465}
4466_ACEOF
4467if ac_fn_c_try_compile "$LINENO"
4468then :
4469 ac_cv_prog_cc_g=yes
4470else $as_nop
4471 CFLAGS=""
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474
4475int
4476main (void)
4477{
4478
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"
4484then :
4485
4486else $as_nop
4487 ac_c_werror_flag=$ac_save_c_werror_flag
4488 CFLAGS="-g"
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h. */
4491
4492int
4493main (void)
4494{
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500if ac_fn_c_try_compile "$LINENO"
4501then :
4502 ac_cv_prog_cc_g=yes
4503fi
4504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4505fi
4506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4509 ac_c_werror_flag=$ac_save_c_werror_flag
4510fi
4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4512printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4513if test $ac_test_CFLAGS; then
4514 CFLAGS=$ac_save_CFLAGS
4515elif test $ac_cv_prog_cc_g = yes; then
4516 if test "$GCC" = yes; then
4517 CFLAGS="-g -O2"
4518 else
4519 CFLAGS="-g"
4520 fi
4521else
4522 if test "$GCC" = yes; then
4523 CFLAGS="-O2"
4524 else
4525 CFLAGS=
4526 fi
4527fi
4528ac_prog_cc_stdc=no
4529if test x$ac_prog_cc_stdc = xno
4530then :
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4532printf %s "checking for $CC option to enable C11 features... " >&6; }
4533if test ${ac_cv_prog_cc_c11+y}
4534then :
4535 printf %s "(cached) " >&6
4536else $as_nop
4537 ac_cv_prog_cc_c11=no
4538ac_save_CC=$CC
4539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h. */
4541$ac_c_conftest_c11_program
4542_ACEOF
4543for ac_arg in '' -std=gnu11
4544do
4545 CC="$ac_save_CC $ac_arg"
4546 if ac_fn_c_try_compile "$LINENO"
4547then :
4548 ac_cv_prog_cc_c11=$ac_arg
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.beam
4551 test "x$ac_cv_prog_cc_c11" != "xno" && break
4552done
4553rm -f conftest.$ac_ext
4554CC=$ac_save_CC
4555fi
4556
4557if test "x$ac_cv_prog_cc_c11" = xno
4558then :
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4560printf "%s\n" "unsupported" >&6; }
4561else $as_nop
4562 if test "x$ac_cv_prog_cc_c11" = x
4563then :
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4565printf "%s\n" "none needed" >&6; }
4566else $as_nop
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4568printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4569 CC="$CC $ac_cv_prog_cc_c11"
4570fi
4571 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4572 ac_prog_cc_stdc=c11
4573fi
4574fi
4575if test x$ac_prog_cc_stdc = xno
4576then :
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4578printf %s "checking for $CC option to enable C99 features... " >&6; }
4579if test ${ac_cv_prog_cc_c99+y}
4580then :
4581 printf %s "(cached) " >&6
4582else $as_nop
4583 ac_cv_prog_cc_c99=no
4584ac_save_CC=$CC
4585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587$ac_c_conftest_c99_program
4588_ACEOF
4589for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4590do
4591 CC="$ac_save_CC $ac_arg"
4592 if ac_fn_c_try_compile "$LINENO"
4593then :
4594 ac_cv_prog_cc_c99=$ac_arg
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.beam
4597 test "x$ac_cv_prog_cc_c99" != "xno" && break
4598done
4599rm -f conftest.$ac_ext
4600CC=$ac_save_CC
4601fi
4602
4603if test "x$ac_cv_prog_cc_c99" = xno
4604then :
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4606printf "%s\n" "unsupported" >&6; }
4607else $as_nop
4608 if test "x$ac_cv_prog_cc_c99" = x
4609then :
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4611printf "%s\n" "none needed" >&6; }
4612else $as_nop
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4614printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4615 CC="$CC $ac_cv_prog_cc_c99"
4616fi
4617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4618 ac_prog_cc_stdc=c99
4619fi
4620fi
4621if test x$ac_prog_cc_stdc = xno
4622then :
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4624printf %s "checking for $CC option to enable C89 features... " >&6; }
4625if test ${ac_cv_prog_cc_c89+y}
4626then :
4627 printf %s "(cached) " >&6
4628else $as_nop
4629 ac_cv_prog_cc_c89=no
4630ac_save_CC=$CC
4631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633$ac_c_conftest_c89_program
4634_ACEOF
4635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4636do
4637 CC="$ac_save_CC $ac_arg"
4638 if ac_fn_c_try_compile "$LINENO"
4639then :
4640 ac_cv_prog_cc_c89=$ac_arg
4641fi
4642rm -f core conftest.err conftest.$ac_objext conftest.beam
4643 test "x$ac_cv_prog_cc_c89" != "xno" && break
4644done
4645rm -f conftest.$ac_ext
4646CC=$ac_save_CC
4647fi
4648
4649if test "x$ac_cv_prog_cc_c89" = xno
4650then :
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4652printf "%s\n" "unsupported" >&6; }
4653else $as_nop
4654 if test "x$ac_cv_prog_cc_c89" = x
4655then :
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4657printf "%s\n" "none needed" >&6; }
4658else $as_nop
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4660printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4661 CC="$CC $ac_cv_prog_cc_c89"
4662fi
4663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4664 ac_prog_cc_stdc=c89
4665fi
4666fi
4667
4668ac_ext=c
4669ac_cpp='$CPP $CPPFLAGS'
4670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674
4675 ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4681printf %s "checking whether $CC understands -c and -o together... " >&6; }
4682if test ${am_cv_prog_cc_c_o+y}
4683then :
4684 printf %s "(cached) " >&6
4685else $as_nop
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h. */
4688
4689int
4690main (void)
4691{
4692
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697 # Make sure it works both with $CC and with simple cc.
4698 # Following AC_PROG_CC_C_O, we do the test twice because some
4699 # compilers refuse to overwrite an existing .o file with -o,
4700 # though they will create one.
4701 am_cv_prog_cc_c_o=yes
4702 for am_i in 1 2; do
4703 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4704 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } \
4708 && test -f conftest2.$ac_objext; then
4709 : OK
4710 else
4711 am_cv_prog_cc_c_o=no
4712 break
4713 fi
4714 done
4715 rm -f core conftest*
4716 unset am_i
4717fi
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4719printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4720if test "$am_cv_prog_cc_c_o" != yes; then
4721 # Losing compiler, so override with the script.
4722 # FIXME: It is wrong to rewrite CC.
4723 # But if we don't then we get into trouble of one sort or another.
4724 # A longer-term fix would be to have automake use am__CC in this case,
4725 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4726 CC="$am_aux_dir/compile $CC"
4727fi
4728ac_ext=c
4729ac_cpp='$CPP $CPPFLAGS'
4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733
4734DEPDIR="${am__leading_dot}deps"
4735
4736ac_config_commands="$ac_config_commands depfiles"
4737
4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4739printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4740cat > confinc.mk << 'END'
4741am__doit:
4742 @echo this is the am__doit target >confinc.out
4743.PHONY: am__doit
4744END
4745am__include="#"
4746am__quote=
4747# BSD make does it like this.
4748echo '.include "confinc.mk" # ignored' > confmf.BSD
4749# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4750echo 'include confinc.mk # ignored' > confmf.GNU
4751_am_result=no
4752for s in GNU BSD; do
4753 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4754 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }
4758 case $?:`cat confinc.out 2>/dev/null` in #(
4759 '0:this is the am__doit target') :
4760 case $s in #(
4761 BSD) :
4762 am__include='.include' am__quote='"' ;; #(
4763 *) :
4764 am__include='include' am__quote='' ;;
4765esac ;; #(
4766 *) :
4767 ;;
4768esac
4769 if test "$am__include" != "#"; then
4770 _am_result="yes ($s style)"
4771 break
4772 fi
4773done
4774rm -f confinc.* confmf.*
4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4776printf "%s\n" "${_am_result}" >&6; }
4777
4778# Check whether --enable-dependency-tracking was given.
4779if test ${enable_dependency_tracking+y}
4780then :
4781 enableval=$enable_dependency_tracking;
4782fi
4783
4784if test "x$enable_dependency_tracking" != xno; then
4785 am_depcomp="$ac_aux_dir/depcomp"
4786 AMDEPBACKSLASH='\'
4787 am__nodep='_no'
4788fi
4789 if test "x$enable_dependency_tracking" != xno; then
4790 AMDEP_TRUE=
4791 AMDEP_FALSE='#'
4792else
4793 AMDEP_TRUE='#'
4794 AMDEP_FALSE=
4795fi
4796
4797
4798
4799depcc="$CC" am_compiler_list=
4800
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4802printf %s "checking dependency style of $depcc... " >&6; }
4803if test ${am_cv_CC_dependencies_compiler_type+y}
4804then :
4805 printf %s "(cached) " >&6
4806else $as_nop
4807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4808 # We make a subdir and do the tests there. Otherwise we can end up
4809 # making bogus files that we don't know about and never remove. For
4810 # instance it was reported that on HP-UX the gcc test will end up
4811 # making a dummy file named 'D' -- because '-MD' means "put the output
4812 # in D".
4813 rm -rf conftest.dir
4814 mkdir conftest.dir
4815 # Copy depcomp to subdir because otherwise we won't find it if we're
4816 # using a relative directory.
4817 cp "$am_depcomp" conftest.dir
4818 cd conftest.dir
4819 # We will build objects and dependencies in a subdirectory because
4820 # it helps to detect inapplicable dependency modes. For instance
4821 # both Tru64's cc and ICC support -MD to output dependencies as a
4822 # side effect of compilation, but ICC will put the dependencies in
4823 # the current directory while Tru64 will put them in the object
4824 # directory.
4825 mkdir sub
4826
4827 am_cv_CC_dependencies_compiler_type=none
4828 if test "$am_compiler_list" = ""; then
4829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4830 fi
4831 am__universal=false
4832 case " $depcc " in #(
4833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4834 esac
4835
4836 for depmode in $am_compiler_list; do
4837 # Setup a source with many dependencies, because some compilers
4838 # like to wrap large dependency lists on column 80 (with \), and
4839 # we should not choose a depcomp mode which is confused by this.
4840 #
4841 # We need to recreate these files for each test, as the compiler may
4842 # overwrite some of them when testing with obscure command lines.
4843 # This happens at least with the AIX C compiler.
4844 : > sub/conftest.c
4845 for i in 1 2 3 4 5 6; do
4846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4848 # Solaris 10 /bin/sh.
4849 echo '/* dummy */' > sub/conftst$i.h
4850 done
4851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4852
4853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4854 # mode. It turns out that the SunPro C++ compiler does not properly
4855 # handle '-M -o', and we need to detect this. Also, some Intel
4856 # versions had trouble with output in subdirs.
4857 am__obj=sub/conftest.${OBJEXT-o}
4858 am__minus_obj="-o $am__obj"
4859 case $depmode in
4860 gcc)
4861 # This depmode causes a compiler race in universal mode.
4862 test "$am__universal" = false || continue
4863 ;;
4864 nosideeffect)
4865 # After this tag, mechanisms are not by side-effect, so they'll
4866 # only be used when explicitly requested.
4867 if test "x$enable_dependency_tracking" = xyes; then
4868 continue
4869 else
4870 break
4871 fi
4872 ;;
4873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4874 # This compiler won't grok '-c -o', but also, the minuso test has
4875 # not run yet. These depmodes are late enough in the game, and
4876 # so weak that their functioning should not be impacted.
4877 am__obj=conftest.${OBJEXT-o}
4878 am__minus_obj=
4879 ;;
4880 none) break ;;
4881 esac
4882 if depmode=$depmode \
4883 source=sub/conftest.c object=$am__obj \
4884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4886 >/dev/null 2>conftest.err &&
4887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900 am_cv_CC_dependencies_compiler_type=$depmode
4901 break
4902 fi
4903 fi
4904 done
4905
4906 cd ..
4907 rm -rf conftest.dir
4908else
4909 am_cv_CC_dependencies_compiler_type=none
4910fi
4911
4912fi
4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4914printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4916
4917 if
4918 test "x$enable_dependency_tracking" != xno \
4919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4920 am__fastdepCC_TRUE=
4921 am__fastdepCC_FALSE='#'
4922else
4923 am__fastdepCC_TRUE='#'
4924 am__fastdepCC_FALSE=
4925fi
4926
4927
4928
4929
4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4931printf %s "checking whether ln -s works... " >&6; }
4932LN_S=$as_ln_s
4933if test "$LN_S" = "ln -s"; then
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935printf "%s\n" "yes" >&6; }
4936else
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4938printf "%s\n" "no, using $LN_S" >&6; }
4939fi
4940
4941case `pwd` in
4942 *\ * | *\ *)
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4944printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4945esac
4946
4947
4948
4949macro_version='2.4.7'
4950macro_revision='2.4.7'
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965ltmain=$ac_aux_dir/ltmain.sh
4966
4967
4968
4969 # Make sure we can run config.sub.
4970$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4971 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4972
4973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4974printf %s "checking build system type... " >&6; }
4975if test ${ac_cv_build+y}
4976then :
4977 printf %s "(cached) " >&6
4978else $as_nop
4979 ac_build_alias=$build_alias
4980test "x$ac_build_alias" = x &&
4981 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4982test "x$ac_build_alias" = x &&
4983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4984ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4985 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4986
4987fi
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4989printf "%s\n" "$ac_cv_build" >&6; }
4990case $ac_cv_build in
4991*-*-*) ;;
4992*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4993esac
4994build=$ac_cv_build
4995ac_save_IFS=$IFS; IFS='-'
4996set x $ac_cv_build
4997shift
4998build_cpu=$1
4999build_vendor=$2
5000shift; shift
5001# Remember, the first character of IFS is used to create $*,
5002# except with old shells:
5003build_os=$*
5004IFS=$ac_save_IFS
5005case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5006
5007
5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5009printf %s "checking host system type... " >&6; }
5010if test ${ac_cv_host+y}
5011then :
5012 printf %s "(cached) " >&6
5013else $as_nop
5014 if test "x$host_alias" = x; then
5015 ac_cv_host=$ac_cv_build
5016else
5017 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5018 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5019fi
5020
5021fi
5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5023printf "%s\n" "$ac_cv_host" >&6; }
5024case $ac_cv_host in
5025*-*-*) ;;
5026*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5027esac
5028host=$ac_cv_host
5029ac_save_IFS=$IFS; IFS='-'
5030set x $ac_cv_host
5031shift
5032host_cpu=$1
5033host_vendor=$2
5034shift; shift
5035# Remember, the first character of IFS is used to create $*,
5036# except with old shells:
5037host_os=$*
5038IFS=$ac_save_IFS
5039case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5040
5041
5042# Backslashify metacharacters that are still active within
5043# double-quoted strings.
5044sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5045
5046# Same as above, but do not quote variable references.
5047double_quote_subst='s/\(["`\\]\)/\\\1/g'
5048
5049# Sed substitution to delay expansion of an escaped shell variable in a
5050# double_quote_subst'ed string.
5051delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5052
5053# Sed substitution to delay expansion of an escaped single quote.
5054delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5055
5056# Sed substitution to avoid accidental globbing in evaled expressions
5057no_glob_subst='s/\*/\\\*/g'
5058
5059ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5060ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5061ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5062
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5064printf %s "checking how to print strings... " >&6; }
5065# Test print first, because it will be a builtin if present.
5066if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5067 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5068 ECHO='print -r --'
5069elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5070 ECHO='printf %s\n'
5071else
5072 # Use this function as a fallback that always works.
5073 func_fallback_echo ()
5074 {
5075 eval 'cat <<_LTECHO_EOF
5076$1
5077_LTECHO_EOF'
5078 }
5079 ECHO='func_fallback_echo'
5080fi
5081
5082# func_echo_all arg...
5083# Invoke $ECHO with all args, space-separated.
5084func_echo_all ()
5085{
5086 $ECHO ""
5087}
5088
5089case $ECHO in
5090 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5091printf "%s\n" "printf" >&6; } ;;
5092 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5093printf "%s\n" "print -r" >&6; } ;;
5094 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5095printf "%s\n" "cat" >&6; } ;;
5096esac
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5112printf %s "checking for a sed that does not truncate output... " >&6; }
5113if test ${ac_cv_path_SED+y}
5114then :
5115 printf %s "(cached) " >&6
5116else $as_nop
5117 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5118 for ac_i in 1 2 3 4 5 6 7; do
5119 ac_script="$ac_script$as_nl$ac_script"
5120 done
5121 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5122 { ac_script=; unset ac_script;}
5123 if test -z "$SED"; then
5124 ac_path_SED_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 case $as_dir in #(((
5131 '') as_dir=./ ;;
5132 */) ;;
5133 *) as_dir=$as_dir/ ;;
5134 esac
5135 for ac_prog in sed gsed
5136 do
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5139 as_fn_executable_p "$ac_path_SED" || continue
5140# Check for GNU ac_path_SED and select it if it is found.
5141 # Check for GNU $ac_path_SED
5142case `"$ac_path_SED" --version 2>&1` in
5143*GNU*)
5144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5145*)
5146 ac_count=0
5147 printf %s 0123456789 >"conftest.in"
5148 while :
5149 do
5150 cat "conftest.in" "conftest.in" >"conftest.tmp"
5151 mv "conftest.tmp" "conftest.in"
5152 cp "conftest.in" "conftest.nl"
5153 printf "%s\n" '' >> "conftest.nl"
5154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156 as_fn_arith $ac_count + 1 && ac_count=$as_val
5157 if test $ac_count -gt ${ac_path_SED_max-0}; then
5158 # Best one so far, save it but keep looking for a better one
5159 ac_cv_path_SED="$ac_path_SED"
5160 ac_path_SED_max=$ac_count
5161 fi
5162 # 10*(2^10) chars as input seems more than enough
5163 test $ac_count -gt 10 && break
5164 done
5165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166esac
5167
5168 $ac_path_SED_found && break 3
5169 done
5170 done
5171 done
5172IFS=$as_save_IFS
5173 if test -z "$ac_cv_path_SED"; then
5174 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5175 fi
5176else
5177 ac_cv_path_SED=$SED
5178fi
5179
5180fi
5181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5182printf "%s\n" "$ac_cv_path_SED" >&6; }
5183 SED="$ac_cv_path_SED"
5184 rm -f conftest.sed
5185
5186test -z "$SED" && SED=sed
5187Xsed="$SED -e 1s/^X//"
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5200printf %s "checking for grep that handles long lines and -e... " >&6; }
5201if test ${ac_cv_path_GREP+y}
5202then :
5203 printf %s "(cached) " >&6
5204else $as_nop
5205 if test -z "$GREP"; then
5206 ac_path_GREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210do
5211 IFS=$as_save_IFS
5212 case $as_dir in #(((
5213 '') as_dir=./ ;;
5214 */) ;;
5215 *) as_dir=$as_dir/ ;;
5216 esac
5217 for ac_prog in grep ggrep
5218 do
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5221 as_fn_executable_p "$ac_path_GREP" || continue
5222# Check for GNU ac_path_GREP and select it if it is found.
5223 # Check for GNU $ac_path_GREP
5224case `"$ac_path_GREP" --version 2>&1` in
5225*GNU*)
5226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227*)
5228 ac_count=0
5229 printf %s 0123456789 >"conftest.in"
5230 while :
5231 do
5232 cat "conftest.in" "conftest.in" >"conftest.tmp"
5233 mv "conftest.tmp" "conftest.in"
5234 cp "conftest.in" "conftest.nl"
5235 printf "%s\n" 'GREP' >> "conftest.nl"
5236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5238 as_fn_arith $ac_count + 1 && ac_count=$as_val
5239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5240 # Best one so far, save it but keep looking for a better one
5241 ac_cv_path_GREP="$ac_path_GREP"
5242 ac_path_GREP_max=$ac_count
5243 fi
5244 # 10*(2^10) chars as input seems more than enough
5245 test $ac_count -gt 10 && break
5246 done
5247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248esac
5249
5250 $ac_path_GREP_found && break 3
5251 done
5252 done
5253 done
5254IFS=$as_save_IFS
5255 if test -z "$ac_cv_path_GREP"; then
5256 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 fi
5258else
5259 ac_cv_path_GREP=$GREP
5260fi
5261
5262fi
5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5264printf "%s\n" "$ac_cv_path_GREP" >&6; }
5265 GREP="$ac_cv_path_GREP"
5266
5267
5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5269printf %s "checking for egrep... " >&6; }
5270if test ${ac_cv_path_EGREP+y}
5271then :
5272 printf %s "(cached) " >&6
5273else $as_nop
5274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5275 then ac_cv_path_EGREP="$GREP -E"
5276 else
5277 if test -z "$EGREP"; then
5278 ac_path_EGREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282do
5283 IFS=$as_save_IFS
5284 case $as_dir in #(((
5285 '') as_dir=./ ;;
5286 */) ;;
5287 *) as_dir=$as_dir/ ;;
5288 esac
5289 for ac_prog in egrep
5290 do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5293 as_fn_executable_p "$ac_path_EGREP" || continue
5294# Check for GNU ac_path_EGREP and select it if it is found.
5295 # Check for GNU $ac_path_EGREP
5296case `"$ac_path_EGREP" --version 2>&1` in
5297*GNU*)
5298 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5299*)
5300 ac_count=0
5301 printf %s 0123456789 >"conftest.in"
5302 while :
5303 do
5304 cat "conftest.in" "conftest.in" >"conftest.tmp"
5305 mv "conftest.tmp" "conftest.in"
5306 cp "conftest.in" "conftest.nl"
5307 printf "%s\n" 'EGREP' >> "conftest.nl"
5308 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310 as_fn_arith $ac_count + 1 && ac_count=$as_val
5311 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5312 # Best one so far, save it but keep looking for a better one
5313 ac_cv_path_EGREP="$ac_path_EGREP"
5314 ac_path_EGREP_max=$ac_count
5315 fi
5316 # 10*(2^10) chars as input seems more than enough
5317 test $ac_count -gt 10 && break
5318 done
5319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320esac
5321
5322 $ac_path_EGREP_found && break 3
5323 done
5324 done
5325 done
5326IFS=$as_save_IFS
5327 if test -z "$ac_cv_path_EGREP"; then
5328 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 fi
5330else
5331 ac_cv_path_EGREP=$EGREP
5332fi
5333
5334 fi
5335fi
5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5337printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5338 EGREP="$ac_cv_path_EGREP"
5339
5340
5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5342printf %s "checking for fgrep... " >&6; }
5343if test ${ac_cv_path_FGREP+y}
5344then :
5345 printf %s "(cached) " >&6
5346else $as_nop
5347 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5348 then ac_cv_path_FGREP="$GREP -F"
5349 else
5350 if test -z "$FGREP"; then
5351 ac_path_FGREP_found=false
5352 # Loop through the user's path and test for each of PROGNAME-LIST
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355do
5356 IFS=$as_save_IFS
5357 case $as_dir in #(((
5358 '') as_dir=./ ;;
5359 */) ;;
5360 *) as_dir=$as_dir/ ;;
5361 esac
5362 for ac_prog in fgrep
5363 do
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5366 as_fn_executable_p "$ac_path_FGREP" || continue
5367# Check for GNU ac_path_FGREP and select it if it is found.
5368 # Check for GNU $ac_path_FGREP
5369case `"$ac_path_FGREP" --version 2>&1` in
5370*GNU*)
5371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5372*)
5373 ac_count=0
5374 printf %s 0123456789 >"conftest.in"
5375 while :
5376 do
5377 cat "conftest.in" "conftest.in" >"conftest.tmp"
5378 mv "conftest.tmp" "conftest.in"
5379 cp "conftest.in" "conftest.nl"
5380 printf "%s\n" 'FGREP' >> "conftest.nl"
5381 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5383 as_fn_arith $ac_count + 1 && ac_count=$as_val
5384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5385 # Best one so far, save it but keep looking for a better one
5386 ac_cv_path_FGREP="$ac_path_FGREP"
5387 ac_path_FGREP_max=$ac_count
5388 fi
5389 # 10*(2^10) chars as input seems more than enough
5390 test $ac_count -gt 10 && break
5391 done
5392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5393esac
5394
5395 $ac_path_FGREP_found && break 3
5396 done
5397 done
5398 done
5399IFS=$as_save_IFS
5400 if test -z "$ac_cv_path_FGREP"; then
5401 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5402 fi
5403else
5404 ac_cv_path_FGREP=$FGREP
5405fi
5406
5407 fi
5408fi
5409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5410printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5411 FGREP="$ac_cv_path_FGREP"
5412
5413
5414test -z "$GREP" && GREP=grep
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434# Check whether --with-gnu-ld was given.
5435if test ${with_gnu_ld+y}
5436then :
5437 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5438else $as_nop
5439 with_gnu_ld=no
5440fi
5441
5442ac_prog=ld
5443if test yes = "$GCC"; then
5444 # Check if gcc -print-prog-name=ld gives a path.
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5446printf %s "checking for ld used by $CC... " >&6; }
5447 case $host in
5448 *-*-mingw*)
5449 # gcc leaves a trailing carriage return, which upsets mingw
5450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5451 *)
5452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5453 esac
5454 case $ac_prog in
5455 # Accept absolute paths.
5456 [\\/]* | ?:[\\/]*)
5457 re_direlt='/[^/][^/]*/\.\./'
5458 # Canonicalize the pathname of ld
5459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5462 done
5463 test -z "$LD" && LD=$ac_prog
5464 ;;
5465 "")
5466 # If it fails, then pretend we aren't using GCC.
5467 ac_prog=ld
5468 ;;
5469 *)
5470 # If it is relative, then search for the first ld in PATH.
5471 with_gnu_ld=unknown
5472 ;;
5473 esac
5474elif test yes = "$with_gnu_ld"; then
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5476printf %s "checking for GNU ld... " >&6; }
5477else
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5479printf %s "checking for non-GNU ld... " >&6; }
5480fi
5481if test ${lt_cv_path_LD+y}
5482then :
5483 printf %s "(cached) " >&6
5484else $as_nop
5485 if test -z "$LD"; then
5486 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5487 for ac_dir in $PATH; do
5488 IFS=$lt_save_ifs
5489 test -z "$ac_dir" && ac_dir=.
5490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5491 lt_cv_path_LD=$ac_dir/$ac_prog
5492 # Check to see if the program is GNU ld. I'd rather use --version,
5493 # but apparently some variants of GNU ld only accept -v.
5494 # Break only if it was the GNU/non-GNU ld that we prefer.
5495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5496 *GNU* | *'with BFD'*)
5497 test no != "$with_gnu_ld" && break
5498 ;;
5499 *)
5500 test yes != "$with_gnu_ld" && break
5501 ;;
5502 esac
5503 fi
5504 done
5505 IFS=$lt_save_ifs
5506else
5507 lt_cv_path_LD=$LD # Let the user override the test with a path.
5508fi
5509fi
5510
5511LD=$lt_cv_path_LD
5512if test -n "$LD"; then
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5514printf "%s\n" "$LD" >&6; }
5515else
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517printf "%s\n" "no" >&6; }
5518fi
5519test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5521printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5522if test ${lt_cv_prog_gnu_ld+y}
5523then :
5524 printf %s "(cached) " >&6
5525else $as_nop
5526 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5527case `$LD -v 2>&1 </dev/null` in
5528*GNU* | *'with BFD'*)
5529 lt_cv_prog_gnu_ld=yes
5530 ;;
5531*)
5532 lt_cv_prog_gnu_ld=no
5533 ;;
5534esac
5535fi
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5537printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5538with_gnu_ld=$lt_cv_prog_gnu_ld
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5549printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5550if test ${lt_cv_path_NM+y}
5551then :
5552 printf %s "(cached) " >&6
5553else $as_nop
5554 if test -n "$NM"; then
5555 # Let the user override the test.
5556 lt_cv_path_NM=$NM
5557else
5558 lt_nm_to_check=${ac_tool_prefix}nm
5559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5560 lt_nm_to_check="$lt_nm_to_check nm"
5561 fi
5562 for lt_tmp_nm in $lt_nm_to_check; do
5563 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5565 IFS=$lt_save_ifs
5566 test -z "$ac_dir" && ac_dir=.
5567 tmp_nm=$ac_dir/$lt_tmp_nm
5568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5569 # Check to see if the nm accepts a BSD-compat flag.
5570 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5571 # nm: unknown option "B" ignored
5572 # Tru64's nm complains that /dev/null is an invalid object file
5573 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5574 case $build_os in
5575 mingw*) lt_bad_file=conftest.nm/nofile ;;
5576 *) lt_bad_file=/dev/null ;;
5577 esac
5578 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5579 *$lt_bad_file* | *'Invalid file or object type'*)
5580 lt_cv_path_NM="$tmp_nm -B"
5581 break 2
5582 ;;
5583 *)
5584 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5585 */dev/null*)
5586 lt_cv_path_NM="$tmp_nm -p"
5587 break 2
5588 ;;
5589 *)
5590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5591 continue # so that we can try to find one that supports BSD flags
5592 ;;
5593 esac
5594 ;;
5595 esac
5596 fi
5597 done
5598 IFS=$lt_save_ifs
5599 done
5600 : ${lt_cv_path_NM=no}
5601fi
5602fi
5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5604printf "%s\n" "$lt_cv_path_NM" >&6; }
5605if test no != "$lt_cv_path_NM"; then
5606 NM=$lt_cv_path_NM
5607else
5608 # Didn't find any BSD compatible name lister, look for dumpbin.
5609 if test -n "$DUMPBIN"; then :
5610 # Let the user override the test.
5611 else
5612 if test -n "$ac_tool_prefix"; then
5613 for ac_prog in dumpbin "link -dump"
5614 do
5615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618printf %s "checking for $ac_word... " >&6; }
5619if test ${ac_cv_prog_DUMPBIN+y}
5620then :
5621 printf %s "(cached) " >&6
5622else $as_nop
5623 if test -n "$DUMPBIN"; then
5624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 case $as_dir in #(((
5631 '') as_dir=./ ;;
5632 */) ;;
5633 *) as_dir=$as_dir/ ;;
5634 esac
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647DUMPBIN=$ac_cv_prog_DUMPBIN
5648if test -n "$DUMPBIN"; then
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5650printf "%s\n" "$DUMPBIN" >&6; }
5651else
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653printf "%s\n" "no" >&6; }
5654fi
5655
5656
5657 test -n "$DUMPBIN" && break
5658 done
5659fi
5660if test -z "$DUMPBIN"; then
5661 ac_ct_DUMPBIN=$DUMPBIN
5662 for ac_prog in dumpbin "link -dump"
5663do
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665set dummy $ac_prog; ac_word=$2
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667printf %s "checking for $ac_word... " >&6; }
5668if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5669then :
5670 printf %s "(cached) " >&6
5671else $as_nop
5672 if test -n "$ac_ct_DUMPBIN"; then
5673 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 case $as_dir in #(((
5680 '') as_dir=./ ;;
5681 */) ;;
5682 *) as_dir=$as_dir/ ;;
5683 esac
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5697if test -n "$ac_ct_DUMPBIN"; then
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5699printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5700else
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702printf "%s\n" "no" >&6; }
5703fi
5704
5705
5706 test -n "$ac_ct_DUMPBIN" && break
5707done
5708
5709 if test "x$ac_ct_DUMPBIN" = x; then
5710 DUMPBIN=":"
5711 else
5712 case $cross_compiling:$ac_tool_warned in
5713yes:)
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718 DUMPBIN=$ac_ct_DUMPBIN
5719 fi
5720fi
5721
5722 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5723 *COFF*)
5724 DUMPBIN="$DUMPBIN -symbols -headers"
5725 ;;
5726 *)
5727 DUMPBIN=:
5728 ;;
5729 esac
5730 fi
5731
5732 if test : != "$DUMPBIN"; then
5733 NM=$DUMPBIN
5734 fi
5735fi
5736test -z "$NM" && NM=nm
5737
5738
5739
5740
5741
5742
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5744printf %s "checking the name lister ($NM) interface... " >&6; }
5745if test ${lt_cv_nm_interface+y}
5746then :
5747 printf %s "(cached) " >&6
5748else $as_nop
5749 lt_cv_nm_interface="BSD nm"
5750 echo "int some_variable = 0;" > conftest.$ac_ext
5751 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5752 (eval "$ac_compile" 2>conftest.err)
5753 cat conftest.err >&5
5754 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5755 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5756 cat conftest.err >&5
5757 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5758 cat conftest.out >&5
5759 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5760 lt_cv_nm_interface="MS dumpbin"
5761 fi
5762 rm -f conftest*
5763fi
5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5765printf "%s\n" "$lt_cv_nm_interface" >&6; }
5766
5767# find the maximum length of command line arguments
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5769printf %s "checking the maximum length of command line arguments... " >&6; }
5770if test ${lt_cv_sys_max_cmd_len+y}
5771then :
5772 printf %s "(cached) " >&6
5773else $as_nop
5774 i=0
5775 teststring=ABCD
5776
5777 case $build_os in
5778 msdosdjgpp*)
5779 # On DJGPP, this test can blow up pretty badly due to problems in libc
5780 # (any single argument exceeding 2000 bytes causes a buffer overrun
5781 # during glob expansion). Even if it were fixed, the result of this
5782 # check would be larger than it should be.
5783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5784 ;;
5785
5786 gnu*)
5787 # Under GNU Hurd, this test is not required because there is
5788 # no limit to the length of command line arguments.
5789 # Libtool will interpret -1 as no limit whatsoever
5790 lt_cv_sys_max_cmd_len=-1;
5791 ;;
5792
5793 cygwin* | mingw* | cegcc*)
5794 # On Win9x/ME, this test blows up -- it succeeds, but takes
5795 # about 5 minutes as the teststring grows exponentially.
5796 # Worse, since 9x/ME are not pre-emptively multitasking,
5797 # you end up with a "frozen" computer, even though with patience
5798 # the test eventually succeeds (with a max line length of 256k).
5799 # Instead, let's just punt: use the minimum linelength reported by
5800 # all of the supported platforms: 8192 (on NT/2K/XP).
5801 lt_cv_sys_max_cmd_len=8192;
5802 ;;
5803
5804 mint*)
5805 # On MiNT this can take a long time and run out of memory.
5806 lt_cv_sys_max_cmd_len=8192;
5807 ;;
5808
5809 amigaos*)
5810 # On AmigaOS with pdksh, this test takes hours, literally.
5811 # So we just punt and use a minimum line length of 8192.
5812 lt_cv_sys_max_cmd_len=8192;
5813 ;;
5814
5815 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5816 # This has been around since 386BSD, at least. Likely further.
5817 if test -x /sbin/sysctl; then
5818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5819 elif test -x /usr/sbin/sysctl; then
5820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5821 else
5822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5823 fi
5824 # And add a safety zone
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5827 ;;
5828
5829 interix*)
5830 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5831 lt_cv_sys_max_cmd_len=196608
5832 ;;
5833
5834 os2*)
5835 # The test takes a long time on OS/2.
5836 lt_cv_sys_max_cmd_len=8192
5837 ;;
5838
5839 osf*)
5840 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5841 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5842 # nice to cause kernel panics so lets avoid the loop below.
5843 # First set a reasonable default.
5844 lt_cv_sys_max_cmd_len=16384
5845 #
5846 if test -x /sbin/sysconfig; then
5847 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5848 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5849 esac
5850 fi
5851 ;;
5852 sco3.2v5*)
5853 lt_cv_sys_max_cmd_len=102400
5854 ;;
5855 sysv5* | sco5v6* | sysv4.2uw2*)
5856 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5857 if test -n "$kargmax"; then
5858 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5859 else
5860 lt_cv_sys_max_cmd_len=32768
5861 fi
5862 ;;
5863 *)
5864 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5865 if test -n "$lt_cv_sys_max_cmd_len" && \
5866 test undefined != "$lt_cv_sys_max_cmd_len"; then
5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869 else
5870 # Make teststring a little bigger before we do anything with it.
5871 # a 1K string should be a reasonable start.
5872 for i in 1 2 3 4 5 6 7 8; do
5873 teststring=$teststring$teststring
5874 done
5875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5876 # If test is not a shell built-in, we'll probably end up computing a
5877 # maximum length that is only half of the actual maximum length, but
5878 # we can't tell.
5879 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5880 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5881 test 17 != "$i" # 1/2 MB should be enough
5882 do
5883 i=`expr $i + 1`
5884 teststring=$teststring$teststring
5885 done
5886 # Only check the string length outside the loop.
5887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5888 teststring=
5889 # Add a significant safety factor because C++ compilers can tack on
5890 # massive amounts of additional arguments before passing them to the
5891 # linker. It appears as though 1/2 is a usable value.
5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5893 fi
5894 ;;
5895 esac
5896
5897fi
5898
5899if test -n "$lt_cv_sys_max_cmd_len"; then
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5901printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5902else
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5904printf "%s\n" "none" >&6; }
5905fi
5906max_cmd_len=$lt_cv_sys_max_cmd_len
5907
5908
5909
5910
5911
5912
5913: ${CP="cp -f"}
5914: ${MV="mv -f"}
5915: ${RM="rm -f"}
5916
5917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5918 lt_unset=unset
5919else
5920 lt_unset=false
5921fi
5922
5923
5924
5925
5926
5927# test EBCDIC or ASCII
5928case `echo X|tr X '\101'` in
5929 A) # ASCII based system
5930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5931 lt_SP2NL='tr \040 \012'
5932 lt_NL2SP='tr \015\012 \040\040'
5933 ;;
5934 *) # EBCDIC based system
5935 lt_SP2NL='tr \100 \n'
5936 lt_NL2SP='tr \r\n \100\100'
5937 ;;
5938esac
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5949printf %s "checking how to convert $build file names to $host format... " >&6; }
5950if test ${lt_cv_to_host_file_cmd+y}
5951then :
5952 printf %s "(cached) " >&6
5953else $as_nop
5954 case $host in
5955 *-*-mingw* )
5956 case $build in
5957 *-*-mingw* ) # actually msys
5958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5959 ;;
5960 *-*-cygwin* )
5961 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5962 ;;
5963 * ) # otherwise, assume *nix
5964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5965 ;;
5966 esac
5967 ;;
5968 *-*-cygwin* )
5969 case $build in
5970 *-*-mingw* ) # actually msys
5971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5972 ;;
5973 *-*-cygwin* )
5974 lt_cv_to_host_file_cmd=func_convert_file_noop
5975 ;;
5976 * ) # otherwise, assume *nix
5977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5978 ;;
5979 esac
5980 ;;
5981 * ) # unhandled hosts (and "normal" native builds)
5982 lt_cv_to_host_file_cmd=func_convert_file_noop
5983 ;;
5984esac
5985
5986fi
5987
5988to_host_file_cmd=$lt_cv_to_host_file_cmd
5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5990printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5991
5992
5993
5994
5995
5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5997printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5998if test ${lt_cv_to_tool_file_cmd+y}
5999then :
6000 printf %s "(cached) " >&6
6001else $as_nop
6002 #assume ordinary cross tools, or native build.
6003lt_cv_to_tool_file_cmd=func_convert_file_noop
6004case $host in
6005 *-*-mingw* )
6006 case $build in
6007 *-*-mingw* ) # actually msys
6008 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6009 ;;
6010 esac
6011 ;;
6012esac
6013
6014fi
6015
6016to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6018printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6019
6020
6021
6022
6023
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6025printf %s "checking for $LD option to reload object files... " >&6; }
6026if test ${lt_cv_ld_reload_flag+y}
6027then :
6028 printf %s "(cached) " >&6
6029else $as_nop
6030 lt_cv_ld_reload_flag='-r'
6031fi
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6033printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6034reload_flag=$lt_cv_ld_reload_flag
6035case $reload_flag in
6036"" | " "*) ;;
6037*) reload_flag=" $reload_flag" ;;
6038esac
6039reload_cmds='$LD$reload_flag -o $output$reload_objs'
6040case $host_os in
6041 cygwin* | mingw* | pw32* | cegcc*)
6042 if test yes != "$GCC"; then
6043 reload_cmds=false
6044 fi
6045 ;;
6046 darwin*)
6047 if test yes = "$GCC"; then
6048 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6049 else
6050 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6051 fi
6052 ;;
6053esac
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}file; ac_word=$2
6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067printf %s "checking for $ac_word... " >&6; }
6068if test ${ac_cv_prog_FILECMD+y}
6069then :
6070 printf %s "(cached) " >&6
6071else $as_nop
6072 if test -n "$FILECMD"; then
6073 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 case $as_dir in #(((
6080 '') as_dir=./ ;;
6081 */) ;;
6082 *) as_dir=$as_dir/ ;;
6083 esac
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090done
6091 done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096FILECMD=$ac_cv_prog_FILECMD
6097if test -n "$FILECMD"; then
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6099printf "%s\n" "$FILECMD" >&6; }
6100else
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102printf "%s\n" "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_FILECMD"; then
6108 ac_ct_FILECMD=$FILECMD
6109 # Extract the first word of "file", so it can be a program name with args.
6110set dummy file; ac_word=$2
6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112printf %s "checking for $ac_word... " >&6; }
6113if test ${ac_cv_prog_ac_ct_FILECMD+y}
6114then :
6115 printf %s "(cached) " >&6
6116else $as_nop
6117 if test -n "$ac_ct_FILECMD"; then
6118 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 case $as_dir in #(((
6125 '') as_dir=./ ;;
6126 */) ;;
6127 *) as_dir=$as_dir/ ;;
6128 esac
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_FILECMD="file"
6132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135done
6136 done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6142if test -n "$ac_ct_FILECMD"; then
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6144printf "%s\n" "$ac_ct_FILECMD" >&6; }
6145else
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147printf "%s\n" "no" >&6; }
6148fi
6149
6150 if test "x$ac_ct_FILECMD" = x; then
6151 FILECMD=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159 FILECMD=$ac_ct_FILECMD
6160 fi
6161else
6162 FILECMD="$ac_cv_prog_FILECMD"
6163fi
6164
6165
6166
6167
6168
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}objdump; ac_word=$2
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175printf %s "checking for $ac_word... " >&6; }
6176if test ${ac_cv_prog_OBJDUMP+y}
6177then :
6178 printf %s "(cached) " >&6
6179else $as_nop
6180 if test -n "$OBJDUMP"; then
6181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 case $as_dir in #(((
6188 '') as_dir=./ ;;
6189 */) ;;
6190 *) as_dir=$as_dir/ ;;
6191 esac
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199 done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204OBJDUMP=$ac_cv_prog_OBJDUMP
6205if test -n "$OBJDUMP"; then
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6207printf "%s\n" "$OBJDUMP" >&6; }
6208else
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210printf "%s\n" "no" >&6; }
6211fi
6212
6213
6214fi
6215if test -z "$ac_cv_prog_OBJDUMP"; then
6216 ac_ct_OBJDUMP=$OBJDUMP
6217 # Extract the first word of "objdump", so it can be a program name with args.
6218set dummy objdump; ac_word=$2
6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220printf %s "checking for $ac_word... " >&6; }
6221if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6222then :
6223 printf %s "(cached) " >&6
6224else $as_nop
6225 if test -n "$ac_ct_OBJDUMP"; then
6226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 case $as_dir in #(((
6233 '') as_dir=./ ;;
6234 */) ;;
6235 *) as_dir=$as_dir/ ;;
6236 esac
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244 done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6250if test -n "$ac_ct_OBJDUMP"; then
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6252printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6253else
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255printf "%s\n" "no" >&6; }
6256fi
6257
6258 if test "x$ac_ct_OBJDUMP" = x; then
6259 OBJDUMP="false"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267 OBJDUMP=$ac_ct_OBJDUMP
6268 fi
6269else
6270 OBJDUMP="$ac_cv_prog_OBJDUMP"
6271fi
6272
6273test -z "$OBJDUMP" && OBJDUMP=objdump
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6284printf %s "checking how to recognize dependent libraries... " >&6; }
6285if test ${lt_cv_deplibs_check_method+y}
6286then :
6287 printf %s "(cached) " >&6
6288else $as_nop
6289 lt_cv_file_magic_cmd='$MAGIC_CMD'
6290lt_cv_file_magic_test_file=
6291lt_cv_deplibs_check_method='unknown'
6292# Need to set the preceding variable on all platforms that support
6293# interlibrary dependencies.
6294# 'none' -- dependencies not supported.
6295# 'unknown' -- same as none, but documents that we really don't know.
6296# 'pass_all' -- all dependencies passed with no checks.
6297# 'test_compile' -- check by making test program.
6298# 'file_magic [[regex]]' -- check by looking for files in library path
6299# that responds to the $file_magic_cmd with a given extended regex.
6300# If you have 'file' or equivalent on your system and you're not sure
6301# whether 'pass_all' will *always* work, you probably want this one.
6302
6303case $host_os in
6304aix[4-9]*)
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
6307
6308beos*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312bsdi[45]*)
6313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314 lt_cv_file_magic_cmd='$FILECMD -L'
6315 lt_cv_file_magic_test_file=/shlib/libc.so
6316 ;;
6317
6318cygwin*)
6319 # func_win32_libid is a shell function defined in ltmain.sh
6320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321 lt_cv_file_magic_cmd='func_win32_libid'
6322 ;;
6323
6324mingw* | pw32*)
6325 # Base MSYS/MinGW do not provide the 'file' command needed by
6326 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327 # unless we find 'file', for example because we are cross-compiling.
6328 if ( file / ) >/dev/null 2>&1; then
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6331 else
6332 # Keep this pattern in sync with the one in func_win32_libid.
6333 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6334 lt_cv_file_magic_cmd='$OBJDUMP -f'
6335 fi
6336 ;;
6337
6338cegcc*)
6339 # use the weaker test based on 'objdump'. See mingw*.
6340 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6341 lt_cv_file_magic_cmd='$OBJDUMP -f'
6342 ;;
6343
6344darwin* | rhapsody*)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347
6348freebsd* | dragonfly* | midnightbsd*)
6349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350 case $host_cpu in
6351 i*86 )
6352 # Not sure whether the presence of OpenBSD here was a mistake.
6353 # Let's accept both of them until this is cleared up.
6354 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355 lt_cv_file_magic_cmd=$FILECMD
6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357 ;;
6358 esac
6359 else
6360 lt_cv_deplibs_check_method=pass_all
6361 fi
6362 ;;
6363
6364haiku*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=$FILECMD
6370 case $host_cpu in
6371 ia64*)
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374 ;;
6375 hppa*64*)
6376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378 ;;
6379 *)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382 ;;
6383 esac
6384 ;;
6385
6386interix[3-9]*)
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389 ;;
6390
6391irix5* | irix6* | nonstopux*)
6392 case $LD in
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6397 esac
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401# This must be glibc/ELF.
6402linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406netbsd*)
6407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 else
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411 fi
6412 ;;
6413
6414newos6*)
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=$FILECMD
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418 ;;
6419
6420*nto* | *qnx*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424openbsd* | bitrig*)
6425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 else
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429 fi
6430 ;;
6431
6432osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435
6436rdos*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440solaris*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448sysv4 | sysv4.3*)
6449 case $host_vendor in
6450 motorola)
6451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453 ;;
6454 ncr)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457 sequent)
6458 lt_cv_file_magic_cmd='/bin/file'
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460 ;;
6461 sni)
6462 lt_cv_file_magic_cmd='/bin/file'
6463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464 lt_cv_file_magic_test_file=/lib/libc.so
6465 ;;
6466 siemens)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469 pc)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472 esac
6473 ;;
6474
6475tpf*)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478os2*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481esac
6482
6483fi
6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6485printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6486
6487file_magic_glob=
6488want_nocaseglob=no
6489if test "$build" = "$host"; then
6490 case $host_os in
6491 mingw* | pw32*)
6492 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6493 want_nocaseglob=yes
6494 else
6495 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6496 fi
6497 ;;
6498 esac
6499fi
6500
6501file_magic_cmd=$lt_cv_file_magic_cmd
6502deplibs_check_method=$lt_cv_deplibs_check_method
6503test -z "$deplibs_check_method" && deplibs_check_method=unknown
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6528set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530printf %s "checking for $ac_word... " >&6; }
6531if test ${ac_cv_prog_DLLTOOL+y}
6532then :
6533 printf %s "(cached) " >&6
6534else $as_nop
6535 if test -n "$DLLTOOL"; then
6536 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559DLLTOOL=$ac_cv_prog_DLLTOOL
6560if test -n "$DLLTOOL"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6562printf "%s\n" "$DLLTOOL" >&6; }
6563else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565printf "%s\n" "no" >&6; }
6566fi
6567
6568
6569fi
6570if test -z "$ac_cv_prog_DLLTOOL"; then
6571 ac_ct_DLLTOOL=$DLLTOOL
6572 # Extract the first word of "dlltool", so it can be a program name with args.
6573set dummy dlltool; ac_word=$2
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575printf %s "checking for $ac_word... " >&6; }
6576if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6577then :
6578 printf %s "(cached) " >&6
6579else $as_nop
6580 if test -n "$ac_ct_DLLTOOL"; then
6581 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599 done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6605if test -n "$ac_ct_DLLTOOL"; then
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6607printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6608else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610printf "%s\n" "no" >&6; }
6611fi
6612
6613 if test "x$ac_ct_DLLTOOL" = x; then
6614 DLLTOOL="false"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617yes:)
6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620ac_tool_warned=yes ;;
6621esac
6622 DLLTOOL=$ac_ct_DLLTOOL
6623 fi
6624else
6625 DLLTOOL="$ac_cv_prog_DLLTOOL"
6626fi
6627
6628test -z "$DLLTOOL" && DLLTOOL=dlltool
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6640printf %s "checking how to associate runtime and link libraries... " >&6; }
6641if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6642then :
6643 printf %s "(cached) " >&6
6644else $as_nop
6645 lt_cv_sharedlib_from_linklib_cmd='unknown'
6646
6647case $host_os in
6648cygwin* | mingw* | pw32* | cegcc*)
6649 # two different shell functions defined in ltmain.sh;
6650 # decide which one to use based on capabilities of $DLLTOOL
6651 case `$DLLTOOL --help 2>&1` in
6652 *--identify-strict*)
6653 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6654 ;;
6655 *)
6656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6657 ;;
6658 esac
6659 ;;
6660*)
6661 # fallback: assume linklib IS sharedlib
6662 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6663 ;;
6664esac
6665
6666fi
6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6668printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6669sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6670test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6671
6672
6673
6674
6675
6676
6677
6678
6679if test -n "$ac_tool_prefix"; then
6680 for ac_prog in ar
6681 do
6682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685printf %s "checking for $ac_word... " >&6; }
6686if test ${ac_cv_prog_AR+y}
6687then :
6688 printf %s "(cached) " >&6
6689else $as_nop
6690 if test -n "$AR"; then
6691 ac_cv_prog_AR="$AR" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 case $as_dir in #(((
6698 '') as_dir=./ ;;
6699 */) ;;
6700 *) as_dir=$as_dir/ ;;
6701 esac
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714AR=$ac_cv_prog_AR
6715if test -n "$AR"; then
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6717printf "%s\n" "$AR" >&6; }
6718else
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720printf "%s\n" "no" >&6; }
6721fi
6722
6723
6724 test -n "$AR" && break
6725 done
6726fi
6727if test -z "$AR"; then
6728 ac_ct_AR=$AR
6729 for ac_prog in ar
6730do
6731 # Extract the first word of "$ac_prog", so it can be a program name with args.
6732set dummy $ac_prog; ac_word=$2
6733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734printf %s "checking for $ac_word... " >&6; }
6735if test ${ac_cv_prog_ac_ct_AR+y}
6736then :
6737 printf %s "(cached) " >&6
6738else $as_nop
6739 if test -n "$ac_ct_AR"; then
6740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 case $as_dir in #(((
6747 '') as_dir=./ ;;
6748 */) ;;
6749 *) as_dir=$as_dir/ ;;
6750 esac
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_ac_ct_AR="$ac_prog"
6754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758 done
6759IFS=$as_save_IFS
6760
6761fi
6762fi
6763ac_ct_AR=$ac_cv_prog_ac_ct_AR
6764if test -n "$ac_ct_AR"; then
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6766printf "%s\n" "$ac_ct_AR" >&6; }
6767else
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769printf "%s\n" "no" >&6; }
6770fi
6771
6772
6773 test -n "$ac_ct_AR" && break
6774done
6775
6776 if test "x$ac_ct_AR" = x; then
6777 AR="false"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780yes:)
6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783ac_tool_warned=yes ;;
6784esac
6785 AR=$ac_ct_AR
6786 fi
6787fi
6788
6789: ${AR=ar}
6790
6791
6792
6793
6794
6795
6796# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6797# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6798# higher priority because thats what people were doing historically (setting
6799# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6800# variable obsoleted/removed.
6801
6802test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6803lt_ar_flags=$AR_FLAGS
6804
6805
6806
6807
6808
6809
6810# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6811# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6812
6813
6814
6815
6816
6817
6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6819printf %s "checking for archiver @FILE support... " >&6; }
6820if test ${lt_cv_ar_at_file+y}
6821then :
6822 printf %s "(cached) " >&6
6823else $as_nop
6824 lt_cv_ar_at_file=no
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h. */
6827
6828int
6829main (void)
6830{
6831
6832 ;
6833 return 0;
6834}
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"
6837then :
6838 echo conftest.$ac_objext > conftest.lst
6839 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6841 (eval $lt_ar_try) 2>&5
6842 ac_status=$?
6843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }
6845 if test 0 -eq "$ac_status"; then
6846 # Ensure the archiver fails upon bogus file names.
6847 rm -f conftest.$ac_objext libconftest.a
6848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849 (eval $lt_ar_try) 2>&5
6850 ac_status=$?
6851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }
6853 if test 0 -ne "$ac_status"; then
6854 lt_cv_ar_at_file=@
6855 fi
6856 fi
6857 rm -f conftest.* libconftest.a
6858
6859fi
6860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6861
6862fi
6863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6864printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6865
6866if test no = "$lt_cv_ar_at_file"; then
6867 archiver_list_spec=
6868else
6869 archiver_list_spec=$lt_cv_ar_at_file
6870fi
6871
6872
6873
6874
6875
6876
6877
6878if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6880set dummy ${ac_tool_prefix}strip; ac_word=$2
6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882printf %s "checking for $ac_word... " >&6; }
6883if test ${ac_cv_prog_STRIP+y}
6884then :
6885 printf %s "(cached) " >&6
6886else $as_nop
6887 if test -n "$STRIP"; then
6888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 case $as_dir in #(((
6895 '') as_dir=./ ;;
6896 */) ;;
6897 *) as_dir=$as_dir/ ;;
6898 esac
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906 done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911STRIP=$ac_cv_prog_STRIP
6912if test -n "$STRIP"; then
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6914printf "%s\n" "$STRIP" >&6; }
6915else
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917printf "%s\n" "no" >&6; }
6918fi
6919
6920
6921fi
6922if test -z "$ac_cv_prog_STRIP"; then
6923 ac_ct_STRIP=$STRIP
6924 # Extract the first word of "strip", so it can be a program name with args.
6925set dummy strip; ac_word=$2
6926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927printf %s "checking for $ac_word... " >&6; }
6928if test ${ac_cv_prog_ac_ct_STRIP+y}
6929then :
6930 printf %s "(cached) " >&6
6931else $as_nop
6932 if test -n "$ac_ct_STRIP"; then
6933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 case $as_dir in #(((
6940 '') as_dir=./ ;;
6941 */) ;;
6942 *) as_dir=$as_dir/ ;;
6943 esac
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_STRIP="strip"
6947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950done
6951 done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6957if test -n "$ac_ct_STRIP"; then
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6959printf "%s\n" "$ac_ct_STRIP" >&6; }
6960else
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962printf "%s\n" "no" >&6; }
6963fi
6964
6965 if test "x$ac_ct_STRIP" = x; then
6966 STRIP=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969yes:)
6970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972ac_tool_warned=yes ;;
6973esac
6974 STRIP=$ac_ct_STRIP
6975 fi
6976else
6977 STRIP="$ac_cv_prog_STRIP"
6978fi
6979
6980test -z "$STRIP" && STRIP=:
6981
6982
6983
6984
6985
6986
6987if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991printf %s "checking for $ac_word... " >&6; }
6992if test ${ac_cv_prog_RANLIB+y}
6993then :
6994 printf %s "(cached) " >&6
6995else $as_nop
6996 if test -n "$RANLIB"; then
6997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 case $as_dir in #(((
7004 '') as_dir=./ ;;
7005 */) ;;
7006 *) as_dir=$as_dir/ ;;
7007 esac
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014done
7015 done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020RANLIB=$ac_cv_prog_RANLIB
7021if test -n "$RANLIB"; then
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7023printf "%s\n" "$RANLIB" >&6; }
7024else
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026printf "%s\n" "no" >&6; }
7027fi
7028
7029
7030fi
7031if test -z "$ac_cv_prog_RANLIB"; then
7032 ac_ct_RANLIB=$RANLIB
7033 # Extract the first word of "ranlib", so it can be a program name with args.
7034set dummy ranlib; ac_word=$2
7035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036printf %s "checking for $ac_word... " >&6; }
7037if test ${ac_cv_prog_ac_ct_RANLIB+y}
7038then :
7039 printf %s "(cached) " >&6
7040else $as_nop
7041 if test -n "$ac_ct_RANLIB"; then
7042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 case $as_dir in #(((
7049 '') as_dir=./ ;;
7050 */) ;;
7051 *) as_dir=$as_dir/ ;;
7052 esac
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_ac_ct_RANLIB="ranlib"
7056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060 done
7061IFS=$as_save_IFS
7062
7063fi
7064fi
7065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7066if test -n "$ac_ct_RANLIB"; then
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7068printf "%s\n" "$ac_ct_RANLIB" >&6; }
7069else
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071printf "%s\n" "no" >&6; }
7072fi
7073
7074 if test "x$ac_ct_RANLIB" = x; then
7075 RANLIB=":"
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078yes:)
7079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081ac_tool_warned=yes ;;
7082esac
7083 RANLIB=$ac_ct_RANLIB
7084 fi
7085else
7086 RANLIB="$ac_cv_prog_RANLIB"
7087fi
7088
7089test -z "$RANLIB" && RANLIB=:
7090
7091
7092
7093
7094
7095
7096# Determine commands to create old-style static archives.
7097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7098old_postinstall_cmds='chmod 644 $oldlib'
7099old_postuninstall_cmds=
7100
7101if test -n "$RANLIB"; then
7102 case $host_os in
7103 bitrig* | openbsd*)
7104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7105 ;;
7106 *)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7108 ;;
7109 esac
7110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7111fi
7112
7113case $host_os in
7114 darwin*)
7115 lock_old_archive_extraction=yes ;;
7116 *)
7117 lock_old_archive_extraction=no ;;
7118esac
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158# If no C compiler was specified, use CC.
7159LTCC=${LTCC-"$CC"}
7160
7161# If no C compiler flags were specified, use CFLAGS.
7162LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7163
7164# Allow CC to be a program name with arguments.
7165compiler=$CC
7166
7167
7168# Check for command to grab the raw symbol name followed by C symbol from nm.
7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7170printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7171if test ${lt_cv_sys_global_symbol_pipe+y}
7172then :
7173 printf %s "(cached) " >&6
7174else $as_nop
7175
7176# These are sane defaults that work on at least a few old systems.
7177# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7178
7179# Character class describing NM global symbol codes.
7180symcode='[BCDEGRST]'
7181
7182# Regexp to match symbols that can be accessed directly from C.
7183sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7184
7185# Define system-specific variables.
7186case $host_os in
7187aix*)
7188 symcode='[BCDT]'
7189 ;;
7190cygwin* | mingw* | pw32* | cegcc*)
7191 symcode='[ABCDGISTW]'
7192 ;;
7193hpux*)
7194 if test ia64 = "$host_cpu"; then
7195 symcode='[ABCDEGRST]'
7196 fi
7197 ;;
7198irix* | nonstopux*)
7199 symcode='[BCDEGRST]'
7200 ;;
7201osf*)
7202 symcode='[BCDEGQRST]'
7203 ;;
7204solaris*)
7205 symcode='[BDRT]'
7206 ;;
7207sco3.2v5*)
7208 symcode='[DT]'
7209 ;;
7210sysv4.2uw2*)
7211 symcode='[DT]'
7212 ;;
7213sysv5* | sco5v6* | unixware* | OpenUNIX*)
7214 symcode='[ABDT]'
7215 ;;
7216sysv4)
7217 symcode='[DFNSTU]'
7218 ;;
7219esac
7220
7221# If we're using GNU nm, then use its standard symbol codes.
7222case `$NM -V 2>&1` in
7223*GNU* | *'with BFD'*)
7224 symcode='[ABCDGIRSTW]' ;;
7225esac
7226
7227if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7228 # Gets list of data symbols to import.
7229 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7230 # Adjust the below global symbol transforms to fixup imported variables.
7231 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7232 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7233 lt_c_name_lib_hook="\
7234 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7235 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7236else
7237 # Disable hooks by default.
7238 lt_cv_sys_global_symbol_to_import=
7239 lt_cdecl_hook=
7240 lt_c_name_hook=
7241 lt_c_name_lib_hook=
7242fi
7243
7244# Transform an extracted symbol line into a proper C declaration.
7245# Some systems (esp. on ia64) link data and code symbols differently,
7246# so use this general approach.
7247lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7248$lt_cdecl_hook\
7249" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7250" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7251
7252# Transform an extracted symbol line into symbol name and symbol address
7253lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7254$lt_c_name_hook\
7255" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7256" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7257
7258# Transform an extracted symbol line into symbol name with lib prefix and
7259# symbol address.
7260lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7261$lt_c_name_lib_hook\
7262" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7263" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7264" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7265
7266# Handle CRLF in mingw tool chain
7267opt_cr=
7268case $build_os in
7269mingw*)
7270 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7271 ;;
7272esac
7273
7274# Try without a prefix underscore, then with it.
7275for ac_symprfx in "" "_"; do
7276
7277 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7278 symxfrm="\\1 $ac_symprfx\\2 \\2"
7279
7280 # Write the raw and C identifiers.
7281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7282 # Fake it for dumpbin and say T for any non-static function,
7283 # D for any global variable and I for any imported variable.
7284 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7285 # which start with @ or ?.
7286 lt_cv_sys_global_symbol_pipe="$AWK '"\
7287" {last_section=section; section=\$ 3};"\
7288" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7289" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7290" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7291" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7292" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7293" \$ 0!~/External *\|/{next};"\
7294" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7295" {if(hide[section]) next};"\
7296" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7297" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7298" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7299" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7300" ' prfx=^$ac_symprfx"
7301 else
7302 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7303 fi
7304 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7305
7306 # Check to see that the pipe works correctly.
7307 pipe_works=no
7308
7309 rm -f conftest*
7310 cat > conftest.$ac_ext <<_LT_EOF
7311#ifdef __cplusplus
7312extern "C" {
7313#endif
7314char nm_test_var;
7315void nm_test_func(void);
7316void nm_test_func(void){}
7317#ifdef __cplusplus
7318}
7319#endif
7320int main(){nm_test_var='a';nm_test_func();return(0);}
7321_LT_EOF
7322
7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; }; then
7328 # Now try to grab the symbols.
7329 nlist=conftest.nm
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7331 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7332 ac_status=$?
7333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; } && test -s "$nlist"; then
7335 # Try sorting and uniquifying the output.
7336 if sort "$nlist" | uniq > "$nlist"T; then
7337 mv -f "$nlist"T "$nlist"
7338 else
7339 rm -f "$nlist"T
7340 fi
7341
7342 # Make sure that we snagged all the symbols we need.
7343 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7344 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7345 cat <<_LT_EOF > conftest.$ac_ext
7346/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7347#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7348/* DATA imports from DLLs on WIN32 can't be const, because runtime
7349 relocations are performed -- see ld's documentation on pseudo-relocs. */
7350# define LT_DLSYM_CONST
7351#elif defined __osf__
7352/* This system does not cope well with relocations in const data. */
7353# define LT_DLSYM_CONST
7354#else
7355# define LT_DLSYM_CONST const
7356#endif
7357
7358#ifdef __cplusplus
7359extern "C" {
7360#endif
7361
7362_LT_EOF
7363 # Now generate the symbol file.
7364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7365
7366 cat <<_LT_EOF >> conftest.$ac_ext
7367
7368/* The mapping between symbol names and symbols. */
7369LT_DLSYM_CONST struct {
7370 const char *name;
7371 void *address;
7372}
7373lt__PROGRAM__LTX_preloaded_symbols[] =
7374{
7375 { "@PROGRAM@", (void *) 0 },
7376_LT_EOF
7377 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7378 cat <<\_LT_EOF >> conftest.$ac_ext
7379 {0, (void *) 0}
7380};
7381
7382/* This works around a problem in FreeBSD linker */
7383#ifdef FREEBSD_WORKAROUND
7384static const void *lt_preloaded_setup() {
7385 return lt__PROGRAM__LTX_preloaded_symbols;
7386}
7387#endif
7388
7389#ifdef __cplusplus
7390}
7391#endif
7392_LT_EOF
7393 # Now try linking the two files.
7394 mv conftest.$ac_objext conftstm.$ac_objext
7395 lt_globsym_save_LIBS=$LIBS
7396 lt_globsym_save_CFLAGS=$CFLAGS
7397 LIBS=conftstm.$ac_objext
7398 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7400 (eval $ac_link) 2>&5
7401 ac_status=$?
7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7404 pipe_works=yes
7405 fi
7406 LIBS=$lt_globsym_save_LIBS
7407 CFLAGS=$lt_globsym_save_CFLAGS
7408 else
7409 echo "cannot find nm_test_func in $nlist" >&5
7410 fi
7411 else
7412 echo "cannot find nm_test_var in $nlist" >&5
7413 fi
7414 else
7415 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7416 fi
7417 else
7418 echo "$progname: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7420 fi
7421 rm -rf conftest* conftst*
7422
7423 # Do not use the global_symbol_pipe unless it works.
7424 if test yes = "$pipe_works"; then
7425 break
7426 else
7427 lt_cv_sys_global_symbol_pipe=
7428 fi
7429done
7430
7431fi
7432
7433if test -z "$lt_cv_sys_global_symbol_pipe"; then
7434 lt_cv_sys_global_symbol_to_cdecl=
7435fi
7436if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7438printf "%s\n" "failed" >&6; }
7439else
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7441printf "%s\n" "ok" >&6; }
7442fi
7443
7444# Response file support.
7445if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7446 nm_file_list_spec='@'
7447elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7448 nm_file_list_spec='@'
7449fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7488printf %s "checking for sysroot... " >&6; }
7489
7490# Check whether --with-sysroot was given.
7491if test ${with_sysroot+y}
7492then :
7493 withval=$with_sysroot;
7494else $as_nop
7495 with_sysroot=no
7496fi
7497
7498
7499lt_sysroot=
7500case $with_sysroot in #(
7501 yes)
7502 if test yes = "$GCC"; then
7503 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7504 fi
7505 ;; #(
7506 /*)
7507 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7508 ;; #(
7509 no|'')
7510 ;; #(
7511 *)
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7513printf "%s\n" "$with_sysroot" >&6; }
7514 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7515 ;;
7516esac
7517
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7519printf "%s\n" "${lt_sysroot:-no}" >&6; }
7520
7521
7522
7523
7524
7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7526printf %s "checking for a working dd... " >&6; }
7527if test ${ac_cv_path_lt_DD+y}
7528then :
7529 printf %s "(cached) " >&6
7530else $as_nop
7531 printf 0123456789abcdef0123456789abcdef >conftest.i
7532cat conftest.i conftest.i >conftest2.i
7533: ${lt_DD:=$DD}
7534if test -z "$lt_DD"; then
7535 ac_path_lt_DD_found=false
7536 # Loop through the user's path and test for each of PROGNAME-LIST
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 case $as_dir in #(((
7542 '') as_dir=./ ;;
7543 */) ;;
7544 *) as_dir=$as_dir/ ;;
7545 esac
7546 for ac_prog in dd
7547 do
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7550 as_fn_executable_p "$ac_path_lt_DD" || continue
7551if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7552 cmp -s conftest.i conftest.out \
7553 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7554fi
7555 $ac_path_lt_DD_found && break 3
7556 done
7557 done
7558 done
7559IFS=$as_save_IFS
7560 if test -z "$ac_cv_path_lt_DD"; then
7561 :
7562 fi
7563else
7564 ac_cv_path_lt_DD=$lt_DD
7565fi
7566
7567rm -f conftest.i conftest2.i conftest.out
7568fi
7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7570printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7571
7572
7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7574printf %s "checking how to truncate binary pipes... " >&6; }
7575if test ${lt_cv_truncate_bin+y}
7576then :
7577 printf %s "(cached) " >&6
7578else $as_nop
7579 printf 0123456789abcdef0123456789abcdef >conftest.i
7580cat conftest.i conftest.i >conftest2.i
7581lt_cv_truncate_bin=
7582if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7583 cmp -s conftest.i conftest.out \
7584 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7585fi
7586rm -f conftest.i conftest2.i conftest.out
7587test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7588fi
7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7590printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7591
7592
7593
7594
7595
7596
7597
7598# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7599func_cc_basename ()
7600{
7601 for cc_temp in $*""; do
7602 case $cc_temp in
7603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7605 \-*) ;;
7606 *) break;;
7607 esac
7608 done
7609 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7610}
7611
7612# Check whether --enable-libtool-lock was given.
7613if test ${enable_libtool_lock+y}
7614then :
7615 enableval=$enable_libtool_lock;
7616fi
7617
7618test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7619
7620# Some flags need to be propagated to the compiler or linker for good
7621# libtool support.
7622case $host in
7623ia64-*-hpux*)
7624 # Find out what ABI is being produced by ac_compile, and set mode
7625 # options accordingly.
7626 echo 'int i;' > conftest.$ac_ext
7627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631 test $ac_status = 0; }; then
7632 case `$FILECMD conftest.$ac_objext` in
7633 *ELF-32*)
7634 HPUX_IA64_MODE=32
7635 ;;
7636 *ELF-64*)
7637 HPUX_IA64_MODE=64
7638 ;;
7639 esac
7640 fi
7641 rm -rf conftest*
7642 ;;
7643*-*-irix6*)
7644 # Find out what ABI is being produced by ac_compile, and set linker
7645 # options accordingly.
7646 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7648 (eval $ac_compile) 2>&5
7649 ac_status=$?
7650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651 test $ac_status = 0; }; then
7652 if test yes = "$lt_cv_prog_gnu_ld"; then
7653 case `$FILECMD conftest.$ac_objext` in
7654 *32-bit*)
7655 LD="${LD-ld} -melf32bsmip"
7656 ;;
7657 *N32*)
7658 LD="${LD-ld} -melf32bmipn32"
7659 ;;
7660 *64-bit*)
7661 LD="${LD-ld} -melf64bmip"
7662 ;;
7663 esac
7664 else
7665 case `$FILECMD conftest.$ac_objext` in
7666 *32-bit*)
7667 LD="${LD-ld} -32"
7668 ;;
7669 *N32*)
7670 LD="${LD-ld} -n32"
7671 ;;
7672 *64-bit*)
7673 LD="${LD-ld} -64"
7674 ;;
7675 esac
7676 fi
7677 fi
7678 rm -rf conftest*
7679 ;;
7680
7681mips64*-*linux*)
7682 # Find out what ABI is being produced by ac_compile, and set linker
7683 # options accordingly.
7684 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7686 (eval $ac_compile) 2>&5
7687 ac_status=$?
7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 emul=elf
7691 case `$FILECMD conftest.$ac_objext` in
7692 *32-bit*)
7693 emul="${emul}32"
7694 ;;
7695 *64-bit*)
7696 emul="${emul}64"
7697 ;;
7698 esac
7699 case `$FILECMD conftest.$ac_objext` in
7700 *MSB*)
7701 emul="${emul}btsmip"
7702 ;;
7703 *LSB*)
7704 emul="${emul}ltsmip"
7705 ;;
7706 esac
7707 case `$FILECMD conftest.$ac_objext` in
7708 *N32*)
7709 emul="${emul}n32"
7710 ;;
7711 esac
7712 LD="${LD-ld} -m $emul"
7713 fi
7714 rm -rf conftest*
7715 ;;
7716
7717x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7718s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7719 # Find out what ABI is being produced by ac_compile, and set linker
7720 # options accordingly. Note that the listed cases only cover the
7721 # situations where additional linker options are needed (such as when
7722 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7723 # vice versa); the common cases where no linker options are needed do
7724 # not appear in the list.
7725 echo 'int i;' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 case `$FILECMD conftest.o` in
7732 *32-bit*)
7733 case $host in
7734 x86_64-*kfreebsd*-gnu)
7735 LD="${LD-ld} -m elf_i386_fbsd"
7736 ;;
7737 x86_64-*linux*)
7738 case `$FILECMD conftest.o` in
7739 *x86-64*)
7740 LD="${LD-ld} -m elf32_x86_64"
7741 ;;
7742 *)
7743 LD="${LD-ld} -m elf_i386"
7744 ;;
7745 esac
7746 ;;
7747 powerpc64le-*linux*)
7748 LD="${LD-ld} -m elf32lppclinux"
7749 ;;
7750 powerpc64-*linux*)
7751 LD="${LD-ld} -m elf32ppclinux"
7752 ;;
7753 s390x-*linux*)
7754 LD="${LD-ld} -m elf_s390"
7755 ;;
7756 sparc64-*linux*)
7757 LD="${LD-ld} -m elf32_sparc"
7758 ;;
7759 esac
7760 ;;
7761 *64-bit*)
7762 case $host in
7763 x86_64-*kfreebsd*-gnu)
7764 LD="${LD-ld} -m elf_x86_64_fbsd"
7765 ;;
7766 x86_64-*linux*)
7767 LD="${LD-ld} -m elf_x86_64"
7768 ;;
7769 powerpcle-*linux*)
7770 LD="${LD-ld} -m elf64lppc"
7771 ;;
7772 powerpc-*linux*)
7773 LD="${LD-ld} -m elf64ppc"
7774 ;;
7775 s390*-*linux*|s390*-*tpf*)
7776 LD="${LD-ld} -m elf64_s390"
7777 ;;
7778 sparc*-*linux*)
7779 LD="${LD-ld} -m elf64_sparc"
7780 ;;
7781 esac
7782 ;;
7783 esac
7784 fi
7785 rm -rf conftest*
7786 ;;
7787
7788*-*-sco3.2v5*)
7789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7790 SAVE_CFLAGS=$CFLAGS
7791 CFLAGS="$CFLAGS -belf"
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7793printf %s "checking whether the C compiler needs -belf... " >&6; }
7794if test ${lt_cv_cc_needs_belf+y}
7795then :
7796 printf %s "(cached) " >&6
7797else $as_nop
7798 ac_ext=c
7799ac_cpp='$CPP $CPPFLAGS'
7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h. */
7806
7807int
7808main (void)
7809{
7810
7811 ;
7812 return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_link "$LINENO"
7816then :
7817 lt_cv_cc_needs_belf=yes
7818else $as_nop
7819 lt_cv_cc_needs_belf=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.beam \
7822 conftest$ac_exeext conftest.$ac_ext
7823 ac_ext=c
7824ac_cpp='$CPP $CPPFLAGS'
7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829fi
7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7831printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7832 if test yes != "$lt_cv_cc_needs_belf"; then
7833 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7834 CFLAGS=$SAVE_CFLAGS
7835 fi
7836 ;;
7837*-*solaris*)
7838 # Find out what ABI is being produced by ac_compile, and set linker
7839 # options accordingly.
7840 echo 'int i;' > conftest.$ac_ext
7841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7842 (eval $ac_compile) 2>&5
7843 ac_status=$?
7844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }; then
7846 case `$FILECMD conftest.o` in
7847 *64-bit*)
7848 case $lt_cv_prog_gnu_ld in
7849 yes*)
7850 case $host in
7851 i?86-*-solaris*|x86_64-*-solaris*)
7852 LD="${LD-ld} -m elf_x86_64"
7853 ;;
7854 sparc*-*-solaris*)
7855 LD="${LD-ld} -m elf64_sparc"
7856 ;;
7857 esac
7858 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7859 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7860 LD=${LD-ld}_sol2
7861 fi
7862 ;;
7863 *)
7864 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7865 LD="${LD-ld} -64"
7866 fi
7867 ;;
7868 esac
7869 ;;
7870 esac
7871 fi
7872 rm -rf conftest*
7873 ;;
7874esac
7875
7876need_locks=$enable_libtool_lock
7877
7878if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7880set dummy ${ac_tool_prefix}mt; ac_word=$2
7881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882printf %s "checking for $ac_word... " >&6; }
7883if test ${ac_cv_prog_MANIFEST_TOOL+y}
7884then :
7885 printf %s "(cached) " >&6
7886else $as_nop
7887 if test -n "$MANIFEST_TOOL"; then
7888 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 case $as_dir in #(((
7895 '') as_dir=./ ;;
7896 */) ;;
7897 *) as_dir=$as_dir/ ;;
7898 esac
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905done
7906 done
7907IFS=$as_save_IFS
7908
7909fi
7910fi
7911MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7912if test -n "$MANIFEST_TOOL"; then
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7914printf "%s\n" "$MANIFEST_TOOL" >&6; }
7915else
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917printf "%s\n" "no" >&6; }
7918fi
7919
7920
7921fi
7922if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7923 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7924 # Extract the first word of "mt", so it can be a program name with args.
7925set dummy mt; ac_word=$2
7926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927printf %s "checking for $ac_word... " >&6; }
7928if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7929then :
7930 printf %s "(cached) " >&6
7931else $as_nop
7932 if test -n "$ac_ct_MANIFEST_TOOL"; then
7933 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7934else
7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936for as_dir in $PATH
7937do
7938 IFS=$as_save_IFS
7939 case $as_dir in #(((
7940 '') as_dir=./ ;;
7941 */) ;;
7942 *) as_dir=$as_dir/ ;;
7943 esac
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951 done
7952IFS=$as_save_IFS
7953
7954fi
7955fi
7956ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7957if test -n "$ac_ct_MANIFEST_TOOL"; then
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7959printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7960else
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962printf "%s\n" "no" >&6; }
7963fi
7964
7965 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7966 MANIFEST_TOOL=":"
7967 else
7968 case $cross_compiling:$ac_tool_warned in
7969yes:)
7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7972ac_tool_warned=yes ;;
7973esac
7974 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7975 fi
7976else
7977 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7978fi
7979
7980test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7982printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7983if test ${lt_cv_path_mainfest_tool+y}
7984then :
7985 printf %s "(cached) " >&6
7986else $as_nop
7987 lt_cv_path_mainfest_tool=no
7988 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7989 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7990 cat conftest.err >&5
7991 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7992 lt_cv_path_mainfest_tool=yes
7993 fi
7994 rm -f conftest*
7995fi
7996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7997printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7998if test yes != "$lt_cv_path_mainfest_tool"; then
7999 MANIFEST_TOOL=:
8000fi
8001
8002
8003
8004
8005
8006
8007 case $host_os in
8008 rhapsody* | darwin*)
8009 if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8011set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013printf %s "checking for $ac_word... " >&6; }
8014if test ${ac_cv_prog_DSYMUTIL+y}
8015then :
8016 printf %s "(cached) " >&6
8017else $as_nop
8018 if test -n "$DSYMUTIL"; then
8019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 case $as_dir in #(((
8026 '') as_dir=./ ;;
8027 */) ;;
8028 *) as_dir=$as_dir/ ;;
8029 esac
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037 done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042DSYMUTIL=$ac_cv_prog_DSYMUTIL
8043if test -n "$DSYMUTIL"; then
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8045printf "%s\n" "$DSYMUTIL" >&6; }
8046else
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048printf "%s\n" "no" >&6; }
8049fi
8050
8051
8052fi
8053if test -z "$ac_cv_prog_DSYMUTIL"; then
8054 ac_ct_DSYMUTIL=$DSYMUTIL
8055 # Extract the first word of "dsymutil", so it can be a program name with args.
8056set dummy dsymutil; ac_word=$2
8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058printf %s "checking for $ac_word... " >&6; }
8059if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8060then :
8061 printf %s "(cached) " >&6
8062else $as_nop
8063 if test -n "$ac_ct_DSYMUTIL"; then
8064 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 case $as_dir in #(((
8071 '') as_dir=./ ;;
8072 */) ;;
8073 *) as_dir=$as_dir/ ;;
8074 esac
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081done
8082 done
8083IFS=$as_save_IFS
8084
8085fi
8086fi
8087ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8088if test -n "$ac_ct_DSYMUTIL"; then
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8090printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8091else
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093printf "%s\n" "no" >&6; }
8094fi
8095
8096 if test "x$ac_ct_DSYMUTIL" = x; then
8097 DSYMUTIL=":"
8098 else
8099 case $cross_compiling:$ac_tool_warned in
8100yes:)
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103ac_tool_warned=yes ;;
8104esac
8105 DSYMUTIL=$ac_ct_DSYMUTIL
8106 fi
8107else
8108 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8109fi
8110
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115printf %s "checking for $ac_word... " >&6; }
8116if test ${ac_cv_prog_NMEDIT+y}
8117then :
8118 printf %s "(cached) " >&6
8119else $as_nop
8120 if test -n "$NMEDIT"; then
8121 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138done
8139 done
8140IFS=$as_save_IFS
8141
8142fi
8143fi
8144NMEDIT=$ac_cv_prog_NMEDIT
8145if test -n "$NMEDIT"; then
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8147printf "%s\n" "$NMEDIT" >&6; }
8148else
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150printf "%s\n" "no" >&6; }
8151fi
8152
8153
8154fi
8155if test -z "$ac_cv_prog_NMEDIT"; then
8156 ac_ct_NMEDIT=$NMEDIT
8157 # Extract the first word of "nmedit", so it can be a program name with args.
8158set dummy nmedit; ac_word=$2
8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160printf %s "checking for $ac_word... " >&6; }
8161if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8162then :
8163 printf %s "(cached) " >&6
8164else $as_nop
8165 if test -n "$ac_ct_NMEDIT"; then
8166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
8186
8187fi
8188fi
8189ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8190if test -n "$ac_ct_NMEDIT"; then
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8192printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8193else
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195printf "%s\n" "no" >&6; }
8196fi
8197
8198 if test "x$ac_ct_NMEDIT" = x; then
8199 NMEDIT=":"
8200 else
8201 case $cross_compiling:$ac_tool_warned in
8202yes:)
8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205ac_tool_warned=yes ;;
8206esac
8207 NMEDIT=$ac_ct_NMEDIT
8208 fi
8209else
8210 NMEDIT="$ac_cv_prog_NMEDIT"
8211fi
8212
8213 if test -n "$ac_tool_prefix"; then
8214 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8215set dummy ${ac_tool_prefix}lipo; ac_word=$2
8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217printf %s "checking for $ac_word... " >&6; }
8218if test ${ac_cv_prog_LIPO+y}
8219then :
8220 printf %s "(cached) " >&6
8221else $as_nop
8222 if test -n "$LIPO"; then
8223 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 case $as_dir in #(((
8230 '') as_dir=./ ;;
8231 */) ;;
8232 *) as_dir=$as_dir/ ;;
8233 esac
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240done
8241 done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
8246LIPO=$ac_cv_prog_LIPO
8247if test -n "$LIPO"; then
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8249printf "%s\n" "$LIPO" >&6; }
8250else
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252printf "%s\n" "no" >&6; }
8253fi
8254
8255
8256fi
8257if test -z "$ac_cv_prog_LIPO"; then
8258 ac_ct_LIPO=$LIPO
8259 # Extract the first word of "lipo", so it can be a program name with args.
8260set dummy lipo; ac_word=$2
8261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262printf %s "checking for $ac_word... " >&6; }
8263if test ${ac_cv_prog_ac_ct_LIPO+y}
8264then :
8265 printf %s "(cached) " >&6
8266else $as_nop
8267 if test -n "$ac_ct_LIPO"; then
8268 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 case $as_dir in #(((
8275 '') as_dir=./ ;;
8276 */) ;;
8277 *) as_dir=$as_dir/ ;;
8278 esac
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_ac_ct_LIPO="lipo"
8282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285done
8286 done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8292if test -n "$ac_ct_LIPO"; then
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8294printf "%s\n" "$ac_ct_LIPO" >&6; }
8295else
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297printf "%s\n" "no" >&6; }
8298fi
8299
8300 if test "x$ac_ct_LIPO" = x; then
8301 LIPO=":"
8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304yes:)
8305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307ac_tool_warned=yes ;;
8308esac
8309 LIPO=$ac_ct_LIPO
8310 fi
8311else
8312 LIPO="$ac_cv_prog_LIPO"
8313fi
8314
8315 if test -n "$ac_tool_prefix"; then
8316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8317set dummy ${ac_tool_prefix}otool; ac_word=$2
8318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319printf %s "checking for $ac_word... " >&6; }
8320if test ${ac_cv_prog_OTOOL+y}
8321then :
8322 printf %s "(cached) " >&6
8323else $as_nop
8324 if test -n "$OTOOL"; then
8325 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8326else
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 case $as_dir in #(((
8332 '') as_dir=./ ;;
8333 */) ;;
8334 *) as_dir=$as_dir/ ;;
8335 esac
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8338 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8340 break 2
8341 fi
8342done
8343 done
8344IFS=$as_save_IFS
8345
8346fi
8347fi
8348OTOOL=$ac_cv_prog_OTOOL
8349if test -n "$OTOOL"; then
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8351printf "%s\n" "$OTOOL" >&6; }
8352else
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354printf "%s\n" "no" >&6; }
8355fi
8356
8357
8358fi
8359if test -z "$ac_cv_prog_OTOOL"; then
8360 ac_ct_OTOOL=$OTOOL
8361 # Extract the first word of "otool", so it can be a program name with args.
8362set dummy otool; ac_word=$2
8363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364printf %s "checking for $ac_word... " >&6; }
8365if test ${ac_cv_prog_ac_ct_OTOOL+y}
8366then :
8367 printf %s "(cached) " >&6
8368else $as_nop
8369 if test -n "$ac_ct_OTOOL"; then
8370 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8371else
8372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 case $as_dir in #(((
8377 '') as_dir=./ ;;
8378 */) ;;
8379 *) as_dir=$as_dir/ ;;
8380 esac
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_ac_ct_OTOOL="otool"
8384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387done
8388 done
8389IFS=$as_save_IFS
8390
8391fi
8392fi
8393ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8394if test -n "$ac_ct_OTOOL"; then
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8396printf "%s\n" "$ac_ct_OTOOL" >&6; }
8397else
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399printf "%s\n" "no" >&6; }
8400fi
8401
8402 if test "x$ac_ct_OTOOL" = x; then
8403 OTOOL=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406yes:)
8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409ac_tool_warned=yes ;;
8410esac
8411 OTOOL=$ac_ct_OTOOL
8412 fi
8413else
8414 OTOOL="$ac_cv_prog_OTOOL"
8415fi
8416
8417 if test -n "$ac_tool_prefix"; then
8418 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8419set dummy ${ac_tool_prefix}otool64; ac_word=$2
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421printf %s "checking for $ac_word... " >&6; }
8422if test ${ac_cv_prog_OTOOL64+y}
8423then :
8424 printf %s "(cached) " >&6
8425else $as_nop
8426 if test -n "$OTOOL64"; then
8427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432 IFS=$as_save_IFS
8433 case $as_dir in #(((
8434 '') as_dir=./ ;;
8435 */) ;;
8436 *) as_dir=$as_dir/ ;;
8437 esac
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444done
8445 done
8446IFS=$as_save_IFS
8447
8448fi
8449fi
8450OTOOL64=$ac_cv_prog_OTOOL64
8451if test -n "$OTOOL64"; then
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8453printf "%s\n" "$OTOOL64" >&6; }
8454else
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456printf "%s\n" "no" >&6; }
8457fi
8458
8459
8460fi
8461if test -z "$ac_cv_prog_OTOOL64"; then
8462 ac_ct_OTOOL64=$OTOOL64
8463 # Extract the first word of "otool64", so it can be a program name with args.
8464set dummy otool64; ac_word=$2
8465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466printf %s "checking for $ac_word... " >&6; }
8467if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8468then :
8469 printf %s "(cached) " >&6
8470else $as_nop
8471 if test -n "$ac_ct_OTOOL64"; then
8472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8473else
8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477 IFS=$as_save_IFS
8478 case $as_dir in #(((
8479 '') as_dir=./ ;;
8480 */) ;;
8481 *) as_dir=$as_dir/ ;;
8482 esac
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_OTOOL64="otool64"
8486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490 done
8491IFS=$as_save_IFS
8492
8493fi
8494fi
8495ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8496if test -n "$ac_ct_OTOOL64"; then
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8498printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8499else
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501printf "%s\n" "no" >&6; }
8502fi
8503
8504 if test "x$ac_ct_OTOOL64" = x; then
8505 OTOOL64=":"
8506 else
8507 case $cross_compiling:$ac_tool_warned in
8508yes:)
8509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511ac_tool_warned=yes ;;
8512esac
8513 OTOOL64=$ac_ct_OTOOL64
8514 fi
8515else
8516 OTOOL64="$ac_cv_prog_OTOOL64"
8517fi
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8546printf %s "checking for -single_module linker flag... " >&6; }
8547if test ${lt_cv_apple_cc_single_mod+y}
8548then :
8549 printf %s "(cached) " >&6
8550else $as_nop
8551 lt_cv_apple_cc_single_mod=no
8552 if test -z "$LT_MULTI_MODULE"; then
8553 # By default we will add the -single_module flag. You can override
8554 # by either setting the environment variable LT_MULTI_MODULE
8555 # non-empty at configure time, or by adding -multi_module to the
8556 # link flags.
8557 rm -rf libconftest.dylib*
8558 echo "int foo(void){return 1;}" > conftest.c
8559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8560-dynamiclib -Wl,-single_module conftest.c" >&5
8561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8563 _lt_result=$?
8564 # If there is a non-empty error log, and "single_module"
8565 # appears in it, assume the flag caused a linker warning
8566 if test -s conftest.err && $GREP single_module conftest.err; then
8567 cat conftest.err >&5
8568 # Otherwise, if the output was created with a 0 exit code from
8569 # the compiler, it worked.
8570 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8571 lt_cv_apple_cc_single_mod=yes
8572 else
8573 cat conftest.err >&5
8574 fi
8575 rm -rf libconftest.dylib*
8576 rm -f conftest.*
8577 fi
8578fi
8579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8580printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8581
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8583printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8584if test ${lt_cv_ld_exported_symbols_list+y}
8585then :
8586 printf %s "(cached) " >&6
8587else $as_nop
8588 lt_cv_ld_exported_symbols_list=no
8589 save_LDFLAGS=$LDFLAGS
8590 echo "_main" > conftest.sym
8591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593/* end confdefs.h. */
8594
8595int
8596main (void)
8597{
8598
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603if ac_fn_c_try_link "$LINENO"
8604then :
8605 lt_cv_ld_exported_symbols_list=yes
8606else $as_nop
8607 lt_cv_ld_exported_symbols_list=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.beam \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LDFLAGS=$save_LDFLAGS
8612
8613fi
8614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8615printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8616
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8618printf %s "checking for -force_load linker flag... " >&6; }
8619if test ${lt_cv_ld_force_load+y}
8620then :
8621 printf %s "(cached) " >&6
8622else $as_nop
8623 lt_cv_ld_force_load=no
8624 cat > conftest.c << _LT_EOF
8625int forced_loaded() { return 2;}
8626_LT_EOF
8627 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8628 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8629 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8630 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8631 echo "$RANLIB libconftest.a" >&5
8632 $RANLIB libconftest.a 2>&5
8633 cat > conftest.c << _LT_EOF
8634int main() { return 0;}
8635_LT_EOF
8636 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8637 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8638 _lt_result=$?
8639 if test -s conftest.err && $GREP force_load conftest.err; then
8640 cat conftest.err >&5
8641 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8642 lt_cv_ld_force_load=yes
8643 else
8644 cat conftest.err >&5
8645 fi
8646 rm -f conftest.err libconftest.a conftest conftest.c
8647 rm -rf conftest.dSYM
8648
8649fi
8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8651printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8652 case $host_os in
8653 rhapsody* | darwin1.[012])
8654 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8655 darwin1.*)
8656 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8657 darwin*)
8658 case $MACOSX_DEPLOYMENT_TARGET,$host in
8659 10.[012],*|,*powerpc*-darwin[5-8]*)
8660 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8661 *)
8662 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8663 esac
8664 ;;
8665 esac
8666 if test yes = "$lt_cv_apple_cc_single_mod"; then
8667 _lt_dar_single_mod='$single_module'
8668 fi
8669 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8670 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8671 else
8672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8673 fi
8674 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8675 _lt_dsymutil='~$DSYMUTIL $lib || :'
8676 else
8677 _lt_dsymutil=
8678 fi
8679 ;;
8680 esac
8681
8682# func_munge_path_list VARIABLE PATH
8683# -----------------------------------
8684# VARIABLE is name of variable containing _space_ separated list of
8685# directories to be munged by the contents of PATH, which is string
8686# having a format:
8687# "DIR[:DIR]:"
8688# string "DIR[ DIR]" will be prepended to VARIABLE
8689# ":DIR[:DIR]"
8690# string "DIR[ DIR]" will be appended to VARIABLE
8691# "DIRP[:DIRP]::[DIRA:]DIRA"
8692# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8693# "DIRA[ DIRA]" will be appended to VARIABLE
8694# "DIR[:DIR]"
8695# VARIABLE will be replaced by "DIR[ DIR]"
8696func_munge_path_list ()
8697{
8698 case x$2 in
8699 x)
8700 ;;
8701 *:)
8702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8703 ;;
8704 x:*)
8705 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8706 ;;
8707 *::*)
8708 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8709 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8710 ;;
8711 *)
8712 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8713 ;;
8714 esac
8715}
8716
8717ac_header= ac_cache=
8718for ac_item in $ac_header_c_list
8719do
8720 if test $ac_cache; then
8721 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8722 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8723 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8724 fi
8725 ac_header= ac_cache=
8726 elif test $ac_header; then
8727 ac_cache=$ac_item
8728 else
8729 ac_header=$ac_item
8730 fi
8731done
8732
8733
8734
8735
8736
8737
8738
8739
8740if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8741then :
8742
8743printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8744
8745fi
8746ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8747"
8748if test "x$ac_cv_header_dlfcn_h" = xyes
8749then :
8750 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8751
8752fi
8753
8754
8755
8756
8757
8758# Set options
8759
8760
8761
8762 enable_dlopen=no
8763
8764
8765 enable_win32_dll=no
8766
8767
8768 # Check whether --enable-shared was given.
8769if test ${enable_shared+y}
8770then :
8771 enableval=$enable_shared; p=${PACKAGE-default}
8772 case $enableval in
8773 yes) enable_shared=yes ;;
8774 no) enable_shared=no ;;
8775 *)
8776 enable_shared=no
8777 # Look at the argument we got. We use all the common list separators.
8778 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8779 for pkg in $enableval; do
8780 IFS=$lt_save_ifs
8781 if test "X$pkg" = "X$p"; then
8782 enable_shared=yes
8783 fi
8784 done
8785 IFS=$lt_save_ifs
8786 ;;
8787 esac
8788else $as_nop
8789 enable_shared=yes
8790fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802# Check whether --with-pic was given.
8803if test ${with_pic+y}
8804then :
8805 withval=$with_pic; lt_p=${PACKAGE-default}
8806 case $withval in
8807 yes|no) pic_mode=$withval ;;
8808 *)
8809 pic_mode=default
8810 # Look at the argument we got. We use all the common list separators.
8811 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8812 for lt_pkg in $withval; do
8813 IFS=$lt_save_ifs
8814 if test "X$lt_pkg" = "X$lt_p"; then
8815 pic_mode=yes
8816 fi
8817 done
8818 IFS=$lt_save_ifs
8819 ;;
8820 esac
8821else $as_nop
8822 pic_mode=default
8823fi
8824
8825
8826
8827
8828
8829
8830
8831
8832 # Check whether --enable-fast-install was given.
8833if test ${enable_fast_install+y}
8834then :
8835 enableval=$enable_fast_install; p=${PACKAGE-default}
8836 case $enableval in
8837 yes) enable_fast_install=yes ;;
8838 no) enable_fast_install=no ;;
8839 *)
8840 enable_fast_install=no
8841 # Look at the argument we got. We use all the common list separators.
8842 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8843 for pkg in $enableval; do
8844 IFS=$lt_save_ifs
8845 if test "X$pkg" = "X$p"; then
8846 enable_fast_install=yes
8847 fi
8848 done
8849 IFS=$lt_save_ifs
8850 ;;
8851 esac
8852else $as_nop
8853 enable_fast_install=yes
8854fi
8855
8856
8857
8858
8859
8860
8861
8862
8863 shared_archive_member_spec=
8864case $host,$enable_shared in
8865power*-*-aix[5-9]*,yes)
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8867printf %s "checking which variant of shared library versioning to provide... " >&6; }
8868
8869# Check whether --with-aix-soname was given.
8870if test ${with_aix_soname+y}
8871then :
8872 withval=$with_aix_soname; case $withval in
8873 aix|svr4|both)
8874 ;;
8875 *)
8876 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8877 ;;
8878 esac
8879 lt_cv_with_aix_soname=$with_aix_soname
8880else $as_nop
8881 if test ${lt_cv_with_aix_soname+y}
8882then :
8883 printf %s "(cached) " >&6
8884else $as_nop
8885 lt_cv_with_aix_soname=aix
8886fi
8887
8888 with_aix_soname=$lt_cv_with_aix_soname
8889fi
8890
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8892printf "%s\n" "$with_aix_soname" >&6; }
8893 if test aix != "$with_aix_soname"; then
8894 # For the AIX way of multilib, we name the shared archive member
8895 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8896 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8897 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8898 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8899 if test 64 = "${OBJECT_MODE-32}"; then
8900 shared_archive_member_spec=shr_64
8901 else
8902 shared_archive_member_spec=shr
8903 fi
8904 fi
8905 ;;
8906*)
8907 with_aix_soname=aix
8908 ;;
8909esac
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920# This can be used to rebuild libtool when needed
8921LIBTOOL_DEPS=$ltmain
8922
8923# Always use our own libtool.
8924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955test -z "$LN_S" && LN_S="ln -s"
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970if test -n "${ZSH_VERSION+set}"; then
8971 setopt NO_GLOB_SUBST
8972fi
8973
8974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8975printf %s "checking for objdir... " >&6; }
8976if test ${lt_cv_objdir+y}
8977then :
8978 printf %s "(cached) " >&6
8979else $as_nop
8980 rm -f .libs 2>/dev/null
8981mkdir .libs 2>/dev/null
8982if test -d .libs; then
8983 lt_cv_objdir=.libs
8984else
8985 # MS-DOS does not allow filenames that begin with a dot.
8986 lt_cv_objdir=_libs
8987fi
8988rmdir .libs 2>/dev/null
8989fi
8990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8991printf "%s\n" "$lt_cv_objdir" >&6; }
8992objdir=$lt_cv_objdir
8993
8994
8995
8996
8997
8998printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8999
9000
9001
9002
9003case $host_os in
9004aix3*)
9005 # AIX sometimes has problems with the GCC collect2 program. For some
9006 # reason, if we set the COLLECT_NAMES environment variable, the problems
9007 # vanish in a puff of smoke.
9008 if test set != "${COLLECT_NAMES+set}"; then
9009 COLLECT_NAMES=
9010 export COLLECT_NAMES
9011 fi
9012 ;;
9013esac
9014
9015# Global variables:
9016ofile=libtool
9017can_build_shared=yes
9018
9019# All known linkers require a '.a' archive for static linking (except MSVC and
9020# ICC, which need '.lib').
9021libext=a
9022
9023with_gnu_ld=$lt_cv_prog_gnu_ld
9024
9025old_CC=$CC
9026old_CFLAGS=$CFLAGS
9027
9028# Set sane defaults for various variables
9029test -z "$CC" && CC=cc
9030test -z "$LTCC" && LTCC=$CC
9031test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9032test -z "$LD" && LD=ld
9033test -z "$ac_objext" && ac_objext=o
9034
9035func_cc_basename $compiler
9036cc_basename=$func_cc_basename_result
9037
9038
9039# Only perform the check for file, if the check method requires it
9040test -z "$MAGIC_CMD" && MAGIC_CMD=file
9041case $deplibs_check_method in
9042file_magic*)
9043 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9045printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9046if test ${lt_cv_path_MAGIC_CMD+y}
9047then :
9048 printf %s "(cached) " >&6
9049else $as_nop
9050 case $MAGIC_CMD in
9051[\\/*] | ?:[\\/]*)
9052 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9053 ;;
9054*)
9055 lt_save_MAGIC_CMD=$MAGIC_CMD
9056 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9057 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9058 for ac_dir in $ac_dummy; do
9059 IFS=$lt_save_ifs
9060 test -z "$ac_dir" && ac_dir=.
9061 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9062 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9063 if test -n "$file_magic_test_file"; then
9064 case $deplibs_check_method in
9065 "file_magic "*)
9066 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9067 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9069 $EGREP "$file_magic_regex" > /dev/null; then
9070 :
9071 else
9072 cat <<_LT_EOF 1>&2
9073
9074*** Warning: the command libtool uses to detect shared libraries,
9075*** $file_magic_cmd, produces output that libtool cannot recognize.
9076*** The result is that libtool may fail to recognize shared libraries
9077*** as such. This will affect the creation of libtool libraries that
9078*** depend on shared libraries, but programs linked with such libtool
9079*** libraries will work regardless of this problem. Nevertheless, you
9080*** may want to report the problem to your system manager and/or to
9081*** bug-libtool@gnu.org
9082
9083_LT_EOF
9084 fi ;;
9085 esac
9086 fi
9087 break
9088 fi
9089 done
9090 IFS=$lt_save_ifs
9091 MAGIC_CMD=$lt_save_MAGIC_CMD
9092 ;;
9093esac
9094fi
9095
9096MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9097if test -n "$MAGIC_CMD"; then
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9099printf "%s\n" "$MAGIC_CMD" >&6; }
9100else
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102printf "%s\n" "no" >&6; }
9103fi
9104
9105
9106
9107
9108
9109if test -z "$lt_cv_path_MAGIC_CMD"; then
9110 if test -n "$ac_tool_prefix"; then
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9112printf %s "checking for file... " >&6; }
9113if test ${lt_cv_path_MAGIC_CMD+y}
9114then :
9115 printf %s "(cached) " >&6
9116else $as_nop
9117 case $MAGIC_CMD in
9118[\\/*] | ?:[\\/]*)
9119 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9120 ;;
9121*)
9122 lt_save_MAGIC_CMD=$MAGIC_CMD
9123 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9125 for ac_dir in $ac_dummy; do
9126 IFS=$lt_save_ifs
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f "$ac_dir/file"; then
9129 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9130 if test -n "$file_magic_test_file"; then
9131 case $deplibs_check_method in
9132 "file_magic "*)
9133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9134 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9136 $EGREP "$file_magic_regex" > /dev/null; then
9137 :
9138 else
9139 cat <<_LT_EOF 1>&2
9140
9141*** Warning: the command libtool uses to detect shared libraries,
9142*** $file_magic_cmd, produces output that libtool cannot recognize.
9143*** The result is that libtool may fail to recognize shared libraries
9144*** as such. This will affect the creation of libtool libraries that
9145*** depend on shared libraries, but programs linked with such libtool
9146*** libraries will work regardless of this problem. Nevertheless, you
9147*** may want to report the problem to your system manager and/or to
9148*** bug-libtool@gnu.org
9149
9150_LT_EOF
9151 fi ;;
9152 esac
9153 fi
9154 break
9155 fi
9156 done
9157 IFS=$lt_save_ifs
9158 MAGIC_CMD=$lt_save_MAGIC_CMD
9159 ;;
9160esac
9161fi
9162
9163MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9164if test -n "$MAGIC_CMD"; then
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9166printf "%s\n" "$MAGIC_CMD" >&6; }
9167else
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169printf "%s\n" "no" >&6; }
9170fi
9171
9172
9173 else
9174 MAGIC_CMD=:
9175 fi
9176fi
9177
9178 fi
9179 ;;
9180esac
9181
9182# Use C for the default configuration in the libtool script
9183
9184lt_save_CC=$CC
9185ac_ext=c
9186ac_cpp='$CPP $CPPFLAGS'
9187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189ac_compiler_gnu=$ac_cv_c_compiler_gnu
9190
9191
9192# Source file extension for C test sources.
9193ac_ext=c
9194
9195# Object file extension for compiled C test sources.
9196objext=o
9197objext=$objext
9198
9199# Code to be used in simple compile tests
9200lt_simple_compile_test_code="int some_variable = 0;"
9201
9202# Code to be used in simple link tests
9203lt_simple_link_test_code='int main(){return(0);}'
9204
9205
9206
9207
9208
9209
9210
9211# If no C compiler was specified, use CC.
9212LTCC=${LTCC-"$CC"}
9213
9214# If no C compiler flags were specified, use CFLAGS.
9215LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9216
9217# Allow CC to be a program name with arguments.
9218compiler=$CC
9219
9220# Save the default compiler, since it gets overwritten when the other
9221# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9222compiler_DEFAULT=$CC
9223
9224# save warnings/boilerplate of simple test code
9225ac_outfile=conftest.$ac_objext
9226echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9228_lt_compiler_boilerplate=`cat conftest.err`
9229$RM conftest*
9230
9231ac_outfile=conftest.$ac_objext
9232echo "$lt_simple_link_test_code" >conftest.$ac_ext
9233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9234_lt_linker_boilerplate=`cat conftest.err`
9235$RM -r conftest*
9236
9237
9238## CAVEAT EMPTOR:
9239## There is no encapsulation within the following macros, do not change
9240## the running order or otherwise move them around unless you know exactly
9241## what you are doing...
9242if test -n "$compiler"; then
9243
9244lt_prog_compiler_no_builtin_flag=
9245
9246if test yes = "$GCC"; then
9247 case $cc_basename in
9248 nvcc*)
9249 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9250 *)
9251 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9252 esac
9253
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9255printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9256if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9257then :
9258 printf %s "(cached) " >&6
9259else $as_nop
9260 lt_cv_prog_compiler_rtti_exceptions=no
9261 ac_outfile=conftest.$ac_objext
9262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9264 # Insert the option either (1) after the last *FLAGS variable, or
9265 # (2) before a word containing "conftest.", or (3) at the end.
9266 # Note that $ac_compile itself does not contain backslashes and begins
9267 # with a dollar sign (not a hyphen), so the echo should work correctly.
9268 # The option is referenced via a variable to avoid confusing sed.
9269 lt_compile=`echo "$ac_compile" | $SED \
9270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272 -e 's:$: $lt_compiler_flag:'`
9273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9274 (eval "$lt_compile" 2>conftest.err)
9275 ac_status=$?
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 if (exit $ac_status) && test -s "$ac_outfile"; then
9279 # The compiler can only warn and ignore the option if not recognized
9280 # So say no if there are warnings other than the usual output.
9281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9284 lt_cv_prog_compiler_rtti_exceptions=yes
9285 fi
9286 fi
9287 $RM conftest*
9288
9289fi
9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9291printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9292
9293if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9295else
9296 :
9297fi
9298
9299fi
9300
9301
9302
9303
9304
9305
9306 lt_prog_compiler_wl=
9307lt_prog_compiler_pic=
9308lt_prog_compiler_static=
9309
9310
9311 if test yes = "$GCC"; then
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_static='-static'
9314
9315 case $host_os in
9316 aix*)
9317 # All AIX code is PIC.
9318 if test ia64 = "$host_cpu"; then
9319 # AIX 5 now supports IA64 processor
9320 lt_prog_compiler_static='-Bstatic'
9321 fi
9322 lt_prog_compiler_pic='-fPIC'
9323 ;;
9324
9325 amigaos*)
9326 case $host_cpu in
9327 powerpc)
9328 # see comment about AmigaOS4 .so support
9329 lt_prog_compiler_pic='-fPIC'
9330 ;;
9331 m68k)
9332 # FIXME: we need at least 68020 code to build shared libraries, but
9333 # adding the '-m68020' flag to GCC prevents building anything better,
9334 # like '-m68040'.
9335 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9336 ;;
9337 esac
9338 ;;
9339
9340 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9341 # PIC is the default for these OSes.
9342 ;;
9343
9344 mingw* | cygwin* | pw32* | os2* | cegcc*)
9345 # This hack is so that the source file can tell whether it is being
9346 # built for inclusion in a dll (and should export symbols for example).
9347 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9348 # (--disable-auto-import) libraries
9349 lt_prog_compiler_pic='-DDLL_EXPORT'
9350 case $host_os in
9351 os2*)
9352 lt_prog_compiler_static='$wl-static'
9353 ;;
9354 esac
9355 ;;
9356
9357 darwin* | rhapsody*)
9358 # PIC is the default on this platform
9359 # Common symbols not allowed in MH_DYLIB files
9360 lt_prog_compiler_pic='-fno-common'
9361 ;;
9362
9363 haiku*)
9364 # PIC is the default for Haiku.
9365 # The "-static" flag exists, but is broken.
9366 lt_prog_compiler_static=
9367 ;;
9368
9369 hpux*)
9370 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9371 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9372 # sets the default TLS model and affects inlining.
9373 case $host_cpu in
9374 hppa*64*)
9375 # +Z the default
9376 ;;
9377 *)
9378 lt_prog_compiler_pic='-fPIC'
9379 ;;
9380 esac
9381 ;;
9382
9383 interix[3-9]*)
9384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9385 # Instead, we relocate shared libraries at runtime.
9386 ;;
9387
9388 msdosdjgpp*)
9389 # Just because we use GCC doesn't mean we suddenly get shared libraries
9390 # on systems that don't support them.
9391 lt_prog_compiler_can_build_shared=no
9392 enable_shared=no
9393 ;;
9394
9395 *nto* | *qnx*)
9396 # QNX uses GNU C++, but need to define -shared option too, otherwise
9397 # it will coredump.
9398 lt_prog_compiler_pic='-fPIC -shared'
9399 ;;
9400
9401 sysv4*MP*)
9402 if test -d /usr/nec; then
9403 lt_prog_compiler_pic=-Kconform_pic
9404 fi
9405 ;;
9406
9407 *)
9408 lt_prog_compiler_pic='-fPIC'
9409 ;;
9410 esac
9411
9412 case $cc_basename in
9413 nvcc*) # Cuda Compiler Driver 2.2
9414 lt_prog_compiler_wl='-Xlinker '
9415 if test -n "$lt_prog_compiler_pic"; then
9416 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9417 fi
9418 ;;
9419 esac
9420 else
9421 # PORTME Check for flag to pass linker flags through the system compiler.
9422 case $host_os in
9423 aix*)
9424 lt_prog_compiler_wl='-Wl,'
9425 if test ia64 = "$host_cpu"; then
9426 # AIX 5 now supports IA64 processor
9427 lt_prog_compiler_static='-Bstatic'
9428 else
9429 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9430 fi
9431 ;;
9432
9433 darwin* | rhapsody*)
9434 # PIC is the default on this platform
9435 # Common symbols not allowed in MH_DYLIB files
9436 lt_prog_compiler_pic='-fno-common'
9437 case $cc_basename in
9438 nagfor*)
9439 # NAG Fortran compiler
9440 lt_prog_compiler_wl='-Wl,-Wl,,'
9441 lt_prog_compiler_pic='-PIC'
9442 lt_prog_compiler_static='-Bstatic'
9443 ;;
9444 esac
9445 ;;
9446
9447 mingw* | cygwin* | pw32* | os2* | cegcc*)
9448 # This hack is so that the source file can tell whether it is being
9449 # built for inclusion in a dll (and should export symbols for example).
9450 lt_prog_compiler_pic='-DDLL_EXPORT'
9451 case $host_os in
9452 os2*)
9453 lt_prog_compiler_static='$wl-static'
9454 ;;
9455 esac
9456 ;;
9457
9458 hpux9* | hpux10* | hpux11*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9461 # not for PA HP-UX.
9462 case $host_cpu in
9463 hppa*64*|ia64*)
9464 # +Z the default
9465 ;;
9466 *)
9467 lt_prog_compiler_pic='+Z'
9468 ;;
9469 esac
9470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9471 lt_prog_compiler_static='$wl-a ${wl}archive'
9472 ;;
9473
9474 irix5* | irix6* | nonstopux*)
9475 lt_prog_compiler_wl='-Wl,'
9476 # PIC (with -KPIC) is the default.
9477 lt_prog_compiler_static='-non_shared'
9478 ;;
9479
9480 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9481 case $cc_basename in
9482 # old Intel for x86_64, which still supported -KPIC.
9483 ecc*)
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='-KPIC'
9486 lt_prog_compiler_static='-static'
9487 ;;
9488 # icc used to be incompatible with GCC.
9489 # ICC 10 doesn't accept -KPIC any more.
9490 icc* | ifort*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-fPIC'
9493 lt_prog_compiler_static='-static'
9494 ;;
9495 # Lahey Fortran 8.1.
9496 lf95*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='--shared'
9499 lt_prog_compiler_static='--static'
9500 ;;
9501 nagfor*)
9502 # NAG Fortran compiler
9503 lt_prog_compiler_wl='-Wl,-Wl,,'
9504 lt_prog_compiler_pic='-PIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 ;;
9507 tcc*)
9508 # Fabrice Bellard et al's Tiny C Compiler
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-fPIC'
9511 lt_prog_compiler_static='-static'
9512 ;;
9513 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9514 # Portland Group compilers (*not* the Pentium gcc compiler,
9515 # which looks to be a dead project)
9516 lt_prog_compiler_wl='-Wl,'
9517 lt_prog_compiler_pic='-fpic'
9518 lt_prog_compiler_static='-Bstatic'
9519 ;;
9520 ccc*)
9521 lt_prog_compiler_wl='-Wl,'
9522 # All Alpha code is PIC.
9523 lt_prog_compiler_static='-non_shared'
9524 ;;
9525 xl* | bgxl* | bgf* | mpixl*)
9526 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-qpic'
9529 lt_prog_compiler_static='-qstaticlink'
9530 ;;
9531 *)
9532 case `$CC -V 2>&1 | $SED 5q` in
9533 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9534 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 lt_prog_compiler_wl=''
9538 ;;
9539 *Sun\ F* | *Sun*Fortran*)
9540 lt_prog_compiler_pic='-KPIC'
9541 lt_prog_compiler_static='-Bstatic'
9542 lt_prog_compiler_wl='-Qoption ld '
9543 ;;
9544 *Sun\ C*)
9545 # Sun C 5.9
9546 lt_prog_compiler_pic='-KPIC'
9547 lt_prog_compiler_static='-Bstatic'
9548 lt_prog_compiler_wl='-Wl,'
9549 ;;
9550 *Intel*\ [CF]*Compiler*)
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-fPIC'
9553 lt_prog_compiler_static='-static'
9554 ;;
9555 *Portland\ Group*)
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-fpic'
9558 lt_prog_compiler_static='-Bstatic'
9559 ;;
9560 esac
9561 ;;
9562 esac
9563 ;;
9564
9565 newsos6)
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-Bstatic'
9568 ;;
9569
9570 *nto* | *qnx*)
9571 # QNX uses GNU C++, but need to define -shared option too, otherwise
9572 # it will coredump.
9573 lt_prog_compiler_pic='-fPIC -shared'
9574 ;;
9575
9576 osf3* | osf4* | osf5*)
9577 lt_prog_compiler_wl='-Wl,'
9578 # All OSF/1 code is PIC.
9579 lt_prog_compiler_static='-non_shared'
9580 ;;
9581
9582 rdos*)
9583 lt_prog_compiler_static='-non_shared'
9584 ;;
9585
9586 solaris*)
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 case $cc_basename in
9590 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9591 lt_prog_compiler_wl='-Qoption ld ';;
9592 *)
9593 lt_prog_compiler_wl='-Wl,';;
9594 esac
9595 ;;
9596
9597 sunos4*)
9598 lt_prog_compiler_wl='-Qoption ld '
9599 lt_prog_compiler_pic='-PIC'
9600 lt_prog_compiler_static='-Bstatic'
9601 ;;
9602
9603 sysv4 | sysv4.2uw2* | sysv4.3*)
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-Bstatic'
9607 ;;
9608
9609 sysv4*MP*)
9610 if test -d /usr/nec; then
9611 lt_prog_compiler_pic='-Kconform_pic'
9612 lt_prog_compiler_static='-Bstatic'
9613 fi
9614 ;;
9615
9616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='-KPIC'
9619 lt_prog_compiler_static='-Bstatic'
9620 ;;
9621
9622 unicos*)
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_can_build_shared=no
9625 ;;
9626
9627 uts4*)
9628 lt_prog_compiler_pic='-pic'
9629 lt_prog_compiler_static='-Bstatic'
9630 ;;
9631
9632 *)
9633 lt_prog_compiler_can_build_shared=no
9634 ;;
9635 esac
9636 fi
9637
9638case $host_os in
9639 # For platforms that do not support PIC, -DPIC is meaningless:
9640 *djgpp*)
9641 lt_prog_compiler_pic=
9642 ;;
9643 *)
9644 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9645 ;;
9646esac
9647
9648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9649printf %s "checking for $compiler option to produce PIC... " >&6; }
9650if test ${lt_cv_prog_compiler_pic+y}
9651then :
9652 printf %s "(cached) " >&6
9653else $as_nop
9654 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9655fi
9656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9657printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9658lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9659
9660#
9661# Check to make sure the PIC flag actually works.
9662#
9663if test -n "$lt_prog_compiler_pic"; then
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9665printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9666if test ${lt_cv_prog_compiler_pic_works+y}
9667then :
9668 printf %s "(cached) " >&6
9669else $as_nop
9670 lt_cv_prog_compiler_pic_works=no
9671 ac_outfile=conftest.$ac_objext
9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9674 # Insert the option either (1) after the last *FLAGS variable, or
9675 # (2) before a word containing "conftest.", or (3) at the end.
9676 # Note that $ac_compile itself does not contain backslashes and begins
9677 # with a dollar sign (not a hyphen), so the echo should work correctly.
9678 # The option is referenced via a variable to avoid confusing sed.
9679 lt_compile=`echo "$ac_compile" | $SED \
9680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682 -e 's:$: $lt_compiler_flag:'`
9683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684 (eval "$lt_compile" 2>conftest.err)
9685 ac_status=$?
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 if (exit $ac_status) && test -s "$ac_outfile"; then
9689 # The compiler can only warn and ignore the option if not recognized
9690 # So say no if there are warnings other than the usual output.
9691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9694 lt_cv_prog_compiler_pic_works=yes
9695 fi
9696 fi
9697 $RM conftest*
9698
9699fi
9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9701printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9702
9703if test yes = "$lt_cv_prog_compiler_pic_works"; then
9704 case $lt_prog_compiler_pic in
9705 "" | " "*) ;;
9706 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9707 esac
9708else
9709 lt_prog_compiler_pic=
9710 lt_prog_compiler_can_build_shared=no
9711fi
9712
9713fi
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725#
9726# Check to make sure the static flag actually works.
9727#
9728wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9730printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9731if test ${lt_cv_prog_compiler_static_works+y}
9732then :
9733 printf %s "(cached) " >&6
9734else $as_nop
9735 lt_cv_prog_compiler_static_works=no
9736 save_LDFLAGS=$LDFLAGS
9737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9740 # The linker can only warn and ignore the option if not recognized
9741 # So say no if there are warnings
9742 if test -s conftest.err; then
9743 # Append any errors to the config.log.
9744 cat conftest.err 1>&5
9745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747 if diff conftest.exp conftest.er2 >/dev/null; then
9748 lt_cv_prog_compiler_static_works=yes
9749 fi
9750 else
9751 lt_cv_prog_compiler_static_works=yes
9752 fi
9753 fi
9754 $RM -r conftest*
9755 LDFLAGS=$save_LDFLAGS
9756
9757fi
9758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9759printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9760
9761if test yes = "$lt_cv_prog_compiler_static_works"; then
9762 :
9763else
9764 lt_prog_compiler_static=
9765fi
9766
9767
9768
9769
9770
9771
9772
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9774printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9775if test ${lt_cv_prog_compiler_c_o+y}
9776then :
9777 printf %s "(cached) " >&6
9778else $as_nop
9779 lt_cv_prog_compiler_c_o=no
9780 $RM -r conftest 2>/dev/null
9781 mkdir conftest
9782 cd conftest
9783 mkdir out
9784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785
9786 lt_compiler_flag="-o out/conftest2.$ac_objext"
9787 # Insert the option either (1) after the last *FLAGS variable, or
9788 # (2) before a word containing "conftest.", or (3) at the end.
9789 # Note that $ac_compile itself does not contain backslashes and begins
9790 # with a dollar sign (not a hyphen), so the echo should work correctly.
9791 lt_compile=`echo "$ac_compile" | $SED \
9792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9794 -e 's:$: $lt_compiler_flag:'`
9795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9796 (eval "$lt_compile" 2>out/conftest.err)
9797 ac_status=$?
9798 cat out/conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9801 then
9802 # The compiler can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9807 lt_cv_prog_compiler_c_o=yes
9808 fi
9809 fi
9810 chmod u+w . 2>&5
9811 $RM conftest*
9812 # SGI C++ compiler will create directory out/ii_files/ for
9813 # template instantiation
9814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9815 $RM out/* && rmdir out
9816 cd ..
9817 $RM -r conftest
9818 $RM conftest*
9819
9820fi
9821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9822printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9823
9824
9825
9826
9827
9828
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9830printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9831if test ${lt_cv_prog_compiler_c_o+y}
9832then :
9833 printf %s "(cached) " >&6
9834else $as_nop
9835 lt_cv_prog_compiler_c_o=no
9836 $RM -r conftest 2>/dev/null
9837 mkdir conftest
9838 cd conftest
9839 mkdir out
9840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9841
9842 lt_compiler_flag="-o out/conftest2.$ac_objext"
9843 # Insert the option either (1) after the last *FLAGS variable, or
9844 # (2) before a word containing "conftest.", or (3) at the end.
9845 # Note that $ac_compile itself does not contain backslashes and begins
9846 # with a dollar sign (not a hyphen), so the echo should work correctly.
9847 lt_compile=`echo "$ac_compile" | $SED \
9848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850 -e 's:$: $lt_compiler_flag:'`
9851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9852 (eval "$lt_compile" 2>out/conftest.err)
9853 ac_status=$?
9854 cat out/conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9857 then
9858 # The compiler can only warn and ignore the option if not recognized
9859 # So say no if there are warnings
9860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9863 lt_cv_prog_compiler_c_o=yes
9864 fi
9865 fi
9866 chmod u+w . 2>&5
9867 $RM conftest*
9868 # SGI C++ compiler will create directory out/ii_files/ for
9869 # template instantiation
9870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9871 $RM out/* && rmdir out
9872 cd ..
9873 $RM -r conftest
9874 $RM conftest*
9875
9876fi
9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9878printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9879
9880
9881
9882
9883hard_links=nottested
9884if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9885 # do not overwrite the value of need_locks provided by the user
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9887printf %s "checking if we can lock with hard links... " >&6; }
9888 hard_links=yes
9889 $RM conftest*
9890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9891 touch conftest.a
9892 ln conftest.a conftest.b 2>&5 || hard_links=no
9893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9895printf "%s\n" "$hard_links" >&6; }
9896 if test no = "$hard_links"; then
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9898printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9899 need_locks=warn
9900 fi
9901else
9902 need_locks=no
9903fi
9904
9905
9906
9907
9908
9909
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9911printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9912
9913 runpath_var=
9914 allow_undefined_flag=
9915 always_export_symbols=no
9916 archive_cmds=
9917 archive_expsym_cmds=
9918 compiler_needs_object=no
9919 enable_shared_with_static_runtimes=no
9920 export_dynamic_flag_spec=
9921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9922 hardcode_automatic=no
9923 hardcode_direct=no
9924 hardcode_direct_absolute=no
9925 hardcode_libdir_flag_spec=
9926 hardcode_libdir_separator=
9927 hardcode_minus_L=no
9928 hardcode_shlibpath_var=unsupported
9929 inherit_rpath=no
9930 link_all_deplibs=unknown
9931 module_cmds=
9932 module_expsym_cmds=
9933 old_archive_from_new_cmds=
9934 old_archive_from_expsyms_cmds=
9935 thread_safe_flag_spec=
9936 whole_archive_flag_spec=
9937 # include_expsyms should be a list of space-separated symbols to be *always*
9938 # included in the symbol list
9939 include_expsyms=
9940 # exclude_expsyms can be an extended regexp of symbols to exclude
9941 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9942 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9943 # as well as any symbol that contains 'd'.
9944 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9946 # platforms (ab)use it in PIC code, but their linkers get confused if
9947 # the symbol is explicitly referenced. Since portable code cannot
9948 # rely on this symbol name, it's probably fine to never include it in
9949 # preloaded symbol tables.
9950 # Exclude shared library initialization/finalization symbols.
9951 extract_expsyms_cmds=
9952
9953 case $host_os in
9954 cygwin* | mingw* | pw32* | cegcc*)
9955 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9956 # When not using gcc, we currently assume that we are using
9957 # Microsoft Visual C++ or Intel C++ Compiler.
9958 if test yes != "$GCC"; then
9959 with_gnu_ld=no
9960 fi
9961 ;;
9962 interix*)
9963 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9964 with_gnu_ld=yes
9965 ;;
9966 openbsd* | bitrig*)
9967 with_gnu_ld=no
9968 ;;
9969 esac
9970
9971 ld_shlibs=yes
9972
9973 # On some targets, GNU ld is compatible enough with the native linker
9974 # that we're better off using the native interface for both.
9975 lt_use_gnu_ld_interface=no
9976 if test yes = "$with_gnu_ld"; then
9977 case $host_os in
9978 aix*)
9979 # The AIX port of GNU ld has always aspired to compatibility
9980 # with the native linker. However, as the warning in the GNU ld
9981 # block says, versions before 2.19.5* couldn't really create working
9982 # shared libraries, regardless of the interface used.
9983 case `$LD -v 2>&1` in
9984 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9985 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9986 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9987 *)
9988 lt_use_gnu_ld_interface=yes
9989 ;;
9990 esac
9991 ;;
9992 *)
9993 lt_use_gnu_ld_interface=yes
9994 ;;
9995 esac
9996 fi
9997
9998 if test yes = "$lt_use_gnu_ld_interface"; then
9999 # If archive_cmds runs LD, not CC, wlarc should be empty
10000 wlarc='$wl'
10001
10002 # Set some defaults for GNU ld with shared library support. These
10003 # are reset later if shared libraries are not supported. Putting them
10004 # here allows them to be overridden if necessary.
10005 runpath_var=LD_RUN_PATH
10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10007 export_dynamic_flag_spec='$wl--export-dynamic'
10008 # ancient GNU ld didn't support --whole-archive et. al.
10009 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10010 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10011 else
10012 whole_archive_flag_spec=
10013 fi
10014 supports_anon_versioning=no
10015 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10016 *GNU\ gold*) supports_anon_versioning=yes ;;
10017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10020 *\ 2.11.*) ;; # other 2.11 versions
10021 *) supports_anon_versioning=yes ;;
10022 esac
10023
10024 # See if GNU ld supports shared libraries.
10025 case $host_os in
10026 aix[3-9]*)
10027 # On AIX/PPC, the GNU linker is very broken
10028 if test ia64 != "$host_cpu"; then
10029 ld_shlibs=no
10030 cat <<_LT_EOF 1>&2
10031
10032*** Warning: the GNU linker, at least up to release 2.19, is reported
10033*** to be unable to reliably create shared libraries on AIX.
10034*** Therefore, libtool is disabling shared libraries support. If you
10035*** really care for shared libraries, you may want to install binutils
10036*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10037*** You will then need to restart the configuration process.
10038
10039_LT_EOF
10040 fi
10041 ;;
10042
10043 amigaos*)
10044 case $host_cpu in
10045 powerpc)
10046 # see comment about AmigaOS4 .so support
10047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10048 archive_expsym_cmds=''
10049 ;;
10050 m68k)
10051 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_minus_L=yes
10054 ;;
10055 esac
10056 ;;
10057
10058 beos*)
10059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10060 allow_undefined_flag=unsupported
10061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10062 # support --undefined. This deserves some investigation. FIXME
10063 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10064 else
10065 ld_shlibs=no
10066 fi
10067 ;;
10068
10069 cygwin* | mingw* | pw32* | cegcc*)
10070 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10071 # as there is no search path for DLLs.
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 export_dynamic_flag_spec='$wl--export-all-symbols'
10074 allow_undefined_flag=unsupported
10075 always_export_symbols=no
10076 enable_shared_with_static_runtimes=yes
10077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10078 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10079
10080 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10082 # If the export-symbols file already is a .def file, use it as
10083 # is; otherwise, prepend EXPORTS...
10084 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10085 cp $export_symbols $output_objdir/$soname.def;
10086 else
10087 echo EXPORTS > $output_objdir/$soname.def;
10088 cat $export_symbols >> $output_objdir/$soname.def;
10089 fi~
10090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10091 else
10092 ld_shlibs=no
10093 fi
10094 ;;
10095
10096 haiku*)
10097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10098 link_all_deplibs=yes
10099 ;;
10100
10101 os2*)
10102 hardcode_libdir_flag_spec='-L$libdir'
10103 hardcode_minus_L=yes
10104 allow_undefined_flag=unsupported
10105 shrext_cmds=.dll
10106 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10107 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10108 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10109 $ECHO EXPORTS >> $output_objdir/$libname.def~
10110 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10111 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10112 emximp -o $lib $output_objdir/$libname.def'
10113 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10116 $ECHO EXPORTS >> $output_objdir/$libname.def~
10117 prefix_cmds="$SED"~
10118 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10119 prefix_cmds="$prefix_cmds -e 1d";
10120 fi~
10121 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10122 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10123 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10124 emximp -o $lib $output_objdir/$libname.def'
10125 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10126 enable_shared_with_static_runtimes=yes
10127 file_list_spec='@'
10128 ;;
10129
10130 interix[3-9]*)
10131 hardcode_direct=no
10132 hardcode_shlibpath_var=no
10133 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10134 export_dynamic_flag_spec='$wl-E'
10135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10136 # Instead, shared libraries are loaded at an image base (0x10000000 by
10137 # default) and relocated if they conflict, which is a slow very memory
10138 # consuming and fragmenting process. To avoid this, we pick a random,
10139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10142 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10143 ;;
10144
10145 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10146 tmp_diet=no
10147 if test linux-dietlibc = "$host_os"; then
10148 case $cc_basename in
10149 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10150 esac
10151 fi
10152 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10153 && test no = "$tmp_diet"
10154 then
10155 tmp_addflag=' $pic_flag'
10156 tmp_sharedflag='-shared'
10157 case $cc_basename,$host_cpu in
10158 pgcc*) # Portland Group C compiler
10159 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10160 tmp_addflag=' $pic_flag'
10161 ;;
10162 pgf77* | pgf90* | pgf95* | pgfortran*)
10163 # Portland Group f77 and f90 compilers
10164 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10165 tmp_addflag=' $pic_flag -Mnomain' ;;
10166 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10167 tmp_addflag=' -i_dynamic' ;;
10168 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10169 tmp_addflag=' -i_dynamic -nofor_main' ;;
10170 ifc* | ifort*) # Intel Fortran compiler
10171 tmp_addflag=' -nofor_main' ;;
10172 lf95*) # Lahey Fortran 8.1
10173 whole_archive_flag_spec=
10174 tmp_sharedflag='--shared' ;;
10175 nagfor*) # NAGFOR 5.3
10176 tmp_sharedflag='-Wl,-shared' ;;
10177 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10178 tmp_sharedflag='-qmkshrobj'
10179 tmp_addflag= ;;
10180 nvcc*) # Cuda Compiler Driver 2.2
10181 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10182 compiler_needs_object=yes
10183 ;;
10184 esac
10185 case `$CC -V 2>&1 | $SED 5q` in
10186 *Sun\ C*) # Sun C 5.9
10187 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10188 compiler_needs_object=yes
10189 tmp_sharedflag='-G' ;;
10190 *Sun\ F*) # Sun Fortran 8.3
10191 tmp_sharedflag='-G' ;;
10192 esac
10193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10194
10195 if test yes = "$supports_anon_versioning"; then
10196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10197 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10198 echo "local: *; };" >> $output_objdir/$libname.ver~
10199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10200 fi
10201
10202 case $cc_basename in
10203 tcc*)
10204 export_dynamic_flag_spec='-rdynamic'
10205 ;;
10206 xlf* | bgf* | bgxlf* | mpixlf*)
10207 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10208 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10210 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10211 if test yes = "$supports_anon_versioning"; then
10212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10213 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10214 echo "local: *; };" >> $output_objdir/$libname.ver~
10215 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10216 fi
10217 ;;
10218 esac
10219 else
10220 ld_shlibs=no
10221 fi
10222 ;;
10223
10224 netbsd*)
10225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10226 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10227 wlarc=
10228 else
10229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10231 fi
10232 ;;
10233
10234 solaris*)
10235 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10236 ld_shlibs=no
10237 cat <<_LT_EOF 1>&2
10238
10239*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10240*** create shared libraries on Solaris systems. Therefore, libtool
10241*** is disabling shared libraries support. We urge you to upgrade GNU
10242*** binutils to release 2.9.1 or newer. Another option is to modify
10243*** your PATH or compiler configuration so that the native linker is
10244*** used, and then restart.
10245
10246_LT_EOF
10247 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10249 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10250 else
10251 ld_shlibs=no
10252 fi
10253 ;;
10254
10255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10256 case `$LD -v 2>&1` in
10257 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10258 ld_shlibs=no
10259 cat <<_LT_EOF 1>&2
10260
10261*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10262*** reliably create shared libraries on SCO systems. Therefore, libtool
10263*** is disabling shared libraries support. We urge you to upgrade GNU
10264*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10265*** your PATH or compiler configuration so that the native linker is
10266*** used, and then restart.
10267
10268_LT_EOF
10269 ;;
10270 *)
10271 # For security reasons, it is highly recommended that you always
10272 # use absolute paths for naming shared libraries, and exclude the
10273 # DT_RUNPATH tag from executables and libraries. But doing so
10274 # requires that you compile everything twice, which is a pain.
10275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10279 else
10280 ld_shlibs=no
10281 fi
10282 ;;
10283 esac
10284 ;;
10285
10286 sunos4*)
10287 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10288 wlarc=
10289 hardcode_direct=yes
10290 hardcode_shlibpath_var=no
10291 ;;
10292
10293 *)
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10296 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10297 else
10298 ld_shlibs=no
10299 fi
10300 ;;
10301 esac
10302
10303 if test no = "$ld_shlibs"; then
10304 runpath_var=
10305 hardcode_libdir_flag_spec=
10306 export_dynamic_flag_spec=
10307 whole_archive_flag_spec=
10308 fi
10309 else
10310 # PORTME fill in a description of your system's linker (not GNU ld)
10311 case $host_os in
10312 aix3*)
10313 allow_undefined_flag=unsupported
10314 always_export_symbols=yes
10315 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10316 # Note: this linker hardcodes the directories in LIBPATH if there
10317 # are no directories specified by -L.
10318 hardcode_minus_L=yes
10319 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10320 # Neither direct hardcoding nor static linking is supported with a
10321 # broken collect2.
10322 hardcode_direct=unsupported
10323 fi
10324 ;;
10325
10326 aix[4-9]*)
10327 if test ia64 = "$host_cpu"; then
10328 # On IA64, the linker does run time linking by default, so we don't
10329 # have to do anything special.
10330 aix_use_runtimelinking=no
10331 exp_sym_flag='-Bexport'
10332 no_entry_flag=
10333 else
10334 # If we're using GNU nm, then we don't want the "-C" option.
10335 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10336 # Without the "-l" option, or with the "-B" option, AIX nm treats
10337 # weak defined symbols like other global defined symbols, whereas
10338 # GNU nm marks them as "W".
10339 # While the 'weak' keyword is ignored in the Export File, we need
10340 # it in the Import File for the 'aix-soname' feature, so we have
10341 # to replace the "-B" option with "-P" for AIX nm.
10342 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10343 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10344 else
10345 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10346 fi
10347 aix_use_runtimelinking=no
10348
10349 # Test if we are trying to use run time linking or normal
10350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10351 # have runtime linking enabled, and use it for executables.
10352 # For shared libraries, we enable/disable runtime linking
10353 # depending on the kind of the shared library created -
10354 # when "with_aix_soname,aix_use_runtimelinking" is:
10355 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10356 # "aix,yes" lib.so shared, rtl:yes, for executables
10357 # lib.a static archive
10358 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10359 # lib.a(lib.so.V) shared, rtl:no, for executables
10360 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10361 # lib.a(lib.so.V) shared, rtl:no
10362 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10363 # lib.a static archive
10364 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10365 for ld_flag in $LDFLAGS; do
10366 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10367 aix_use_runtimelinking=yes
10368 break
10369 fi
10370 done
10371 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10372 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10373 # so we don't have lib.a shared libs to link our executables.
10374 # We have to force runtime linking in this case.
10375 aix_use_runtimelinking=yes
10376 LDFLAGS="$LDFLAGS -Wl,-brtl"
10377 fi
10378 ;;
10379 esac
10380
10381 exp_sym_flag='-bexport'
10382 no_entry_flag='-bnoentry'
10383 fi
10384
10385 # When large executables or shared objects are built, AIX ld can
10386 # have problems creating the table of contents. If linking a library
10387 # or program results in "error TOC overflow" add -mminimal-toc to
10388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10390
10391 archive_cmds=''
10392 hardcode_direct=yes
10393 hardcode_direct_absolute=yes
10394 hardcode_libdir_separator=':'
10395 link_all_deplibs=yes
10396 file_list_spec='$wl-f,'
10397 case $with_aix_soname,$aix_use_runtimelinking in
10398 aix,*) ;; # traditional, no import file
10399 svr4,* | *,yes) # use import file
10400 # The Import File defines what to hardcode.
10401 hardcode_direct=no
10402 hardcode_direct_absolute=no
10403 ;;
10404 esac
10405
10406 if test yes = "$GCC"; then
10407 case $host_os in aix4.[012]|aix4.[012].*)
10408 # We only want to do this on AIX 4.2 and lower, the check
10409 # below for broken collect2 doesn't work under 4.3+
10410 collect2name=`$CC -print-prog-name=collect2`
10411 if test -f "$collect2name" &&
10412 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10413 then
10414 # We have reworked collect2
10415 :
10416 else
10417 # We have old collect2
10418 hardcode_direct=unsupported
10419 # It fails to find uninstalled libraries when the uninstalled
10420 # path is not listed in the libpath. Setting hardcode_minus_L
10421 # to unsupported forces relinking
10422 hardcode_minus_L=yes
10423 hardcode_libdir_flag_spec='-L$libdir'
10424 hardcode_libdir_separator=
10425 fi
10426 ;;
10427 esac
10428 shared_flag='-shared'
10429 if test yes = "$aix_use_runtimelinking"; then
10430 shared_flag="$shared_flag "'$wl-G'
10431 fi
10432 # Need to ensure runtime linking is disabled for the traditional
10433 # shared library, or the linker may eventually find shared libraries
10434 # /with/ Import File - we do not want to mix them.
10435 shared_flag_aix='-shared'
10436 shared_flag_svr4='-shared $wl-G'
10437 else
10438 # not using gcc
10439 if test ia64 = "$host_cpu"; then
10440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10441 # chokes on -Wl,-G. The following line is correct:
10442 shared_flag='-G'
10443 else
10444 if test yes = "$aix_use_runtimelinking"; then
10445 shared_flag='$wl-G'
10446 else
10447 shared_flag='$wl-bM:SRE'
10448 fi
10449 shared_flag_aix='$wl-bM:SRE'
10450 shared_flag_svr4='$wl-G'
10451 fi
10452 fi
10453
10454 export_dynamic_flag_spec='$wl-bexpall'
10455 # It seems that -bexpall does not export symbols beginning with
10456 # underscore (_), so it is better to generate a list of symbols to export.
10457 always_export_symbols=yes
10458 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10459 # Warning - without using the other runtime loading flags (-brtl),
10460 # -berok will link without error, but may produce a broken library.
10461 allow_undefined_flag='-berok'
10462 # Determine the default libpath from the value encoded in an
10463 # empty executable.
10464 if test set = "${lt_cv_aix_libpath+set}"; then
10465 aix_libpath=$lt_cv_aix_libpath
10466else
10467 if test ${lt_cv_aix_libpath_+y}
10468then :
10469 printf %s "(cached) " >&6
10470else $as_nop
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472/* end confdefs.h. */
10473
10474int
10475main (void)
10476{
10477
10478 ;
10479 return 0;
10480}
10481_ACEOF
10482if ac_fn_c_try_link "$LINENO"
10483then :
10484
10485 lt_aix_libpath_sed='
10486 /Import File Strings/,/^$/ {
10487 /^0/ {
10488 s/^0 *\([^ ]*\) *$/\1/
10489 p
10490 }
10491 }'
10492 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 # Check for a 64-bit object if we didn't find anything.
10494 if test -z "$lt_cv_aix_libpath_"; then
10495 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10496 fi
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam \
10499 conftest$ac_exeext conftest.$ac_ext
10500 if test -z "$lt_cv_aix_libpath_"; then
10501 lt_cv_aix_libpath_=/usr/lib:/lib
10502 fi
10503
10504fi
10505
10506 aix_libpath=$lt_cv_aix_libpath_
10507fi
10508
10509 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10510 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10511 else
10512 if test ia64 = "$host_cpu"; then
10513 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10514 allow_undefined_flag="-z nodefs"
10515 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10516 else
10517 # Determine the default libpath from the value encoded in an
10518 # empty executable.
10519 if test set = "${lt_cv_aix_libpath+set}"; then
10520 aix_libpath=$lt_cv_aix_libpath
10521else
10522 if test ${lt_cv_aix_libpath_+y}
10523then :
10524 printf %s "(cached) " >&6
10525else $as_nop
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h. */
10528
10529int
10530main (void)
10531{
10532
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537if ac_fn_c_try_link "$LINENO"
10538then :
10539
10540 lt_aix_libpath_sed='
10541 /Import File Strings/,/^$/ {
10542 /^0/ {
10543 s/^0 *\([^ ]*\) *$/\1/
10544 p
10545 }
10546 }'
10547 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 # Check for a 64-bit object if we didn't find anything.
10549 if test -z "$lt_cv_aix_libpath_"; then
10550 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 fi
10552fi
10553rm -f core conftest.err conftest.$ac_objext conftest.beam \
10554 conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$lt_cv_aix_libpath_"; then
10556 lt_cv_aix_libpath_=/usr/lib:/lib
10557 fi
10558
10559fi
10560
10561 aix_libpath=$lt_cv_aix_libpath_
10562fi
10563
10564 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10565 # Warning - without using the other run time loading flags,
10566 # -berok will link without error, but may produce a broken library.
10567 no_undefined_flag=' $wl-bernotok'
10568 allow_undefined_flag=' $wl-berok'
10569 if test yes = "$with_gnu_ld"; then
10570 # We only use this code for GNU lds that support --whole-archive.
10571 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10572 else
10573 # Exported symbols can be pulled into shared objects from archives
10574 whole_archive_flag_spec='$convenience'
10575 fi
10576 archive_cmds_need_lc=yes
10577 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10578 # -brtl affects multiple linker settings, -berok does not and is overridden later
10579 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10580 if test svr4 != "$with_aix_soname"; then
10581 # This is similar to how AIX traditionally builds its shared libraries.
10582 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10583 fi
10584 if test aix != "$with_aix_soname"; then
10585 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10586 else
10587 # used by -dlpreopen to get the symbols
10588 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10589 fi
10590 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10591 fi
10592 fi
10593 ;;
10594
10595 amigaos*)
10596 case $host_cpu in
10597 powerpc)
10598 # see comment about AmigaOS4 .so support
10599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10600 archive_expsym_cmds=''
10601 ;;
10602 m68k)
10603 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10604 hardcode_libdir_flag_spec='-L$libdir'
10605 hardcode_minus_L=yes
10606 ;;
10607 esac
10608 ;;
10609
10610 bsdi[45]*)
10611 export_dynamic_flag_spec=-rdynamic
10612 ;;
10613
10614 cygwin* | mingw* | pw32* | cegcc*)
10615 # When not using gcc, we currently assume that we are using
10616 # Microsoft Visual C++ or Intel C++ Compiler.
10617 # hardcode_libdir_flag_spec is actually meaningless, as there is
10618 # no search path for DLLs.
10619 case $cc_basename in
10620 cl* | icl*)
10621 # Native MSVC or ICC
10622 hardcode_libdir_flag_spec=' '
10623 allow_undefined_flag=unsupported
10624 always_export_symbols=yes
10625 file_list_spec='@'
10626 # Tell ltmain to make .lib files, not .a files.
10627 libext=lib
10628 # Tell ltmain to make .dll files, not .so files.
10629 shrext_cmds=.dll
10630 # FIXME: Setting linknames here is a bad hack.
10631 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10632 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10633 cp "$export_symbols" "$output_objdir/$soname.def";
10634 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10635 else
10636 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10637 fi~
10638 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10639 linknames='
10640 # The linker will not automatically build a static lib if we build a DLL.
10641 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10642 enable_shared_with_static_runtimes=yes
10643 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10645 # Don't use ranlib
10646 old_postinstall_cmds='chmod 644 $oldlib'
10647 postlink_cmds='lt_outputfile="@OUTPUT@"~
10648 lt_tool_outputfile="@TOOL_OUTPUT@"~
10649 case $lt_outputfile in
10650 *.exe|*.EXE) ;;
10651 *)
10652 lt_outputfile=$lt_outputfile.exe
10653 lt_tool_outputfile=$lt_tool_outputfile.exe
10654 ;;
10655 esac~
10656 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10657 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10658 $RM "$lt_outputfile.manifest";
10659 fi'
10660 ;;
10661 *)
10662 # Assume MSVC and ICC wrapper
10663 hardcode_libdir_flag_spec=' '
10664 allow_undefined_flag=unsupported
10665 # Tell ltmain to make .lib files, not .a files.
10666 libext=lib
10667 # Tell ltmain to make .dll files, not .so files.
10668 shrext_cmds=.dll
10669 # FIXME: Setting linknames here is a bad hack.
10670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10671 # The linker will automatically build a .lib file if we build a DLL.
10672 old_archive_from_new_cmds='true'
10673 # FIXME: Should let the user specify the lib program.
10674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10675 enable_shared_with_static_runtimes=yes
10676 ;;
10677 esac
10678 ;;
10679
10680 darwin* | rhapsody*)
10681
10682
10683 archive_cmds_need_lc=no
10684 hardcode_direct=no
10685 hardcode_automatic=yes
10686 hardcode_shlibpath_var=unsupported
10687 if test yes = "$lt_cv_ld_force_load"; then
10688 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10689
10690 else
10691 whole_archive_flag_spec=''
10692 fi
10693 link_all_deplibs=yes
10694 allow_undefined_flag=$_lt_dar_allow_undefined
10695 case $cc_basename in
10696 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10697 *) _lt_dar_can_shared=$GCC ;;
10698 esac
10699 if test yes = "$_lt_dar_can_shared"; then
10700 output_verbose_link_cmd=func_echo_all
10701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10703 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10704 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10705
10706 else
10707 ld_shlibs=no
10708 fi
10709
10710 ;;
10711
10712 dgux*)
10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 hardcode_libdir_flag_spec='-L$libdir'
10715 hardcode_shlibpath_var=no
10716 ;;
10717
10718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10719 # support. Future versions do this automatically, but an explicit c++rt0.o
10720 # does not break anything, and helps significantly (at the cost of a little
10721 # extra space).
10722 freebsd2.2*)
10723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10724 hardcode_libdir_flag_spec='-R$libdir'
10725 hardcode_direct=yes
10726 hardcode_shlibpath_var=no
10727 ;;
10728
10729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10730 freebsd2.*)
10731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10732 hardcode_direct=yes
10733 hardcode_minus_L=yes
10734 hardcode_shlibpath_var=no
10735 ;;
10736
10737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10738 freebsd* | dragonfly* | midnightbsd*)
10739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740 hardcode_libdir_flag_spec='-R$libdir'
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10743 ;;
10744
10745 hpux9*)
10746 if test yes = "$GCC"; then
10747 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10748 else
10749 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10750 fi
10751 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10752 hardcode_libdir_separator=:
10753 hardcode_direct=yes
10754
10755 # hardcode_minus_L: Not really in the search PATH,
10756 # but as the default location of the library.
10757 hardcode_minus_L=yes
10758 export_dynamic_flag_spec='$wl-E'
10759 ;;
10760
10761 hpux10*)
10762 if test yes,no = "$GCC,$with_gnu_ld"; then
10763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10764 else
10765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10766 fi
10767 if test no = "$with_gnu_ld"; then
10768 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10769 hardcode_libdir_separator=:
10770 hardcode_direct=yes
10771 hardcode_direct_absolute=yes
10772 export_dynamic_flag_spec='$wl-E'
10773 # hardcode_minus_L: Not really in the search PATH,
10774 # but as the default location of the library.
10775 hardcode_minus_L=yes
10776 fi
10777 ;;
10778
10779 hpux11*)
10780 if test yes,no = "$GCC,$with_gnu_ld"; then
10781 case $host_cpu in
10782 hppa*64*)
10783 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 ;;
10785 ia64*)
10786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10787 ;;
10788 *)
10789 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10790 ;;
10791 esac
10792 else
10793 case $host_cpu in
10794 hppa*64*)
10795 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 ;;
10797 ia64*)
10798 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10799 ;;
10800 *)
10801
10802 # Older versions of the 11.00 compiler do not understand -b yet
10803 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10805printf %s "checking if $CC understands -b... " >&6; }
10806if test ${lt_cv_prog_compiler__b+y}
10807then :
10808 printf %s "(cached) " >&6
10809else $as_nop
10810 lt_cv_prog_compiler__b=no
10811 save_LDFLAGS=$LDFLAGS
10812 LDFLAGS="$LDFLAGS -b"
10813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815 # The linker can only warn and ignore the option if not recognized
10816 # So say no if there are warnings
10817 if test -s conftest.err; then
10818 # Append any errors to the config.log.
10819 cat conftest.err 1>&5
10820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822 if diff conftest.exp conftest.er2 >/dev/null; then
10823 lt_cv_prog_compiler__b=yes
10824 fi
10825 else
10826 lt_cv_prog_compiler__b=yes
10827 fi
10828 fi
10829 $RM -r conftest*
10830 LDFLAGS=$save_LDFLAGS
10831
10832fi
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10834printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10835
10836if test yes = "$lt_cv_prog_compiler__b"; then
10837 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10838else
10839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10840fi
10841
10842 ;;
10843 esac
10844 fi
10845 if test no = "$with_gnu_ld"; then
10846 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10847 hardcode_libdir_separator=:
10848
10849 case $host_cpu in
10850 hppa*64*|ia64*)
10851 hardcode_direct=no
10852 hardcode_shlibpath_var=no
10853 ;;
10854 *)
10855 hardcode_direct=yes
10856 hardcode_direct_absolute=yes
10857 export_dynamic_flag_spec='$wl-E'
10858
10859 # hardcode_minus_L: Not really in the search PATH,
10860 # but as the default location of the library.
10861 hardcode_minus_L=yes
10862 ;;
10863 esac
10864 fi
10865 ;;
10866
10867 irix5* | irix6* | nonstopux*)
10868 if test yes = "$GCC"; then
10869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10870 # Try to use the -exported_symbol ld option, if it does not
10871 # work, assume that -exports_file does not work either and
10872 # implicitly export all symbols.
10873 # This should be the same for all languages, so no per-tag cache variable.
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10875printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10876if test ${lt_cv_irix_exported_symbol+y}
10877then :
10878 printf %s "(cached) " >&6
10879else $as_nop
10880 save_LDFLAGS=$LDFLAGS
10881 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h. */
10884int foo (void) { return 0; }
10885_ACEOF
10886if ac_fn_c_try_link "$LINENO"
10887then :
10888 lt_cv_irix_exported_symbol=yes
10889else $as_nop
10890 lt_cv_irix_exported_symbol=no
10891fi
10892rm -f core conftest.err conftest.$ac_objext conftest.beam \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LDFLAGS=$save_LDFLAGS
10895fi
10896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10897printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10898 if test yes = "$lt_cv_irix_exported_symbol"; then
10899 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10900 fi
10901 else
10902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10904 fi
10905 archive_cmds_need_lc='no'
10906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10907 hardcode_libdir_separator=:
10908 inherit_rpath=yes
10909 link_all_deplibs=yes
10910 ;;
10911
10912 linux*)
10913 case $cc_basename in
10914 tcc*)
10915 # Fabrice Bellard et al's Tiny C Compiler
10916 ld_shlibs=yes
10917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10918 ;;
10919 esac
10920 ;;
10921
10922 netbsd*)
10923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10925 else
10926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10927 fi
10928 hardcode_libdir_flag_spec='-R$libdir'
10929 hardcode_direct=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 newsos6)
10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_direct=yes
10936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10937 hardcode_libdir_separator=:
10938 hardcode_shlibpath_var=no
10939 ;;
10940
10941 *nto* | *qnx*)
10942 ;;
10943
10944 openbsd* | bitrig*)
10945 if test -f /usr/libexec/ld.so; then
10946 hardcode_direct=yes
10947 hardcode_shlibpath_var=no
10948 hardcode_direct_absolute=yes
10949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10951 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10952 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10953 export_dynamic_flag_spec='$wl-E'
10954 else
10955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10956 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10957 fi
10958 else
10959 ld_shlibs=no
10960 fi
10961 ;;
10962
10963 os2*)
10964 hardcode_libdir_flag_spec='-L$libdir'
10965 hardcode_minus_L=yes
10966 allow_undefined_flag=unsupported
10967 shrext_cmds=.dll
10968 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10969 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10970 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10971 $ECHO EXPORTS >> $output_objdir/$libname.def~
10972 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10973 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10974 emximp -o $lib $output_objdir/$libname.def'
10975 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10976 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10977 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10978 $ECHO EXPORTS >> $output_objdir/$libname.def~
10979 prefix_cmds="$SED"~
10980 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10981 prefix_cmds="$prefix_cmds -e 1d";
10982 fi~
10983 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10984 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10985 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10986 emximp -o $lib $output_objdir/$libname.def'
10987 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10988 enable_shared_with_static_runtimes=yes
10989 file_list_spec='@'
10990 ;;
10991
10992 osf3*)
10993 if test yes = "$GCC"; then
10994 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10995 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10996 else
10997 allow_undefined_flag=' -expect_unresolved \*'
10998 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10999 fi
11000 archive_cmds_need_lc='no'
11001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11002 hardcode_libdir_separator=:
11003 ;;
11004
11005 osf4* | osf5*) # as osf3* with the addition of -msym flag
11006 if test yes = "$GCC"; then
11007 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11008 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11009 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11010 else
11011 allow_undefined_flag=' -expect_unresolved \*'
11012 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11013 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11014 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11015
11016 # Both c and cxx compiler support -rpath directly
11017 hardcode_libdir_flag_spec='-rpath $libdir'
11018 fi
11019 archive_cmds_need_lc='no'
11020 hardcode_libdir_separator=:
11021 ;;
11022
11023 solaris*)
11024 no_undefined_flag=' -z defs'
11025 if test yes = "$GCC"; then
11026 wlarc='$wl'
11027 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11029 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11030 else
11031 case `$CC -V 2>&1` in
11032 *"Compilers 5.0"*)
11033 wlarc=''
11034 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11036 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11037 ;;
11038 *)
11039 wlarc='$wl'
11040 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11042 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11043 ;;
11044 esac
11045 fi
11046 hardcode_libdir_flag_spec='-R$libdir'
11047 hardcode_shlibpath_var=no
11048 case $host_os in
11049 solaris2.[0-5] | solaris2.[0-5].*) ;;
11050 *)
11051 # The compiler driver will combine and reorder linker options,
11052 # but understands '-z linker_flag'. GCC discards it without '$wl',
11053 # but is careful enough not to reorder.
11054 # Supported since Solaris 2.6 (maybe 2.5.1?)
11055 if test yes = "$GCC"; then
11056 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11057 else
11058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11059 fi
11060 ;;
11061 esac
11062 link_all_deplibs=yes
11063 ;;
11064
11065 sunos4*)
11066 if test sequent = "$host_vendor"; then
11067 # Use $CC to link under sequent, because it throws in some extra .o
11068 # files that make .init and .fini sections work.
11069 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11070 else
11071 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11072 fi
11073 hardcode_libdir_flag_spec='-L$libdir'
11074 hardcode_direct=yes
11075 hardcode_minus_L=yes
11076 hardcode_shlibpath_var=no
11077 ;;
11078
11079 sysv4)
11080 case $host_vendor in
11081 sni)
11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_direct=yes # is this really true???
11084 ;;
11085 siemens)
11086 ## LD is ld it makes a PLAMLIB
11087 ## CC just makes a GrossModule.
11088 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11089 reload_cmds='$CC -r -o $output$reload_objs'
11090 hardcode_direct=no
11091 ;;
11092 motorola)
11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11094 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11095 ;;
11096 esac
11097 runpath_var='LD_RUN_PATH'
11098 hardcode_shlibpath_var=no
11099 ;;
11100
11101 sysv4.3*)
11102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103 hardcode_shlibpath_var=no
11104 export_dynamic_flag_spec='-Bexport'
11105 ;;
11106
11107 sysv4*MP*)
11108 if test -d /usr/nec; then
11109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11110 hardcode_shlibpath_var=no
11111 runpath_var=LD_RUN_PATH
11112 hardcode_runpath_var=yes
11113 ld_shlibs=yes
11114 fi
11115 ;;
11116
11117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11118 no_undefined_flag='$wl-z,text'
11119 archive_cmds_need_lc=no
11120 hardcode_shlibpath_var=no
11121 runpath_var='LD_RUN_PATH'
11122
11123 if test yes = "$GCC"; then
11124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 else
11127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 fi
11130 ;;
11131
11132 sysv5* | sco3.2v5* | sco5v6*)
11133 # Note: We CANNOT use -z defs as we might desire, because we do not
11134 # link with -lc, and that would cause any symbols used from libc to
11135 # always be unresolved, which means just about no library would
11136 # ever link correctly. If we're not using GNU ld we use -z text
11137 # though, which does catch some bad symbols but isn't as heavy-handed
11138 # as -z defs.
11139 no_undefined_flag='$wl-z,text'
11140 allow_undefined_flag='$wl-z,nodefs'
11141 archive_cmds_need_lc=no
11142 hardcode_shlibpath_var=no
11143 hardcode_libdir_flag_spec='$wl-R,$libdir'
11144 hardcode_libdir_separator=':'
11145 link_all_deplibs=yes
11146 export_dynamic_flag_spec='$wl-Bexport'
11147 runpath_var='LD_RUN_PATH'
11148
11149 if test yes = "$GCC"; then
11150 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 else
11153 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11154 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 fi
11156 ;;
11157
11158 uts4*)
11159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11160 hardcode_libdir_flag_spec='-L$libdir'
11161 hardcode_shlibpath_var=no
11162 ;;
11163
11164 *)
11165 ld_shlibs=no
11166 ;;
11167 esac
11168
11169 if test sni = "$host_vendor"; then
11170 case $host in
11171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11172 export_dynamic_flag_spec='$wl-Blargedynsym'
11173 ;;
11174 esac
11175 fi
11176 fi
11177
11178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11179printf "%s\n" "$ld_shlibs" >&6; }
11180test no = "$ld_shlibs" && can_build_shared=no
11181
11182with_gnu_ld=$with_gnu_ld
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198#
11199# Do we need to explicitly link libc?
11200#
11201case "x$archive_cmds_need_lc" in
11202x|xyes)
11203 # Assume -lc should be added
11204 archive_cmds_need_lc=yes
11205
11206 if test yes,yes = "$GCC,$enable_shared"; then
11207 case $archive_cmds in
11208 *'~'*)
11209 # FIXME: we may have to deal with multi-command sequences.
11210 ;;
11211 '$CC '*)
11212 # Test whether the compiler implicitly links with -lc since on some
11213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11214 # to ld, don't add -lc before -lgcc.
11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11216printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11217if test ${lt_cv_archive_cmds_need_lc+y}
11218then :
11219 printf %s "(cached) " >&6
11220else $as_nop
11221 $RM conftest*
11222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11223
11224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11225 (eval $ac_compile) 2>&5
11226 ac_status=$?
11227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11228 test $ac_status = 0; } 2>conftest.err; then
11229 soname=conftest
11230 lib=conftest
11231 libobjs=conftest.$ac_objext
11232 deplibs=
11233 wl=$lt_prog_compiler_wl
11234 pic_flag=$lt_prog_compiler_pic
11235 compiler_flags=-v
11236 linker_flags=-v
11237 verstring=
11238 output_objdir=.
11239 libname=conftest
11240 lt_save_allow_undefined_flag=$allow_undefined_flag
11241 allow_undefined_flag=
11242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11243 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11244 ac_status=$?
11245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11246 test $ac_status = 0; }
11247 then
11248 lt_cv_archive_cmds_need_lc=no
11249 else
11250 lt_cv_archive_cmds_need_lc=yes
11251 fi
11252 allow_undefined_flag=$lt_save_allow_undefined_flag
11253 else
11254 cat conftest.err 1>&5
11255 fi
11256 $RM conftest*
11257
11258fi
11259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11260printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11261 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11262 ;;
11263 esac
11264 fi
11265 ;;
11266esac
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11420printf %s "checking dynamic linker characteristics... " >&6; }
11421
11422if test yes = "$GCC"; then
11423 case $host_os in
11424 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11425 *) lt_awk_arg='/^libraries:/' ;;
11426 esac
11427 case $host_os in
11428 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11429 *) lt_sed_strip_eq='s|=/|/|g' ;;
11430 esac
11431 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11432 case $lt_search_path_spec in
11433 *\;*)
11434 # if the path contains ";" then we assume it to be the separator
11435 # otherwise default to the standard path separator (i.e. ":") - it is
11436 # assumed that no part of a normal pathname contains ";" but that should
11437 # okay in the real world where ";" in dirpaths is itself problematic.
11438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11439 ;;
11440 *)
11441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11442 ;;
11443 esac
11444 # Ok, now we have the path, separated by spaces, we can step through it
11445 # and add multilib dir if necessary...
11446 lt_tmp_lt_search_path_spec=
11447 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11448 # ...but if some path component already ends with the multilib dir we assume
11449 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11450 case "$lt_multi_os_dir; $lt_search_path_spec " in
11451 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11452 lt_multi_os_dir=
11453 ;;
11454 esac
11455 for lt_sys_path in $lt_search_path_spec; do
11456 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11458 elif test -n "$lt_multi_os_dir"; then
11459 test -d "$lt_sys_path" && \
11460 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11461 fi
11462 done
11463 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11464BEGIN {RS = " "; FS = "/|\n";} {
11465 lt_foo = "";
11466 lt_count = 0;
11467 for (lt_i = NF; lt_i > 0; lt_i--) {
11468 if ($lt_i != "" && $lt_i != ".") {
11469 if ($lt_i == "..") {
11470 lt_count++;
11471 } else {
11472 if (lt_count == 0) {
11473 lt_foo = "/" $lt_i lt_foo;
11474 } else {
11475 lt_count--;
11476 }
11477 }
11478 }
11479 }
11480 if (lt_foo != "") { lt_freq[lt_foo]++; }
11481 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11482}'`
11483 # AWK program above erroneously prepends '/' to C:/dos/paths
11484 # for these hosts.
11485 case $host_os in
11486 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11487 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11488 esac
11489 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11490else
11491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11492fi
11493library_names_spec=
11494libname_spec='lib$name'
11495soname_spec=
11496shrext_cmds=.so
11497postinstall_cmds=
11498postuninstall_cmds=
11499finish_cmds=
11500finish_eval=
11501shlibpath_var=
11502shlibpath_overrides_runpath=unknown
11503version_type=none
11504dynamic_linker="$host_os ld.so"
11505sys_lib_dlsearch_path_spec="/lib /usr/lib"
11506need_lib_prefix=unknown
11507hardcode_into_libs=no
11508
11509# when you set need_version to no, make sure it does not cause -set_version
11510# flags to be left without arguments
11511need_version=unknown
11512
11513
11514
11515case $host_os in
11516aix3*)
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11519 shlibpath_var=LIBPATH
11520
11521 # AIX 3 has no versioning support, so we append a major version to the name.
11522 soname_spec='$libname$release$shared_ext$major'
11523 ;;
11524
11525aix[4-9]*)
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 need_lib_prefix=no
11528 need_version=no
11529 hardcode_into_libs=yes
11530 if test ia64 = "$host_cpu"; then
11531 # AIX 5 supports IA64
11532 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 else
11535 # With GCC up to 2.95.x, collect2 would create an import file
11536 # for dependence libraries. The import file would start with
11537 # the line '#! .'. This would cause the generated library to
11538 # depend on '.', always an invalid library. This was fixed in
11539 # development snapshots of GCC prior to 3.0.
11540 case $host_os in
11541 aix4 | aix4.[01] | aix4.[01].*)
11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11543 echo ' yes '
11544 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11545 :
11546 else
11547 can_build_shared=no
11548 fi
11549 ;;
11550 esac
11551 # Using Import Files as archive members, it is possible to support
11552 # filename-based versioning of shared library archives on AIX. While
11553 # this would work for both with and without runtime linking, it will
11554 # prevent static linking of such archives. So we do filename-based
11555 # shared library versioning with .so extension only, which is used
11556 # when both runtime linking and shared linking is enabled.
11557 # Unfortunately, runtime linking may impact performance, so we do
11558 # not want this to be the default eventually. Also, we use the
11559 # versioned .so libs for executables only if there is the -brtl
11560 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11561 # To allow for filename-based versioning support, we need to create
11562 # libNAME.so.V as an archive file, containing:
11563 # *) an Import File, referring to the versioned filename of the
11564 # archive as well as the shared archive member, telling the
11565 # bitwidth (32 or 64) of that shared object, and providing the
11566 # list of exported symbols of that shared object, eventually
11567 # decorated with the 'weak' keyword
11568 # *) the shared object with the F_LOADONLY flag set, to really avoid
11569 # it being seen by the linker.
11570 # At run time we better use the real file rather than another symlink,
11571 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11572
11573 case $with_aix_soname,$aix_use_runtimelinking in
11574 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11575 # soname into executable. Probably we can add versioning support to
11576 # collect2, so additional links can be useful in future.
11577 aix,yes) # traditional libtool
11578 dynamic_linker='AIX unversionable lib.so'
11579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11580 # instead of lib<name>.a to let people know that these are not
11581 # typical AIX shared libraries.
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583 ;;
11584 aix,no) # traditional AIX only
11585 dynamic_linker='AIX lib.a(lib.so.V)'
11586 # We preserve .a as extension for shared libraries through AIX4.2
11587 # and later when we are not doing run time linking.
11588 library_names_spec='$libname$release.a $libname.a'
11589 soname_spec='$libname$release$shared_ext$major'
11590 ;;
11591 svr4,*) # full svr4 only
11592 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11593 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11594 # We do not specify a path in Import Files, so LIBPATH fires.
11595 shlibpath_overrides_runpath=yes
11596 ;;
11597 *,yes) # both, prefer svr4
11598 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11599 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11600 # unpreferred sharedlib libNAME.a needs extra handling
11601 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11602 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11603 # We do not specify a path in Import Files, so LIBPATH fires.
11604 shlibpath_overrides_runpath=yes
11605 ;;
11606 *,no) # both, prefer aix
11607 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11608 library_names_spec='$libname$release.a $libname.a'
11609 soname_spec='$libname$release$shared_ext$major'
11610 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11611 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11612 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11613 ;;
11614 esac
11615 shlibpath_var=LIBPATH
11616 fi
11617 ;;
11618
11619amigaos*)
11620 case $host_cpu in
11621 powerpc)
11622 # Since July 2007 AmigaOS4 officially supports .so libraries.
11623 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11625 ;;
11626 m68k)
11627 library_names_spec='$libname.ixlibrary $libname.a'
11628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11629 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11630 ;;
11631 esac
11632 ;;
11633
11634beos*)
11635 library_names_spec='$libname$shared_ext'
11636 dynamic_linker="$host_os ld.so"
11637 shlibpath_var=LIBRARY_PATH
11638 ;;
11639
11640bsdi[45]*)
11641 version_type=linux # correct to gnu/linux during the next big refactor
11642 need_version=no
11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11644 soname_spec='$libname$release$shared_ext$major'
11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11649 # the default ld.so.conf also contains /usr/contrib/lib and
11650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11651 # libtool to hard-code these into programs
11652 ;;
11653
11654cygwin* | mingw* | pw32* | cegcc*)
11655 version_type=windows
11656 shrext_cmds=.dll
11657 need_version=no
11658 need_lib_prefix=no
11659
11660 case $GCC,$cc_basename in
11661 yes,*)
11662 # gcc
11663 library_names_spec='$libname.dll.a'
11664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11665 postinstall_cmds='base_file=`basename \$file`~
11666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11667 dldir=$destdir/`dirname \$dlpath`~
11668 test -d \$dldir || mkdir -p \$dldir~
11669 $install_prog $dir/$dlname \$dldir/$dlname~
11670 chmod a+x \$dldir/$dlname~
11671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11673 fi'
11674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11675 dlpath=$dir/\$dldll~
11676 $RM \$dlpath'
11677 shlibpath_overrides_runpath=yes
11678
11679 case $host_os in
11680 cygwin*)
11681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11682 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11683
11684 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11685 ;;
11686 mingw* | cegcc*)
11687 # MinGW DLLs use traditional 'lib' prefix
11688 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11689 ;;
11690 pw32*)
11691 # pw32 DLLs use 'pw' prefix rather than 'lib'
11692 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11693 ;;
11694 esac
11695 dynamic_linker='Win32 ld.exe'
11696 ;;
11697
11698 *,cl* | *,icl*)
11699 # Native MSVC or ICC
11700 libname_spec='$name'
11701 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11702 library_names_spec='$libname.dll.lib'
11703
11704 case $build_os in
11705 mingw*)
11706 sys_lib_search_path_spec=
11707 lt_save_ifs=$IFS
11708 IFS=';'
11709 for lt_path in $LIB
11710 do
11711 IFS=$lt_save_ifs
11712 # Let DOS variable expansion print the short 8.3 style file name.
11713 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11714 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11715 done
11716 IFS=$lt_save_ifs
11717 # Convert to MSYS style.
11718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11719 ;;
11720 cygwin*)
11721 # Convert to unix form, then to dos form, then back to unix form
11722 # but this time dos style (no spaces!) so that the unix form looks
11723 # like /cygdrive/c/PROGRA~1:/cygdr...
11724 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11725 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11726 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11727 ;;
11728 *)
11729 sys_lib_search_path_spec=$LIB
11730 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11731 # It is most probably a Windows format PATH.
11732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11733 else
11734 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11735 fi
11736 # FIXME: find the short name or the path components, as spaces are
11737 # common. (e.g. "Program Files" -> "PROGRA~1")
11738 ;;
11739 esac
11740
11741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11742 postinstall_cmds='base_file=`basename \$file`~
11743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11744 dldir=$destdir/`dirname \$dlpath`~
11745 test -d \$dldir || mkdir -p \$dldir~
11746 $install_prog $dir/$dlname \$dldir/$dlname'
11747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11748 dlpath=$dir/\$dldll~
11749 $RM \$dlpath'
11750 shlibpath_overrides_runpath=yes
11751 dynamic_linker='Win32 link.exe'
11752 ;;
11753
11754 *)
11755 # Assume MSVC and ICC wrapper
11756 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11757 dynamic_linker='Win32 ld.exe'
11758 ;;
11759 esac
11760 # FIXME: first we should search . and the directory the executable is in
11761 shlibpath_var=PATH
11762 ;;
11763
11764darwin* | rhapsody*)
11765 dynamic_linker="$host_os dyld"
11766 version_type=darwin
11767 need_lib_prefix=no
11768 need_version=no
11769 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11770 soname_spec='$libname$release$major$shared_ext'
11771 shlibpath_overrides_runpath=yes
11772 shlibpath_var=DYLD_LIBRARY_PATH
11773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11774
11775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11777 ;;
11778
11779dgux*)
11780 version_type=linux # correct to gnu/linux during the next big refactor
11781 need_lib_prefix=no
11782 need_version=no
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784 soname_spec='$libname$release$shared_ext$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 ;;
11787
11788freebsd* | dragonfly* | midnightbsd*)
11789 # DragonFly does not have aout. When/if they implement a new
11790 # versioning mechanism, adjust this.
11791 if test -x /usr/bin/objformat; then
11792 objformat=`/usr/bin/objformat`
11793 else
11794 case $host_os in
11795 freebsd[23].*) objformat=aout ;;
11796 *) objformat=elf ;;
11797 esac
11798 fi
11799 version_type=freebsd-$objformat
11800 case $version_type in
11801 freebsd-elf*)
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 soname_spec='$libname$release$shared_ext$major'
11804 need_version=no
11805 need_lib_prefix=no
11806 ;;
11807 freebsd-*)
11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11809 need_version=yes
11810 ;;
11811 esac
11812 shlibpath_var=LD_LIBRARY_PATH
11813 case $host_os in
11814 freebsd2.*)
11815 shlibpath_overrides_runpath=yes
11816 ;;
11817 freebsd3.[01]* | freebsdelf3.[01]*)
11818 shlibpath_overrides_runpath=yes
11819 hardcode_into_libs=yes
11820 ;;
11821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11823 shlibpath_overrides_runpath=no
11824 hardcode_into_libs=yes
11825 ;;
11826 *) # from 4.6 on, and DragonFly
11827 shlibpath_overrides_runpath=yes
11828 hardcode_into_libs=yes
11829 ;;
11830 esac
11831 ;;
11832
11833haiku*)
11834 version_type=linux # correct to gnu/linux during the next big refactor
11835 need_lib_prefix=no
11836 need_version=no
11837 dynamic_linker="$host_os runtime_loader"
11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839 soname_spec='$libname$release$shared_ext$major'
11840 shlibpath_var=LIBRARY_PATH
11841 shlibpath_overrides_runpath=no
11842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11843 hardcode_into_libs=yes
11844 ;;
11845
11846hpux9* | hpux10* | hpux11*)
11847 # Give a soname corresponding to the major version so that dld.sl refuses to
11848 # link against other versions.
11849 version_type=sunos
11850 need_lib_prefix=no
11851 need_version=no
11852 case $host_cpu in
11853 ia64*)
11854 shrext_cmds='.so'
11855 hardcode_into_libs=yes
11856 dynamic_linker="$host_os dld.so"
11857 shlibpath_var=LD_LIBRARY_PATH
11858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860 soname_spec='$libname$release$shared_ext$major'
11861 if test 32 = "$HPUX_IA64_MODE"; then
11862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11863 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11864 else
11865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11866 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11867 fi
11868 ;;
11869 hppa*64*)
11870 shrext_cmds='.sl'
11871 hardcode_into_libs=yes
11872 dynamic_linker="$host_os dld.sl"
11873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11876 soname_spec='$libname$release$shared_ext$major'
11877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11879 ;;
11880 *)
11881 shrext_cmds='.sl'
11882 dynamic_linker="$host_os dld.sl"
11883 shlibpath_var=SHLIB_PATH
11884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 ;;
11888 esac
11889 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11890 postinstall_cmds='chmod 555 $lib'
11891 # or fails outright, so override atomically:
11892 install_override_mode=555
11893 ;;
11894
11895interix[3-9]*)
11896 version_type=linux # correct to gnu/linux during the next big refactor
11897 need_lib_prefix=no
11898 need_version=no
11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11900 soname_spec='$libname$release$shared_ext$major'
11901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=no
11904 hardcode_into_libs=yes
11905 ;;
11906
11907irix5* | irix6* | nonstopux*)
11908 case $host_os in
11909 nonstopux*) version_type=nonstopux ;;
11910 *)
11911 if test yes = "$lt_cv_prog_gnu_ld"; then
11912 version_type=linux # correct to gnu/linux during the next big refactor
11913 else
11914 version_type=irix
11915 fi ;;
11916 esac
11917 need_lib_prefix=no
11918 need_version=no
11919 soname_spec='$libname$release$shared_ext$major'
11920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11921 case $host_os in
11922 irix5* | nonstopux*)
11923 libsuff= shlibsuff=
11924 ;;
11925 *)
11926 case $LD in # libtool.m4 will add one of these switches to LD
11927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11928 libsuff= shlibsuff= libmagic=32-bit;;
11929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11930 libsuff=32 shlibsuff=N32 libmagic=N32;;
11931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11933 *) libsuff= shlibsuff= libmagic=never-match;;
11934 esac
11935 ;;
11936 esac
11937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11938 shlibpath_overrides_runpath=no
11939 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11940 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11941 hardcode_into_libs=yes
11942 ;;
11943
11944# No shared lib support for Linux oldld, aout, or coff.
11945linux*oldld* | linux*aout* | linux*coff*)
11946 dynamic_linker=no
11947 ;;
11948
11949linux*android*)
11950 version_type=none # Android doesn't support versioned libraries.
11951 need_lib_prefix=no
11952 need_version=no
11953 library_names_spec='$libname$release$shared_ext'
11954 soname_spec='$libname$release$shared_ext'
11955 finish_cmds=
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
11958
11959 # This implies no fast_install, which is unacceptable.
11960 # Some rework will be needed to allow for fast_install
11961 # before this can be enabled.
11962 hardcode_into_libs=yes
11963
11964 dynamic_linker='Android linker'
11965 # Don't embed -rpath directories since the linker doesn't support them.
11966 hardcode_libdir_flag_spec='-L$libdir'
11967 ;;
11968
11969# This must be glibc/ELF.
11970linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 need_lib_prefix=no
11973 need_version=no
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975 soname_spec='$libname$release$shared_ext$major'
11976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=no
11979
11980 # Some binutils ld are patched to set DT_RUNPATH
11981 if test ${lt_cv_shlibpath_overrides_runpath+y}
11982then :
11983 printf %s "(cached) " >&6
11984else $as_nop
11985 lt_cv_shlibpath_overrides_runpath=no
11986 save_LDFLAGS=$LDFLAGS
11987 save_libdir=$libdir
11988 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11989 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
11992
11993int
11994main (void)
11995{
11996
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"
12002then :
12003 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12004then :
12005 lt_cv_shlibpath_overrides_runpath=yes
12006fi
12007fi
12008rm -f core conftest.err conftest.$ac_objext conftest.beam \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LDFLAGS=$save_LDFLAGS
12011 libdir=$save_libdir
12012
12013fi
12014
12015 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12016
12017 # This implies no fast_install, which is unacceptable.
12018 # Some rework will be needed to allow for fast_install
12019 # before this can be enabled.
12020 hardcode_into_libs=yes
12021
12022 # Add ABI-specific directories to the system library path.
12023 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12024
12025 # Ideally, we could use ldconfig to report *all* directores which are
12026 # searched for libraries, however this is still not possible. Aside from not
12027 # being certain /sbin/ldconfig is available, command
12028 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12029 # even though it is searched at run-time. Try to do the best guess by
12030 # appending ld.so.conf contents (and includes) to the search path.
12031 if test -f /etc/ld.so.conf; then
12032 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12033 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12034 fi
12035
12036 # We used to test for /lib/ld.so.1 and disable shared libraries on
12037 # powerpc, because MkLinux only supported shared libraries with the
12038 # GNU dynamic linker. Since this was broken with cross compilers,
12039 # most powerpc-linux boxes support dynamic linking these days and
12040 # people can always --disable-shared, the test was removed, and we
12041 # assume the GNU/Linux dynamic linker is in use.
12042 dynamic_linker='GNU/Linux ld.so'
12043 ;;
12044
12045netbsd*)
12046 version_type=sunos
12047 need_lib_prefix=no
12048 need_version=no
12049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12052 dynamic_linker='NetBSD (a.out) ld.so'
12053 else
12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055 soname_spec='$libname$release$shared_ext$major'
12056 dynamic_linker='NetBSD ld.elf_so'
12057 fi
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12061 ;;
12062
12063newsos6)
12064 version_type=linux # correct to gnu/linux during the next big refactor
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066 shlibpath_var=LD_LIBRARY_PATH
12067 shlibpath_overrides_runpath=yes
12068 ;;
12069
12070*nto* | *qnx*)
12071 version_type=qnx
12072 need_lib_prefix=no
12073 need_version=no
12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12075 soname_spec='$libname$release$shared_ext$major'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=no
12078 hardcode_into_libs=yes
12079 dynamic_linker='ldqnx.so'
12080 ;;
12081
12082openbsd* | bitrig*)
12083 version_type=sunos
12084 sys_lib_dlsearch_path_spec=/usr/lib
12085 need_lib_prefix=no
12086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12087 need_version=no
12088 else
12089 need_version=yes
12090 fi
12091 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 shlibpath_overrides_runpath=yes
12095 ;;
12096
12097os2*)
12098 libname_spec='$name'
12099 version_type=windows
12100 shrext_cmds=.dll
12101 need_version=no
12102 need_lib_prefix=no
12103 # OS/2 can only load a DLL with a base name of 8 characters or less.
12104 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12105 v=$($ECHO $release$versuffix | tr -d .-);
12106 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12107 $ECHO $n$v`$shared_ext'
12108 library_names_spec='${libname}_dll.$libext'
12109 dynamic_linker='OS/2 ld.exe'
12110 shlibpath_var=BEGINLIBPATH
12111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12113 postinstall_cmds='base_file=`basename \$file`~
12114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12115 dldir=$destdir/`dirname \$dlpath`~
12116 test -d \$dldir || mkdir -p \$dldir~
12117 $install_prog $dir/$dlname \$dldir/$dlname~
12118 chmod a+x \$dldir/$dlname~
12119 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12120 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12121 fi'
12122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12123 dlpath=$dir/\$dldll~
12124 $RM \$dlpath'
12125 ;;
12126
12127osf3* | osf4* | osf5*)
12128 version_type=osf
12129 need_lib_prefix=no
12130 need_version=no
12131 soname_spec='$libname$release$shared_ext$major'
12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136 ;;
12137
12138rdos*)
12139 dynamic_linker=no
12140 ;;
12141
12142solaris*)
12143 version_type=linux # correct to gnu/linux during the next big refactor
12144 need_lib_prefix=no
12145 need_version=no
12146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12147 soname_spec='$libname$release$shared_ext$major'
12148 shlibpath_var=LD_LIBRARY_PATH
12149 shlibpath_overrides_runpath=yes
12150 hardcode_into_libs=yes
12151 # ldd complains unless libraries are executable
12152 postinstall_cmds='chmod +x $lib'
12153 ;;
12154
12155sunos4*)
12156 version_type=sunos
12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=yes
12161 if test yes = "$with_gnu_ld"; then
12162 need_lib_prefix=no
12163 fi
12164 need_version=yes
12165 ;;
12166
12167sysv4 | sysv4.3*)
12168 version_type=linux # correct to gnu/linux during the next big refactor
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 case $host_vendor in
12173 sni)
12174 shlibpath_overrides_runpath=no
12175 need_lib_prefix=no
12176 runpath_var=LD_RUN_PATH
12177 ;;
12178 siemens)
12179 need_lib_prefix=no
12180 ;;
12181 motorola)
12182 need_lib_prefix=no
12183 need_version=no
12184 shlibpath_overrides_runpath=no
12185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12186 ;;
12187 esac
12188 ;;
12189
12190sysv4*MP*)
12191 if test -d /usr/nec; then
12192 version_type=linux # correct to gnu/linux during the next big refactor
12193 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12194 soname_spec='$libname$shared_ext.$major'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 fi
12197 ;;
12198
12199sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12200 version_type=sco
12201 need_lib_prefix=no
12202 need_version=no
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12204 soname_spec='$libname$release$shared_ext$major'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207 hardcode_into_libs=yes
12208 if test yes = "$with_gnu_ld"; then
12209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12210 else
12211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12212 case $host_os in
12213 sco3.2v5*)
12214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12215 ;;
12216 esac
12217 fi
12218 sys_lib_dlsearch_path_spec='/usr/lib'
12219 ;;
12220
12221tpf*)
12222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12223 version_type=linux # correct to gnu/linux during the next big refactor
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath=no
12229 hardcode_into_libs=yes
12230 ;;
12231
12232uts4*)
12233 version_type=linux # correct to gnu/linux during the next big refactor
12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12235 soname_spec='$libname$release$shared_ext$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 ;;
12238
12239*)
12240 dynamic_linker=no
12241 ;;
12242esac
12243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12244printf "%s\n" "$dynamic_linker" >&6; }
12245test no = "$dynamic_linker" && can_build_shared=no
12246
12247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12248if test yes = "$GCC"; then
12249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12250fi
12251
12252if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12253 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12254fi
12255
12256if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12257 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12258fi
12259
12260# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12261configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12262
12263# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12264func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12265
12266# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12267configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12366printf %s "checking how to hardcode library paths into programs... " >&6; }
12367hardcode_action=
12368if test -n "$hardcode_libdir_flag_spec" ||
12369 test -n "$runpath_var" ||
12370 test yes = "$hardcode_automatic"; then
12371
12372 # We can hardcode non-existent directories.
12373 if test no != "$hardcode_direct" &&
12374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12375 # have to relink, otherwise we might link with an installed library
12376 # when we should be linking with a yet-to-be-installed one
12377 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12378 test no != "$hardcode_minus_L"; then
12379 # Linking always hardcodes the temporary library directory.
12380 hardcode_action=relink
12381 else
12382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12383 hardcode_action=immediate
12384 fi
12385else
12386 # We cannot hardcode anything, or else we can only hardcode existing
12387 # directories.
12388 hardcode_action=unsupported
12389fi
12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12391printf "%s\n" "$hardcode_action" >&6; }
12392
12393if test relink = "$hardcode_action" ||
12394 test yes = "$inherit_rpath"; then
12395 # Fast installation is not supported
12396 enable_fast_install=no
12397elif test yes = "$shlibpath_overrides_runpath" ||
12398 test no = "$enable_shared"; then
12399 # Fast installation is not necessary
12400 enable_fast_install=needless
12401fi
12402
12403
12404
12405
12406
12407
12408 if test yes != "$enable_dlopen"; then
12409 enable_dlopen=unknown
12410 enable_dlopen_self=unknown
12411 enable_dlopen_self_static=unknown
12412else
12413 lt_cv_dlopen=no
12414 lt_cv_dlopen_libs=
12415
12416 case $host_os in
12417 beos*)
12418 lt_cv_dlopen=load_add_on
12419 lt_cv_dlopen_libs=
12420 lt_cv_dlopen_self=yes
12421 ;;
12422
12423 mingw* | pw32* | cegcc*)
12424 lt_cv_dlopen=LoadLibrary
12425 lt_cv_dlopen_libs=
12426 ;;
12427
12428 cygwin*)
12429 lt_cv_dlopen=dlopen
12430 lt_cv_dlopen_libs=
12431 ;;
12432
12433 darwin*)
12434 # if libdl is installed we need to link against it
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12436printf %s "checking for dlopen in -ldl... " >&6; }
12437if test ${ac_cv_lib_dl_dlopen+y}
12438then :
12439 printf %s "(cached) " >&6
12440else $as_nop
12441 ac_check_lib_save_LIBS=$LIBS
12442LIBS="-ldl $LIBS"
12443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h. */
12445
12446/* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449char dlopen ();
12450int
12451main (void)
12452{
12453return dlopen ();
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458if ac_fn_c_try_link "$LINENO"
12459then :
12460 ac_cv_lib_dl_dlopen=yes
12461else $as_nop
12462 ac_cv_lib_dl_dlopen=no
12463fi
12464rm -f core conftest.err conftest.$ac_objext conftest.beam \
12465 conftest$ac_exeext conftest.$ac_ext
12466LIBS=$ac_check_lib_save_LIBS
12467fi
12468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12469printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12470if test "x$ac_cv_lib_dl_dlopen" = xyes
12471then :
12472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12473else $as_nop
12474
12475 lt_cv_dlopen=dyld
12476 lt_cv_dlopen_libs=
12477 lt_cv_dlopen_self=yes
12478
12479fi
12480
12481 ;;
12482
12483 tpf*)
12484 # Don't try to run any link tests for TPF. We know it's impossible
12485 # because TPF is a cross-compiler, and we know how we open DSOs.
12486 lt_cv_dlopen=dlopen
12487 lt_cv_dlopen_libs=
12488 lt_cv_dlopen_self=no
12489 ;;
12490
12491 *)
12492 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12493if test "x$ac_cv_func_shl_load" = xyes
12494then :
12495 lt_cv_dlopen=shl_load
12496else $as_nop
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12498printf %s "checking for shl_load in -ldld... " >&6; }
12499if test ${ac_cv_lib_dld_shl_load+y}
12500then :
12501 printf %s "(cached) " >&6
12502else $as_nop
12503 ac_check_lib_save_LIBS=$LIBS
12504LIBS="-ldld $LIBS"
12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506/* end confdefs.h. */
12507
12508/* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511char shl_load ();
12512int
12513main (void)
12514{
12515return shl_load ();
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520if ac_fn_c_try_link "$LINENO"
12521then :
12522 ac_cv_lib_dld_shl_load=yes
12523else $as_nop
12524 ac_cv_lib_dld_shl_load=no
12525fi
12526rm -f core conftest.err conftest.$ac_objext conftest.beam \
12527 conftest$ac_exeext conftest.$ac_ext
12528LIBS=$ac_check_lib_save_LIBS
12529fi
12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12531printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12532if test "x$ac_cv_lib_dld_shl_load" = xyes
12533then :
12534 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12535else $as_nop
12536 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12537if test "x$ac_cv_func_dlopen" = xyes
12538then :
12539 lt_cv_dlopen=dlopen
12540else $as_nop
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12542printf %s "checking for dlopen in -ldl... " >&6; }
12543if test ${ac_cv_lib_dl_dlopen+y}
12544then :
12545 printf %s "(cached) " >&6
12546else $as_nop
12547 ac_check_lib_save_LIBS=$LIBS
12548LIBS="-ldl $LIBS"
12549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551
12552/* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555char dlopen ();
12556int
12557main (void)
12558{
12559return dlopen ();
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_link "$LINENO"
12565then :
12566 ac_cv_lib_dl_dlopen=yes
12567else $as_nop
12568 ac_cv_lib_dl_dlopen=no
12569fi
12570rm -f core conftest.err conftest.$ac_objext conftest.beam \
12571 conftest$ac_exeext conftest.$ac_ext
12572LIBS=$ac_check_lib_save_LIBS
12573fi
12574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12575printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12576if test "x$ac_cv_lib_dl_dlopen" = xyes
12577then :
12578 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12579else $as_nop
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12581printf %s "checking for dlopen in -lsvld... " >&6; }
12582if test ${ac_cv_lib_svld_dlopen+y}
12583then :
12584 printf %s "(cached) " >&6
12585else $as_nop
12586 ac_check_lib_save_LIBS=$LIBS
12587LIBS="-lsvld $LIBS"
12588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589/* end confdefs.h. */
12590
12591/* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594char dlopen ();
12595int
12596main (void)
12597{
12598return dlopen ();
12599 ;
12600 return 0;
12601}
12602_ACEOF
12603if ac_fn_c_try_link "$LINENO"
12604then :
12605 ac_cv_lib_svld_dlopen=yes
12606else $as_nop
12607 ac_cv_lib_svld_dlopen=no
12608fi
12609rm -f core conftest.err conftest.$ac_objext conftest.beam \
12610 conftest$ac_exeext conftest.$ac_ext
12611LIBS=$ac_check_lib_save_LIBS
12612fi
12613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12614printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12615if test "x$ac_cv_lib_svld_dlopen" = xyes
12616then :
12617 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12618else $as_nop
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12620printf %s "checking for dld_link in -ldld... " >&6; }
12621if test ${ac_cv_lib_dld_dld_link+y}
12622then :
12623 printf %s "(cached) " >&6
12624else $as_nop
12625 ac_check_lib_save_LIBS=$LIBS
12626LIBS="-ldld $LIBS"
12627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h. */
12629
12630/* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633char dld_link ();
12634int
12635main (void)
12636{
12637return dld_link ();
12638 ;
12639 return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_link "$LINENO"
12643then :
12644 ac_cv_lib_dld_dld_link=yes
12645else $as_nop
12646 ac_cv_lib_dld_dld_link=no
12647fi
12648rm -f core conftest.err conftest.$ac_objext conftest.beam \
12649 conftest$ac_exeext conftest.$ac_ext
12650LIBS=$ac_check_lib_save_LIBS
12651fi
12652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12653printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12654if test "x$ac_cv_lib_dld_dld_link" = xyes
12655then :
12656 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12657fi
12658
12659
12660fi
12661
12662
12663fi
12664
12665
12666fi
12667
12668
12669fi
12670
12671
12672fi
12673
12674 ;;
12675 esac
12676
12677 if test no = "$lt_cv_dlopen"; then
12678 enable_dlopen=no
12679 else
12680 enable_dlopen=yes
12681 fi
12682
12683 case $lt_cv_dlopen in
12684 dlopen)
12685 save_CPPFLAGS=$CPPFLAGS
12686 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12687
12688 save_LDFLAGS=$LDFLAGS
12689 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12690
12691 save_LIBS=$LIBS
12692 LIBS="$lt_cv_dlopen_libs $LIBS"
12693
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12695printf %s "checking whether a program can dlopen itself... " >&6; }
12696if test ${lt_cv_dlopen_self+y}
12697then :
12698 printf %s "(cached) " >&6
12699else $as_nop
12700 if test yes = "$cross_compiling"; then :
12701 lt_cv_dlopen_self=cross
12702else
12703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12704 lt_status=$lt_dlunknown
12705 cat > conftest.$ac_ext <<_LT_EOF
12706#line $LINENO "configure"
12707#include "confdefs.h"
12708
12709#if HAVE_DLFCN_H
12710#include <dlfcn.h>
12711#endif
12712
12713#include <stdio.h>
12714
12715#ifdef RTLD_GLOBAL
12716# define LT_DLGLOBAL RTLD_GLOBAL
12717#else
12718# ifdef DL_GLOBAL
12719# define LT_DLGLOBAL DL_GLOBAL
12720# else
12721# define LT_DLGLOBAL 0
12722# endif
12723#endif
12724
12725/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12726 find out it does not work in some platform. */
12727#ifndef LT_DLLAZY_OR_NOW
12728# ifdef RTLD_LAZY
12729# define LT_DLLAZY_OR_NOW RTLD_LAZY
12730# else
12731# ifdef DL_LAZY
12732# define LT_DLLAZY_OR_NOW DL_LAZY
12733# else
12734# ifdef RTLD_NOW
12735# define LT_DLLAZY_OR_NOW RTLD_NOW
12736# else
12737# ifdef DL_NOW
12738# define LT_DLLAZY_OR_NOW DL_NOW
12739# else
12740# define LT_DLLAZY_OR_NOW 0
12741# endif
12742# endif
12743# endif
12744# endif
12745#endif
12746
12747/* When -fvisibility=hidden is used, assume the code has been annotated
12748 correspondingly for the symbols needed. */
12749#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12750int fnord () __attribute__((visibility("default")));
12751#endif
12752
12753int fnord () { return 42; }
12754int main ()
12755{
12756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12757 int status = $lt_dlunknown;
12758
12759 if (self)
12760 {
12761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12762 else
12763 {
12764 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12765 else puts (dlerror ());
12766 }
12767 /* dlclose (self); */
12768 }
12769 else
12770 puts (dlerror ());
12771
12772 return status;
12773}
12774_LT_EOF
12775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12776 (eval $ac_link) 2>&5
12777 ac_status=$?
12778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12780 (./conftest; exit; ) >&5 2>/dev/null
12781 lt_status=$?
12782 case x$lt_status in
12783 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12784 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12785 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12786 esac
12787 else :
12788 # compilation failed
12789 lt_cv_dlopen_self=no
12790 fi
12791fi
12792rm -fr conftest*
12793
12794
12795fi
12796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12797printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12798
12799 if test yes = "$lt_cv_dlopen_self"; then
12800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12802printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12803if test ${lt_cv_dlopen_self_static+y}
12804then :
12805 printf %s "(cached) " >&6
12806else $as_nop
12807 if test yes = "$cross_compiling"; then :
12808 lt_cv_dlopen_self_static=cross
12809else
12810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12811 lt_status=$lt_dlunknown
12812 cat > conftest.$ac_ext <<_LT_EOF
12813#line $LINENO "configure"
12814#include "confdefs.h"
12815
12816#if HAVE_DLFCN_H
12817#include <dlfcn.h>
12818#endif
12819
12820#include <stdio.h>
12821
12822#ifdef RTLD_GLOBAL
12823# define LT_DLGLOBAL RTLD_GLOBAL
12824#else
12825# ifdef DL_GLOBAL
12826# define LT_DLGLOBAL DL_GLOBAL
12827# else
12828# define LT_DLGLOBAL 0
12829# endif
12830#endif
12831
12832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12833 find out it does not work in some platform. */
12834#ifndef LT_DLLAZY_OR_NOW
12835# ifdef RTLD_LAZY
12836# define LT_DLLAZY_OR_NOW RTLD_LAZY
12837# else
12838# ifdef DL_LAZY
12839# define LT_DLLAZY_OR_NOW DL_LAZY
12840# else
12841# ifdef RTLD_NOW
12842# define LT_DLLAZY_OR_NOW RTLD_NOW
12843# else
12844# ifdef DL_NOW
12845# define LT_DLLAZY_OR_NOW DL_NOW
12846# else
12847# define LT_DLLAZY_OR_NOW 0
12848# endif
12849# endif
12850# endif
12851# endif
12852#endif
12853
12854/* When -fvisibility=hidden is used, assume the code has been annotated
12855 correspondingly for the symbols needed. */
12856#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12857int fnord () __attribute__((visibility("default")));
12858#endif
12859
12860int fnord () { return 42; }
12861int main ()
12862{
12863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12864 int status = $lt_dlunknown;
12865
12866 if (self)
12867 {
12868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12869 else
12870 {
12871 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12872 else puts (dlerror ());
12873 }
12874 /* dlclose (self); */
12875 }
12876 else
12877 puts (dlerror ());
12878
12879 return status;
12880}
12881_LT_EOF
12882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12883 (eval $ac_link) 2>&5
12884 ac_status=$?
12885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12886 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12887 (./conftest; exit; ) >&5 2>/dev/null
12888 lt_status=$?
12889 case x$lt_status in
12890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12892 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12893 esac
12894 else :
12895 # compilation failed
12896 lt_cv_dlopen_self_static=no
12897 fi
12898fi
12899rm -fr conftest*
12900
12901
12902fi
12903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12904printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12905 fi
12906
12907 CPPFLAGS=$save_CPPFLAGS
12908 LDFLAGS=$save_LDFLAGS
12909 LIBS=$save_LIBS
12910 ;;
12911 esac
12912
12913 case $lt_cv_dlopen_self in
12914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12915 *) enable_dlopen_self=unknown ;;
12916 esac
12917
12918 case $lt_cv_dlopen_self_static in
12919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12920 *) enable_dlopen_self_static=unknown ;;
12921 esac
12922fi
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940striplib=
12941old_striplib=
12942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12943printf %s "checking whether stripping libraries is possible... " >&6; }
12944if test -z "$STRIP"; then
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946printf "%s\n" "no" >&6; }
12947else
12948 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12949 old_striplib="$STRIP --strip-debug"
12950 striplib="$STRIP --strip-unneeded"
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952printf "%s\n" "yes" >&6; }
12953 else
12954 case $host_os in
12955 darwin*)
12956 # FIXME - insert some real tests, host_os isn't really good enough
12957 striplib="$STRIP -x"
12958 old_striplib="$STRIP -S"
12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12960printf "%s\n" "yes" >&6; }
12961 ;;
12962 freebsd*)
12963 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12964 old_striplib="$STRIP --strip-debug"
12965 striplib="$STRIP --strip-unneeded"
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967printf "%s\n" "yes" >&6; }
12968 else
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970printf "%s\n" "no" >&6; }
12971 fi
12972 ;;
12973 *)
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975printf "%s\n" "no" >&6; }
12976 ;;
12977 esac
12978 fi
12979fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992 # Report what library types will actually be built
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12994printf %s "checking if libtool supports shared libraries... " >&6; }
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12996printf "%s\n" "$can_build_shared" >&6; }
12997
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12999printf %s "checking whether to build shared libraries... " >&6; }
13000 test no = "$can_build_shared" && enable_shared=no
13001
13002 # On AIX, shared libraries and static libraries use the same namespace, and
13003 # are all built from PIC.
13004 case $host_os in
13005 aix3*)
13006 test yes = "$enable_shared" && enable_static=no
13007 if test -n "$RANLIB"; then
13008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13009 postinstall_cmds='$RANLIB $lib'
13010 fi
13011 ;;
13012
13013 aix[4-9]*)
13014 if test ia64 != "$host_cpu"; then
13015 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13016 yes,aix,yes) ;; # shared object as lib.so file only
13017 yes,svr4,*) ;; # shared object as lib.so archive member only
13018 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13019 esac
13020 fi
13021 ;;
13022 esac
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13024printf "%s\n" "$enable_shared" >&6; }
13025
13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13027printf %s "checking whether to build static libraries... " >&6; }
13028 # Make sure either enable_shared or enable_static is yes.
13029 test yes = "$enable_shared" || enable_static=yes
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13031printf "%s\n" "$enable_static" >&6; }
13032
13033
13034
13035
13036fi
13037ac_ext=c
13038ac_cpp='$CPP $CPPFLAGS'
13039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041ac_compiler_gnu=$ac_cv_c_compiler_gnu
13042
13043CC=$lt_save_CC
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059 ac_config_commands="$ac_config_commands libtool"
13060
13061
13062
13063
13064# Only expand once:
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13076 if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080printf %s "checking for $ac_word... " >&6; }
13081if test ${ac_cv_path_PKG_CONFIG+y}
13082then :
13083 printf %s "(cached) " >&6
13084else $as_nop
13085 case $PKG_CONFIG in
13086 [\\/]* | ?:[\\/]*)
13087 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13088 ;;
13089 *)
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $PATH
13092do
13093 IFS=$as_save_IFS
13094 case $as_dir in #(((
13095 '') as_dir=./ ;;
13096 */) ;;
13097 *) as_dir=$as_dir/ ;;
13098 esac
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13101 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105done
13106 done
13107IFS=$as_save_IFS
13108
13109 ;;
13110esac
13111fi
13112PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13113if test -n "$PKG_CONFIG"; then
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13115printf "%s\n" "$PKG_CONFIG" >&6; }
13116else
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118printf "%s\n" "no" >&6; }
13119fi
13120
13121
13122fi
13123if test -z "$ac_cv_path_PKG_CONFIG"; then
13124 ac_pt_PKG_CONFIG=$PKG_CONFIG
13125 # Extract the first word of "pkg-config", so it can be a program name with args.
13126set dummy pkg-config; ac_word=$2
13127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128printf %s "checking for $ac_word... " >&6; }
13129if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13130then :
13131 printf %s "(cached) " >&6
13132else $as_nop
13133 case $ac_pt_PKG_CONFIG in
13134 [\\/]* | ?:[\\/]*)
13135 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13136 ;;
13137 *)
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 case $as_dir in #(((
13143 '') as_dir=./ ;;
13144 */) ;;
13145 *) as_dir=$as_dir/ ;;
13146 esac
13147 for ac_exec_ext in '' $ac_executable_extensions; do
13148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13149 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13151 break 2
13152 fi
13153done
13154 done
13155IFS=$as_save_IFS
13156
13157 ;;
13158esac
13159fi
13160ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13161if test -n "$ac_pt_PKG_CONFIG"; then
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13163printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13164else
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166printf "%s\n" "no" >&6; }
13167fi
13168
13169 if test "x$ac_pt_PKG_CONFIG" = x; then
13170 PKG_CONFIG=""
13171 else
13172 case $cross_compiling:$ac_tool_warned in
13173yes:)
13174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13176ac_tool_warned=yes ;;
13177esac
13178 PKG_CONFIG=$ac_pt_PKG_CONFIG
13179 fi
13180else
13181 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13182fi
13183
13184fi
13185if test -n "$PKG_CONFIG"; then
13186 _pkg_min_version=0.9.0
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13188printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13189 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13191printf "%s\n" "yes" >&6; }
13192 else
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194printf "%s\n" "no" >&6; }
13195 PKG_CONFIG=""
13196 fi
13197fi
13198
13199
13200build_linux=no
13201build_sunos=no
13202
13203case "${host_os}" in
13204 linux*)
13205 build_linux=yes
13206 ;;
13207 solaris2*)
13208 build_sunos=yes
13209 ;;
13210 *)
13211 as_fn_error $? "\"OS ${host_os} not supported\"" "$LINENO" 5
13212 ;;
13213esac
13214
13215 if test "x${build_linux}" = "xyes" ; then
13216 LINUX_TRUE=
13217 LINUX_FALSE='#'
13218else
13219 LINUX_TRUE='#'
13220 LINUX_FALSE=
13221fi
13222
13223 if test "x${build_sunos}" = "xyes" ; then
13224 SUNOS_TRUE=
13225 SUNOS_FALSE='#'
13226else
13227 SUNOS_TRUE='#'
13228 SUNOS_FALSE=
13229fi
13230
13231if test -z "$SUNOS_TRUE"; then :
13232 CFLAGS="$CFLAGS -DSOL2 -DSRV4"
13233fi
13234
13235#
13236# Checks for header files, these will set the HAVE_[FILE]_H macros in config.h
13237ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13238if test "x$ac_cv_type__Bool" = xyes
13239then :
13240
13241printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
13242
13243
13244fi
13245
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13247printf %s "checking for stdbool.h that conforms to C99... " >&6; }
13248if test ${ac_cv_header_stdbool_h+y}
13249then :
13250 printf %s "(cached) " >&6
13251else $as_nop
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254#include <stdbool.h>
13255
13256 #ifndef __bool_true_false_are_defined
13257 #error "__bool_true_false_are_defined is not defined"
13258 #endif
13259 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
13260
13261 /* Regardless of whether this is C++ or "_Bool" is a
13262 valid type name, "true" and "false" should be usable
13263 in #if expressions and integer constant expressions,
13264 and "bool" should be a valid type name. */
13265
13266 #if !true
13267 #error "'true' is not true"
13268 #endif
13269 #if true != 1
13270 #error "'true' is not equal to 1"
13271 #endif
13272 char b[true == 1 ? 1 : -1];
13273 char c[true];
13274
13275 #if false
13276 #error "'false' is not false"
13277 #endif
13278 #if false != 0
13279 #error "'false' is not equal to 0"
13280 #endif
13281 char d[false == 0 ? 1 : -1];
13282
13283 enum { e = false, f = true, g = false * true, h = true * 256 };
13284
13285 char i[(bool) 0.5 == true ? 1 : -1];
13286 char j[(bool) 0.0 == false ? 1 : -1];
13287 char k[sizeof (bool) > 0 ? 1 : -1];
13288
13289 struct sb { bool s: 1; bool t; } s;
13290 char l[sizeof s.t > 0 ? 1 : -1];
13291
13292 /* The following fails for
13293 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13294 bool m[h];
13295 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
13296 char o[-1 - (bool) 0 < 0 ? 1 : -1];
13297 /* Catch a bug in an HP-UX C compiler. See
13298 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13299 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13300 */
13301 bool p = true;
13302 bool *pp = &p;
13303
13304 /* C 1999 specifies that bool, true, and false are to be
13305 macros, but C++ 2011 and later overrule this. */
13306 #if __cplusplus < 201103
13307 #ifndef bool
13308 #error "bool is not defined"
13309 #endif
13310 #ifndef false
13311 #error "false is not defined"
13312 #endif
13313 #ifndef true
13314 #error "true is not defined"
13315 #endif
13316 #endif
13317
13318 /* If _Bool is available, repeat with it all the tests
13319 above that used bool. */
13320 #ifdef HAVE__BOOL
13321 struct sB { _Bool s: 1; _Bool t; } t;
13322
13323 char q[(_Bool) 0.5 == true ? 1 : -1];
13324 char r[(_Bool) 0.0 == false ? 1 : -1];
13325 char u[sizeof (_Bool) > 0 ? 1 : -1];
13326 char v[sizeof t.t > 0 ? 1 : -1];
13327
13328 _Bool w[h];
13329 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
13330 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
13331 _Bool z = true;
13332 _Bool *pz = &p;
13333 #endif
13334
13335int
13336main (void)
13337{
13338
13339 bool ps = &s;
13340 *pp |= p;
13341 *pp |= ! p;
13342
13343 #ifdef HAVE__BOOL
13344 _Bool pt = &t;
13345 *pz |= z;
13346 *pz |= ! z;
13347 #endif
13348
13349 /* Refer to every declared value, so they cannot be
13350 discarded as unused. */
13351 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
13352 + !l + !m + !n + !o + !p + !pp + !ps
13353 #ifdef HAVE__BOOL
13354 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
13355 #endif
13356 );
13357
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"
13363then :
13364 ac_cv_header_stdbool_h=yes
13365else $as_nop
13366 ac_cv_header_stdbool_h=no
13367fi
13368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13369fi
13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13371printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
13372
13373if test $ac_cv_header_stdbool_h = yes; then
13374
13375printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
13376
13377fi
13378
13379ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
13380if test "x$ac_cv_header_asm_types_h" = xyes
13381then :
13382 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
13383
13384fi
13385ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
13386if test "x$ac_cv_header_crypt_h" = xyes
13387then :
13388 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
13389
13390fi
13391ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
13392if test "x$ac_cv_header_paths_h" = xyes
13393then :
13394 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
13395
13396fi
13397ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
13398if test "x$ac_cv_header_shadow_h" = xyes
13399then :
13400 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
13401
13402fi
13403ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13404if test "x$ac_cv_header_stddef_h" = xyes
13405then :
13406 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
13407
13408fi
13409ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13410if test "x$ac_cv_header_stdarg_h" = xyes
13411then :
13412 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
13413
13414fi
13415ac_fn_c_check_header_compile "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
13416if test "x$ac_cv_header_sys_dlpi_h" = xyes
13417then :
13418 printf "%s\n" "#define HAVE_SYS_DLPI_H 1" >>confdefs.h
13419
13420fi
13421ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13422if test "x$ac_cv_header_sys_ioctl_h" = xyes
13423then :
13424 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13425
13426fi
13427ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13428if test "x$ac_cv_header_sys_socket_h" = xyes
13429then :
13430 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13431
13432fi
13433ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13434if test "x$ac_cv_header_sys_time_h" = xyes
13435then :
13436 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13437
13438fi
13439ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
13440if test "x$ac_cv_header_sys_uio_h" = xyes
13441then :
13442 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
13443
13444fi
13445ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13446if test "x$ac_cv_header_time_h" = xyes
13447then :
13448 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13449
13450fi
13451ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13452if test "x$ac_cv_header_unistd_h" = xyes
13453then :
13454 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13455
13456fi
13457ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
13458if test "x$ac_cv_header_utmp_h" = xyes
13459then :
13460 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
13461
13462fi
13463
13464
13465#
13466# Check for linux specific headers, required by pppoe, or pppol2tp
13467if test -z "$LINUX_TRUE"; then :
13468
13469 ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
13470if test "x$ac_cv_header_net_bpf_h" = xyes
13471then :
13472 printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
13473
13474fi
13475ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
13476if test "x$ac_cv_header_net_if_h" = xyes
13477then :
13478 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
13479
13480fi
13481ac_fn_c_check_header_compile "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "$ac_includes_default"
13482if test "x$ac_cv_header_net_if_types_h" = xyes
13483then :
13484 printf "%s\n" "#define HAVE_NET_IF_TYPES_H 1" >>confdefs.h
13485
13486fi
13487ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default"
13488if test "x$ac_cv_header_net_if_arp_h" = xyes
13489then :
13490 printf "%s\n" "#define HAVE_NET_IF_ARP_H 1" >>confdefs.h
13491
13492fi
13493ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "$ac_includes_default"
13494if test "x$ac_cv_header_linux_if_h" = xyes
13495then :
13496 printf "%s\n" "#define HAVE_LINUX_IF_H 1" >>confdefs.h
13497
13498fi
13499ac_fn_c_check_header_compile "$LINENO" "linux/if_ether.h" "ac_cv_header_linux_if_ether_h" "$ac_includes_default"
13500if test "x$ac_cv_header_linux_if_ether_h" = xyes
13501then :
13502 printf "%s\n" "#define HAVE_LINUX_IF_ETHER_H 1" >>confdefs.h
13503
13504fi
13505ac_fn_c_check_header_compile "$LINENO" "linux/if_packet.h" "ac_cv_header_linux_if_packet_h" "$ac_includes_default"
13506if test "x$ac_cv_header_linux_if_packet_h" = xyes
13507then :
13508 printf "%s\n" "#define HAVE_LINUX_IF_PACKET_H 1" >>confdefs.h
13509
13510fi
13511ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default"
13512if test "x$ac_cv_header_netinet_if_ether_h" = xyes
13513then :
13514 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
13515
13516fi
13517ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
13518if test "x$ac_cv_header_netpacket_packet_h" = xyes
13519then :
13520 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
13521
13522fi
13523
13524fi
13525
13526# The cast to long int works around a bug in the HP C Compiler
13527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13529# This bug is HP SR number 8606223364.
13530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13531printf %s "checking size of unsigned int... " >&6; }
13532if test ${ac_cv_sizeof_unsigned_int+y}
13533then :
13534 printf %s "(cached) " >&6
13535else $as_nop
13536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
13537then :
13538
13539else $as_nop
13540 if test "$ac_cv_type_unsigned_int" = yes; then
13541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13542printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13543as_fn_error 77 "cannot compute sizeof (unsigned int)
13544See \`config.log' for more details" "$LINENO" 5; }
13545 else
13546 ac_cv_sizeof_unsigned_int=0
13547 fi
13548fi
13549
13550fi
13551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13552printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
13553
13554
13555
13556printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
13557
13558
13559# The cast to long int works around a bug in the HP C Compiler
13560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13562# This bug is HP SR number 8606223364.
13563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13564printf %s "checking size of unsigned long... " >&6; }
13565if test ${ac_cv_sizeof_unsigned_long+y}
13566then :
13567 printf %s "(cached) " >&6
13568else $as_nop
13569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
13570then :
13571
13572else $as_nop
13573 if test "$ac_cv_type_unsigned_long" = yes; then
13574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13575printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13576as_fn_error 77 "cannot compute sizeof (unsigned long)
13577See \`config.log' for more details" "$LINENO" 5; }
13578 else
13579 ac_cv_sizeof_unsigned_long=0
13580 fi
13581fi
13582
13583fi
13584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13585printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
13586
13587
13588
13589printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
13590
13591
13592# The cast to long int works around a bug in the HP C Compiler
13593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13595# This bug is HP SR number 8606223364.
13596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13597printf %s "checking size of unsigned short... " >&6; }
13598if test ${ac_cv_sizeof_unsigned_short+y}
13599then :
13600 printf %s "(cached) " >&6
13601else $as_nop
13602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
13603then :
13604
13605else $as_nop
13606 if test "$ac_cv_type_unsigned_short" = yes; then
13607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13608printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13609as_fn_error 77 "cannot compute sizeof (unsigned short)
13610See \`config.log' for more details" "$LINENO" 5; }
13611 else
13612 ac_cv_sizeof_unsigned_short=0
13613 fi
13614fi
13615
13616fi
13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13618printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
13619
13620
13621
13622printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
13623
13624
13625
13626# Checks for library functions.
13627ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13628if test "x$ac_cv_func_mmap" = xyes
13629then :
13630 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13631
13632fi
13633ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
13634if test "x$ac_cv_func_logwtmp" = xyes
13635then :
13636 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
13637
13638fi
13639ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13640if test "x$ac_cv_func_strerror" = xyes
13641then :
13642 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13643
13644fi
13645
13646
13647#
13648# If libc doesn't provide logwtmp, check if libutil provides logwtmp(), and if so link to it.
13649if test "x${ac_cv_func_logwtmp}" != "xyes"
13650then :
13651
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logwtmp in -lutil" >&5
13653printf %s "checking for logwtmp in -lutil... " >&6; }
13654if test ${ac_cv_lib_util_logwtmp+y}
13655then :
13656 printf %s "(cached) " >&6
13657else $as_nop
13658 ac_check_lib_save_LIBS=$LIBS
13659LIBS="-lutil $LIBS"
13660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h. */
13662
13663/* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666char logwtmp ();
13667int
13668main (void)
13669{
13670return logwtmp ();
13671 ;
13672 return 0;
13673}
13674_ACEOF
13675if ac_fn_c_try_link "$LINENO"
13676then :
13677 ac_cv_lib_util_logwtmp=yes
13678else $as_nop
13679 ac_cv_lib_util_logwtmp=no
13680fi
13681rm -f core conftest.err conftest.$ac_objext conftest.beam \
13682 conftest$ac_exeext conftest.$ac_ext
13683LIBS=$ac_check_lib_save_LIBS
13684fi
13685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_logwtmp" >&5
13686printf "%s\n" "$ac_cv_lib_util_logwtmp" >&6; }
13687if test "x$ac_cv_lib_util_logwtmp" = xyes
13688then :
13689
13690
13691printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
13692
13693 UTIL_LIBS="-lutil"
13694
13695
13696fi
13697
13698
13699fi
13700
13701#
13702# Check if libcrypt have crypt() function
13703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13704printf %s "checking for crypt in -lcrypt... " >&6; }
13705if test ${ac_cv_lib_crypt_crypt+y}
13706then :
13707 printf %s "(cached) " >&6
13708else $as_nop
13709 ac_check_lib_save_LIBS=$LIBS
13710LIBS="-lcrypt $LIBS"
13711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712/* end confdefs.h. */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717char crypt ();
13718int
13719main (void)
13720{
13721return crypt ();
13722 ;
13723 return 0;
13724}
13725_ACEOF
13726if ac_fn_c_try_link "$LINENO"
13727then :
13728 ac_cv_lib_crypt_crypt=yes
13729else $as_nop
13730 ac_cv_lib_crypt_crypt=no
13731fi
13732rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733 conftest$ac_exeext conftest.$ac_ext
13734LIBS=$ac_check_lib_save_LIBS
13735fi
13736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13737printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
13738if test "x$ac_cv_lib_crypt_crypt" = xyes
13739then :
13740 CRYPT_LIBS="-lcrypt"
13741
13742fi
13743
13744
13745#
13746# Should pppd link with -lsystemd (Linux only)
13747# Check whether --enable-systemd was given.
13748if test ${enable_systemd+y}
13749then :
13750 enableval=$enable_systemd;
13751fi
13752
13753 if test "x${enable_systemd}" = "xyes"; then
13754 WITH_SYSTEMD_TRUE=
13755 WITH_SYSTEMD_FALSE='#'
13756else
13757 WITH_SYSTEMD_TRUE='#'
13758 WITH_SYSTEMD_FALSE=
13759fi
13760
13761if test -z "$WITH_SYSTEMD_TRUE"; then :
13762
13763printf "%s\n" "#define SYSTEMD 1" >>confdefs.h
13764
13765fi
13766if test "x${enable_systemd}" = "xyes"
13767then :
13768
13769
13770pkg_failed=no
13771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
13772printf %s "checking for libsystemd... " >&6; }
13773
13774if test -n "$SYSTEMD_CFLAGS"; then
13775 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
13776 elif test -n "$PKG_CONFIG"; then
13777 if test -n "$PKG_CONFIG" && \
13778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13779 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13780 ac_status=$?
13781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13782 test $ac_status = 0; }; then
13783 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
13784 test "x$?" != "x0" && pkg_failed=yes
13785else
13786 pkg_failed=yes
13787fi
13788 else
13789 pkg_failed=untried
13790fi
13791if test -n "$SYSTEMD_LIBS"; then
13792 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
13793 elif test -n "$PKG_CONFIG"; then
13794 if test -n "$PKG_CONFIG" && \
13795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13796 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13797 ac_status=$?
13798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799 test $ac_status = 0; }; then
13800 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
13801 test "x$?" != "x0" && pkg_failed=yes
13802else
13803 pkg_failed=yes
13804fi
13805 else
13806 pkg_failed=untried
13807fi
13808
13809
13810
13811if test $pkg_failed = yes; then
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813printf "%s\n" "no" >&6; }
13814
13815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13816 _pkg_short_errors_supported=yes
13817else
13818 _pkg_short_errors_supported=no
13819fi
13820 if test $_pkg_short_errors_supported = yes; then
13821 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
13822 else
13823 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
13824 fi
13825 # Put the nasty error message in config.log where it belongs
13826 echo "$SYSTEMD_PKG_ERRORS" >&5
13827
13828 as_fn_error $? "Package requirements (libsystemd) were not met:
13829
13830$SYSTEMD_PKG_ERRORS
13831
13832Consider adjusting the PKG_CONFIG_PATH environment variable if you
13833installed software in a non-standard prefix.
13834
13835Alternatively, you may set the environment variables SYSTEMD_CFLAGS
13836and SYSTEMD_LIBS to avoid the need to call pkg-config.
13837See the pkg-config man page for more details." "$LINENO" 5
13838elif test $pkg_failed = untried; then
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840printf "%s\n" "no" >&6; }
13841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13842printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13843as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13844is in your PATH or set the PKG_CONFIG environment variable to the full
13845path to pkg-config.
13846
13847Alternatively, you may set the environment variables SYSTEMD_CFLAGS
13848and SYSTEMD_LIBS to avoid the need to call pkg-config.
13849See the pkg-config man page for more details.
13850
13851To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13852See \`config.log' for more details" "$LINENO" 5; }
13853else
13854 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
13855 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13857printf "%s\n" "yes" >&6; }
13858
13859fi
13860fi
13861
13862#
13863# Enable Callback Protocol Support, disabled by default
13864# Check whether --enable-cbcp was given.
13865if test ${enable_cbcp+y}
13866then :
13867 enableval=$enable_cbcp;
13868fi
13869
13870 if test "x${enable_cbcp}" = "xyes"; then
13871 PPP_WITH_CBCP_TRUE=
13872 PPP_WITH_CBCP_FALSE='#'
13873else
13874 PPP_WITH_CBCP_TRUE='#'
13875 PPP_WITH_CBCP_FALSE=
13876fi
13877
13878if test -z "$PPP_WITH_CBCP_TRUE"; then :
13879
13880printf "%s\n" "#define PPP_WITH_CBCP 1" >>confdefs.h
13881
13882fi
13883
13884#
13885# Disable Microsoft extensions will remove CHAP and MPPE support
13886# Check whether --enable-microsoft-extensions was given.
13887if test ${enable_microsoft_extensions+y}
13888then :
13889 enableval=$enable_microsoft_extensions;
13890fi
13891
13892
13893 if test "x${enable_microsoft_extensions}" != "xno"; then
13894 PPP_WITH_CHAPMS_TRUE=
13895 PPP_WITH_CHAPMS_FALSE='#'
13896else
13897 PPP_WITH_CHAPMS_TRUE='#'
13898 PPP_WITH_CHAPMS_FALSE=
13899fi
13900
13901if test -z "$PPP_WITH_CHAPMS_TRUE"; then :
13902
13903printf "%s\n" "#define PPP_WITH_CHAPMS 1" >>confdefs.h
13904
13905fi
13906
13907 if test "x${enable_microsoft_extensions}" != "xno"; then
13908 PPP_WITH_MPPE_TRUE=
13909 PPP_WITH_MPPE_FALSE='#'
13910else
13911 PPP_WITH_MPPE_TRUE='#'
13912 PPP_WITH_MPPE_FALSE=
13913fi
13914
13915if test -z "$PPP_WITH_MPPE_TRUE"; then :
13916
13917printf "%s\n" "#define PPP_WITH_MPPE 1" >>confdefs.h
13918
13919fi
13920
13921#
13922# Enable Microsoft LAN Manager support, depends on Microsoft Extensions
13923# Check whether --enable-mslanman was given.
13924if test ${enable_mslanman+y}
13925then :
13926 enableval=$enable_mslanman;
13927fi
13928
13929if test "x${enable_mslanman}" = "xyes" && test "x${enable_microsoft_extensions}" != "xno"
13930then :
13931
13932printf "%s\n" "#define PPP_WITH_MSLANMAN 1" >>confdefs.h
13933
13934fi
13935
13936#
13937# Disable IPv6 support
13938# Check whether --enable-ipv6cp was given.
13939if test ${enable_ipv6cp+y}
13940then :
13941 enableval=$enable_ipv6cp;
13942fi
13943
13944 if test "x${enable_ipv6cp}" != "xno"; then
13945 PPP_WITH_IPV6CP_TRUE=
13946 PPP_WITH_IPV6CP_FALSE='#'
13947else
13948 PPP_WITH_IPV6CP_TRUE='#'
13949 PPP_WITH_IPV6CP_FALSE=
13950fi
13951
13952if test -z "$PPP_WITH_IPV6CP_TRUE"; then :
13953
13954printf "%s\n" "#define PPP_WITH_IPV6CP 1" >>confdefs.h
13955
13956fi
13957
13958#
13959# Disable Multilink support
13960# Check whether --enable-multilink was given.
13961if test ${enable_multilink+y}
13962then :
13963 enableval=$enable_multilink;
13964fi
13965
13966 if test "x${enable_multilink}" = "xyes"; then
13967 PPP_WITH_MULTILINK_TRUE=
13968 PPP_WITH_MULTILINK_FALSE='#'
13969else
13970 PPP_WITH_MULTILINK_TRUE='#'
13971 PPP_WITH_MULTILINK_FALSE=
13972fi
13973
13974if test -z "$PPP_WITH_MULTILINK_TRUE"; then :
13975
13976printf "%s\n" "#define PPP_WITH_MULTILINK 1" >>confdefs.h
13977
13978fi
13979if test "x${build_sunos}" = "xyes" && test "x${enable_multilink}" = "xyes"
13980then :
13981 as_fn_error $? "Multilink is not supported on SunOS" "$LINENO" 5
13982fi
13983
13984#
13985# Multilink require Trivial Database Support
13986 if test "x${enable_multilink}" = "xyes"; then
13987 PPP_WITH_TDB_TRUE=
13988 PPP_WITH_TDB_FALSE='#'
13989else
13990 PPP_WITH_TDB_TRUE='#'
13991 PPP_WITH_TDB_FALSE=
13992fi
13993
13994if test -z "$PPP_WITH_TDB_TRUE"; then :
13995
13996printf "%s\n" "#define PPP_WITH_TDB 1" >>confdefs.h
13997
13998fi
13999
14000#
14001# Enable support for loadable plugins
14002# Check whether --enable-plugins was given.
14003if test ${enable_plugins+y}
14004then :
14005 enableval=$enable_plugins;
14006fi
14007
14008if test "x$enable_plugins" != "xno"
14009then :
14010
14011printf "%s\n" "#define PPP_WITH_PLUGINS 1" >>confdefs.h
14012
14013fi
14014 if test "x${enable_plugins}" != "xno"; then
14015 PPP_WITH_PLUGINS_TRUE=
14016 PPP_WITH_PLUGINS_FALSE='#'
14017else
14018 PPP_WITH_PLUGINS_TRUE='#'
14019 PPP_WITH_PLUGINS_FALSE=
14020fi
14021
14022
14023#
14024# Disable EAP-TLS support
14025# Check whether --enable-eaptls was given.
14026if test ${enable_eaptls+y}
14027then :
14028 enableval=$enable_eaptls;
14029fi
14030
14031if test "x$enable_eaptls" != "xno"
14032then :
14033
14034printf "%s\n" "#define PPP_WITH_EAPTLS 1" >>confdefs.h
14035
14036fi
14037 if test "x${enable_eaptls}" != "xno"; then
14038 PPP_WITH_EAPTLS_TRUE=
14039 PPP_WITH_EAPTLS_FALSE='#'
14040else
14041 PPP_WITH_EAPTLS_TRUE='#'
14042 PPP_WITH_EAPTLS_FALSE=
14043fi
14044
14045
14046#
14047# Disable PEAP support
14048# Check whether --enable-peap was given.
14049if test ${enable_peap+y}
14050then :
14051 enableval=$enable_peap;
14052fi
14053
14054if test "x${enable_peap}" != "xno"
14055then :
14056
14057printf "%s\n" "#define PPP_WITH_PEAP 1" >>confdefs.h
14058
14059fi
14060 if test "x${enable_peap}" != "xno"; then
14061 PPP_WITH_PEAP_TRUE=
14062 PPP_WITH_PEAP_FALSE='#'
14063else
14064 PPP_WITH_PEAP_TRUE='#'
14065 PPP_WITH_PEAP_FALSE=
14066fi
14067
14068
14069#
14070# Disable OpenSSL engine support
14071# Check whether --enable-openssl-engine was given.
14072if test ${enable_openssl_engine+y}
14073then :
14074 enableval=$enable_openssl_engine;
14075fi
14076
14077if test "x$enable_openssl_engine" != "xno"
14078then :
14079
14080else $as_nop
14081
14082printf "%s\n" "#define OPENSSL_NO_ENGINE 1" >>confdefs.h
14083
14084fi
14085
14086#
14087# Specify runtime directory
14088
14089# Check whether --with-plugin-dir was given.
14090if test ${with_plugin_dir+y}
14091then :
14092 withval=$with_plugin_dir;
14093fi
14094
14095if test -n "$with_plugin_dir"
14096then :
14097 PPPD_PLUGIN_DIR="$with_plugin_dir"
14098else $as_nop
14099 PPPD_PLUGIN_DIR="${libdir}/pppd/$VERSION"
14100fi
14101PPPD_PLUGIN_DIR="$PPPD_PLUGIN_DIR"
14102
14103
14104#
14105# Specify runtime directory
14106
14107# Check whether --with-runtime-dir was given.
14108if test ${with_runtime_dir+y}
14109then :
14110 withval=$with_runtime_dir;
14111fi
14112
14113if test -n "$with_runtime_dir"
14114then :
14115 PPPD_RUNTIME_DIR="$with_runtime_dir"
14116else $as_nop
14117 PPPD_RUNTIME_DIR="${runstatedir}/pppd"
14118fi
14119
14120
14121#
14122# Specify runtime directory
14123
14124# Check whether --with-logfile-dir was given.
14125if test ${with_logfile_dir+y}
14126then :
14127 withval=$with_logfile_dir;
14128fi
14129
14130if test -n "$with_logfile_dir"
14131then :
14132 PPPD_LOGFILE_DIR="$with_logfile_dir"
14133else $as_nop
14134 PPPD_LOGFILE_DIR="${localstatedir}/log/ppp"
14135fi
14136
14137
14138#
14139# System CA certificates path
14140
14141# Check whether --with-system-ca-path was given.
14142if test ${with_system_ca_path+y}
14143then :
14144 withval=$with_system_ca_path;
14145 case "$withval" in
14146 "" | y | ye | yes)
14147 with_system_ca_path="${sysconfdir}/ssl/certs"
14148 ;;
14149 n | no)
14150 ;;
14151 *)
14152 with_system_ca_path="$withval"
14153 ;;
14154 esac
14155
14156else $as_nop
14157 with_system_ca_path="${sysconfdir}/ssl/certs"
14158fi
14159
14160 if test "$with_system_ca_path" != "no"; then
14161 PPP_WITH_SYSTEM_CA_PATH_TRUE=
14162 PPP_WITH_SYSTEM_CA_PATH_FALSE='#'
14163else
14164 PPP_WITH_SYSTEM_CA_PATH_TRUE='#'
14165 PPP_WITH_SYSTEM_CA_PATH_FALSE=
14166fi
14167
14168if test -z "$PPP_WITH_SYSTEM_CA_PATH_TRUE"; then :
14169
14170 SYSTEM_CA_PATH="$with_system_ca_path"
14171
14172fi
14173
14174
14175#
14176# Check for OpenSSL
14177
14178 found=false
14179
14180# Check whether --with-openssl was given.
14181if test ${with_openssl+y}
14182then :
14183 withval=$with_openssl;
14184 case "$withval" in
14185 "" | y | ye | yes )
14186 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14187 ;;
14188 n | no )
14189 ;;
14190 *) ssldirs="$withval"
14191 ;;
14192 esac
14193
14194else $as_nop
14195
14196 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14197
14198fi
14199
14200
14201 if test "${with_openssl}" != "no"
14202then :
14203
14204 OPENSSL_INCLUDES=
14205 for ssldir in $ssldirs; do
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
14207printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
14208 if test -f "$ssldir/include/openssl/ssl.h"
14209then :
14210
14211 OPENSSL_INCLUDES="-I$ssldir/include"
14212 OPENSSL_LDFLAGS="-L$ssldir/lib"
14213 OPENSSL_LIBS="-lssl -lcrypto"
14214 found=true
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14216printf "%s\n" "yes" >&6; }
14217 break
14218
14219else $as_nop
14220
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222printf "%s\n" "no" >&6; }
14223
14224fi
14225 done
14226fi
14227
14228 if test "${with_openssl}" != "no" && test ! ${found}
14229then :
14230
14231 # if pkg-config is installed and openssl has installed a .pc file,
14232 # then use that information and don't search ssldirs
14233 # Extract the first word of "pkg-config", so it can be a program name with args.
14234set dummy pkg-config; ac_word=$2
14235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236printf %s "checking for $ac_word... " >&6; }
14237if test ${ac_cv_path_PKG_CONFIG+y}
14238then :
14239 printf %s "(cached) " >&6
14240else $as_nop
14241 case $PKG_CONFIG in
14242 [\\/]* | ?:[\\/]*)
14243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14244 ;;
14245 *)
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247for as_dir in $PATH
14248do
14249 IFS=$as_save_IFS
14250 case $as_dir in #(((
14251 '') as_dir=./ ;;
14252 */) ;;
14253 *) as_dir=$as_dir/ ;;
14254 esac
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14257 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261done
14262 done
14263IFS=$as_save_IFS
14264
14265 ;;
14266esac
14267fi
14268PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14269if test -n "$PKG_CONFIG"; then
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14271printf "%s\n" "$PKG_CONFIG" >&6; }
14272else
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274printf "%s\n" "no" >&6; }
14275fi
14276
14277
14278 if test x"$PKG_CONFIG" != x""; then
14279 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14280 if test $? = 0; then
14281 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14282 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14283 found=true
14284 fi
14285 fi
14286
14287fi
14288
14289 if test "${with_openssl}" != "no" && test ${found}
14290then :
14291
14292
14293 # try the preprocessor and linker with our new flags,
14294 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14295
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
14297printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
14298 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14299 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14300
14301 save_LIBS="$LIBS"
14302 save_LDFLAGS="$LDFLAGS"
14303 save_CPPFLAGS="$CPPFLAGS"
14304 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14305 LIBS="$OPENSSL_LIBS $LIBS"
14306 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308/* end confdefs.h. */
14309#include <openssl/ssl.h>
14310int
14311main (void)
14312{
14313SSL_new(NULL)
14314 ;
14315 return 0;
14316}
14317_ACEOF
14318if ac_fn_c_try_link "$LINENO"
14319then :
14320
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14322printf "%s\n" "yes" >&6; }
14323
14324
14325else $as_nop
14326
14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328printf "%s\n" "no" >&6; }
14329
14330
14331fi
14332rm -f core conftest.err conftest.$ac_objext conftest.beam \
14333 conftest$ac_exeext conftest.$ac_ext
14334 CPPFLAGS="$save_CPPFLAGS"
14335 LDFLAGS="$save_LDFLAGS"
14336 LIBS="$save_LIBS"
14337
14338
14339
14340
14341
14342fi
14343
14344 if test "x${with_openssl}" != "xno"; then
14345 PPP_WITH_OPENSSL_TRUE=
14346 PPP_WITH_OPENSSL_FALSE='#'
14347else
14348 PPP_WITH_OPENSSL_TRUE='#'
14349 PPP_WITH_OPENSSL_FALSE=
14350fi
14351
14352if test -z "$PPP_WITH_OPENSSL_TRUE"; then :
14353
14354printf "%s\n" "#define PPP_WITH_OPENSSL 1" >>confdefs.h
14355
14356fi
14357
14358#
14359# Check if OpenSSL has compiled in support for various ciphers
14360ac_ext=c
14361ac_cpp='$CPP $CPPFLAGS'
14362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14364ac_compiler_gnu=$ac_cv_c_compiler_gnu
14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14366printf %s "checking how to run the C preprocessor... " >&6; }
14367# On Suns, sometimes $CPP names a directory.
14368if test -n "$CPP" && test -d "$CPP"; then
14369 CPP=
14370fi
14371if test -z "$CPP"; then
14372 if test ${ac_cv_prog_CPP+y}
14373then :
14374 printf %s "(cached) " >&6
14375else $as_nop
14376 # Double quotes because $CC needs to be expanded
14377 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14378 do
14379 ac_preproc_ok=false
14380for ac_c_preproc_warn_flag in '' yes
14381do
14382 # Use a header file that comes with gcc, so configuring glibc
14383 # with a fresh cross-compiler works.
14384 # On the NeXT, cc -E runs the code through the compiler's parser,
14385 # not just through cpp. "Syntax error" is here to catch this case.
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387/* end confdefs.h. */
14388#include <limits.h>
14389 Syntax error
14390_ACEOF
14391if ac_fn_c_try_cpp "$LINENO"
14392then :
14393
14394else $as_nop
14395 # Broken: fails on valid input.
14396continue
14397fi
14398rm -f conftest.err conftest.i conftest.$ac_ext
14399
14400 # OK, works on sane cases. Now check whether nonexistent headers
14401 # can be detected and how.
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404#include <ac_nonexistent.h>
14405_ACEOF
14406if ac_fn_c_try_cpp "$LINENO"
14407then :
14408 # Broken: success on invalid input.
14409continue
14410else $as_nop
14411 # Passes both tests.
14412ac_preproc_ok=:
14413break
14414fi
14415rm -f conftest.err conftest.i conftest.$ac_ext
14416
14417done
14418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14419rm -f conftest.i conftest.err conftest.$ac_ext
14420if $ac_preproc_ok
14421then :
14422 break
14423fi
14424
14425 done
14426 ac_cv_prog_CPP=$CPP
14427
14428fi
14429 CPP=$ac_cv_prog_CPP
14430else
14431 ac_cv_prog_CPP=$CPP
14432fi
14433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14434printf "%s\n" "$CPP" >&6; }
14435ac_preproc_ok=false
14436for ac_c_preproc_warn_flag in '' yes
14437do
14438 # Use a header file that comes with gcc, so configuring glibc
14439 # with a fresh cross-compiler works.
14440 # On the NeXT, cc -E runs the code through the compiler's parser,
14441 # not just through cpp. "Syntax error" is here to catch this case.
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h. */
14444#include <limits.h>
14445 Syntax error
14446_ACEOF
14447if ac_fn_c_try_cpp "$LINENO"
14448then :
14449
14450else $as_nop
14451 # Broken: fails on valid input.
14452continue
14453fi
14454rm -f conftest.err conftest.i conftest.$ac_ext
14455
14456 # OK, works on sane cases. Now check whether nonexistent headers
14457 # can be detected and how.
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459/* end confdefs.h. */
14460#include <ac_nonexistent.h>
14461_ACEOF
14462if ac_fn_c_try_cpp "$LINENO"
14463then :
14464 # Broken: success on invalid input.
14465continue
14466else $as_nop
14467 # Passes both tests.
14468ac_preproc_ok=:
14469break
14470fi
14471rm -f conftest.err conftest.i conftest.$ac_ext
14472
14473done
14474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14475rm -f conftest.i conftest.err conftest.$ac_ext
14476if $ac_preproc_ok
14477then :
14478
14479else $as_nop
14480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14481printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14482as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14483See \`config.log' for more details" "$LINENO" 5; }
14484fi
14485
14486ac_ext=c
14487ac_cpp='$CPP $CPPFLAGS'
14488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14490ac_compiler_gnu=$ac_cv_c_compiler_gnu
14491
14492
14493if test "x${with_openssl}" != "xno"
14494then :
14495
14496
14497
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for md4 support in openssl" >&5
14499printf %s "checking for md4 support in openssl... " >&6; }
14500 save_CPPFLAGS="$CPPFLAGS"
14501 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503/* end confdefs.h. */
14504
14505 #include <openssl/opensslconf.h>
14506int
14507main (void)
14508{
14509#ifdef OPENSSL_NO_MD4
14510 #error "No support for OPENSSL_NO_MD4"
14511 #endif
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516if ac_fn_c_try_cpp "$LINENO"
14517then :
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14519printf "%s\n" "yes" >&6; }
14520 ac_cv_openssl_md4=yes
14521
14522else $as_nop
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524printf "%s\n" "no" >&6; }
14525 ac_cv_openssl_md4=no
14526
14527
14528fi
14529rm -f conftest.err conftest.i conftest.$ac_ext
14530 CPPFLAGS="$save_CPPFLAGS"
14531
14532
14533
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for md5 support in openssl" >&5
14535printf %s "checking for md5 support in openssl... " >&6; }
14536 save_CPPFLAGS="$CPPFLAGS"
14537 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h. */
14540
14541 #include <openssl/opensslconf.h>
14542int
14543main (void)
14544{
14545#ifdef OPENSSL_NO_MD5
14546 #error "No support for OPENSSL_NO_MD5"
14547 #endif
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552if ac_fn_c_try_cpp "$LINENO"
14553then :
14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14555printf "%s\n" "yes" >&6; }
14556 ac_cv_openssl_md5=yes
14557
14558else $as_nop
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560printf "%s\n" "no" >&6; }
14561 ac_cv_openssl_md5=no
14562
14563
14564fi
14565rm -f conftest.err conftest.i conftest.$ac_ext
14566 CPPFLAGS="$save_CPPFLAGS"
14567
14568
14569
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for des support in openssl" >&5
14571printf %s "checking for des support in openssl... " >&6; }
14572 save_CPPFLAGS="$CPPFLAGS"
14573 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575/* end confdefs.h. */
14576
14577 #include <openssl/opensslconf.h>
14578int
14579main (void)
14580{
14581#ifdef OPENSSL_NO_DES
14582 #error "No support for OPENSSL_NO_DES"
14583 #endif
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588if ac_fn_c_try_cpp "$LINENO"
14589then :
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14591printf "%s\n" "yes" >&6; }
14592 ac_cv_openssl_des=yes
14593
14594else $as_nop
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596printf "%s\n" "no" >&6; }
14597 ac_cv_openssl_des=no
14598
14599
14600fi
14601rm -f conftest.err conftest.i conftest.$ac_ext
14602 CPPFLAGS="$save_CPPFLAGS"
14603
14604
14605
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sha support in openssl" >&5
14607printf %s "checking for sha support in openssl... " >&6; }
14608 save_CPPFLAGS="$CPPFLAGS"
14609 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h. */
14612
14613 #include <openssl/opensslconf.h>
14614int
14615main (void)
14616{
14617#ifdef OPENSSL_NO_SHA
14618 #error "No support for OPENSSL_NO_SHA"
14619 #endif
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624if ac_fn_c_try_cpp "$LINENO"
14625then :
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627printf "%s\n" "yes" >&6; }
14628 ac_cv_openssl_sha=yes
14629
14630else $as_nop
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14632printf "%s\n" "no" >&6; }
14633 ac_cv_openssl_sha=no
14634
14635
14636fi
14637rm -f conftest.err conftest.i conftest.$ac_ext
14638 CPPFLAGS="$save_CPPFLAGS"
14639
14640
14641else $as_nop
14642
14643 if test "x${enable_eaptls}" != "xno" || test "x${enable_peap}" != "xno"
14644then :
14645 as_fn_error $? "OpenSSL not found, and if this is your intention then run configure --disable-eaptls and --disable-peap" "$LINENO" 5
14646fi
14647
14648fi
14649
14650 if test "x${ac_cv_openssl_md4}" = "xyes"; then
14651 OPENSSL_HAVE_MD4_TRUE=
14652 OPENSSL_HAVE_MD4_FALSE='#'
14653else
14654 OPENSSL_HAVE_MD4_TRUE='#'
14655 OPENSSL_HAVE_MD4_FALSE=
14656fi
14657
14658if test -z "$OPENSSL_HAVE_MD4_TRUE"; then :
14659
14660printf "%s\n" "#define OPENSSL_HAVE_MD4 1" >>confdefs.h
14661
14662fi
14663
14664 if test "x${ac_cv_openssl_md5}" = "xyes"; then
14665 OPENSSL_HAVE_MD5_TRUE=
14666 OPENSSL_HAVE_MD5_FALSE='#'
14667else
14668 OPENSSL_HAVE_MD5_TRUE='#'
14669 OPENSSL_HAVE_MD5_FALSE=
14670fi
14671
14672if test -z "$OPENSSL_HAVE_MD5_TRUE"; then :
14673
14674printf "%s\n" "#define OPENSSL_HAVE_MD5 1" >>confdefs.h
14675
14676fi
14677
14678 if test "x${ac_cv_openssl_sha}" = "xyes"; then
14679 OPENSSL_HAVE_SHA_TRUE=
14680 OPENSSL_HAVE_SHA_FALSE='#'
14681else
14682 OPENSSL_HAVE_SHA_TRUE='#'
14683 OPENSSL_HAVE_SHA_FALSE=
14684fi
14685
14686if test -z "$OPENSSL_HAVE_SHA_TRUE"; then :
14687
14688printf "%s\n" "#define OPENSSL_HAVE_SHA 1" >>confdefs.h
14689
14690fi
14691
14692 if test "x${ac_cv_openssl_des}" = "xyes"; then
14693 OPENSSL_HAVE_DES_TRUE=
14694 OPENSSL_HAVE_DES_FALSE='#'
14695else
14696 OPENSSL_HAVE_DES_TRUE='#'
14697 OPENSSL_HAVE_DES_FALSE=
14698fi
14699
14700if test -z "$OPENSSL_HAVE_DES_TRUE"; then :
14701
14702printf "%s\n" "#define OPENSSL_HAVE_DES 1" >>confdefs.h
14703
14704fi
14705
14706#
14707# With libsrp support
14708
14709
14710# Check whether --with-srp was given.
14711if test ${with_srp+y}
14712then :
14713 withval=$with_srp;
14714 case "$withval" in
14715 "" | y | ye | yes)
14716 srpdirs="/usr/local /usr/lib /usr"
14717 ;;
14718 n | no)
14719 with_srp="no"
14720 ;;
14721 *)
14722 srpdirs="$withval"
14723 ;;
14724 esac
14725
14726fi
14727
14728
14729 if test "x${with_srp}" != "xno" ; then
14730 SRP_LIBS="-lsrp"
14731 for srpdir in $srpdirs; do
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srp.h in $srpdir" >&5
14733printf %s "checking for srp.h in $srpdir... " >&6; }
14734 if test -f "$srpdir/include/srp.h"; then
14735 SRP_CFLAGS="-I$srpdir/include"
14736 SRP_LDFLAGS="-L$srpdir/lib"
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14738printf "%s\n" "yes" >&6; }
14739 break
14740 else
14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742printf "%s\n" "no" >&6; }
14743 fi
14744 done
14745
14746 # try the preprocessor and linker with our new flags,
14747 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14748
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libsrp works" >&5
14750printf %s "checking if compiling and linking against libsrp works... " >&6; }
14751
14752 save_LIBS="$LIBS"
14753 save_LDFLAGS="$LDFLAGS"
14754 save_CPPFLAGS="$CPPFLAGS"
14755 LDFLAGS="$SRP_LDFLAGS $OPENSSL_LDFLAGS $LDFLAGS"
14756 LIBS="$SRP_LIBS $OPENSSL_LIBS $LIBS"
14757 CPPFLAGS="$SRP_CFLAGS $OPENSSL_INCLUDES $CPPFLAGS"
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759/* end confdefs.h. */
14760#include <srp.h>
14761 #include <stddef.h>
14762int
14763main (void)
14764{
14765SRP_use_engine(NULL);
14766 ;
14767 return 0;
14768}
14769_ACEOF
14770if ac_fn_c_try_link "$LINENO"
14771then :
14772
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774printf "%s\n" "yes" >&6; }
14775 with_srp=yes
14776
14777
14778printf "%s\n" "#define PPP_WITH_SRP 1" >>confdefs.h
14779
14780
14781else $as_nop
14782
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784printf "%s\n" "no" >&6; }
14785 with_srp="no"
14786
14787
14788fi
14789rm -f core conftest.err conftest.$ac_objext conftest.beam \
14790 conftest$ac_exeext conftest.$ac_ext
14791 CPPFLAGS="$save_CPPFLAGS"
14792 LDFLAGS="$save_LDFLAGS"
14793 LIBS="$save_LIBS"
14794
14795
14796
14797
14798 fi
14799
14800 if test "x${with_srp}" != "xno"; then
14801 WITH_SRP_TRUE=
14802 WITH_SRP_FALSE='#'
14803else
14804 WITH_SRP_TRUE='#'
14805 WITH_SRP_FALSE=
14806fi
14807
14808
14809
14810#
14811# With libatm support
14812
14813
14814# Check whether --with-atm was given.
14815if test ${with_atm+y}
14816then :
14817 withval=$with_atm;
14818 case "$withval" in
14819 "" | y | ye | yes)
14820 atmdirs="/usr/local /usr/lib /usr"
14821 ;;
14822 n | no)
14823 with_atm="no"
14824 ;;
14825 *)
14826 atmdirs="$withval"
14827 ;;
14828 esac
14829
14830fi
14831
14832
14833 if test "x${with_atm}" != "xno" ; then
14834 ATM_LIBS="-latm"
14835 for atmdir in $atmdirs; do
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atm.h in $atmdir" >&5
14837printf %s "checking for atm.h in $atmdir... " >&6; }
14838 if test -f "$atmdir/include/atm.h"; then
14839 ATM_CFLAGS="-I$atmdir/include"
14840 ATM_LDFLAGS="-L$atmdir/lib"
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14842printf "%s\n" "yes" >&6; }
14843 break
14844 else
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846printf "%s\n" "no" >&6; }
14847 fi
14848 done
14849
14850 # try the preprocessor and linker with our new flags,
14851 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14852
14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libatm works" >&5
14854printf %s "checking if compiling and linking against libatm works... " >&6; }
14855
14856 save_LIBS="$LIBS"
14857 save_LDFLAGS="$LDFLAGS"
14858 save_CPPFLAGS="$CPPFLAGS"
14859 LDFLAGS="$LDFLAGS $ATM_LDFLAGS"
14860 LIBS="$ATM_LIBS $LIBS"
14861 CPPFLAGS="$ATM_CFLAGS $CPPFLAGS"
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h. */
14864#include <atm.h>
14865 #include <stddef.h>
14866int
14867main (void)
14868{
14869text2atm(NULL,NULL,0,0);
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874if ac_fn_c_try_link "$LINENO"
14875then :
14876
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878printf "%s\n" "yes" >&6; }
14879 with_atm=yes
14880
14881
14882else $as_nop
14883
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14885printf "%s\n" "no" >&6; }
14886 with_atm="no"
14887
14888
14889fi
14890rm -f core conftest.err conftest.$ac_objext conftest.beam \
14891 conftest$ac_exeext conftest.$ac_ext
14892 CPPFLAGS="$save_CPPFLAGS"
14893 LDFLAGS="$save_LDFLAGS"
14894 LIBS="$save_LIBS"
14895
14896
14897
14898
14899 fi
14900 if test "x${with_atm}" != "xno"; then
14901 WITH_LIBATM_TRUE=
14902 WITH_LIBATM_FALSE='#'
14903else
14904 WITH_LIBATM_TRUE='#'
14905 WITH_LIBATM_FALSE=
14906fi
14907
14908
14909
14910#
14911# With libpam support
14912
14913
14914# Check whether --with-pam was given.
14915if test ${with_pam+y}
14916then :
14917 withval=$with_pam;
14918 case "$withval" in
14919 "" | y | ye | yes)
14920 pamdirs="/usr/local /usr/lib /usr"
14921 ;;
14922 n | no)
14923 with_pam="no"
14924 ;;
14925 *)
14926 pamdirs="$withval"
14927 ;;
14928 esac
14929
14930fi
14931
14932
14933 if test "x${with_pam}" != "xno" ; then
14934 PAM_LIBS="-lpam"
14935 for pamdir in $pamdirs; do
14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_appl.h in $pamdir" >&5
14937printf %s "checking for pam_appl.h in $pamdir... " >&6; }
14938 if test -f "$pamdir/include/security/pam_appl.h"; then
14939 PAM_CFLAGS="-I$pamdir/include"
14940 PAM_LDFLAGS="-L$pamdir/lib"
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14942printf "%s\n" "yes" >&6; }
14943 break
14944 else
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946printf "%s\n" "no" >&6; }
14947 fi
14948 done
14949
14950 # try the preprocessor and linker with our new flags,
14951 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14952
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libpam works" >&5
14954printf %s "checking if compiling and linking against libpam works... " >&6; }
14955
14956 save_LIBS="$LIBS"
14957 save_LDFLAGS="$LDFLAGS"
14958 save_CPPFLAGS="$CPPFLAGS"
14959 LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
14960 LIBS="$PAM_LIBS $LIBS"
14961 CPPFLAGS="$PAM_CFLAGS $CPPFLAGS"
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h. */
14964#include <security/pam_appl.h>
14965 #include <stddef.h>
14966int
14967main (void)
14968{
14969pam_authenticate(NULL, 0);
14970 ;
14971 return 0;
14972}
14973_ACEOF
14974if ac_fn_c_try_link "$LINENO"
14975then :
14976
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14978printf "%s\n" "yes" >&6; }
14979 with_pam=yes
14980
14981printf "%s\n" "#define PPP_WITH_PAM 1" >>confdefs.h
14982
14983
14984else $as_nop
14985
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14987printf "%s\n" "no" >&6; }
14988 with_pam="no"
14989
14990
14991fi
14992rm -f core conftest.err conftest.$ac_objext conftest.beam \
14993 conftest$ac_exeext conftest.$ac_ext
14994 CPPFLAGS="$save_CPPFLAGS"
14995 LDFLAGS="$save_LDFLAGS"
14996 LIBS="$save_LIBS"
14997
14998
14999
15000
15001 fi
15002 if test "x${with_pam}" != "xno"; then
15003 WITH_LIBPAM_TRUE=
15004 WITH_LIBPAM_FALSE='#'
15005else
15006 WITH_LIBPAM_TRUE='#'
15007 WITH_LIBPAM_FALSE=
15008fi
15009
15010
15011 if test "x${with_pam}" = "xyes"; then
15012 PPP_WITH_PAM_TRUE=
15013 PPP_WITH_PAM_FALSE='#'
15014else
15015 PPP_WITH_PAM_TRUE='#'
15016 PPP_WITH_PAM_FALSE=
15017fi
15018
15019
15020#
15021# With libpcap support, activate pppd on network activity
15022
15023
15024# Check whether --with-pcap was given.
15025if test ${with_pcap+y}
15026then :
15027 withval=$with_pcap;
15028 case "$withval" in
15029 "" | y | ye | yes)
15030 pcapdirs="/usr/local /usr/lib /usr"
15031 ;;
15032 n | no)
15033 with_pcap="no"
15034 ;;
15035 *)
15036 pcapdirs="$withval"
15037 ;;
15038 esac
15039
15040fi
15041
15042
15043 if test "x${with_pcap}" != "xno" ; then
15044 PCAP_LIBS="-lpcap"
15045 for pcapdir in $pcapdirs; do
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $pcapdir" >&5
15047printf %s "checking for pcap.h in $pcapdir... " >&6; }
15048 if test -f "$pcapdir/include/pcap.h"; then
15049 PCAP_CFLAGS="-I$pcapdir/include"
15050 PCAP_LDFLAGS="-L$pcapdir/lib"
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052printf "%s\n" "yes" >&6; }
15053 break
15054 else
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056printf "%s\n" "no" >&6; }
15057 fi
15058 done
15059
15060 # try the preprocessor and linker with our new flags,
15061 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15062
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libpcap works" >&5
15064printf %s "checking if compiling and linking against libpcap works... " >&6; }
15065
15066 save_LIBS="$LIBS"
15067 save_LDFLAGS="$LDFLAGS"
15068 save_CPPFLAGS="$CPPFLAGS"
15069 LDFLAGS="$PCAP_LDFLAGS $LDFLAGS"
15070 LIBS="$PCAP_LIBS $LIBS"
15071 CPPFLAGS="$PCAP_CFLAGS $CPPFLAGS"
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h. */
15074#include <pcap.h>
15075int
15076main (void)
15077{
15078pcap_create(0,0);
15079 ;
15080 return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_link "$LINENO"
15084then :
15085
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087printf "%s\n" "yes" >&6; }
15088 with_pcap=yes
15089
15090
15091else $as_nop
15092
15093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094printf "%s\n" "no" >&6; }
15095 with_pcap="no"
15096
15097
15098fi
15099rm -f core conftest.err conftest.$ac_objext conftest.beam \
15100 conftest$ac_exeext conftest.$ac_ext
15101 CPPFLAGS="$save_CPPFLAGS"
15102 LDFLAGS="$save_LDFLAGS"
15103 LIBS="$save_LIBS"
15104
15105
15106
15107
15108 fi
15109
15110 if test "x${with_pcap}" != "xno"; then
15111 WITH_PCAP_TRUE=
15112 WITH_PCAP_FALSE='#'
15113else
15114 WITH_PCAP_TRUE='#'
15115 WITH_PCAP_FALSE=
15116fi
15117
15118
15119
15120#
15121# SunOS provides a version of libpcap that would work, but SunOS has no support for activity filter
15122 if test "x${with_pcap}" = "xyes" && test "x${build_sunos}" != "xyes" ; then
15123 PPP_WITH_FILTER_TRUE=
15124 PPP_WITH_FILTER_FALSE='#'
15125else
15126 PPP_WITH_FILTER_TRUE='#'
15127 PPP_WITH_FILTER_FALSE=
15128fi
15129
15130if test -z "$PPP_WITH_FILTER_TRUE"; then :
15131
15132
15133printf "%s\n" "#define PPP_WITH_FILTER 1" >>confdefs.h
15134
15135else
15136
15137 if test "x${build_sunos}" = "xyes"
15138then :
15139
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Packet activity filter not supported on SunOS" >&5
15141printf "%s\n" "$as_me: WARNING: Packet activity filter not supported on SunOS" >&2;}
15142 with_pcap="no"
15143
15144fi
15145
15146fi
15147
15148#
15149# Some contributions require GTK/GLIB
15150
15151# Check whether --with-gtk was given.
15152if test ${with_gtk+y}
15153then :
15154 withval=$with_gtk;
15155fi
15156
15157if test "x${with_gtk}" = "xyes"; then
15158
15159pkg_failed=no
15160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
15161printf %s "checking for gtk+-2.0... " >&6; }
15162
15163if test -n "$GTK_CFLAGS"; then
15164 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15165 elif test -n "$PKG_CONFIG"; then
15166 if test -n "$PKG_CONFIG" && \
15167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
15168 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
15169 ac_status=$?
15170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15171 test $ac_status = 0; }; then
15172 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
15173 test "x$?" != "x0" && pkg_failed=yes
15174else
15175 pkg_failed=yes
15176fi
15177 else
15178 pkg_failed=untried
15179fi
15180if test -n "$GTK_LIBS"; then
15181 pkg_cv_GTK_LIBS="$GTK_LIBS"
15182 elif test -n "$PKG_CONFIG"; then
15183 if test -n "$PKG_CONFIG" && \
15184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
15185 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
15186 ac_status=$?
15187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 test $ac_status = 0; }; then
15189 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
15190 test "x$?" != "x0" && pkg_failed=yes
15191else
15192 pkg_failed=yes
15193fi
15194 else
15195 pkg_failed=untried
15196fi
15197
15198
15199
15200if test $pkg_failed = yes; then
15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202printf "%s\n" "no" >&6; }
15203
15204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15205 _pkg_short_errors_supported=yes
15206else
15207 _pkg_short_errors_supported=no
15208fi
15209 if test $_pkg_short_errors_supported = yes; then
15210 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
15211 else
15212 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
15213 fi
15214 # Put the nasty error message in config.log where it belongs
15215 echo "$GTK_PKG_ERRORS" >&5
15216
15217 as_fn_error $? "Package requirements (gtk+-2.0) were not met:
15218
15219$GTK_PKG_ERRORS
15220
15221Consider adjusting the PKG_CONFIG_PATH environment variable if you
15222installed software in a non-standard prefix.
15223
15224Alternatively, you may set the environment variables GTK_CFLAGS
15225and GTK_LIBS to avoid the need to call pkg-config.
15226See the pkg-config man page for more details." "$LINENO" 5
15227elif test $pkg_failed = untried; then
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229printf "%s\n" "no" >&6; }
15230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15231printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15232as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15233is in your PATH or set the PKG_CONFIG environment variable to the full
15234path to pkg-config.
15235
15236Alternatively, you may set the environment variables GTK_CFLAGS
15237and GTK_LIBS to avoid the need to call pkg-config.
15238See the pkg-config man page for more details.
15239
15240To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15241See \`config.log' for more details" "$LINENO" 5; }
15242else
15243 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15244 GTK_LIBS=$pkg_cv_GTK_LIBS
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15246printf "%s\n" "yes" >&6; }
15247
15248fi
15249
15250pkg_failed=no
15251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
15252printf %s "checking for glib-2.0... " >&6; }
15253
15254if test -n "$GLIB_CFLAGS"; then
15255 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
15256 elif test -n "$PKG_CONFIG"; then
15257 if test -n "$PKG_CONFIG" && \
15258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15259 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15260 ac_status=$?
15261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15262 test $ac_status = 0; }; then
15263 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
15264 test "x$?" != "x0" && pkg_failed=yes
15265else
15266 pkg_failed=yes
15267fi
15268 else
15269 pkg_failed=untried
15270fi
15271if test -n "$GLIB_LIBS"; then
15272 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
15273 elif test -n "$PKG_CONFIG"; then
15274 if test -n "$PKG_CONFIG" && \
15275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15276 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15277 ac_status=$?
15278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279 test $ac_status = 0; }; then
15280 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
15281 test "x$?" != "x0" && pkg_failed=yes
15282else
15283 pkg_failed=yes
15284fi
15285 else
15286 pkg_failed=untried
15287fi
15288
15289
15290
15291if test $pkg_failed = yes; then
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15293printf "%s\n" "no" >&6; }
15294
15295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15296 _pkg_short_errors_supported=yes
15297else
15298 _pkg_short_errors_supported=no
15299fi
15300 if test $_pkg_short_errors_supported = yes; then
15301 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
15302 else
15303 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
15304 fi
15305 # Put the nasty error message in config.log where it belongs
15306 echo "$GLIB_PKG_ERRORS" >&5
15307
15308 as_fn_error $? "Package requirements (glib-2.0) were not met:
15309
15310$GLIB_PKG_ERRORS
15311
15312Consider adjusting the PKG_CONFIG_PATH environment variable if you
15313installed software in a non-standard prefix.
15314
15315Alternatively, you may set the environment variables GLIB_CFLAGS
15316and GLIB_LIBS to avoid the need to call pkg-config.
15317See the pkg-config man page for more details." "$LINENO" 5
15318elif test $pkg_failed = untried; then
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320printf "%s\n" "no" >&6; }
15321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15322printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15323as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15324is in your PATH or set the PKG_CONFIG environment variable to the full
15325path to pkg-config.
15326
15327Alternatively, you may set the environment variables GLIB_CFLAGS
15328and GLIB_LIBS to avoid the need to call pkg-config.
15329See the pkg-config man page for more details.
15330
15331To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15332See \`config.log' for more details" "$LINENO" 5; }
15333else
15334 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
15335 GLIB_LIBS=$pkg_cv_GLIB_LIBS
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15337printf "%s\n" "yes" >&6; }
15338
15339fi
15340fi
15341 if test "x${with_gtk}" = "xyes"; then
15342 WITH_GTK_TRUE=
15343 WITH_GTK_FALSE='#'
15344else
15345 WITH_GTK_TRUE='#'
15346 WITH_GTK_FALSE=
15347fi
15348
15349
15350
15351printf "%s\n" "#define PPPD_VERSION \"$VERSION\"" >>confdefs.h
15352
15353
15354ac_config_files="$ac_config_files Makefile chat/Makefile contrib/Makefile contrib/pppgetpass/Makefile common/Makefile include/Makefile modules/Makefile pppd/Makefile pppd/pppd.pc pppd/plugins/Makefile pppd/plugins/pppoe/Makefile pppd/plugins/pppoatm/Makefile pppd/plugins/pppol2tp/Makefile pppd/plugins/radius/Makefile pppdump/Makefile pppstats/Makefile scripts/Makefile"
15355
15356cat >confcache <<\_ACEOF
15357# This file is a shell script that caches the results of configure
15358# tests run on this system so they can be shared between configure
15359# scripts and configure runs, see configure's option --config-cache.
15360# It is not useful on other systems. If it contains results you don't
15361# want to keep, you may remove or edit it.
15362#
15363# config.status only pays attention to the cache file if you give it
15364# the --recheck option to rerun configure.
15365#
15366# `ac_cv_env_foo' variables (set or unset) will be overridden when
15367# loading this file, other *unset* `ac_cv_foo' will be assigned the
15368# following values.
15369
15370_ACEOF
15371
15372# The following way of writing the cache mishandles newlines in values,
15373# but we know of no workaround that is simple, portable, and efficient.
15374# So, we kill variables containing newlines.
15375# Ultrix sh set writes to stderr and can't be redirected directly,
15376# and sets the high bit in the cache file unless we assign to the vars.
15377(
15378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15379 eval ac_val=\$$ac_var
15380 case $ac_val in #(
15381 *${as_nl}*)
15382 case $ac_var in #(
15383 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15384printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15385 esac
15386 case $ac_var in #(
15387 _ | IFS | as_nl) ;; #(
15388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15389 *) { eval $ac_var=; unset $ac_var;} ;;
15390 esac ;;
15391 esac
15392 done
15393
15394 (set) 2>&1 |
15395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15396 *${as_nl}ac_space=\ *)
15397 # `set' does not quote correctly, so add quotes: double-quote
15398 # substitution turns \\\\ into \\, and sed turns \\ into \.
15399 sed -n \
15400 "s/'/'\\\\''/g;
15401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15402 ;; #(
15403 *)
15404 # `set' quotes correctly as required by POSIX, so do not add quotes.
15405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15406 ;;
15407 esac |
15408 sort
15409) |
15410 sed '
15411 /^ac_cv_env_/b end
15412 t clear
15413 :clear
15414 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15415 t end
15416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15417 :end' >>confcache
15418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15419 if test -w "$cache_file"; then
15420 if test "x$cache_file" != "x/dev/null"; then
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15422printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15423 if test ! -f "$cache_file" || test -h "$cache_file"; then
15424 cat confcache >"$cache_file"
15425 else
15426 case $cache_file in #(
15427 */* | ?:*)
15428 mv -f confcache "$cache_file"$$ &&
15429 mv -f "$cache_file"$$ "$cache_file" ;; #(
15430 *)
15431 mv -f confcache "$cache_file" ;;
15432 esac
15433 fi
15434 fi
15435 else
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15437printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15438 fi
15439fi
15440rm -f confcache
15441
15442test "x$prefix" = xNONE && prefix=$ac_default_prefix
15443# Let make expand exec_prefix.
15444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15445
15446DEFS=-DHAVE_CONFIG_H
15447
15448ac_libobjs=
15449ac_ltlibobjs=
15450U=
15451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15452 # 1. Remove the extension, and $U if already installed.
15453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15454 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15456 # will be set to the directory where LIBOBJS objects are built.
15457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15459done
15460LIBOBJS=$ac_libobjs
15461
15462LTLIBOBJS=$ac_ltlibobjs
15463
15464
15465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15466printf %s "checking that generated files are newer than configure... " >&6; }
15467 if test -n "$am_sleep_pid"; then
15468 # Hide warnings about reused PIDs.
15469 wait $am_sleep_pid 2>/dev/null
15470 fi
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15472printf "%s\n" "done" >&6; }
15473 if test -n "$EXEEXT"; then
15474 am__EXEEXT_TRUE=
15475 am__EXEEXT_FALSE='#'
15476else
15477 am__EXEEXT_TRUE='#'
15478 am__EXEEXT_FALSE=
15479fi
15480
15481if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15482 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
15485if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15486 as_fn_error $? "conditional \"AMDEP\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
15488fi
15489if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
15493if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
15494 as_fn_error $? "conditional \"LINUX\" was never defined.
15495Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496fi
15497if test -z "${SUNOS_TRUE}" && test -z "${SUNOS_FALSE}"; then
15498 as_fn_error $? "conditional \"SUNOS\" was never defined.
15499Usually this means the macro was only invoked conditionally." "$LINENO" 5
15500fi
15501if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
15502 as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
15503Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504fi
15505if test -z "${PPP_WITH_CBCP_TRUE}" && test -z "${PPP_WITH_CBCP_FALSE}"; then
15506 as_fn_error $? "conditional \"PPP_WITH_CBCP\" was never defined.
15507Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508fi
15509if test -z "${PPP_WITH_CHAPMS_TRUE}" && test -z "${PPP_WITH_CHAPMS_FALSE}"; then
15510 as_fn_error $? "conditional \"PPP_WITH_CHAPMS\" was never defined.
15511Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512fi
15513if test -z "${PPP_WITH_MPPE_TRUE}" && test -z "${PPP_WITH_MPPE_FALSE}"; then
15514 as_fn_error $? "conditional \"PPP_WITH_MPPE\" was never defined.
15515Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516fi
15517if test -z "${PPP_WITH_IPV6CP_TRUE}" && test -z "${PPP_WITH_IPV6CP_FALSE}"; then
15518 as_fn_error $? "conditional \"PPP_WITH_IPV6CP\" was never defined.
15519Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520fi
15521if test -z "${PPP_WITH_MULTILINK_TRUE}" && test -z "${PPP_WITH_MULTILINK_FALSE}"; then
15522 as_fn_error $? "conditional \"PPP_WITH_MULTILINK\" was never defined.
15523Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524fi
15525if test -z "${PPP_WITH_TDB_TRUE}" && test -z "${PPP_WITH_TDB_FALSE}"; then
15526 as_fn_error $? "conditional \"PPP_WITH_TDB\" was never defined.
15527Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528fi
15529if test -z "${PPP_WITH_PLUGINS_TRUE}" && test -z "${PPP_WITH_PLUGINS_FALSE}"; then
15530 as_fn_error $? "conditional \"PPP_WITH_PLUGINS\" was never defined.
15531Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532fi
15533if test -z "${PPP_WITH_EAPTLS_TRUE}" && test -z "${PPP_WITH_EAPTLS_FALSE}"; then
15534 as_fn_error $? "conditional \"PPP_WITH_EAPTLS\" was never defined.
15535Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536fi
15537if test -z "${PPP_WITH_PEAP_TRUE}" && test -z "${PPP_WITH_PEAP_FALSE}"; then
15538 as_fn_error $? "conditional \"PPP_WITH_PEAP\" was never defined.
15539Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540fi
15541if test -z "${PPP_WITH_SYSTEM_CA_PATH_TRUE}" && test -z "${PPP_WITH_SYSTEM_CA_PATH_FALSE}"; then
15542 as_fn_error $? "conditional \"PPP_WITH_SYSTEM_CA_PATH\" was never defined.
15543Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544fi
15545if test -z "${PPP_WITH_OPENSSL_TRUE}" && test -z "${PPP_WITH_OPENSSL_FALSE}"; then
15546 as_fn_error $? "conditional \"PPP_WITH_OPENSSL\" was never defined.
15547Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548fi
15549if test -z "${OPENSSL_HAVE_MD4_TRUE}" && test -z "${OPENSSL_HAVE_MD4_FALSE}"; then
15550 as_fn_error $? "conditional \"OPENSSL_HAVE_MD4\" was never defined.
15551Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552fi
15553if test -z "${OPENSSL_HAVE_MD5_TRUE}" && test -z "${OPENSSL_HAVE_MD5_FALSE}"; then
15554 as_fn_error $? "conditional \"OPENSSL_HAVE_MD5\" was never defined.
15555Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556fi
15557if test -z "${OPENSSL_HAVE_SHA_TRUE}" && test -z "${OPENSSL_HAVE_SHA_FALSE}"; then
15558 as_fn_error $? "conditional \"OPENSSL_HAVE_SHA\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560fi
15561if test -z "${OPENSSL_HAVE_DES_TRUE}" && test -z "${OPENSSL_HAVE_DES_FALSE}"; then
15562 as_fn_error $? "conditional \"OPENSSL_HAVE_DES\" was never defined.
15563Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564fi
15565if test -z "${WITH_SRP_TRUE}" && test -z "${WITH_SRP_FALSE}"; then
15566 as_fn_error $? "conditional \"WITH_SRP\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568fi
15569if test -z "${WITH_LIBATM_TRUE}" && test -z "${WITH_LIBATM_FALSE}"; then
15570 as_fn_error $? "conditional \"WITH_LIBATM\" was never defined.
15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572fi
15573if test -z "${WITH_LIBPAM_TRUE}" && test -z "${WITH_LIBPAM_FALSE}"; then
15574 as_fn_error $? "conditional \"WITH_LIBPAM\" was never defined.
15575Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576fi
15577if test -z "${PPP_WITH_PAM_TRUE}" && test -z "${PPP_WITH_PAM_FALSE}"; then
15578 as_fn_error $? "conditional \"PPP_WITH_PAM\" was never defined.
15579Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580fi
15581if test -z "${WITH_PCAP_TRUE}" && test -z "${WITH_PCAP_FALSE}"; then
15582 as_fn_error $? "conditional \"WITH_PCAP\" was never defined.
15583Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584fi
15585if test -z "${PPP_WITH_FILTER_TRUE}" && test -z "${PPP_WITH_FILTER_FALSE}"; then
15586 as_fn_error $? "conditional \"PPP_WITH_FILTER\" was never defined.
15587Usually this means the macro was only invoked conditionally." "$LINENO" 5
15588fi
15589if test -z "${WITH_GTK_TRUE}" && test -z "${WITH_GTK_FALSE}"; then
15590 as_fn_error $? "conditional \"WITH_GTK\" was never defined.
15591Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592fi
15593
15594: "${CONFIG_STATUS=./config.status}"
15595ac_write_fail=0
15596ac_clean_files_save=$ac_clean_files
15597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15599printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15600as_write_fail=0
15601cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15602#! $SHELL
15603# Generated by $as_me.
15604# Run this file to recreate the current configuration.
15605# Compiler output produced by configure, useful for debugging
15606# configure, is in config.log if it exists.
15607
15608debug=false
15609ac_cs_recheck=false
15610ac_cs_silent=false
15611
15612SHELL=\${CONFIG_SHELL-$SHELL}
15613export SHELL
15614_ASEOF
15615cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15616## -------------------- ##
15617## M4sh Initialization. ##
15618## -------------------- ##
15619
15620# Be more Bourne compatible
15621DUALCASE=1; export DUALCASE # for MKS sh
15622as_nop=:
15623if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15624then :
15625 emulate sh
15626 NULLCMD=:
15627 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15628 # is contrary to our usage. Disable this feature.
15629 alias -g '${1+"$@"}'='"$@"'
15630 setopt NO_GLOB_SUBST
15631else $as_nop
15632 case `(set -o) 2>/dev/null` in #(
15633 *posix*) :
15634 set -o posix ;; #(
15635 *) :
15636 ;;
15637esac
15638fi
15639
15640
15641
15642# Reset variables that may have inherited troublesome values from
15643# the environment.
15644
15645# IFS needs to be set, to space, tab, and newline, in precisely that order.
15646# (If _AS_PATH_WALK were called with IFS unset, it would have the
15647# side effect of setting IFS to empty, thus disabling word splitting.)
15648# Quoting is to prevent editors from complaining about space-tab.
15649as_nl='
15650'
15651export as_nl
15652IFS=" "" $as_nl"
15653
15654PS1='$ '
15655PS2='> '
15656PS4='+ '
15657
15658# Ensure predictable behavior from utilities with locale-dependent output.
15659LC_ALL=C
15660export LC_ALL
15661LANGUAGE=C
15662export LANGUAGE
15663
15664# We cannot yet rely on "unset" to work, but we need these variables
15665# to be unset--not just set to an empty or harmless value--now, to
15666# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15667# also avoids known problems related to "unset" and subshell syntax
15668# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15669for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15670do eval test \${$as_var+y} \
15671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15672done
15673
15674# Ensure that fds 0, 1, and 2 are open.
15675if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15676if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15677if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15678
15679# The user is always right.
15680if ${PATH_SEPARATOR+false} :; then
15681 PATH_SEPARATOR=:
15682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15683 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15684 PATH_SEPARATOR=';'
15685 }
15686fi
15687
15688
15689# Find who we are. Look in the path if we contain no directory separator.
15690as_myself=
15691case $0 in #((
15692 *[\\/]* ) as_myself=$0 ;;
15693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694for as_dir in $PATH
15695do
15696 IFS=$as_save_IFS
15697 case $as_dir in #(((
15698 '') as_dir=./ ;;
15699 */) ;;
15700 *) as_dir=$as_dir/ ;;
15701 esac
15702 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15703 done
15704IFS=$as_save_IFS
15705
15706 ;;
15707esac
15708# We did not find ourselves, most probably we were run as `sh COMMAND'
15709# in which case we are not to be found in the path.
15710if test "x$as_myself" = x; then
15711 as_myself=$0
15712fi
15713if test ! -f "$as_myself"; then
15714 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15715 exit 1
15716fi
15717
15718
15719
15720# as_fn_error STATUS ERROR [LINENO LOG_FD]
15721# ----------------------------------------
15722# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15723# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15724# script with STATUS, using 1 if that was 0.
15725as_fn_error ()
15726{
15727 as_status=$1; test $as_status -eq 0 && as_status=1
15728 if test "$4"; then
15729 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15731 fi
15732 printf "%s\n" "$as_me: error: $2" >&2
15733 as_fn_exit $as_status
15734} # as_fn_error
15735
15736
15737
15738# as_fn_set_status STATUS
15739# -----------------------
15740# Set $? to STATUS, without forking.
15741as_fn_set_status ()
15742{
15743 return $1
15744} # as_fn_set_status
15745
15746# as_fn_exit STATUS
15747# -----------------
15748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15749as_fn_exit ()
15750{
15751 set +e
15752 as_fn_set_status $1
15753 exit $1
15754} # as_fn_exit
15755
15756# as_fn_unset VAR
15757# ---------------
15758# Portably unset VAR.
15759as_fn_unset ()
15760{
15761 { eval $1=; unset $1;}
15762}
15763as_unset=as_fn_unset
15764
15765# as_fn_append VAR VALUE
15766# ----------------------
15767# Append the text in VALUE to the end of the definition contained in VAR. Take
15768# advantage of any shell optimizations that allow amortized linear growth over
15769# repeated appends, instead of the typical quadratic growth present in naive
15770# implementations.
15771if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15772then :
15773 eval 'as_fn_append ()
15774 {
15775 eval $1+=\$2
15776 }'
15777else $as_nop
15778 as_fn_append ()
15779 {
15780 eval $1=\$$1\$2
15781 }
15782fi # as_fn_append
15783
15784# as_fn_arith ARG...
15785# ------------------
15786# Perform arithmetic evaluation on the ARGs, and store the result in the
15787# global $as_val. Take advantage of shells that can avoid forks. The arguments
15788# must be portable across $(()) and expr.
15789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15790then :
15791 eval 'as_fn_arith ()
15792 {
15793 as_val=$(( $* ))
15794 }'
15795else $as_nop
15796 as_fn_arith ()
15797 {
15798 as_val=`expr "$@" || test $? -eq 1`
15799 }
15800fi # as_fn_arith
15801
15802
15803if expr a : '\(a\)' >/dev/null 2>&1 &&
15804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15805 as_expr=expr
15806else
15807 as_expr=false
15808fi
15809
15810if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15811 as_basename=basename
15812else
15813 as_basename=false
15814fi
15815
15816if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15817 as_dirname=dirname
15818else
15819 as_dirname=false
15820fi
15821
15822as_me=`$as_basename -- "$0" ||
15823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15824 X"$0" : 'X\(//\)$' \| \
15825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15826printf "%s\n" X/"$0" |
15827 sed '/^.*\/\([^/][^/]*\)\/*$/{
15828 s//\1/
15829 q
15830 }
15831 /^X\/\(\/\/\)$/{
15832 s//\1/
15833 q
15834 }
15835 /^X\/\(\/\).*/{
15836 s//\1/
15837 q
15838 }
15839 s/.*/./; q'`
15840
15841# Avoid depending upon Character Ranges.
15842as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15844as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15845as_cr_digits='0123456789'
15846as_cr_alnum=$as_cr_Letters$as_cr_digits
15847
15848
15849# Determine whether it's possible to make 'echo' print without a newline.
15850# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15851# for compatibility with existing Makefiles.
15852ECHO_C= ECHO_N= ECHO_T=
15853case `echo -n x` in #(((((
15854-n*)
15855 case `echo 'xy\c'` in
15856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15857 xy) ECHO_C='\c';;
15858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15859 ECHO_T=' ';;
15860 esac;;
15861*)
15862 ECHO_N='-n';;
15863esac
15864
15865# For backward compatibility with old third-party macros, we provide
15866# the shell variables $as_echo and $as_echo_n. New code should use
15867# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15868as_echo='printf %s\n'
15869as_echo_n='printf %s'
15870
15871rm -f conf$$ conf$$.exe conf$$.file
15872if test -d conf$$.dir; then
15873 rm -f conf$$.dir/conf$$.file
15874else
15875 rm -f conf$$.dir
15876 mkdir conf$$.dir 2>/dev/null
15877fi
15878if (echo >conf$$.file) 2>/dev/null; then
15879 if ln -s conf$$.file conf$$ 2>/dev/null; then
15880 as_ln_s='ln -s'
15881 # ... but there are two gotchas:
15882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15884 # In both cases, we have to default to `cp -pR'.
15885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15886 as_ln_s='cp -pR'
15887 elif ln conf$$.file conf$$ 2>/dev/null; then
15888 as_ln_s=ln
15889 else
15890 as_ln_s='cp -pR'
15891 fi
15892else
15893 as_ln_s='cp -pR'
15894fi
15895rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15896rmdir conf$$.dir 2>/dev/null
15897
15898
15899# as_fn_mkdir_p
15900# -------------
15901# Create "$as_dir" as a directory, including parents if necessary.
15902as_fn_mkdir_p ()
15903{
15904
15905 case $as_dir in #(
15906 -*) as_dir=./$as_dir;;
15907 esac
15908 test -d "$as_dir" || eval $as_mkdir_p || {
15909 as_dirs=
15910 while :; do
15911 case $as_dir in #(
15912 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15913 *) as_qdir=$as_dir;;
15914 esac
15915 as_dirs="'$as_qdir' $as_dirs"
15916 as_dir=`$as_dirname -- "$as_dir" ||
15917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15918 X"$as_dir" : 'X\(//\)[^/]' \| \
15919 X"$as_dir" : 'X\(//\)$' \| \
15920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15921printf "%s\n" X"$as_dir" |
15922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15923 s//\1/
15924 q
15925 }
15926 /^X\(\/\/\)[^/].*/{
15927 s//\1/
15928 q
15929 }
15930 /^X\(\/\/\)$/{
15931 s//\1/
15932 q
15933 }
15934 /^X\(\/\).*/{
15935 s//\1/
15936 q
15937 }
15938 s/.*/./; q'`
15939 test -d "$as_dir" && break
15940 done
15941 test -z "$as_dirs" || eval "mkdir $as_dirs"
15942 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15943
15944
15945} # as_fn_mkdir_p
15946if mkdir -p . 2>/dev/null; then
15947 as_mkdir_p='mkdir -p "$as_dir"'
15948else
15949 test -d ./-p && rmdir ./-p
15950 as_mkdir_p=false
15951fi
15952
15953
15954# as_fn_executable_p FILE
15955# -----------------------
15956# Test if FILE is an executable regular file.
15957as_fn_executable_p ()
15958{
15959 test -f "$1" && test -x "$1"
15960} # as_fn_executable_p
15961as_test_x='test -x'
15962as_executable_p=as_fn_executable_p
15963
15964# Sed expression to map a string onto a valid CPP name.
15965as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15966
15967# Sed expression to map a string onto a valid variable name.
15968as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15969
15970
15971exec 6>&1
15972## ----------------------------------- ##
15973## Main body of $CONFIG_STATUS script. ##
15974## ----------------------------------- ##
15975_ASEOF
15976test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15977
15978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979# Save the log message, to keep $0 and so on meaningful, and to
15980# report actual input values of CONFIG_FILES etc. instead of their
15981# values after options handling.
15982ac_log="
15983This file was extended by ppp $as_me 2.5.0, which was
15984generated by GNU Autoconf 2.71. Invocation command line was
15985
15986 CONFIG_FILES = $CONFIG_FILES
15987 CONFIG_HEADERS = $CONFIG_HEADERS
15988 CONFIG_LINKS = $CONFIG_LINKS
15989 CONFIG_COMMANDS = $CONFIG_COMMANDS
15990 $ $0 $@
15991
15992on `(hostname || uname -n) 2>/dev/null | sed 1q`
15993"
15994
15995_ACEOF
15996
15997case $ac_config_files in *"
15998"*) set x $ac_config_files; shift; ac_config_files=$*;;
15999esac
16000
16001case $ac_config_headers in *"
16002"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16003esac
16004
16005
16006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16007# Files that config.status was made for.
16008config_files="$ac_config_files"
16009config_headers="$ac_config_headers"
16010config_commands="$ac_config_commands"
16011
16012_ACEOF
16013
16014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16015ac_cs_usage="\
16016\`$as_me' instantiates files and other configuration actions
16017from templates according to the current configuration. Unless the files
16018and actions are specified as TAGs, all are instantiated by default.
16019
16020Usage: $0 [OPTION]... [TAG]...
16021
16022 -h, --help print this help, then exit
16023 -V, --version print version number and configuration settings, then exit
16024 --config print configuration, then exit
16025 -q, --quiet, --silent
16026 do not print progress messages
16027 -d, --debug don't remove temporary files
16028 --recheck update $as_me by reconfiguring in the same conditions
16029 --file=FILE[:TEMPLATE]
16030 instantiate the configuration file FILE
16031 --header=FILE[:TEMPLATE]
16032 instantiate the configuration header FILE
16033
16034Configuration files:
16035$config_files
16036
16037Configuration headers:
16038$config_headers
16039
16040Configuration commands:
16041$config_commands
16042
16043Report bugs to <https://github.com/ppp-project/ppp>."
16044
16045_ACEOF
16046ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16047ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049ac_cs_config='$ac_cs_config_escaped'
16050ac_cs_version="\\
16051ppp config.status 2.5.0
16052configured by $0, generated by GNU Autoconf 2.71,
16053 with options \\"\$ac_cs_config\\"
16054
16055Copyright (C) 2021 Free Software Foundation, Inc.
16056This config.status script is free software; the Free Software Foundation
16057gives unlimited permission to copy, distribute and modify it."
16058
16059ac_pwd='$ac_pwd'
16060srcdir='$srcdir'
16061INSTALL='$INSTALL'
16062MKDIR_P='$MKDIR_P'
16063AWK='$AWK'
16064test -n "\$AWK" || AWK=awk
16065_ACEOF
16066
16067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068# The default lists apply if the user does not specify any file.
16069ac_need_defaults=:
16070while test $# != 0
16071do
16072 case $1 in
16073 --*=?*)
16074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16076 ac_shift=:
16077 ;;
16078 --*=)
16079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16080 ac_optarg=
16081 ac_shift=:
16082 ;;
16083 *)
16084 ac_option=$1
16085 ac_optarg=$2
16086 ac_shift=shift
16087 ;;
16088 esac
16089
16090 case $ac_option in
16091 # Handling of the options.
16092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16093 ac_cs_recheck=: ;;
16094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16095 printf "%s\n" "$ac_cs_version"; exit ;;
16096 --config | --confi | --conf | --con | --co | --c )
16097 printf "%s\n" "$ac_cs_config"; exit ;;
16098 --debug | --debu | --deb | --de | --d | -d )
16099 debug=: ;;
16100 --file | --fil | --fi | --f )
16101 $ac_shift
16102 case $ac_optarg in
16103 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16104 '') as_fn_error $? "missing file argument" ;;
16105 esac
16106 as_fn_append CONFIG_FILES " '$ac_optarg'"
16107 ac_need_defaults=false;;
16108 --header | --heade | --head | --hea )
16109 $ac_shift
16110 case $ac_optarg in
16111 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16112 esac
16113 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16114 ac_need_defaults=false;;
16115 --he | --h)
16116 # Conflict between --help and --header
16117 as_fn_error $? "ambiguous option: \`$1'
16118Try \`$0 --help' for more information.";;
16119 --help | --hel | -h )
16120 printf "%s\n" "$ac_cs_usage"; exit ;;
16121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16123 ac_cs_silent=: ;;
16124
16125 # This is an error.
16126 -*) as_fn_error $? "unrecognized option: \`$1'
16127Try \`$0 --help' for more information." ;;
16128
16129 *) as_fn_append ac_config_targets " $1"
16130 ac_need_defaults=false ;;
16131
16132 esac
16133 shift
16134done
16135
16136ac_configure_extra_args=
16137
16138if $ac_cs_silent; then
16139 exec 6>/dev/null
16140 ac_configure_extra_args="$ac_configure_extra_args --silent"
16141fi
16142
16143_ACEOF
16144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145if \$ac_cs_recheck; then
16146 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16147 shift
16148 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16149 CONFIG_SHELL='$SHELL'
16150 export CONFIG_SHELL
16151 exec "\$@"
16152fi
16153
16154_ACEOF
16155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156exec 5>>config.log
16157{
16158 echo
16159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16160## Running $as_me. ##
16161_ASBOX
16162 printf "%s\n" "$ac_log"
16163} >&5
16164
16165_ACEOF
16166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16167#
16168# INIT-COMMANDS
16169#
16170AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16171
16172
16173# The HP-UX ksh and POSIX shell print the target directory to stdout
16174# if CDPATH is set.
16175(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16176
16177sed_quote_subst='$sed_quote_subst'
16178double_quote_subst='$double_quote_subst'
16179delay_variable_subst='$delay_variable_subst'
16180enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16181macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16182macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16183enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16184pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16185enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16186shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16187SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16188ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16189PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16190host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16191host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16192host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16193build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16194build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16195build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16196SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16197Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16198GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16199EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16200FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16201LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16202NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16203LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16204max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16205ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16206exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16207lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16208lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16209lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16210lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16211lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16212reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16213reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16214FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16215OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16216deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16217file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16218file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16219want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16220DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16221sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16222AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16223lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16224AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16225archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16226STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16227RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16228old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16229old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16230old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16231lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16232CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16233CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16234compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16235GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16236lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16237lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16238lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16239lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16240lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16241lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16242nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16243lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16244lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16245objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16246MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16247lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16248lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16249lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16250lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16251lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16252need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16253MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16254DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16255NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16256LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16257OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16258OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16259libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16260shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16261extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16262archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16263enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16264export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16265whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16266compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16267old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16268old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16269archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16270archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16271module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16272module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16273with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16274allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16275no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16276hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16277hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16278hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16279hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16280hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16281hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16282hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16283inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16284link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16285always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16286export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16287exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16288include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16289prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16290postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16291file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16292variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16293need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16294need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16295version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16296runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16297shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16298shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16299libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16300library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16301soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16302install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16303postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16304postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16305finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16306finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16307hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16308sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16309configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16310configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16311hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16312enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16313enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16314enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16315old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16316striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16317
16318LTCC='$LTCC'
16319LTCFLAGS='$LTCFLAGS'
16320compiler='$compiler_DEFAULT'
16321
16322# A function that is used when there is no print builtin or printf.
16323func_fallback_echo ()
16324{
16325 eval 'cat <<_LTECHO_EOF
16326\$1
16327_LTECHO_EOF'
16328}
16329
16330# Quote evaled strings.
16331for var in SHELL \
16332ECHO \
16333PATH_SEPARATOR \
16334SED \
16335GREP \
16336EGREP \
16337FGREP \
16338LD \
16339NM \
16340LN_S \
16341lt_SP2NL \
16342lt_NL2SP \
16343reload_flag \
16344FILECMD \
16345OBJDUMP \
16346deplibs_check_method \
16347file_magic_cmd \
16348file_magic_glob \
16349want_nocaseglob \
16350DLLTOOL \
16351sharedlib_from_linklib_cmd \
16352AR \
16353archiver_list_spec \
16354STRIP \
16355RANLIB \
16356CC \
16357CFLAGS \
16358compiler \
16359lt_cv_sys_global_symbol_pipe \
16360lt_cv_sys_global_symbol_to_cdecl \
16361lt_cv_sys_global_symbol_to_import \
16362lt_cv_sys_global_symbol_to_c_name_address \
16363lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16364lt_cv_nm_interface \
16365nm_file_list_spec \
16366lt_cv_truncate_bin \
16367lt_prog_compiler_no_builtin_flag \
16368lt_prog_compiler_pic \
16369lt_prog_compiler_wl \
16370lt_prog_compiler_static \
16371lt_cv_prog_compiler_c_o \
16372need_locks \
16373MANIFEST_TOOL \
16374DSYMUTIL \
16375NMEDIT \
16376LIPO \
16377OTOOL \
16378OTOOL64 \
16379shrext_cmds \
16380export_dynamic_flag_spec \
16381whole_archive_flag_spec \
16382compiler_needs_object \
16383with_gnu_ld \
16384allow_undefined_flag \
16385no_undefined_flag \
16386hardcode_libdir_flag_spec \
16387hardcode_libdir_separator \
16388exclude_expsyms \
16389include_expsyms \
16390file_list_spec \
16391variables_saved_for_relink \
16392libname_spec \
16393library_names_spec \
16394soname_spec \
16395install_override_mode \
16396finish_eval \
16397old_striplib \
16398striplib; do
16399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16400 *[\\\\\\\`\\"\\\$]*)
16401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16402 ;;
16403 *)
16404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16405 ;;
16406 esac
16407done
16408
16409# Double-quote double-evaled strings.
16410for var in reload_cmds \
16411old_postinstall_cmds \
16412old_postuninstall_cmds \
16413old_archive_cmds \
16414extract_expsyms_cmds \
16415old_archive_from_new_cmds \
16416old_archive_from_expsyms_cmds \
16417archive_cmds \
16418archive_expsym_cmds \
16419module_cmds \
16420module_expsym_cmds \
16421export_symbols_cmds \
16422prelink_cmds \
16423postlink_cmds \
16424postinstall_cmds \
16425postuninstall_cmds \
16426finish_cmds \
16427sys_lib_search_path_spec \
16428configure_time_dlsearch_path \
16429configure_time_lt_sys_library_path; do
16430 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16431 *[\\\\\\\`\\"\\\$]*)
16432 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16433 ;;
16434 *)
16435 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16436 ;;
16437 esac
16438done
16439
16440ac_aux_dir='$ac_aux_dir'
16441
16442# See if we are running on zsh, and set the options that allow our
16443# commands through without removal of \ escapes INIT.
16444if test -n "\${ZSH_VERSION+set}"; then
16445 setopt NO_GLOB_SUBST
16446fi
16447
16448
16449 PACKAGE='$PACKAGE'
16450 VERSION='$VERSION'
16451 RM='$RM'
16452 ofile='$ofile'
16453
16454
16455
16456
16457_ACEOF
16458
16459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460
16461# Handling of arguments.
16462for ac_config_target in $ac_config_targets
16463do
16464 case $ac_config_target in
16465 "pppd/config.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/config.h" ;;
16466 "pppd/pppdconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/pppdconf.h" ;;
16467 "pppd/plugins/pppoe/config.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/plugins/pppoe/config.h" ;;
16468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16471 "chat/Makefile") CONFIG_FILES="$CONFIG_FILES chat/Makefile" ;;
16472 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16473 "contrib/pppgetpass/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pppgetpass/Makefile" ;;
16474 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
16475 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16476 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16477 "pppd/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/Makefile" ;;
16478 "pppd/pppd.pc") CONFIG_FILES="$CONFIG_FILES pppd/pppd.pc" ;;
16479 "pppd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/Makefile" ;;
16480 "pppd/plugins/pppoe/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppoe/Makefile" ;;
16481 "pppd/plugins/pppoatm/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppoatm/Makefile" ;;
16482 "pppd/plugins/pppol2tp/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppol2tp/Makefile" ;;
16483 "pppd/plugins/radius/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/radius/Makefile" ;;
16484 "pppdump/Makefile") CONFIG_FILES="$CONFIG_FILES pppdump/Makefile" ;;
16485 "pppstats/Makefile") CONFIG_FILES="$CONFIG_FILES pppstats/Makefile" ;;
16486 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16487
16488 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16489 esac
16490done
16491
16492
16493# If the user did not use the arguments to specify the items to instantiate,
16494# then the envvar interface is used. Set only those that are not.
16495# We use the long form for the default assignment because of an extremely
16496# bizarre bug on SunOS 4.1.3.
16497if $ac_need_defaults; then
16498 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16499 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16500 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16501fi
16502
16503# Have a temporary directory for convenience. Make it in the build tree
16504# simply because there is no reason against having it here, and in addition,
16505# creating and moving files from /tmp can sometimes cause problems.
16506# Hook for its removal unless debugging.
16507# Note that there is a small window in which the directory will not be cleaned:
16508# after its creation but before its name has been assigned to `$tmp'.
16509$debug ||
16510{
16511 tmp= ac_tmp=
16512 trap 'exit_status=$?
16513 : "${ac_tmp:=$tmp}"
16514 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16515' 0
16516 trap 'as_fn_exit 1' 1 2 13 15
16517}
16518# Create a (secure) tmp directory for tmp files.
16519
16520{
16521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16522 test -d "$tmp"
16523} ||
16524{
16525 tmp=./conf$$-$RANDOM
16526 (umask 077 && mkdir "$tmp")
16527} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16528ac_tmp=$tmp
16529
16530# Set up the scripts for CONFIG_FILES section.
16531# No need to generate them if there are no CONFIG_FILES.
16532# This happens for instance with `./config.status config.h'.
16533if test -n "$CONFIG_FILES"; then
16534
16535
16536ac_cr=`echo X | tr X '\015'`
16537# On cygwin, bash can eat \r inside `` if the user requested igncr.
16538# But we know of no other shell where ac_cr would be empty at this
16539# point, so we can use a bashism as a fallback.
16540if test "x$ac_cr" = x; then
16541 eval ac_cr=\$\'\\r\'
16542fi
16543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16545 ac_cs_awk_cr='\\r'
16546else
16547 ac_cs_awk_cr=$ac_cr
16548fi
16549
16550echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16551_ACEOF
16552
16553
16554{
16555 echo "cat >conf$$subs.awk <<_ACEOF" &&
16556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16557 echo "_ACEOF"
16558} >conf$$subs.sh ||
16559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16560ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16561ac_delim='%!_!# '
16562for ac_last_try in false false false false false :; do
16563 . ./conf$$subs.sh ||
16564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16565
16566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16567 if test $ac_delim_n = $ac_delim_num; then
16568 break
16569 elif $ac_last_try; then
16570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16571 else
16572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16573 fi
16574done
16575rm -f conf$$subs.sh
16576
16577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16578cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16579_ACEOF
16580sed -n '
16581h
16582s/^/S["/; s/!.*/"]=/
16583p
16584g
16585s/^[^!]*!//
16586:repl
16587t repl
16588s/'"$ac_delim"'$//
16589t delim
16590:nl
16591h
16592s/\(.\{148\}\)..*/\1/
16593t more1
16594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16595p
16596n
16597b repl
16598:more1
16599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16600p
16601g
16602s/.\{148\}//
16603t nl
16604:delim
16605h
16606s/\(.\{148\}\)..*/\1/
16607t more2
16608s/["\\]/\\&/g; s/^/"/; s/$/"/
16609p
16610b
16611:more2
16612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16613p
16614g
16615s/.\{148\}//
16616t delim
16617' <conf$$subs.awk | sed '
16618/^[^""]/{
16619 N
16620 s/\n//
16621}
16622' >>$CONFIG_STATUS || ac_write_fail=1
16623rm -f conf$$subs.awk
16624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16625_ACAWK
16626cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16627 for (key in S) S_is_set[key] = 1
16628 FS = ""
16629
16630}
16631{
16632 line = $ 0
16633 nfields = split(line, field, "@")
16634 substed = 0
16635 len = length(field[1])
16636 for (i = 2; i < nfields; i++) {
16637 key = field[i]
16638 keylen = length(key)
16639 if (S_is_set[key]) {
16640 value = S[key]
16641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16642 len += length(value) + length(field[++i])
16643 substed = 1
16644 } else
16645 len += 1 + keylen
16646 }
16647
16648 print line
16649}
16650
16651_ACAWK
16652_ACEOF
16653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16656else
16657 cat
16658fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16659 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16660_ACEOF
16661
16662# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16663# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16664# trailing colons and then remove the whole line if VPATH becomes empty
16665# (actually we leave an empty line to preserve line numbers).
16666if test "x$srcdir" = x.; then
16667 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16668h
16669s///
16670s/^/:/
16671s/[ ]*$/:/
16672s/:\$(srcdir):/:/g
16673s/:\${srcdir}:/:/g
16674s/:@srcdir@:/:/g
16675s/^:*//
16676s/:*$//
16677x
16678s/\(=[ ]*\).*/\1/
16679G
16680s/\n//
16681s/^[^=]*=[ ]*$//
16682}'
16683fi
16684
16685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686fi # test -n "$CONFIG_FILES"
16687
16688# Set up the scripts for CONFIG_HEADERS section.
16689# No need to generate them if there are no CONFIG_HEADERS.
16690# This happens for instance with `./config.status Makefile'.
16691if test -n "$CONFIG_HEADERS"; then
16692cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16693BEGIN {
16694_ACEOF
16695
16696# Transform confdefs.h into an awk script `defines.awk', embedded as
16697# here-document in config.status, that substitutes the proper values into
16698# config.h.in to produce config.h.
16699
16700# Create a delimiter string that does not exist in confdefs.h, to ease
16701# handling of long lines.
16702ac_delim='%!_!# '
16703for ac_last_try in false false :; do
16704 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16705 if test -z "$ac_tt"; then
16706 break
16707 elif $ac_last_try; then
16708 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16709 else
16710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16711 fi
16712done
16713
16714# For the awk script, D is an array of macro values keyed by name,
16715# likewise P contains macro parameters if any. Preserve backslash
16716# newline sequences.
16717
16718ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16719sed -n '
16720s/.\{148\}/&'"$ac_delim"'/g
16721t rset
16722:rset
16723s/^[ ]*#[ ]*define[ ][ ]*/ /
16724t def
16725d
16726:def
16727s/\\$//
16728t bsnl
16729s/["\\]/\\&/g
16730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16731D["\1"]=" \3"/p
16732s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16733d
16734:bsnl
16735s/["\\]/\\&/g
16736s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16737D["\1"]=" \3\\\\\\n"\\/p
16738t cont
16739s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16740t cont
16741d
16742:cont
16743n
16744s/.\{148\}/&'"$ac_delim"'/g
16745t clear
16746:clear
16747s/\\$//
16748t bsnlc
16749s/["\\]/\\&/g; s/^/"/; s/$/"/p
16750d
16751:bsnlc
16752s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16753b cont
16754' <confdefs.h | sed '
16755s/'"$ac_delim"'/"\\\
16756"/g' >>$CONFIG_STATUS || ac_write_fail=1
16757
16758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 for (key in D) D_is_set[key] = 1
16760 FS = ""
16761}
16762/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16763 line = \$ 0
16764 split(line, arg, " ")
16765 if (arg[1] == "#") {
16766 defundef = arg[2]
16767 mac1 = arg[3]
16768 } else {
16769 defundef = substr(arg[1], 2)
16770 mac1 = arg[2]
16771 }
16772 split(mac1, mac2, "(") #)
16773 macro = mac2[1]
16774 prefix = substr(line, 1, index(line, defundef) - 1)
16775 if (D_is_set[macro]) {
16776 # Preserve the white space surrounding the "#".
16777 print prefix "define", macro P[macro] D[macro]
16778 next
16779 } else {
16780 # Replace #undef with comments. This is necessary, for example,
16781 # in the case of _POSIX_SOURCE, which is predefined and required
16782 # on some systems where configure will not decide to define it.
16783 if (defundef == "undef") {
16784 print "/*", prefix defundef, macro, "*/"
16785 next
16786 }
16787 }
16788}
16789{ print }
16790_ACAWK
16791_ACEOF
16792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16794fi # test -n "$CONFIG_HEADERS"
16795
16796
16797eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16798shift
16799for ac_tag
16800do
16801 case $ac_tag in
16802 :[FHLC]) ac_mode=$ac_tag; continue;;
16803 esac
16804 case $ac_mode$ac_tag in
16805 :[FHL]*:*);;
16806 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16807 :[FH]-) ac_tag=-:-;;
16808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16809 esac
16810 ac_save_IFS=$IFS
16811 IFS=:
16812 set x $ac_tag
16813 IFS=$ac_save_IFS
16814 shift
16815 ac_file=$1
16816 shift
16817
16818 case $ac_mode in
16819 :L) ac_source=$1;;
16820 :[FH])
16821 ac_file_inputs=
16822 for ac_f
16823 do
16824 case $ac_f in
16825 -) ac_f="$ac_tmp/stdin";;
16826 *) # Look for the file first in the build tree, then in the source tree
16827 # (if the path is not absolute). The absolute path cannot be DOS-style,
16828 # because $ac_f cannot contain `:'.
16829 test -f "$ac_f" ||
16830 case $ac_f in
16831 [\\/$]*) false;;
16832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16833 esac ||
16834 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16835 esac
16836 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16837 as_fn_append ac_file_inputs " '$ac_f'"
16838 done
16839
16840 # Let's still pretend it is `configure' which instantiates (i.e., don't
16841 # use $as_me), people would be surprised to read:
16842 # /* config.h. Generated by config.status. */
16843 configure_input='Generated from '`
16844 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16845 `' by configure.'
16846 if test x"$ac_file" != x-; then
16847 configure_input="$ac_file. $configure_input"
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16849printf "%s\n" "$as_me: creating $ac_file" >&6;}
16850 fi
16851 # Neutralize special characters interpreted by sed in replacement strings.
16852 case $configure_input in #(
16853 *\&* | *\|* | *\\* )
16854 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16856 *) ac_sed_conf_input=$configure_input;;
16857 esac
16858
16859 case $ac_tag in
16860 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16862 esac
16863 ;;
16864 esac
16865
16866 ac_dir=`$as_dirname -- "$ac_file" ||
16867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16868 X"$ac_file" : 'X\(//\)[^/]' \| \
16869 X"$ac_file" : 'X\(//\)$' \| \
16870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16871printf "%s\n" X"$ac_file" |
16872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16873 s//\1/
16874 q
16875 }
16876 /^X\(\/\/\)[^/].*/{
16877 s//\1/
16878 q
16879 }
16880 /^X\(\/\/\)$/{
16881 s//\1/
16882 q
16883 }
16884 /^X\(\/\).*/{
16885 s//\1/
16886 q
16887 }
16888 s/.*/./; q'`
16889 as_dir="$ac_dir"; as_fn_mkdir_p
16890 ac_builddir=.
16891
16892case "$ac_dir" in
16893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16894*)
16895 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16896 # A ".." for each directory in $ac_dir_suffix.
16897 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16898 case $ac_top_builddir_sub in
16899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16901 esac ;;
16902esac
16903ac_abs_top_builddir=$ac_pwd
16904ac_abs_builddir=$ac_pwd$ac_dir_suffix
16905# for backward compatibility:
16906ac_top_builddir=$ac_top_build_prefix
16907
16908case $srcdir in
16909 .) # We are building in place.
16910 ac_srcdir=.
16911 ac_top_srcdir=$ac_top_builddir_sub
16912 ac_abs_top_srcdir=$ac_pwd ;;
16913 [\\/]* | ?:[\\/]* ) # Absolute name.
16914 ac_srcdir=$srcdir$ac_dir_suffix;
16915 ac_top_srcdir=$srcdir
16916 ac_abs_top_srcdir=$srcdir ;;
16917 *) # Relative name.
16918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16919 ac_top_srcdir=$ac_top_build_prefix$srcdir
16920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16921esac
16922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16923
16924
16925 case $ac_mode in
16926 :F)
16927 #
16928 # CONFIG_FILE
16929 #
16930
16931 case $INSTALL in
16932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16934 esac
16935 ac_MKDIR_P=$MKDIR_P
16936 case $MKDIR_P in
16937 [\\/$]* | ?:[\\/]* ) ;;
16938 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16939 esac
16940_ACEOF
16941
16942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943# If the template does not know about datarootdir, expand it.
16944# FIXME: This hack should be removed a few years after 2.60.
16945ac_datarootdir_hack=; ac_datarootdir_seen=
16946ac_sed_dataroot='
16947/datarootdir/ {
16948 p
16949 q
16950}
16951/@datadir@/p
16952/@docdir@/p
16953/@infodir@/p
16954/@localedir@/p
16955/@mandir@/p'
16956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16957*datarootdir*) ac_datarootdir_seen=yes;;
16958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16960printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16961_ACEOF
16962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16963 ac_datarootdir_hack='
16964 s&@datadir@&$datadir&g
16965 s&@docdir@&$docdir&g
16966 s&@infodir@&$infodir&g
16967 s&@localedir@&$localedir&g
16968 s&@mandir@&$mandir&g
16969 s&\\\${datarootdir}&$datarootdir&g' ;;
16970esac
16971_ACEOF
16972
16973# Neutralize VPATH when `$srcdir' = `.'.
16974# Shell code in configure.ac might set extrasub.
16975# FIXME: do we really want to maintain this feature?
16976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16977ac_sed_extra="$ac_vpsub
16978$extrasub
16979_ACEOF
16980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16981:t
16982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16983s|@configure_input@|$ac_sed_conf_input|;t t
16984s&@top_builddir@&$ac_top_builddir_sub&;t t
16985s&@top_build_prefix@&$ac_top_build_prefix&;t t
16986s&@srcdir@&$ac_srcdir&;t t
16987s&@abs_srcdir@&$ac_abs_srcdir&;t t
16988s&@top_srcdir@&$ac_top_srcdir&;t t
16989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16990s&@builddir@&$ac_builddir&;t t
16991s&@abs_builddir@&$ac_abs_builddir&;t t
16992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16993s&@INSTALL@&$ac_INSTALL&;t t
16994s&@MKDIR_P@&$ac_MKDIR_P&;t t
16995$ac_datarootdir_hack
16996"
16997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16999
17000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17001 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17003 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17005which seems to be undefined. Please make sure it is defined" >&5
17006printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17007which seems to be undefined. Please make sure it is defined" >&2;}
17008
17009 rm -f "$ac_tmp/stdin"
17010 case $ac_file in
17011 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17012 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17013 esac \
17014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17015 ;;
17016 :H)
17017 #
17018 # CONFIG_HEADER
17019 #
17020 if test x"$ac_file" != x-; then
17021 {
17022 printf "%s\n" "/* $configure_input */" >&1 \
17023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17024 } >"$ac_tmp/config.h" \
17025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17026 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17028printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17029 else
17030 rm -f "$ac_file"
17031 mv "$ac_tmp/config.h" "$ac_file" \
17032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17033 fi
17034 else
17035 printf "%s\n" "/* $configure_input */" >&1 \
17036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17037 || as_fn_error $? "could not create -" "$LINENO" 5
17038 fi
17039# Compute "$ac_file"'s index in $config_headers.
17040_am_arg="$ac_file"
17041_am_stamp_count=1
17042for _am_header in $config_headers :; do
17043 case $_am_header in
17044 $_am_arg | $_am_arg:* )
17045 break ;;
17046 * )
17047 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17048 esac
17049done
17050echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17051$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17052 X"$_am_arg" : 'X\(//\)[^/]' \| \
17053 X"$_am_arg" : 'X\(//\)$' \| \
17054 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17055printf "%s\n" X"$_am_arg" |
17056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17057 s//\1/
17058 q
17059 }
17060 /^X\(\/\/\)[^/].*/{
17061 s//\1/
17062 q
17063 }
17064 /^X\(\/\/\)$/{
17065 s//\1/
17066 q
17067 }
17068 /^X\(\/\).*/{
17069 s//\1/
17070 q
17071 }
17072 s/.*/./; q'`/stamp-h$_am_stamp_count
17073 ;;
17074
17075 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17076printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17077 ;;
17078 esac
17079
17080
17081 case $ac_file$ac_mode in
17082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17083 # Older Autoconf quotes --file arguments for eval, but not when files
17084 # are listed without --file. Let's play safe and only enable the eval
17085 # if we detect the quoting.
17086 # TODO: see whether this extra hack can be removed once we start
17087 # requiring Autoconf 2.70 or later.
17088 case $CONFIG_FILES in #(
17089 *\'*) :
17090 eval set x "$CONFIG_FILES" ;; #(
17091 *) :
17092 set x $CONFIG_FILES ;; #(
17093 *) :
17094 ;;
17095esac
17096 shift
17097 # Used to flag and report bootstrapping failures.
17098 am_rc=0
17099 for am_mf
17100 do
17101 # Strip MF so we end up with the name of the file.
17102 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17103 # Check whether this is an Automake generated Makefile which includes
17104 # dependency-tracking related rules and includes.
17105 # Grep'ing the whole file directly is not great: AIX grep has a line
17106 # limit of 2048, but all sed's we know have understand at least 4000.
17107 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17108 || continue
17109 am_dirpart=`$as_dirname -- "$am_mf" ||
17110$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17111 X"$am_mf" : 'X\(//\)[^/]' \| \
17112 X"$am_mf" : 'X\(//\)$' \| \
17113 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17114printf "%s\n" X"$am_mf" |
17115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17116 s//\1/
17117 q
17118 }
17119 /^X\(\/\/\)[^/].*/{
17120 s//\1/
17121 q
17122 }
17123 /^X\(\/\/\)$/{
17124 s//\1/
17125 q
17126 }
17127 /^X\(\/\).*/{
17128 s//\1/
17129 q
17130 }
17131 s/.*/./; q'`
17132 am_filepart=`$as_basename -- "$am_mf" ||
17133$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17134 X"$am_mf" : 'X\(//\)$' \| \
17135 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17136printf "%s\n" X/"$am_mf" |
17137 sed '/^.*\/\([^/][^/]*\)\/*$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\/\(\/\/\)$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\/\(\/\).*/{
17146 s//\1/
17147 q
17148 }
17149 s/.*/./; q'`
17150 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17151 && sed -e '/# am--include-marker/d' "$am_filepart" \
17152 | $MAKE -f - am--depfiles" >&5
17153 (cd "$am_dirpart" \
17154 && sed -e '/# am--include-marker/d' "$am_filepart" \
17155 | $MAKE -f - am--depfiles) >&5 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } || am_rc=$?
17159 done
17160 if test $am_rc -ne 0; then
17161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17162printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17163as_fn_error $? "Something went wrong bootstrapping makefile fragments
17164 for automatic dependency tracking. If GNU make was not used, consider
17165 re-running the configure script with MAKE=\"gmake\" (or whatever is
17166 necessary). You can also try re-running configure with the
17167 '--disable-dependency-tracking' option to at least be able to build
17168 the package (albeit without support for automatic dependency tracking).
17169See \`config.log' for more details" "$LINENO" 5; }
17170 fi
17171 { am_dirpart=; unset am_dirpart;}
17172 { am_filepart=; unset am_filepart;}
17173 { am_mf=; unset am_mf;}
17174 { am_rc=; unset am_rc;}
17175 rm -f conftest-deps.mk
17176}
17177 ;;
17178 "libtool":C)
17179
17180 # See if we are running on zsh, and set the options that allow our
17181 # commands through without removal of \ escapes.
17182 if test -n "${ZSH_VERSION+set}"; then
17183 setopt NO_GLOB_SUBST
17184 fi
17185
17186 cfgfile=${ofile}T
17187 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17188 $RM "$cfgfile"
17189
17190 cat <<_LT_EOF >> "$cfgfile"
17191#! $SHELL
17192# Generated automatically by $as_me ($PACKAGE) $VERSION
17193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17194# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17195
17196# Provide generalized library-building support services.
17197# Written by Gordon Matzigkeit, 1996
17198
17199# Copyright (C) 2014 Free Software Foundation, Inc.
17200# This is free software; see the source for copying conditions. There is NO
17201# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17202
17203# GNU Libtool is free software; you can redistribute it and/or modify
17204# it under the terms of the GNU General Public License as published by
17205# the Free Software Foundation; either version 2 of of the License, or
17206# (at your option) any later version.
17207#
17208# As a special exception to the GNU General Public License, if you
17209# distribute this file as part of a program or library that is built
17210# using GNU Libtool, you may include this file under the same
17211# distribution terms that you use for the rest of that program.
17212#
17213# GNU Libtool is distributed in the hope that it will be useful, but
17214# WITHOUT ANY WARRANTY; without even the implied warranty of
17215# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17216# GNU General Public License for more details.
17217#
17218# You should have received a copy of the GNU General Public License
17219# along with this program. If not, see <http://www.gnu.org/licenses/>.
17220
17221
17222# The names of the tagged configurations supported by this script.
17223available_tags=''
17224
17225# Configured defaults for sys_lib_dlsearch_path munging.
17226: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17227
17228# ### BEGIN LIBTOOL CONFIG
17229
17230# Whether or not to build static libraries.
17231build_old_libs=$enable_static
17232
17233# Which release of libtool.m4 was used?
17234macro_version=$macro_version
17235macro_revision=$macro_revision
17236
17237# Whether or not to build shared libraries.
17238build_libtool_libs=$enable_shared
17239
17240# What type of objects to build.
17241pic_mode=$pic_mode
17242
17243# Whether or not to optimize for fast installation.
17244fast_install=$enable_fast_install
17245
17246# Shared archive member basename,for filename based shared library versioning on AIX.
17247shared_archive_member_spec=$shared_archive_member_spec
17248
17249# Shell to use when invoking shell scripts.
17250SHELL=$lt_SHELL
17251
17252# An echo program that protects backslashes.
17253ECHO=$lt_ECHO
17254
17255# The PATH separator for the build system.
17256PATH_SEPARATOR=$lt_PATH_SEPARATOR
17257
17258# The host system.
17259host_alias=$host_alias
17260host=$host
17261host_os=$host_os
17262
17263# The build system.
17264build_alias=$build_alias
17265build=$build
17266build_os=$build_os
17267
17268# A sed program that does not truncate output.
17269SED=$lt_SED
17270
17271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17272Xsed="\$SED -e 1s/^X//"
17273
17274# A grep program that handles long lines.
17275GREP=$lt_GREP
17276
17277# An ERE matcher.
17278EGREP=$lt_EGREP
17279
17280# A literal string matcher.
17281FGREP=$lt_FGREP
17282
17283# A BSD- or MS-compatible name lister.
17284NM=$lt_NM
17285
17286# Whether we need soft or hard links.
17287LN_S=$lt_LN_S
17288
17289# What is the maximum length of a command?
17290max_cmd_len=$max_cmd_len
17291
17292# Object file suffix (normally "o").
17293objext=$ac_objext
17294
17295# Executable file suffix (normally "").
17296exeext=$exeext
17297
17298# whether the shell understands "unset".
17299lt_unset=$lt_unset
17300
17301# turn spaces into newlines.
17302SP2NL=$lt_lt_SP2NL
17303
17304# turn newlines into spaces.
17305NL2SP=$lt_lt_NL2SP
17306
17307# convert \$build file names to \$host format.
17308to_host_file_cmd=$lt_cv_to_host_file_cmd
17309
17310# convert \$build files to toolchain format.
17311to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17312
17313# A file(cmd) program that detects file types.
17314FILECMD=$lt_FILECMD
17315
17316# An object symbol dumper.
17317OBJDUMP=$lt_OBJDUMP
17318
17319# Method to check whether dependent libraries are shared objects.
17320deplibs_check_method=$lt_deplibs_check_method
17321
17322# Command to use when deplibs_check_method = "file_magic".
17323file_magic_cmd=$lt_file_magic_cmd
17324
17325# How to find potential files when deplibs_check_method = "file_magic".
17326file_magic_glob=$lt_file_magic_glob
17327
17328# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17329want_nocaseglob=$lt_want_nocaseglob
17330
17331# DLL creation program.
17332DLLTOOL=$lt_DLLTOOL
17333
17334# Command to associate shared and link libraries.
17335sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17336
17337# The archiver.
17338AR=$lt_AR
17339
17340# Flags to create an archive (by configure).
17341lt_ar_flags=$lt_ar_flags
17342
17343# Flags to create an archive.
17344AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17345
17346# How to feed a file listing to the archiver.
17347archiver_list_spec=$lt_archiver_list_spec
17348
17349# A symbol stripping program.
17350STRIP=$lt_STRIP
17351
17352# Commands used to install an old-style archive.
17353RANLIB=$lt_RANLIB
17354old_postinstall_cmds=$lt_old_postinstall_cmds
17355old_postuninstall_cmds=$lt_old_postuninstall_cmds
17356
17357# Whether to use a lock for old archive extraction.
17358lock_old_archive_extraction=$lock_old_archive_extraction
17359
17360# A C compiler.
17361LTCC=$lt_CC
17362
17363# LTCC compiler flags.
17364LTCFLAGS=$lt_CFLAGS
17365
17366# Take the output of nm and produce a listing of raw symbols and C names.
17367global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17368
17369# Transform the output of nm in a proper C declaration.
17370global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17371
17372# Transform the output of nm into a list of symbols to manually relocate.
17373global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17374
17375# Transform the output of nm in a C name address pair.
17376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17377
17378# Transform the output of nm in a C name address pair when lib prefix is needed.
17379global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17380
17381# The name lister interface.
17382nm_interface=$lt_lt_cv_nm_interface
17383
17384# Specify filename containing input files for \$NM.
17385nm_file_list_spec=$lt_nm_file_list_spec
17386
17387# The root where to search for dependent libraries,and where our libraries should be installed.
17388lt_sysroot=$lt_sysroot
17389
17390# Command to truncate a binary pipe.
17391lt_truncate_bin=$lt_lt_cv_truncate_bin
17392
17393# The name of the directory that contains temporary libtool files.
17394objdir=$objdir
17395
17396# Used to examine libraries when file_magic_cmd begins with "file".
17397MAGIC_CMD=$MAGIC_CMD
17398
17399# Must we lock files when doing compilation?
17400need_locks=$lt_need_locks
17401
17402# Manifest tool.
17403MANIFEST_TOOL=$lt_MANIFEST_TOOL
17404
17405# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17406DSYMUTIL=$lt_DSYMUTIL
17407
17408# Tool to change global to local symbols on Mac OS X.
17409NMEDIT=$lt_NMEDIT
17410
17411# Tool to manipulate fat objects and archives on Mac OS X.
17412LIPO=$lt_LIPO
17413
17414# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17415OTOOL=$lt_OTOOL
17416
17417# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17418OTOOL64=$lt_OTOOL64
17419
17420# Old archive suffix (normally "a").
17421libext=$libext
17422
17423# Shared library suffix (normally ".so").
17424shrext_cmds=$lt_shrext_cmds
17425
17426# The commands to extract the exported symbol list from a shared archive.
17427extract_expsyms_cmds=$lt_extract_expsyms_cmds
17428
17429# Variables whose values should be saved in libtool wrapper scripts and
17430# restored at link time.
17431variables_saved_for_relink=$lt_variables_saved_for_relink
17432
17433# Do we need the "lib" prefix for modules?
17434need_lib_prefix=$need_lib_prefix
17435
17436# Do we need a version for libraries?
17437need_version=$need_version
17438
17439# Library versioning type.
17440version_type=$version_type
17441
17442# Shared library runtime path variable.
17443runpath_var=$runpath_var
17444
17445# Shared library path variable.
17446shlibpath_var=$shlibpath_var
17447
17448# Is shlibpath searched before the hard-coded library search path?
17449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17450
17451# Format of library name prefix.
17452libname_spec=$lt_libname_spec
17453
17454# List of archive names. First name is the real one, the rest are links.
17455# The last name is the one that the linker finds with -lNAME
17456library_names_spec=$lt_library_names_spec
17457
17458# The coded name of the library, if different from the real name.
17459soname_spec=$lt_soname_spec
17460
17461# Permission mode override for installation of shared libraries.
17462install_override_mode=$lt_install_override_mode
17463
17464# Command to use after installation of a shared archive.
17465postinstall_cmds=$lt_postinstall_cmds
17466
17467# Command to use after uninstallation of a shared archive.
17468postuninstall_cmds=$lt_postuninstall_cmds
17469
17470# Commands used to finish a libtool library installation in a directory.
17471finish_cmds=$lt_finish_cmds
17472
17473# As "finish_cmds", except a single script fragment to be evaled but
17474# not shown.
17475finish_eval=$lt_finish_eval
17476
17477# Whether we should hardcode library paths into libraries.
17478hardcode_into_libs=$hardcode_into_libs
17479
17480# Compile-time system search path for libraries.
17481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17482
17483# Detected run-time system search path for libraries.
17484sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17485
17486# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17487configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17488
17489# Whether dlopen is supported.
17490dlopen_support=$enable_dlopen
17491
17492# Whether dlopen of programs is supported.
17493dlopen_self=$enable_dlopen_self
17494
17495# Whether dlopen of statically linked programs is supported.
17496dlopen_self_static=$enable_dlopen_self_static
17497
17498# Commands to strip libraries.
17499old_striplib=$lt_old_striplib
17500striplib=$lt_striplib
17501
17502
17503# The linker used to build libraries.
17504LD=$lt_LD
17505
17506# How to create reloadable object files.
17507reload_flag=$lt_reload_flag
17508reload_cmds=$lt_reload_cmds
17509
17510# Commands used to build an old-style archive.
17511old_archive_cmds=$lt_old_archive_cmds
17512
17513# A language specific compiler.
17514CC=$lt_compiler
17515
17516# Is the compiler the GNU compiler?
17517with_gcc=$GCC
17518
17519# Compiler flag to turn off builtin functions.
17520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17521
17522# Additional compiler flags for building library objects.
17523pic_flag=$lt_lt_prog_compiler_pic
17524
17525# How to pass a linker flag through the compiler.
17526wl=$lt_lt_prog_compiler_wl
17527
17528# Compiler flag to prevent dynamic linking.
17529link_static_flag=$lt_lt_prog_compiler_static
17530
17531# Does compiler simultaneously support -c and -o options?
17532compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17533
17534# Whether or not to add -lc for building shared libraries.
17535build_libtool_need_lc=$archive_cmds_need_lc
17536
17537# Whether or not to disallow shared libs when runtime libs are static.
17538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17539
17540# Compiler flag to allow reflexive dlopens.
17541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17542
17543# Compiler flag to generate shared objects directly from archives.
17544whole_archive_flag_spec=$lt_whole_archive_flag_spec
17545
17546# Whether the compiler copes with passing no objects directly.
17547compiler_needs_object=$lt_compiler_needs_object
17548
17549# Create an old-style archive from a shared archive.
17550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17551
17552# Create a temporary old-style archive to link instead of a shared archive.
17553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17554
17555# Commands used to build a shared archive.
17556archive_cmds=$lt_archive_cmds
17557archive_expsym_cmds=$lt_archive_expsym_cmds
17558
17559# Commands used to build a loadable module if different from building
17560# a shared archive.
17561module_cmds=$lt_module_cmds
17562module_expsym_cmds=$lt_module_expsym_cmds
17563
17564# Whether we are building with GNU ld or not.
17565with_gnu_ld=$lt_with_gnu_ld
17566
17567# Flag that allows shared libraries with undefined symbols to be built.
17568allow_undefined_flag=$lt_allow_undefined_flag
17569
17570# Flag that enforces no undefined symbols.
17571no_undefined_flag=$lt_no_undefined_flag
17572
17573# Flag to hardcode \$libdir into a binary during linking.
17574# This must work even if \$libdir does not exist
17575hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17576
17577# Whether we need a single "-rpath" flag with a separated argument.
17578hardcode_libdir_separator=$lt_hardcode_libdir_separator
17579
17580# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17581# DIR into the resulting binary.
17582hardcode_direct=$hardcode_direct
17583
17584# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17585# DIR into the resulting binary and the resulting library dependency is
17586# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17587# library is relocated.
17588hardcode_direct_absolute=$hardcode_direct_absolute
17589
17590# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17591# into the resulting binary.
17592hardcode_minus_L=$hardcode_minus_L
17593
17594# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17595# into the resulting binary.
17596hardcode_shlibpath_var=$hardcode_shlibpath_var
17597
17598# Set to "yes" if building a shared library automatically hardcodes DIR
17599# into the library and all subsequent libraries and executables linked
17600# against it.
17601hardcode_automatic=$hardcode_automatic
17602
17603# Set to yes if linker adds runtime paths of dependent libraries
17604# to runtime path list.
17605inherit_rpath=$inherit_rpath
17606
17607# Whether libtool must link a program against all its dependency libraries.
17608link_all_deplibs=$link_all_deplibs
17609
17610# Set to "yes" if exported symbols are required.
17611always_export_symbols=$always_export_symbols
17612
17613# The commands to list exported symbols.
17614export_symbols_cmds=$lt_export_symbols_cmds
17615
17616# Symbols that should not be listed in the preloaded symbols.
17617exclude_expsyms=$lt_exclude_expsyms
17618
17619# Symbols that must always be exported.
17620include_expsyms=$lt_include_expsyms
17621
17622# Commands necessary for linking programs (against libraries) with templates.
17623prelink_cmds=$lt_prelink_cmds
17624
17625# Commands necessary for finishing linking programs.
17626postlink_cmds=$lt_postlink_cmds
17627
17628# Specify filename containing input files.
17629file_list_spec=$lt_file_list_spec
17630
17631# How to hardcode a shared library path into an executable.
17632hardcode_action=$hardcode_action
17633
17634# ### END LIBTOOL CONFIG
17635
17636_LT_EOF
17637
17638 cat <<'_LT_EOF' >> "$cfgfile"
17639
17640# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17641
17642# func_munge_path_list VARIABLE PATH
17643# -----------------------------------
17644# VARIABLE is name of variable containing _space_ separated list of
17645# directories to be munged by the contents of PATH, which is string
17646# having a format:
17647# "DIR[:DIR]:"
17648# string "DIR[ DIR]" will be prepended to VARIABLE
17649# ":DIR[:DIR]"
17650# string "DIR[ DIR]" will be appended to VARIABLE
17651# "DIRP[:DIRP]::[DIRA:]DIRA"
17652# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17653# "DIRA[ DIRA]" will be appended to VARIABLE
17654# "DIR[:DIR]"
17655# VARIABLE will be replaced by "DIR[ DIR]"
17656func_munge_path_list ()
17657{
17658 case x$2 in
17659 x)
17660 ;;
17661 *:)
17662 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17663 ;;
17664 x:*)
17665 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17666 ;;
17667 *::*)
17668 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17669 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17670 ;;
17671 *)
17672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17673 ;;
17674 esac
17675}
17676
17677
17678# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17679func_cc_basename ()
17680{
17681 for cc_temp in $*""; do
17682 case $cc_temp in
17683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17685 \-*) ;;
17686 *) break;;
17687 esac
17688 done
17689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17690}
17691
17692
17693# ### END FUNCTIONS SHARED WITH CONFIGURE
17694
17695_LT_EOF
17696
17697 case $host_os in
17698 aix3*)
17699 cat <<\_LT_EOF >> "$cfgfile"
17700# AIX sometimes has problems with the GCC collect2 program. For some
17701# reason, if we set the COLLECT_NAMES environment variable, the problems
17702# vanish in a puff of smoke.
17703if test set != "${COLLECT_NAMES+set}"; then
17704 COLLECT_NAMES=
17705 export COLLECT_NAMES
17706fi
17707_LT_EOF
17708 ;;
17709 esac
17710
17711
17712
17713ltmain=$ac_aux_dir/ltmain.sh
17714
17715
17716 # We use sed instead of cat because bash on DJGPP gets confused if
17717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17718 # text mode, it properly converts lines to CR/LF. This bash problem
17719 # is reportedly fixed, but why not run on old versions too?
17720 $SED '$q' "$ltmain" >> "$cfgfile" \
17721 || (rm -f "$cfgfile"; exit 1)
17722
17723 mv -f "$cfgfile" "$ofile" ||
17724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17725 chmod +x "$ofile"
17726
17727 ;;
17728
17729 esac
17730done # for ac_tag
17731
17732
17733as_fn_exit 0
17734_ACEOF
17735ac_clean_files=$ac_clean_files_save
17736
17737test $ac_write_fail = 0 ||
17738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17739
17740
17741# configure is writing to config.log, and then calls config.status.
17742# config.status does its own redirection, appending to config.log.
17743# Unfortunately, on DOS this fails, as config.log is still kept open
17744# by configure, so config.status won't be able to write to it; its
17745# output is simply discarded. So we exec the FD to /dev/null,
17746# effectively closing config.log, so it can be properly (re)opened and
17747# appended to by config.status. When coming back to configure, we
17748# need to make the FD available again.
17749if test "$no_create" != yes; then
17750 ac_cs_success=:
17751 ac_config_status_args=
17752 test "$silent" = yes &&
17753 ac_config_status_args="$ac_config_status_args --quiet"
17754 exec 5>/dev/null
17755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17756 exec 5>>config.log
17757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17758 # would make configure fail if this is the last instruction.
17759 $ac_cs_success || as_fn_exit 1
17760fi
17761if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17763printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17764fi
17765
17766
17767
17768if test "x${build_sunos}" = "xyes"
17769then :
17770
17771 echo "
17772Setting up SunOS kernel module(s)"
17773 mkmkf() {
17774 rm -f $2
17775 if [ -f $1 ]; then
17776 echo " $2 <= $1"
17777 sed -e "s,@DESTDIR@,$prefix,g" \
17778 -e "s,@SYSCONF@,$sysconfdir,g" \
17779 -e "s,@CC@,$CC,g" \
17780 -e "s|@CFLAGS@|$CFLAGS|g" $1 > $2
17781 fi
17782 }
17783
17784 release=`uname -r`
17785 karch=`/usr/bin/isainfo -k`
17786 makext="sol2"
17787 archvariant=
17788
17789 case "$karch" in
17790 amd64)
17791 archvariant='-64x'
17792 ;;
17793 sparcv9)
17794 archvariant='-64'
17795 ;;
17796 *)
17797 ;;
17798 esac
17799
17800 usegcc=$CC
17801 if [ -x /opt/SUNWspro/bin/cc -a "$usegcc" != gcc ] &&
17802 /opt/SUNWspro/bin/cc -flags >/dev/null 2>&1; then
17803 if [ "$archvariant" = "-64x" ]; then
17804 ( cd /tmp; echo "int x;" > ppp$$.c
17805 /opt/SUNWspro/bin/cc -c -errwarn -xchip=opteron -m64 ppp$$.c >/dev/null 2>&1 || (
17806 echo "WorkShop C is unable to make 64 bit modules, and your $karch system needs"
17807 echo "them. Consider upgrading cc on this machine."
17808 rm -f ppp$$.c
17809 exit 1
17810 ) || exit 1
17811 rm -f ppp$$.c ppp$$.o
17812 ) || exit 1
17813 fi
17814 elif gcc --version >/dev/null 2>&1; then
17815 archvariant=gcc$archvariant
17816 compiletype=.gcc
17817 if [ "$archvariant" = "gcc-64" -o"$archvariant" = "gcc-64x" ]; then
17818 ( cd /tmp; touch ppp$$.c
17819 gcc -c -m64 ppp$$.c >/dev/null 2>&1 || (
17820 echo "gcc is unable to make 64 bit modules, and your $karch system needs them."
17821 echo "Consider upgrading gcc on this machine, or switching to Sun WorkShop."
17822 rm -f ppp$$.c
17823 exit 1
17824 ) || exit 1
17825 rm -f ppp$$.c ppp$$.o
17826 ) || exit 1
17827 fi
17828 else
17829 echo "C compiler not found; hoping for the best."
17830 fi
17831
17832 mkmkf solaris/Makedefs$compiletype Makedefs.com
17833 mkmkf solaris/Makefile.sol2$archvariant solaris/Makefile
17834
17835fi
17836
17837echo "
17838$PACKAGE_NAME version $PACKAGE_VERSION
17839 Prefix...............: $prefix
17840 Runtime Dir..........: $PPPD_RUNTIME_DIR
17841 Logfile Dir..........: $PPPD_LOGFILE_DIR
17842 Plugin Dir...........: $PPPD_PLUGIN_DIR
17843 System CA Path ......: ${SYSTEM_CA_PATH:-not set}
17844 With OpenSSL.........: ${with_openssl:-yes}
17845 With libatm..........: ${with_atm:-no}
17846 With libpam..........: ${with_pam:-no}
17847 With libpcap.........: ${with_pcap:-no}
17848 With libsrp..........: ${with_srp:-no}
17849 C Compiler...........: $CC $CFLAGS
17850 Linker...............: $LD $LDFLAGS $LIBS
17851
17852Features enabled
17853 Microsoft Extensions.: ${enable_microsoft_extensions:-yes}
17854 Multilink............: ${enable_multilink:-no}
17855 Plugins..............: ${enable_plugins:-yes}
17856 CBCP.................: ${enable_cbcp:-no}
17857 IPV6CP...............: ${enable_ipv6cp:-yes}
17858 EAP-TLS..............: ${enable_eaptls:-yes}
17859 PEAP.................: ${enable_peap:-yes}
17860 systemd notifications: ${enable_systemd:-no}
17861"
17862