2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233 *v*x* | *x*v* ) as_opts=-vx ;;
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 if test x$as_have_required = xno; then :
242 $as_echo "$0: This script requires a shell more modern than all"
243 $as_echo "$0: the shells that I found on your system."
244 if test x${ZSH_VERSION+set} = xset ; then
245 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
246 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
249 $0: including any error possibly output before this
250 $0: message. Then install a modern shell, or manually run
251 $0: the script under such a shell if you do have one."
257 SHELL=${CONFIG_SHELL-/bin/sh}
259 # Unset more variables known to interfere with behavior of common tools.
260 CLICOLOR_FORCE= GREP_OPTIONS=
261 unset CLICOLOR_FORCE GREP_OPTIONS
263 ## --------------------- ##
264 ## M4sh Shell Functions. ##
265 ## --------------------- ##
268 # Portably unset VAR.
271 { eval $1=; unset $1;}
275 # as_fn_set_status STATUS
276 # -----------------------
277 # Set $? to STATUS, without forking.
285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
295 # Create "$as_dir" as a directory, including parents if necessary.
300 -*) as_dir=./$as_dir;;
302 test -d "$as_dir" || eval $as_mkdir_p || {
306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 as_dirs="'$as_qdir' $as_dirs"
310 as_dir=`$as_dirname -- "$as_dir" ||
311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
312 X"$as_dir" : 'X\(//\)[^/]' \| \
313 X"$as_dir" : 'X\(//\)$' \| \
314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
315 $as_echo X"$as_dir" |
316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
333 test -d "$as_dir" && break
335 test -z "$as_dirs" || eval "mkdir $as_dirs"
336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340 # as_fn_append VAR VALUE
341 # ----------------------
342 # Append the text in VALUE to the end of the definition contained in VAR. Take
343 # advantage of any shell optimizations that allow amortized linear growth over
344 # repeated appends, instead of the typical quadratic growth present in naive
346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
347 eval 'as_fn_append ()
360 # Perform arithmetic evaluation on the ARGs, and store the result in the
361 # global $as_val. Take advantage of shells that can avoid forks. The arguments
362 # must be portable across $(()) and expr.
363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
371 as_val=`expr "$@" || test $? -eq 1`
376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
377 # ----------------------------------------
378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
380 # script with STATUS, using 1 if that was 0.
383 as_status=$1; test $as_status -eq 0 && as_status=1
385 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
388 $as_echo "$as_me: error: $2" >&2
389 as_fn_exit $as_status
392 if expr a : '\(a\)' >/dev/null 2>&1 &&
393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411 as_me=`$as_basename -- "$0" ||
412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
413 X"$0" : 'X\(//\)$' \| \
414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
416 sed '/^.*\/\([^/][^/]*\)\/*$/{
430 # Avoid depending upon Character Ranges.
431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
434 as_cr_digits='0123456789'
435 as_cr_alnum=$as_cr_Letters$as_cr_digits
438 as_lineno_1=$LINENO as_lineno_1a=$LINENO
439 as_lineno_2=$LINENO as_lineno_2a=$LINENO
440 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
441 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
442 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x "$as_me.lineno" ||
459 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in #(((((
472 case `echo 'xy\c'` in
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
482 rm -f conf$$ conf$$.exe conf$$.file
483 if test -d conf$$.dir; then
484 rm -f conf$$.dir/conf$$.file
487 mkdir conf$$.dir 2>/dev/null
489 if (echo >conf$$.file) 2>/dev/null; then
490 if ln -s conf$$.file conf$$ 2>/dev/null; then
492 # ... but there are two gotchas:
493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
495 # In both cases, we have to default to `cp -p'.
496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 elif ln conf$$.file conf$$ 2>/dev/null; then
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
509 if mkdir -p . 2>/dev/null; then
510 as_mkdir_p='mkdir -p "$as_dir"'
512 test -d ./-p && rmdir ./-p
516 if test -x / >/dev/null 2>&1; then
519 if ls -dL / >/dev/null 2>&1; then
526 if test -d "$1"; then
532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
533 ???[sx]*):;;*)false;;esac;fi
537 as_executable_p=$as_test_x
539 # Sed expression to map a string onto a valid CPP name.
540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
542 # Sed expression to map a string onto a valid variable name.
543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
545 SHELL=${CONFIG_SHELL-/bin/sh}
548 test -n "$DJDIR" || exec 7<&0 </dev/null
552 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
553 # so uname gets run too.
554 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 ac_default_prefix=/usr/local
561 ac_config_libobj_dir=.
568 # Identity of this package.
576 ac_unique_file="src/main/radiusd.c"
577 # Factoring default headers for most tests.
578 ac_includes_default="\
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
590 # ifdef HAVE_STDLIB_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
613 enable_option_checking=no
614 ac_subst_vars='LTLIBOBJS
617 RADIUSD_MINOR_VERSION
618 RADIUSD_MAJOR_VERSION
721 program_transform_name
734 enable_option_checking
745 enable_strict_dependencies
757 with_experimental_modules
759 with_openssl_includes
760 with_openssl_libraries
762 with_rlm_FOO_include_dir
765 ac_precious_vars='build_alias
778 ac_subdirs_all='$mysubdirs'
780 # Initialize some variables set by options.
782 ac_init_version=false
783 ac_unrecognized_opts=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name=s,x,x,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE}'
819 infodir='${datarootdir}/info'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
938 -help | --help | --hel | --he | -h)
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 # Obsolete; use --without-fp.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures this package to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 if test -n "$ac_init_help"; then
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --disable-largefile omit support for large files
1392 --enable-shared[=PKGS] build shared libraries [default=yes]
1393 --enable-static[=PKGS] build static libraries [default=yes]
1394 --enable-fast-install[=PKGS]
1395 optimize for fast installation [default=yes]
1396 --disable-libtool-lock avoid locking (might break parallel builds)
1397 --enable-strict-dependencies Fail configure on lack of module dependancy.
1398 --enable-developer Enables features of interest to developers.
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1403 --with-system-libltdl Use the libltdl installed in your system (default=use dlopen)
1404 --with-system-libtool Use the libtool installed in your system (default=use our own)
1405 --with-pic try to use only PIC/non-PIC objects [default=use
1407 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408 --with-sysroot=DIR Search for dependent libraries within DIR
1409 (or the compiler's sysroot if not specified).
1410 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1411 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1412 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1413 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1414 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1415 --with-threads Use threads, if available. (default=yes)
1416 --with-vmps Compile in VMPS support. (default=yes)
1417 --with-dhcp Compile in DHCP support. (default=yes)
1418 --with-static-modules=QUOTED-MODULE-LIST
1419 --with-modules=QUOTED-MODULE-LIST
1420 --with-experimental-modules Use experimental and unstable modules. (default=no)
1421 --with-openssl Use OpenSSL. (default=yes)
1422 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1423 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1424 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1425 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1426 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CXX C++ compiler command
1437 CXXFLAGS C++ compiler flags
1439 CXXCPP C++ preprocessor
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to the package provider.
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1474 .) # We are building in place.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1508 generated by GNU Autoconf 2.68
1510 Copyright (C) 2010 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_cxx_try_compile LINENO
1560 # ----------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_cxx_try_compile ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_cxx_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1595 } # ac_fn_cxx_try_compile
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1639 ac_fn_c_check_header_mongrel ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1663 ac_header_compiler=no
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1679 ac_header_preproc=no
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 eval "$3=\$ac_header_compiler"
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_mongrel
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 $as_test_x conftest$ac_exeext
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_link
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1863 # include <limits.h>
1865 # include <assert.h>
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1892 if ac_fn_c_try_link "$LINENO"; then :
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_func
1907 # ac_fn_cxx_try_cpp LINENO
1908 # ------------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_cpp ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } > conftest.i && {
1929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_cxx_try_cpp
1944 # ac_fn_cxx_try_link LINENO
1945 # -------------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_link ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 rm -f conftest.$ac_objext conftest$ac_exeext
1951 if { { ac_try="$ac_link"
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>conftest.err
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && {
1967 test -z "$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 } && test -s conftest$ac_exeext && {
1970 test "$cross_compiling" = yes ||
1971 $as_test_x conftest$ac_exeext
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982 # interfere with the next link command; also delete a directory that is
1983 # left behind by Apple's compiler. We do this before executing the actions.
1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_cxx_try_link
1990 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1991 # -------------------------------------------
1992 # Tests whether TYPE exists after having included INCLUDES, setting cache
1993 # variable VAR accordingly.
1994 ac_fn_c_check_type ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2028 if ac_fn_c_try_compile "$LINENO"; then :
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_type
2044 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2045 # ---------------------------------------------
2046 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2048 ac_fn_c_check_decl ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 as_decl_name=`echo $2|sed 's/ *(.*//'`
2052 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2054 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 #ifndef $as_decl_name
2066 (void) $as_decl_use;
2068 (void) $as_decl_name;
2076 if ac_fn_c_try_compile "$LINENO"; then :
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_decl
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2093 It was created by $as_me, which was
2094 generated by GNU Autoconf 2.68. Invocation command line was
2106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2116 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2119 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2120 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2121 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 $as_echo "PATH: $as_dir"
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_must_keep_next=false
2160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162 | -silent | --silent | --silen | --sile | --sil)
2165 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 as_fn_append ac_configure_args1 " '$ac_arg'"
2171 if test $ac_must_keep_next = true; then
2172 ac_must_keep_next=false # Got value, back to normal.
2175 *=* | --config-cache | -C | -disable-* | --disable-* \
2176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178 | -with-* | --with-* | -without-* | --without-* | --x)
2179 case "$ac_configure_args0 " in
2180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 -* ) ac_must_keep_next=true ;;
2186 as_fn_append ac_configure_args " '$ac_arg'"
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log. We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200 # Save into config.log some information that might help in debugging.
2204 $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2208 # The following way of writing the cache mishandles newlines in values,
2210 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2211 eval ac_val=\$$ac_var
2215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 _ | IFS | as_nl) ;; #(
2220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221 *) { eval $ac_var=; unset $ac_var;} ;;
2226 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2227 *${as_nl}ac_space=\ *)
2229 "s/'\''/'\''\\\\'\'''\''/g;
2230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2244 for ac_var in $ac_subst_vars
2246 eval ac_val=\$$ac_var
2248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 $as_echo "$ac_var='\''$ac_val'\''"
2254 if test -n "$ac_subst_files"; then
2255 $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2259 for ac_var in $ac_subst_files
2261 eval ac_val=\$$ac_var
2263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 $as_echo "$ac_var='\''$ac_val'\''"
2270 if test -s confdefs.h; then
2271 $as_echo "## ----------- ##
2278 test "$ac_signal" != 0 &&
2279 $as_echo "$as_me: caught signal $ac_signal"
2280 $as_echo "$as_me: exit $exit_status"
2282 rm -f core *.core core.conftest.* &&
2283 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 for ac_signal in 1 2 13 15; do
2287 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2294 $as_echo "/* confdefs.h */" > confdefs.h
2296 # Predefined preprocessor variables.
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2327 if test -n "$CONFIG_SITE"; then
2328 # We do not want a PATH search for config.site.
2329 case $CONFIG_SITE in #((
2330 -*) ac_site_file1=./$CONFIG_SITE;;
2331 */*) ac_site_file1=$CONFIG_SITE;;
2332 *) ac_site_file1=./$CONFIG_SITE;;
2334 elif test "x$prefix" != xNONE; then
2335 ac_site_file1=$prefix/share/config.site
2336 ac_site_file2=$prefix/etc/config.site
2338 ac_site_file1=$ac_default_prefix/share/config.site
2339 ac_site_file2=$ac_default_prefix/etc/config.site
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343 test "x$ac_site_file" = xNONE && continue
2344 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347 sed 's/^/| /' "$ac_site_file" >&5
2349 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site script $ac_site_file
2352 See \`config.log' for more details" "$LINENO" 5; }
2356 if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special files
2358 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364 *) . "./$cache_file";;
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 # Check that the precious variables saved in the cache have kept the same
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378 eval ac_new_set=\$ac_env_${ac_var}_set
2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380 eval ac_new_val=\$ac_env_${ac_var}_value
2381 case $ac_old_set,$ac_new_set in
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385 ac_cache_corrupted=: ;;
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
2393 # differences in whitespace do not lead to failure.
2394 ac_old_val_w=`echo x $ac_old_val`
2395 ac_new_val_w=`echo x $ac_new_val`
2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399 ac_cache_corrupted=:
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403 eval $ac_var=\$ac_old_val
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 # Pass precious variables to config.status.
2412 if test "$ac_new_set" = set; then
2414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 *) ac_arg=$ac_var=$ac_new_val ;;
2417 case " $ac_configure_args " in
2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 if $ac_cache_corrupted; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2444 RADIUSD_VERSION=`cat VERSION`
2445 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2446 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^3\.//'`
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_CC+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CC"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2486 $as_echo "$CC" >&6; }
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2494 if test -z "$ac_cv_prog_CC"; then
2496 # Extract the first word of "gcc", so it can be a program name with args.
2497 set dummy gcc; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 if test -n "$ac_ct_CC"; then
2504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_ac_ct_CC="gcc"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2524 if test -n "$ac_ct_CC"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2526 $as_echo "$ac_ct_CC" >&6; }
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2532 if test "x$ac_ct_CC" = x; then
2535 case $cross_compiling:$ac_tool_warned in
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2547 if test -z "$CC"; then
2548 if test -n "$ac_tool_prefix"; then
2549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}cc; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_CC+:} false; then :
2554 $as_echo_n "(cached) " >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="${ac_tool_prefix}cc"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test -n "$CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2588 if test -z "$CC"; then
2589 # Extract the first word of "cc", so it can be a program name with args.
2590 set dummy cc; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_CC+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608 ac_prog_rejected=yes
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test $ac_prog_rejected = yes; then
2620 # We found a bogon in the path, so make sure we never use it.
2621 set dummy $ac_cv_prog_CC
2623 if test $# != 0; then
2624 # We chose a different compiler from the bogus one.
2625 # However, it has the same basename, so the bogon will be chosen
2626 # first if we set CC to just the basename; use the full file name.
2628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634 if test -n "$CC"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2644 if test -z "$CC"; then
2645 if test -n "$ac_tool_prefix"; then
2646 for ac_prog in cl.exe
2648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_CC+:} false; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$CC" && break
2688 if test -z "$CC"; then
2690 for ac_prog in cl.exe
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2697 $as_echo_n "(cached) " >&6
2699 if test -n "$ac_ct_CC"; then
2700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_ac_ct_CC="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2722 $as_echo "$ac_ct_CC" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2729 test -n "$ac_ct_CC" && break
2732 if test "x$ac_ct_CC" = x; then
2735 case $cross_compiling:$ac_tool_warned in
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 as_fn_error $? "no acceptable C compiler found in \$PATH
2751 See \`config.log' for more details" "$LINENO" 5; }
2753 # Provide some information about the compiler.
2754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2757 for ac_option in --version -v -V -qversion; do
2758 { { ac_try="$ac_compiler $ac_option >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2767 if test -s conftest.err; then
2769 ... rest of stderr output deleted ...
2770 10q' conftest.err >conftest.er1
2771 cat conftest.er1 >&5
2773 rm -f conftest.er1 conftest.err
2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2789 ac_clean_files_save=$ac_clean_files
2790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2791 # Try to create an executable without -o first, disregard a.out.
2792 # It will help us diagnose broken compilers, and finding out an intuition
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2795 $as_echo_n "checking whether the C compiler works... " >&6; }
2796 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798 # The possible output files:
2799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2802 for ac_file in $ac_files
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 if { { ac_try="$ac_link_default"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817 $as_echo "$ac_try_echo"; } >&5
2818 (eval "$ac_link_default") 2>&5
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; }; then :
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2827 for ac_file in $ac_files ''
2829 test -f "$ac_file" || continue
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2834 # We found the default executable, but exeext='' is most
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2852 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857 if test -z "$ac_file"; then :
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error 77 "C compiler cannot create executables
2866 See \`config.log' for more details" "$LINENO" 5; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2872 $as_echo_n "checking for C compiler default output file name... " >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2874 $as_echo "$ac_file" >&6; }
2875 ac_exeext=$ac_cv_exeext
2877 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880 $as_echo_n "checking for suffix of executables... " >&6; }
2881 if { { ac_try="$ac_link"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887 $as_echo "$ac_try_echo"; } >&5
2888 (eval "$ac_link") 2>&5
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }; then :
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details" "$LINENO" 5; }
2911 rm -f conftest conftest$ac_cv_exeext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913 $as_echo "$ac_cv_exeext" >&6; }
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2924 FILE *f = fopen ("conftest.out", "w");
2925 return ferror (f) || fclose (f) != 0;
2931 ac_clean_files="$ac_clean_files conftest.out"
2932 # Check that the compiler produces executables we can run. If not, either
2933 # the compiler is broken, or we cross compile.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2935 $as_echo_n "checking whether we are cross compiling... " >&6; }
2936 if test "$cross_compiling" != yes; then
2937 { { ac_try="$ac_link"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_link") 2>&5
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }
2948 if { ac_try='./conftest$ac_cv_exeext'
2949 { { case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_try") 2>&5
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }; }; then
2961 if test "$cross_compiling" = maybe; then
2964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $? "cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details" "$LINENO" 5; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2973 $as_echo "$cross_compiling" >&6; }
2975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2976 ac_clean_files=$ac_clean_files_save
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2978 $as_echo_n "checking for suffix of object files... " >&6; }
2979 if ${ac_cv_objext+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2993 rm -f conftest.o conftest.obj
2994 if { { ac_try="$ac_compile"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_compile") 2>&5
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 for ac_file in conftest.o conftest.obj conftest.*; do
3006 test -f "$ac_file" || continue;
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3014 $as_echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details" "$LINENO" 5; }
3022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3025 $as_echo "$ac_cv_objext" >&6; }
3026 OBJEXT=$ac_cv_objext
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3030 if ${ac_cv_c_compiler_gnu+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3047 if ac_fn_c_try_compile "$LINENO"; then :
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058 if test $ac_compiler_gnu = yes; then
3063 ac_test_CFLAGS=${CFLAGS+set}
3064 ac_save_CFLAGS=$CFLAGS
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3067 if ${ac_cv_prog_cc_g+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3085 if ac_fn_c_try_compile "$LINENO"; then :
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3100 if ac_fn_c_try_compile "$LINENO"; then :
3103 ac_c_werror_flag=$ac_save_c_werror_flag
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 if ac_fn_c_try_compile "$LINENO"; then :
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 ac_c_werror_flag=$ac_save_c_werror_flag
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3127 $as_echo "$ac_cv_prog_cc_g" >&6; }
3128 if test "$ac_test_CFLAGS" = set; then
3129 CFLAGS=$ac_save_CFLAGS
3130 elif test $ac_cv_prog_cc_g = yes; then
3131 if test "$GCC" = yes; then
3137 if test "$GCC" = yes; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3145 if ${ac_cv_prog_cc_c89+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 ac_cv_prog_cc_c89=no
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/stat.h>
3156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3157 struct buf { int x; };
3158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3159 static char *e (p, i)
3165 static char *f (char * (*g) (char **, int), char **p, ...)
3170 s = g (p, va_arg (v,int));
3175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3176 function prototypes and stuff, but not '\xHH' hex character constants.
3177 These don't provoke an error unfortunately, instead are silently treated
3178 as 'x'. The following induces an error, until -std is added to get
3179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3180 array size at least. It's necessary to write '\x00'==0 to get something
3181 that's true only with -std. */
3182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3185 inside strings and character constants. */
3187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3189 int test (int i, double x);
3190 struct s1 {int (*f) (int a);};
3191 struct s2 {int (*f) (double a);};
3192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3206 CC="$ac_save_CC $ac_arg"
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208 ac_cv_prog_cc_c89=$ac_arg
3210 rm -f core conftest.err conftest.$ac_objext
3211 test "x$ac_cv_prog_cc_c89" != "xno" && break
3213 rm -f conftest.$ac_ext
3218 case "x$ac_cv_prog_cc_c89" in
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3221 $as_echo "none needed" >&6; } ;;
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3224 $as_echo "unsupported" >&6; } ;;
3226 CC="$CC $ac_cv_prog_cc_c89"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3230 if test "x$ac_cv_prog_cc_c89" != xno; then :
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 ac_cpp='$CXXCPP $CPPFLAGS'
3242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3245 if test -z "$CXX"; then
3246 if test -n "$CCC"; then
3249 if test -n "$ac_tool_prefix"; then
3250 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CXX+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CXX"; then
3260 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 if test -n "$CXX"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3282 $as_echo "$CXX" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3289 test -n "$CXX" && break
3292 if test -z "$CXX"; then
3294 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$ac_ct_CXX"; then
3304 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_ac_ct_CXX="$ac_prog"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3324 if test -n "$ac_ct_CXX"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3326 $as_echo "$ac_ct_CXX" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3333 test -n "$ac_ct_CXX" && break
3336 if test "x$ac_ct_CXX" = x; then
3339 case $cross_compiling:$ac_tool_warned in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3355 for ac_option in --version -v -V -qversion; do
3356 { { ac_try="$ac_compiler $ac_option >&5"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3365 if test -s conftest.err; then
3367 ... rest of stderr output deleted ...
3368 10q' conftest.err >conftest.er1
3369 cat conftest.er1 >&5
3371 rm -f conftest.er1 conftest.err
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3377 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3378 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3395 if ac_fn_cxx_try_compile "$LINENO"; then :
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3405 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3406 if test $ac_compiler_gnu = yes; then
3411 ac_test_CXXFLAGS=${CXXFLAGS+set}
3412 ac_save_CXXFLAGS=$CXXFLAGS
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3414 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3415 if ${ac_cv_prog_cxx_g+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3419 ac_cxx_werror_flag=yes
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3434 ac_cv_prog_cxx_g=yes
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3448 if ac_fn_cxx_try_compile "$LINENO"; then :
3451 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 if ac_fn_cxx_try_compile "$LINENO"; then :
3465 ac_cv_prog_cxx_g=yes
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3475 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3485 if test "$GXX" = yes; then
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3505 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3506 # On Suns, sometimes $CPP names a directory.
3507 if test -n "$CPP" && test -d "$CPP"; then
3510 if test -z "$CPP"; then
3511 if ${ac_cv_prog_CPP+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 # Double quotes because CPP needs to be expanded
3515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3518 for ac_c_preproc_warn_flag in '' yes
3520 # Use a header file that comes with gcc, so configuring glibc
3521 # with a fresh cross-compiler works.
3522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523 # <limits.h> exists even on freestanding compilers.
3524 # On the NeXT, cc -E runs the code through the compiler's parser,
3525 # not just through cpp. "Syntax error" is here to catch this case.
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3529 # include <limits.h>
3531 # include <assert.h>
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3538 # Broken: fails on valid input.
3541 rm -f conftest.err conftest.i conftest.$ac_ext
3543 # OK, works on sane cases. Now check whether nonexistent headers
3544 # can be detected and how.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if ac_fn_c_try_cpp "$LINENO"; then :
3550 # Broken: success on invalid input.
3553 # Passes both tests.
3557 rm -f conftest.err conftest.i conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.i conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3575 $as_echo "$CPP" >&6; }
3577 for ac_c_preproc_warn_flag in '' yes
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3597 # Broken: fails on valid input.
3600 rm -f conftest.err conftest.i conftest.$ac_ext
3602 # OK, works on sane cases. Now check whether nonexistent headers
3603 # can be detected and how.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if ac_fn_c_try_cpp "$LINENO"; then :
3609 # Broken: success on invalid input.
3612 # Passes both tests.
3616 rm -f conftest.err conftest.i conftest.$ac_ext
3619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620 rm -f conftest.i conftest.err conftest.$ac_ext
3621 if $ac_preproc_ok; then :
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3627 See \`config.log' for more details" "$LINENO" 5; }
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3638 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3639 if ${ac_cv_path_GREP+:} false; then :
3640 $as_echo_n "(cached) " >&6
3642 if test -z "$GREP"; then
3643 ac_path_GREP_found=false
3644 # Loop through the user's path and test for each of PROGNAME-LIST
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649 test -z "$as_dir" && as_dir=.
3650 for ac_prog in grep ggrep; do
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3653 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3654 # Check for GNU ac_path_GREP and select it if it is found.
3655 # Check for GNU $ac_path_GREP
3656 case `"$ac_path_GREP" --version 2>&1` in
3658 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3661 $as_echo_n 0123456789 >"conftest.in"
3664 cat "conftest.in" "conftest.in" >"conftest.tmp"
3665 mv "conftest.tmp" "conftest.in"
3666 cp "conftest.in" "conftest.nl"
3667 $as_echo 'GREP' >> "conftest.nl"
3668 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3670 as_fn_arith $ac_count + 1 && ac_count=$as_val
3671 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3672 # Best one so far, save it but keep looking for a better one
3673 ac_cv_path_GREP="$ac_path_GREP"
3674 ac_path_GREP_max=$ac_count
3676 # 10*(2^10) chars as input seems more than enough
3677 test $ac_count -gt 10 && break
3679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682 $ac_path_GREP_found && break 3
3687 if test -z "$ac_cv_path_GREP"; then
3688 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3691 ac_cv_path_GREP=$GREP
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3696 $as_echo "$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3701 $as_echo_n "checking for egrep... " >&6; }
3702 if ${ac_cv_path_EGREP+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3708 if test -z "$EGREP"; then
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3727 $as_echo_n 0123456789 >"conftest.in"
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 $as_echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 as_fn_arith $ac_count + 1 && ac_count=$as_val
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 $ac_path_EGREP_found && break 3
3753 if test -z "$ac_cv_path_EGREP"; then
3754 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757 ac_cv_path_EGREP=$EGREP
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3763 $as_echo "$ac_cv_path_EGREP" >&6; }
3764 EGREP="$ac_cv_path_EGREP"
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3768 $as_echo_n "checking for ANSI C header files... " >&6; }
3769 if ${ac_cv_header_stdc+:} false; then :
3770 $as_echo_n "(cached) " >&6
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_header_stdc=yes
3790 ac_cv_header_stdc=no
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 if test $ac_cv_header_stdc = yes; then
3795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "memchr" >/dev/null 2>&1; then :
3805 ac_cv_header_stdc=no
3811 if test $ac_cv_header_stdc = yes; then
3812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819 $EGREP "free" >/dev/null 2>&1; then :
3822 ac_cv_header_stdc=no
3828 if test $ac_cv_header_stdc = yes; then
3829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3830 if test "$cross_compiling" = yes; then :
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3841 # define ISLOWER(c) \
3842 (('a' <= (c) && (c) <= 'i') \
3843 || ('j' <= (c) && (c) <= 'r') \
3844 || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853 for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i))
3855 || toupper (i) != TOUPPER (i))
3860 if ac_fn_c_try_run "$LINENO"; then :
3863 ac_cv_header_stdc=no
3865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3866 conftest.$ac_objext conftest.beam conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3872 $as_echo "$ac_cv_header_stdc" >&6; }
3873 if test $ac_cv_header_stdc = yes; then
3875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3881 inttypes.h stdint.h unistd.h
3883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3887 cat >>confdefs.h <<_ACEOF
3888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3898 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3905 if test "$MINIX" = yes; then
3907 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3910 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3913 $as_echo "#define _MINIX 1" >>confdefs.h
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3919 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3920 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3926 # define __EXTENSIONS__ 1
3927 $ac_includes_default
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937 ac_cv_safe_to_define___extensions__=yes
3939 ac_cv_safe_to_define___extensions__=no
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3944 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3945 test $ac_cv_safe_to_define___extensions__ = yes &&
3946 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3948 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3950 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3952 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3954 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3959 if test $ac_cv_c_compiler_gnu = yes; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3961 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3962 if ${ac_cv_prog_gcc_traditional+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 ac_pattern="Autoconf.*'x'"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3973 ac_cv_prog_gcc_traditional=yes
3975 ac_cv_prog_gcc_traditional=no
3980 if test $ac_cv_prog_gcc_traditional = no; then
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3988 ac_cv_prog_gcc_traditional=yes
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3995 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3996 if test $ac_cv_prog_gcc_traditional = yes; then
3997 CC="$CC -traditional"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4002 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4003 if ${ac_cv_prog_suncc+:} false; then :
4004 $as_echo_n "(cached) " >&6
4006 cat > conftest.c <<EOF
4011 if { ac_try='${CC-cc} -E conftest.c'
4012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4017 ac_cv_prog_suncc=yes
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4023 $as_echo "$ac_cv_prog_suncc" >&6; }
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_RANLIB+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$RANLIB"; then
4033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 RANLIB=$ac_cv_prog_RANLIB
4053 if test -n "$RANLIB"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4055 $as_echo "$RANLIB" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4063 if test -z "$ac_cv_prog_RANLIB"; then
4064 ac_ct_RANLIB=$RANLIB
4065 # Extract the first word of "ranlib", so it can be a program name with args.
4066 set dummy ranlib; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -n "$ac_ct_RANLIB"; then
4073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_ac_ct_RANLIB="ranlib"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4093 if test -n "$ac_ct_RANLIB"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4095 $as_echo "$ac_ct_RANLIB" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4101 if test "x$ac_ct_RANLIB" = x; then
4104 case $cross_compiling:$ac_tool_warned in
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108 ac_tool_warned=yes ;;
4110 RANLIB=$ac_ct_RANLIB
4113 RANLIB="$ac_cv_prog_RANLIB"
4117 if test "x$GCC" = "xyes"; then
4118 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4121 # Check whether --enable-largefile was given.
4122 if test "${enable_largefile+set}" = set; then :
4123 enableval=$enable_largefile;
4126 if test "$enable_largefile" != no; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4129 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4130 if ${ac_cv_sys_largefile_CC+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_cv_sys_largefile_CC=no
4134 if test "$GCC" != yes; then
4137 # IRIX 6.2 and later do not support large files by default,
4138 # so use the C compiler's -n32 option if that helps.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 if ac_fn_c_try_compile "$LINENO"; then :
4161 rm -f core conftest.err conftest.$ac_objext
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_sys_largefile_CC=' -n32'; break
4166 rm -f core conftest.err conftest.$ac_objext
4170 rm -f conftest.$ac_ext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4174 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4175 if test "$ac_cv_sys_largefile_CC" != no; then
4176 CC=$CC$ac_cv_sys_largefile_CC
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4180 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4181 if ${ac_cv_sys_file_offset_bits+:} false; then :
4182 $as_echo_n "(cached) " >&6
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <sys/types.h>
4188 /* Check that off_t can represent 2**63 - 1 correctly.
4189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190 since some C++ compilers masquerading as C compilers
4191 incorrectly reject 9223372036854775807. */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194 && LARGE_OFF_T % 2147483647 == 1)
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_sys_file_offset_bits=no; break
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #define _FILE_OFFSET_BITS 64
4211 #include <sys/types.h>
4212 /* Check that off_t can represent 2**63 - 1 correctly.
4213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214 since some C++ compilers masquerading as C compilers
4215 incorrectly reject 9223372036854775807. */
4216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218 && LARGE_OFF_T % 2147483647 == 1)
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_sys_file_offset_bits=64; break
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_cv_sys_file_offset_bits=unknown
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4237 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4238 case $ac_cv_sys_file_offset_bits in #(
4241 cat >>confdefs.h <<_ACEOF
4242 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4247 if test $ac_cv_sys_file_offset_bits = unknown; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4249 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4250 if ${ac_cv_sys_large_files+:} false; then :
4251 $as_echo_n "(cached) " >&6
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 /* Check that off_t can represent 2**63 - 1 correctly.
4258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259 since some C++ compilers masquerading as C compilers
4260 incorrectly reject 9223372036854775807. */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263 && LARGE_OFF_T % 2147483647 == 1)
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274 ac_cv_sys_large_files=no; break
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #define _LARGE_FILES 1
4280 #include <sys/types.h>
4281 /* Check that off_t can represent 2**63 - 1 correctly.
4282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4283 since some C++ compilers masquerading as C compilers
4284 incorrectly reject 9223372036854775807. */
4285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4287 && LARGE_OFF_T % 2147483647 == 1)
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_sys_large_files=1; break
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_cv_sys_large_files=unknown
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4306 $as_echo "$ac_cv_sys_large_files" >&6; }
4307 case $ac_cv_sys_large_files in #(
4310 cat >>confdefs.h <<_ACEOF
4311 #define _LARGE_FILES $ac_cv_sys_large_files
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4321 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4322 if ${ac_cv_c_bigendian+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 ac_cv_c_bigendian=unknown
4326 # See if we're dealing with a universal compiler.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #ifndef __APPLE_CC__
4330 not a universal capable compiler
4335 if ac_fn_c_try_compile "$LINENO"; then :
4337 # Check for potential -arch flags. It is not universal unless
4338 # there are at least two -arch flags with different values.
4341 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4342 if test -n "$ac_prev"; then
4344 i?86 | x86_64 | ppc | ppc64)
4345 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4348 ac_cv_c_bigendian=universal
4354 elif test "x$ac_word" = "x-arch"; then
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 if test $ac_cv_c_bigendian = unknown; then
4361 # See if sys/param.h defines the BYTE_ORDER macro.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 #include <sys/param.h>
4370 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4371 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381 # It does; now see whether it defined to BIG_ENDIAN or not.
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <sys/types.h>
4385 #include <sys/param.h>
4390 #if BYTE_ORDER != BIG_ENDIAN
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399 ac_cv_c_bigendian=yes
4401 ac_cv_c_bigendian=no
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 if test $ac_cv_c_bigendian = unknown; then
4408 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4416 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 # It does; now see whether it defined to _BIG_ENDIAN or not.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_c_bigendian=yes
4444 ac_cv_c_bigendian=no
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 if test $ac_cv_c_bigendian = unknown; then
4451 # Compile a test program.
4452 if test "$cross_compiling" = yes; then :
4453 # Try to guess by grepping values from an object file.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 short int ascii_mm[] =
4457 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4458 short int ascii_ii[] =
4459 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4460 int use_ascii (int i) {
4461 return ascii_mm[i] + ascii_ii[i];
4463 short int ebcdic_ii[] =
4464 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4465 short int ebcdic_mm[] =
4466 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4467 int use_ebcdic (int i) {
4468 return ebcdic_mm[i] + ebcdic_ii[i];
4475 return use_ascii (foo) == use_ebcdic (foo);
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4482 ac_cv_c_bigendian=yes
4484 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4485 if test "$ac_cv_c_bigendian" = unknown; then
4486 ac_cv_c_bigendian=no
4488 # finding both strings is unlikely to happen, but who knows?
4489 ac_cv_c_bigendian=unknown
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 $ac_includes_default
4502 /* Are we little or big endian? From Harbison&Steele. */
4506 char c[sizeof (long int)];
4509 return u.c[sizeof (long int) - 1] == 1;
4515 if ac_fn_c_try_run "$LINENO"; then :
4516 ac_cv_c_bigendian=no
4518 ac_cv_c_bigendian=yes
4520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4521 conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4527 $as_echo "$ac_cv_c_bigendian" >&6; }
4528 case $ac_cv_c_bigendian in #(
4530 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4536 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4540 as_fn_error $? "unknown endianness
4541 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4545 # Extract the first word of "gmake", so it can be a program name with args.
4546 set dummy gmake; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_GMAKE+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 if test -n "$GMAKE"; then
4553 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_GMAKE="yes"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4573 GMAKE=$ac_cv_prog_GMAKE
4574 if test -n "$GMAKE"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4576 $as_echo "$GMAKE" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 if test $GMAKE = no; then
4584 # Extract the first word of "make", so it can be a program name with args.
4585 set dummy make; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_MAKE+:} false; then :
4589 $as_echo_n "(cached) " >&6
4593 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4615 MAKE=$ac_cv_path_MAKE
4616 if test -n "$MAKE"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4618 $as_echo "$MAKE" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 # Extract the first word of "gmake", so it can be a program name with args.
4627 set dummy gmake; ac_word=$2
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if ${ac_cv_path_MAKE+:} false; then :
4631 $as_echo_n "(cached) " >&6
4635 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4657 MAKE=$ac_cv_path_MAKE
4658 if test -n "$MAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4660 $as_echo "$MAKE" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4669 if test -z "$makever"; then
4670 as_fn_error $? "GNU Make is not installed. Please download and install it
4671 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4675 # Check whether --with-system-libltdl was given.
4676 if test "${with_system_libltdl+set}" = set; then :
4677 withval=$with_system_libltdl;
4679 with_system_libltdl=no
4683 if test "x$with_system_libltdl" = "xyes" ; then :
4685 INCLTDL=-DWITH_SYSTEM_LTDL
4689 # Check whether --with-system-libtool was given.
4690 if test "${with_system_libtool+set}" = set; then :
4691 withval=$with_system_libtool;
4693 with_system_libtool=no
4698 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4699 if test -f "$ac_dir/install-sh"; then
4701 ac_install_sh="$ac_aux_dir/install-sh -c"
4703 elif test -f "$ac_dir/install.sh"; then
4705 ac_install_sh="$ac_aux_dir/install.sh -c"
4707 elif test -f "$ac_dir/shtool"; then
4709 ac_install_sh="$ac_aux_dir/shtool install -c"
4713 if test -z "$ac_aux_dir"; then
4714 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4717 # These three variables are undocumented and unsupported,
4718 # and are intended to be withdrawn in a future Autoconf release.
4719 # They can cause serious problems if a builder's source tree is in a directory
4720 # whose full name contains unusual characters.
4721 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4722 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4723 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4729 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4735 macro_revision='1.3293'
4748 # Make sure we can run config.sub.
4749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4750 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4753 $as_echo_n "checking build system type... " >&6; }
4754 if ${ac_cv_build+:} false; then :
4755 $as_echo_n "(cached) " >&6
4757 ac_build_alias=$build_alias
4758 test "x$ac_build_alias" = x &&
4759 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4760 test "x$ac_build_alias" = x &&
4761 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4763 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4767 $as_echo "$ac_cv_build" >&6; }
4768 case $ac_cv_build in
4770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4773 ac_save_IFS=$IFS; IFS='-'
4779 # Remember, the first character of IFS is used to create $*,
4780 # except with old shells:
4783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4787 $as_echo_n "checking host system type... " >&6; }
4788 if ${ac_cv_host+:} false; then :
4789 $as_echo_n "(cached) " >&6
4791 if test "x$host_alias" = x; then
4792 ac_cv_host=$ac_cv_build
4794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4800 $as_echo "$ac_cv_host" >&6; }
4803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4806 ac_save_IFS=$IFS; IFS='-'
4812 # Remember, the first character of IFS is used to create $*,
4813 # except with old shells:
4816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4819 # Backslashify metacharacters that are still active within
4820 # double-quoted strings.
4821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4823 # Same as above, but do not quote variable references.
4824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4826 # Sed substitution to delay expansion of an escaped shell variable in a
4827 # double_quote_subst'ed string.
4828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4830 # Sed substitution to delay expansion of an escaped single quote.
4831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4833 # Sed substitution to avoid accidental globbing in evaled expressions
4834 no_glob_subst='s/\*/\\\*/g'
4836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4841 $as_echo_n "checking how to print strings... " >&6; }
4842 # Test print first, because it will be a builtin if present.
4843 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4844 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4849 # Use this function as a fallback that always works.
4850 func_fallback_echo ()
4852 eval 'cat <<_LTECHO_EOF
4856 ECHO='func_fallback_echo'
4859 # func_echo_all arg...
4860 # Invoke $ECHO with all args, space-separated.
4867 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4868 $as_echo "printf" >&6; } ;;
4869 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4870 $as_echo "print -r" >&6; } ;;
4871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4872 $as_echo "cat" >&6; } ;;
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4890 if ${ac_cv_path_SED+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4894 for ac_i in 1 2 3 4 5 6 7; do
4895 ac_script="$ac_script$as_nl$ac_script"
4897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4898 { ac_script=; unset ac_script;}
4899 if test -z "$SED"; then
4900 ac_path_SED_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_prog in sed gsed; do
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4910 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4911 # Check for GNU ac_path_SED and select it if it is found.
4912 # Check for GNU $ac_path_SED
4913 case `"$ac_path_SED" --version 2>&1` in
4915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4918 $as_echo_n 0123456789 >"conftest.in"
4921 cat "conftest.in" "conftest.in" >"conftest.tmp"
4922 mv "conftest.tmp" "conftest.in"
4923 cp "conftest.in" "conftest.nl"
4924 $as_echo '' >> "conftest.nl"
4925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927 as_fn_arith $ac_count + 1 && ac_count=$as_val
4928 if test $ac_count -gt ${ac_path_SED_max-0}; then
4929 # Best one so far, save it but keep looking for a better one
4930 ac_cv_path_SED="$ac_path_SED"
4931 ac_path_SED_max=$ac_count
4933 # 10*(2^10) chars as input seems more than enough
4934 test $ac_count -gt 10 && break
4936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 $ac_path_SED_found && break 3
4944 if test -z "$ac_cv_path_SED"; then
4945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4953 $as_echo "$ac_cv_path_SED" >&6; }
4954 SED="$ac_cv_path_SED"
4957 test -z "$SED" && SED=sed
4958 Xsed="$SED -e 1s/^X//"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4971 $as_echo_n "checking for fgrep... " >&6; }
4972 if ${ac_cv_path_FGREP+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4976 then ac_cv_path_FGREP="$GREP -F"
4978 if test -z "$FGREP"; then
4979 ac_path_FGREP_found=false
4980 # Loop through the user's path and test for each of PROGNAME-LIST
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985 test -z "$as_dir" && as_dir=.
4986 for ac_prog in fgrep; do
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4989 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4990 # Check for GNU ac_path_FGREP and select it if it is found.
4991 # Check for GNU $ac_path_FGREP
4992 case `"$ac_path_FGREP" --version 2>&1` in
4994 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4997 $as_echo_n 0123456789 >"conftest.in"
5000 cat "conftest.in" "conftest.in" >"conftest.tmp"
5001 mv "conftest.tmp" "conftest.in"
5002 cp "conftest.in" "conftest.nl"
5003 $as_echo 'FGREP' >> "conftest.nl"
5004 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5006 as_fn_arith $ac_count + 1 && ac_count=$as_val
5007 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5008 # Best one so far, save it but keep looking for a better one
5009 ac_cv_path_FGREP="$ac_path_FGREP"
5010 ac_path_FGREP_max=$ac_count
5012 # 10*(2^10) chars as input seems more than enough
5013 test $ac_count -gt 10 && break
5015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018 $ac_path_FGREP_found && break 3
5023 if test -z "$ac_cv_path_FGREP"; then
5024 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027 ac_cv_path_FGREP=$FGREP
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5033 $as_echo "$ac_cv_path_FGREP" >&6; }
5034 FGREP="$ac_cv_path_FGREP"
5037 test -z "$GREP" && GREP=grep
5057 # Check whether --with-gnu-ld was given.
5058 if test "${with_gnu_ld+set}" = set; then :
5059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5065 if test "$GCC" = yes; then
5066 # Check if gcc -print-prog-name=ld gives a path.
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5068 $as_echo_n "checking for ld used by $CC... " >&6; }
5071 # gcc leaves a trailing carriage return which upsets mingw
5072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5077 # Accept absolute paths.
5079 re_direlt='/[^/][^/]*/\.\./'
5080 # Canonicalize the pathname of ld
5081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5085 test -z "$LD" && LD="$ac_prog"
5088 # If it fails, then pretend we aren't using GCC.
5092 # If it is relative, then search for the first ld in PATH.
5096 elif test "$with_gnu_ld" = yes; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5098 $as_echo_n "checking for GNU ld... " >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5101 $as_echo_n "checking for non-GNU ld... " >&6; }
5103 if ${lt_cv_path_LD+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -z "$LD"; then
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH; do
5110 test -z "$ac_dir" && ac_dir=.
5111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5112 lt_cv_path_LD="$ac_dir/$ac_prog"
5113 # Check to see if the program is GNU ld. I'd rather use --version,
5114 # but apparently some variants of GNU ld only accept -v.
5115 # Break only if it was the GNU/non-GNU ld that we prefer.
5116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5117 *GNU* | *'with BFD'*)
5118 test "$with_gnu_ld" != no && break
5121 test "$with_gnu_ld" != yes && break
5128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5133 if test -n "$LD"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5135 $as_echo "$LD" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5143 if ${lt_cv_prog_gnu_ld+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5147 case `$LD -v 2>&1 </dev/null` in
5148 *GNU* | *'with BFD'*)
5149 lt_cv_prog_gnu_ld=yes
5152 lt_cv_prog_gnu_ld=no
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5158 with_gnu_ld=$lt_cv_prog_gnu_ld
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5170 if ${lt_cv_path_NM+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$NM"; then
5174 # Let the user override the test.
5177 lt_nm_to_check="${ac_tool_prefix}nm"
5178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5179 lt_nm_to_check="$lt_nm_to_check nm"
5181 for lt_tmp_nm in $lt_nm_to_check; do
5182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5183 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5185 test -z "$ac_dir" && ac_dir=.
5186 tmp_nm="$ac_dir/$lt_tmp_nm"
5187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5188 # Check to see if the nm accepts a BSD-compat flag.
5189 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5190 # nm: unknown option "B" ignored
5191 # Tru64's nm complains that /dev/null is an invalid object file
5192 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5193 */dev/null* | *'Invalid file or object type'*)
5194 lt_cv_path_NM="$tmp_nm -B"
5198 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5200 lt_cv_path_NM="$tmp_nm -p"
5204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5205 continue # so that we can try to find one that supports BSD flags
5214 : ${lt_cv_path_NM=no}
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5218 $as_echo "$lt_cv_path_NM" >&6; }
5219 if test "$lt_cv_path_NM" != "no"; then
5222 # Didn't find any BSD compatible name lister, look for dumpbin.
5223 if test -n "$DUMPBIN"; then :
5224 # Let the user override the test.
5226 if test -n "$ac_tool_prefix"; then
5227 for ac_prog in dumpbin "link -dump"
5229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_DUMPBIN+:} false; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$DUMPBIN"; then
5237 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 DUMPBIN=$ac_cv_prog_DUMPBIN
5257 if test -n "$DUMPBIN"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5259 $as_echo "$DUMPBIN" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5266 test -n "$DUMPBIN" && break
5269 if test -z "$DUMPBIN"; then
5270 ac_ct_DUMPBIN=$DUMPBIN
5271 for ac_prog in dumpbin "link -dump"
5273 # Extract the first word of "$ac_prog", so it can be a program name with args.
5274 set dummy $ac_prog; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5278 $as_echo_n "(cached) " >&6
5280 if test -n "$ac_ct_DUMPBIN"; then
5281 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5301 if test -n "$ac_ct_DUMPBIN"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5303 $as_echo "$ac_ct_DUMPBIN" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5310 test -n "$ac_ct_DUMPBIN" && break
5313 if test "x$ac_ct_DUMPBIN" = x; then
5316 case $cross_compiling:$ac_tool_warned in
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5320 ac_tool_warned=yes ;;
5322 DUMPBIN=$ac_ct_DUMPBIN
5326 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5328 DUMPBIN="$DUMPBIN -symbols"
5336 if test "$DUMPBIN" != ":"; then
5340 test -z "$NM" && NM=nm
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5348 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5349 if ${lt_cv_nm_interface+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 lt_cv_nm_interface="BSD nm"
5353 echo "int some_variable = 0;" > conftest.$ac_ext
5354 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5355 (eval "$ac_compile" 2>conftest.err)
5356 cat conftest.err >&5
5357 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5358 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5359 cat conftest.err >&5
5360 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5361 cat conftest.out >&5
5362 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5363 lt_cv_nm_interface="MS dumpbin"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5368 $as_echo "$lt_cv_nm_interface" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5371 $as_echo_n "checking whether ln -s works... " >&6; }
5373 if test "$LN_S" = "ln -s"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375 $as_echo "yes" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5378 $as_echo "no, using $LN_S" >&6; }
5381 # find the maximum length of command line arguments
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5383 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5384 if ${lt_cv_sys_max_cmd_len+:} false; then :
5385 $as_echo_n "(cached) " >&6
5392 # On DJGPP, this test can blow up pretty badly due to problems in libc
5393 # (any single argument exceeding 2000 bytes causes a buffer overrun
5394 # during glob expansion). Even if it were fixed, the result of this
5395 # check would be larger than it should be.
5396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5400 # Under GNU Hurd, this test is not required because there is
5401 # no limit to the length of command line arguments.
5402 # Libtool will interpret -1 as no limit whatsoever
5403 lt_cv_sys_max_cmd_len=-1;
5406 cygwin* | mingw* | cegcc*)
5407 # On Win9x/ME, this test blows up -- it succeeds, but takes
5408 # about 5 minutes as the teststring grows exponentially.
5409 # Worse, since 9x/ME are not pre-emptively multitasking,
5410 # you end up with a "frozen" computer, even though with patience
5411 # the test eventually succeeds (with a max line length of 256k).
5412 # Instead, let's just punt: use the minimum linelength reported by
5413 # all of the supported platforms: 8192 (on NT/2K/XP).
5414 lt_cv_sys_max_cmd_len=8192;
5418 # On MiNT this can take a long time and run out of memory.
5419 lt_cv_sys_max_cmd_len=8192;
5423 # On AmigaOS with pdksh, this test takes hours, literally.
5424 # So we just punt and use a minimum line length of 8192.
5425 lt_cv_sys_max_cmd_len=8192;
5428 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5429 # This has been around since 386BSD, at least. Likely further.
5430 if test -x /sbin/sysctl; then
5431 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5432 elif test -x /usr/sbin/sysctl; then
5433 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5435 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5437 # And add a safety zone
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5443 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5444 lt_cv_sys_max_cmd_len=196608
5448 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450 # nice to cause kernel panics so lets avoid the loop below.
5451 # First set a reasonable default.
5452 lt_cv_sys_max_cmd_len=16384
5454 if test -x /sbin/sysconfig; then
5455 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5461 lt_cv_sys_max_cmd_len=102400
5463 sysv5* | sco5v6* | sysv4.2uw2*)
5464 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5465 if test -n "$kargmax"; then
5466 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5468 lt_cv_sys_max_cmd_len=32768
5472 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5473 if test -n "$lt_cv_sys_max_cmd_len"; then
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477 # Make teststring a little bigger before we do anything with it.
5478 # a 1K string should be a reasonable start.
5479 for i in 1 2 3 4 5 6 7 8 ; do
5480 teststring=$teststring$teststring
5482 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5483 # If test is not a shell built-in, we'll probably end up computing a
5484 # maximum length that is only half of the actual maximum length, but
5486 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5487 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5488 test $i != 17 # 1/2 MB should be enough
5491 teststring=$teststring$teststring
5493 # Only check the string length outside the loop.
5494 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5496 # Add a significant safety factor because C++ compilers can tack on
5497 # massive amounts of additional arguments before passing them to the
5498 # linker. It appears as though 1/2 is a usable value.
5499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5506 if test -n $lt_cv_sys_max_cmd_len ; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5508 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5511 $as_echo "none" >&6; }
5513 max_cmd_len=$lt_cv_sys_max_cmd_len
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5525 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5526 # Try some XSI features
5529 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5531 && eval 'test $(( 1 + 1 )) -eq 2 \
5532 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5535 $as_echo "$xsi_shell" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5539 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5541 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5543 && lt_shell_append=yes
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5545 $as_echo "$lt_shell_append" >&6; }
5548 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5558 # test EBCDIC or ASCII
5559 case `echo X|tr X '\101'` in
5560 A) # ASCII based system
5561 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5562 lt_SP2NL='tr \040 \012'
5563 lt_NL2SP='tr \015\012 \040\040'
5565 *) # EBCDIC based system
5566 lt_SP2NL='tr \100 \n'
5567 lt_NL2SP='tr \r\n \100\100'
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5580 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5581 if ${lt_cv_to_host_file_cmd+:} false; then :
5582 $as_echo_n "(cached) " >&6
5587 *-*-mingw* ) # actually msys
5588 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5591 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5593 * ) # otherwise, assume *nix
5594 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5600 *-*-mingw* ) # actually msys
5601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5604 lt_cv_to_host_file_cmd=func_convert_file_noop
5606 * ) # otherwise, assume *nix
5607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5611 * ) # unhandled hosts (and "normal" native builds)
5612 lt_cv_to_host_file_cmd=func_convert_file_noop
5618 to_host_file_cmd=$lt_cv_to_host_file_cmd
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5620 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5627 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5628 if ${lt_cv_to_tool_file_cmd+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 #assume ordinary cross tools, or native build.
5632 lt_cv_to_tool_file_cmd=func_convert_file_noop
5636 *-*-mingw* ) # actually msys
5637 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5647 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5655 if ${lt_cv_ld_reload_flag+:} false; then :
5656 $as_echo_n "(cached) " >&6
5658 lt_cv_ld_reload_flag='-r'
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5662 reload_flag=$lt_cv_ld_reload_flag
5663 case $reload_flag in
5665 *) reload_flag=" $reload_flag" ;;
5667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5669 cygwin* | mingw* | pw32* | cegcc*)
5670 if test "$GCC" != yes; then
5675 if test "$GCC" = yes; then
5676 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5678 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5691 if test -n "$ac_tool_prefix"; then
5692 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_OBJDUMP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5699 if test -n "$OBJDUMP"; then
5700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 OBJDUMP=$ac_cv_prog_OBJDUMP
5720 if test -n "$OBJDUMP"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5722 $as_echo "$OBJDUMP" >&6; }
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5730 if test -z "$ac_cv_prog_OBJDUMP"; then
5731 ac_ct_OBJDUMP=$OBJDUMP
5732 # Extract the first word of "objdump", so it can be a program name with args.
5733 set dummy objdump; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5737 $as_echo_n "(cached) " >&6
5739 if test -n "$ac_ct_OBJDUMP"; then
5740 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5760 if test -n "$ac_ct_OBJDUMP"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5762 $as_echo "$ac_ct_OBJDUMP" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5768 if test "x$ac_ct_OBJDUMP" = x; then
5771 case $cross_compiling:$ac_tool_warned in
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5777 OBJDUMP=$ac_ct_OBJDUMP
5780 OBJDUMP="$ac_cv_prog_OBJDUMP"
5783 test -z "$OBJDUMP" && OBJDUMP=objdump
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795 if ${lt_cv_deplibs_check_method+:} false; then :
5796 $as_echo_n "(cached) " >&6
5798 lt_cv_file_magic_cmd='$MAGIC_CMD'
5799 lt_cv_file_magic_test_file=
5800 lt_cv_deplibs_check_method='unknown'
5801 # Need to set the preceding variable on all platforms that support
5802 # interlibrary dependencies.
5803 # 'none' -- dependencies not supported.
5804 # `unknown' -- same as none, but documents that we really don't know.
5805 # 'pass_all' -- all dependencies passed with no checks.
5806 # 'test_compile' -- check by making test program.
5807 # 'file_magic [[regex]]' -- check by looking for files in library path
5808 # which responds to the $file_magic_cmd with a given extended regex.
5809 # If you have `file' or equivalent on your system and you're not sure
5810 # whether `pass_all' will *always* work, you probably want this one.
5814 lt_cv_deplibs_check_method=pass_all
5818 lt_cv_deplibs_check_method=pass_all
5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823 lt_cv_file_magic_cmd='/usr/bin/file -L'
5824 lt_cv_file_magic_test_file=/shlib/libc.so
5828 # func_win32_libid is a shell function defined in ltmain.sh
5829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830 lt_cv_file_magic_cmd='func_win32_libid'
5834 # Base MSYS/MinGW do not provide the 'file' command needed by
5835 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836 # unless we find 'file', for example because we are cross-compiling.
5837 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840 lt_cv_file_magic_cmd='func_win32_libid'
5842 # Keep this pattern in sync with the one in func_win32_libid.
5843 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5849 # use the weaker test based on 'objdump'. See mingw*.
5850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5851 lt_cv_file_magic_cmd='$OBJDUMP -f'
5854 darwin* | rhapsody*)
5855 lt_cv_deplibs_check_method=pass_all
5858 freebsd* | dragonfly*)
5859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5862 # Not sure whether the presence of OpenBSD here was a mistake.
5863 # Let's accept both of them until this is cleared up.
5864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865 lt_cv_file_magic_cmd=/usr/bin/file
5866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5870 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method=pass_all
5882 hpux10.20* | hpux11*)
5883 lt_cv_file_magic_cmd=/usr/bin/file
5886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5890 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]'
5891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5901 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5905 irix5* | irix6* | nonstopux*)
5907 *-32|*"-32 ") libmagic=32-bit;;
5908 *-n32|*"-n32 ") libmagic=N32;;
5909 *-64|*"-64 ") libmagic=64-bit;;
5910 *) libmagic=never-match;;
5912 lt_cv_deplibs_check_method=pass_all
5915 # This must be Linux ELF.
5916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917 lt_cv_deplibs_check_method=pass_all
5921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930 lt_cv_file_magic_cmd=/usr/bin/file
5931 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5935 lt_cv_deplibs_check_method=pass_all
5939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5946 osf3* | osf4* | osf5*)
5947 lt_cv_deplibs_check_method=pass_all
5951 lt_cv_deplibs_check_method=pass_all
5955 lt_cv_deplibs_check_method=pass_all
5958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959 lt_cv_deplibs_check_method=pass_all
5963 case $host_vendor in
5965 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]'
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5969 lt_cv_deplibs_check_method=pass_all
5972 lt_cv_file_magic_cmd='/bin/file'
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5976 lt_cv_file_magic_cmd='/bin/file'
5977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978 lt_cv_file_magic_test_file=/lib/libc.so
5981 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5990 lt_cv_deplibs_check_method=pass_all
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6000 if test "$build" = "$host"; then
6003 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6006 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6012 file_magic_cmd=$lt_cv_file_magic_cmd
6013 deplibs_check_method=$lt_cv_deplibs_check_method
6014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_DLLTOOL+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$DLLTOOL"; then
6046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 $as_echo "$DLLTOOL" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 if test -z "$ac_cv_prog_DLLTOOL"; then
6077 ac_ct_DLLTOOL=$DLLTOOL
6078 # Extract the first word of "dlltool", so it can be a program name with args.
6079 set dummy dlltool; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$ac_ct_DLLTOOL"; then
6086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106 if test -n "$ac_ct_DLLTOOL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108 $as_echo "$ac_ct_DLLTOOL" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6114 if test "x$ac_ct_DLLTOOL" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned=yes ;;
6123 DLLTOOL=$ac_ct_DLLTOOL
6126 DLLTOOL="$ac_cv_prog_DLLTOOL"
6129 test -z "$DLLTOOL" && DLLTOOL=dlltool
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6141 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6142 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 lt_cv_sharedlib_from_linklib_cmd='unknown'
6148 cygwin* | mingw* | pw32* | cegcc*)
6149 # two different shell functions defined in ltmain.sh
6150 # decide which to use based on capabilities of $DLLTOOL
6151 case `$DLLTOOL --help 2>&1` in
6152 *--identify-strict*)
6153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6156 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6161 # fallback: assume linklib IS sharedlib
6162 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6168 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6169 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6170 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6178 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_AR+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$AR"; then
6189 ac_cv_prog_AR="$AR" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 if test -n "$AR"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6211 $as_echo "$AR" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6218 test -n "$AR" && break
6221 if test -z "$AR"; then
6225 # Extract the first word of "$ac_prog", so it can be a program name with args.
6226 set dummy $ac_prog; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 if test -n "$ac_ct_AR"; then
6233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_ac_ct_AR="$ac_prog"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6255 $as_echo "$ac_ct_AR" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6262 test -n "$ac_ct_AR" && break
6265 if test "x$ac_ct_AR" = x; then
6268 case $cross_compiling:$ac_tool_warned in
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6292 $as_echo_n "checking for archiver @FILE support... " >&6; }
6293 if ${lt_cv_ar_at_file+:} false; then :
6294 $as_echo_n "(cached) " >&6
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309 echo conftest.$ac_objext > conftest.lst
6310 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6312 (eval $lt_ar_try) 2>&5
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; }
6316 if test "$ac_status" -eq 0; then
6317 # Ensure the archiver fails upon bogus file names.
6318 rm -f conftest.$ac_objext libconftest.a
6319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6320 (eval $lt_ar_try) 2>&5
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }
6324 if test "$ac_status" -ne 0; then
6328 rm -f conftest.* libconftest.a
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6335 $as_echo "$lt_cv_ar_at_file" >&6; }
6337 if test "x$lt_cv_ar_at_file" = xno; then
6340 archiver_list_spec=$lt_cv_ar_at_file
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_STRIP+:} false; then :
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$STRIP"; then
6358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_STRIP"; then
6390 # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_STRIP"; then
6398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_STRIP="strip"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_STRIP" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6438 STRIP="$ac_cv_prog_STRIP"
6441 test -z "$STRIP" && STRIP=:
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_RANLIB+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$RANLIB"; then
6457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 RANLIB=$ac_cv_prog_RANLIB
6477 if test -n "$RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479 $as_echo "$RANLIB" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6487 if test -z "$ac_cv_prog_RANLIB"; then
6488 ac_ct_RANLIB=$RANLIB
6489 # Extract the first word of "ranlib", so it can be a program name with args.
6490 set dummy ranlib; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$ac_ct_RANLIB"; then
6497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_RANLIB="ranlib"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517 if test -n "$ac_ct_RANLIB"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519 $as_echo "$ac_ct_RANLIB" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6525 if test "x$ac_ct_RANLIB" = x; then
6528 case $cross_compiling:$ac_tool_warned in
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6534 RANLIB=$ac_ct_RANLIB
6537 RANLIB="$ac_cv_prog_RANLIB"
6540 test -z "$RANLIB" && RANLIB=:
6547 # Determine commands to create old-style static archives.
6548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6549 old_postinstall_cmds='chmod 644 $oldlib'
6550 old_postuninstall_cmds=
6552 if test -n "$RANLIB"; then
6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6566 lock_old_archive_extraction=yes ;;
6568 lock_old_archive_extraction=no ;;
6591 for ac_prog in gawk mawk nawk awk
6593 # Extract the first word of "$ac_prog", so it can be a program name with args.
6594 set dummy $ac_prog; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_AWK+:} false; then :
6598 $as_echo_n "(cached) " >&6
6600 if test -n "$AWK"; then
6601 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_AWK="$ac_prog"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 if test -n "$AWK"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6623 $as_echo "$AWK" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6630 test -n "$AWK" && break
6651 # If no C compiler was specified, use CC.
6654 # If no C compiler flags were specified, use CFLAGS.
6655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6657 # Allow CC to be a program name with arguments.
6661 # Check for command to grab the raw symbol name followed by C symbol from nm.
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6663 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6664 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6665 $as_echo_n "(cached) " >&6
6668 # These are sane defaults that work on at least a few old systems.
6669 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6671 # Character class describing NM global symbol codes.
6672 symcode='[BCDEGRST]'
6674 # Regexp to match symbols that can be accessed directly from C.
6675 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6677 # Define system-specific variables.
6682 cygwin* | mingw* | pw32* | cegcc*)
6683 symcode='[ABCDGISTW]'
6686 if test "$host_cpu" = ia64; then
6687 symcode='[ABCDEGRST]'
6691 symcode='[BCDEGRST]'
6694 symcode='[BCDEGQRST]'
6705 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6713 # If we're using GNU nm, then use its standard symbol codes.
6714 case `$NM -V 2>&1` in
6715 *GNU* | *'with BFD'*)
6716 symcode='[ABCDGIRSTW]' ;;
6719 # Transform an extracted symbol line into a proper C declaration.
6720 # Some systems (esp. on ia64) link data and code symbols differently,
6721 # so use this general approach.
6722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6724 # Transform an extracted symbol line into symbol name and symbol address
6725 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6728 # Handle CRLF in mingw tool chain
6732 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6736 # Try without a prefix underscore, then with it.
6737 for ac_symprfx in "" "_"; do
6739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6740 symxfrm="\\1 $ac_symprfx\\2 \\2"
6742 # Write the raw and C identifiers.
6743 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6744 # Fake it for dumpbin and say T for any non-static function
6745 # and D for any global variable.
6746 # Also find C++ and __fastcall symbols from MSVC++,
6747 # which start with @ or ?.
6748 lt_cv_sys_global_symbol_pipe="$AWK '"\
6749 " {last_section=section; section=\$ 3};"\
6750 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6751 " \$ 0!~/External *\|/{next};"\
6752 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6753 " {if(hide[section]) next};"\
6754 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6755 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6756 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6757 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6758 " ' prfx=^$ac_symprfx"
6760 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6762 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6764 # Check to see that the pipe works correctly.
6768 cat > conftest.$ac_ext <<_LT_EOF
6773 void nm_test_func(void);
6774 void nm_test_func(void){}
6778 int main(){nm_test_var='a';nm_test_func();return(0);}
6781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782 (eval $ac_compile) 2>&5
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; }; then
6786 # Now try to grab the symbols.
6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6789 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; } && test -s "$nlist"; then
6793 # Try sorting and uniquifying the output.
6794 if sort "$nlist" | uniq > "$nlist"T; then
6795 mv -f "$nlist"T "$nlist"
6800 # Make sure that we snagged all the symbols we need.
6801 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6802 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6803 cat <<_LT_EOF > conftest.$ac_ext
6804 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6805 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6806 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6807 relocations are performed -- see ld's documentation on pseudo-relocs. */
6808 # define LT_DLSYM_CONST
6809 #elif defined(__osf__)
6810 /* This system does not cope well with relocations in const data. */
6811 # define LT_DLSYM_CONST
6813 # define LT_DLSYM_CONST const
6821 # Now generate the symbol file.
6822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6824 cat <<_LT_EOF >> conftest.$ac_ext
6826 /* The mapping between symbol names and symbols. */
6827 LT_DLSYM_CONST struct {
6831 lt__PROGRAM__LTX_preloaded_symbols[] =
6833 { "@PROGRAM@", (void *) 0 },
6835 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6836 cat <<\_LT_EOF >> conftest.$ac_ext
6840 /* This works around a problem in FreeBSD linker */
6841 #ifdef FREEBSD_WORKAROUND
6842 static const void *lt_preloaded_setup() {
6843 return lt__PROGRAM__LTX_preloaded_symbols;
6851 # Now try linking the two files.
6852 mv conftest.$ac_objext conftstm.$ac_objext
6853 lt_globsym_save_LIBS=$LIBS
6854 lt_globsym_save_CFLAGS=$CFLAGS
6855 LIBS="conftstm.$ac_objext"
6856 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6858 (eval $ac_link) 2>&5
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6864 LIBS=$lt_globsym_save_LIBS
6865 CFLAGS=$lt_globsym_save_CFLAGS
6867 echo "cannot find nm_test_func in $nlist" >&5
6870 echo "cannot find nm_test_var in $nlist" >&5
6873 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6876 echo "$progname: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 rm -rf conftest* conftst*
6881 # Do not use the global_symbol_pipe unless it works.
6882 if test "$pipe_works" = yes; then
6885 lt_cv_sys_global_symbol_pipe=
6891 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6892 lt_cv_sys_global_symbol_to_cdecl=
6894 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6896 $as_echo "failed" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6899 $as_echo "ok" >&6; }
6902 # Response file support.
6903 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6904 nm_file_list_spec='@'
6905 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6906 nm_file_list_spec='@'
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6936 $as_echo_n "checking for sysroot... " >&6; }
6938 # Check whether --with-sysroot was given.
6939 if test "${with_sysroot+set}" = set; then :
6940 withval=$with_sysroot;
6947 case ${with_sysroot} in #(
6949 if test "$GCC" = yes; then
6950 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6954 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6960 $as_echo "${with_sysroot}" >&6; }
6961 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6966 $as_echo "${lt_sysroot:-no}" >&6; }
6972 # Check whether --enable-libtool-lock was given.
6973 if test "${enable_libtool_lock+set}" = set; then :
6974 enableval=$enable_libtool_lock;
6977 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6979 # Some flags need to be propagated to the compiler or linker for good
6983 # Find out which ABI we are using.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.$ac_objext` in
7002 # Find out which ABI we are using.
7003 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005 (eval $ac_compile) 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 if test "$lt_cv_prog_gnu_ld" = yes; then
7010 case `/usr/bin/file conftest.$ac_objext` in
7012 LD="${LD-ld} -melf32bsmip"
7015 LD="${LD-ld} -melf32bmipn32"
7018 LD="${LD-ld} -melf64bmip"
7022 case `/usr/bin/file conftest.$ac_objext` in
7038 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7039 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7040 # Find out which ABI we are using.
7041 echo 'int i;' > conftest.$ac_ext
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043 (eval $ac_compile) 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 case `/usr/bin/file conftest.o` in
7050 x86_64-*kfreebsd*-gnu)
7051 LD="${LD-ld} -m elf_i386_fbsd"
7054 LD="${LD-ld} -m elf_i386"
7056 ppc64-*linux*|powerpc64-*linux*)
7057 LD="${LD-ld} -m elf32ppclinux"
7060 LD="${LD-ld} -m elf_s390"
7063 LD="${LD-ld} -m elf32_sparc"
7069 x86_64-*kfreebsd*-gnu)
7070 LD="${LD-ld} -m elf_x86_64_fbsd"
7073 LD="${LD-ld} -m elf_x86_64"
7075 ppc*-*linux*|powerpc*-*linux*)
7076 LD="${LD-ld} -m elf64ppc"
7078 s390*-*linux*|s390*-*tpf*)
7079 LD="${LD-ld} -m elf64_s390"
7082 LD="${LD-ld} -m elf64_sparc"
7092 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7093 SAVE_CFLAGS="$CFLAGS"
7094 CFLAGS="$CFLAGS -belf"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7096 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7097 if ${lt_cv_cc_needs_belf+:} false; then :
7098 $as_echo_n "(cached) " >&6
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7117 if ac_fn_c_try_link "$LINENO"; then :
7118 lt_cv_cc_needs_belf=yes
7120 lt_cv_cc_needs_belf=no
7122 rm -f core conftest.err conftest.$ac_objext \
7123 conftest$ac_exeext conftest.$ac_ext
7125 ac_cpp='$CPP $CPPFLAGS'
7126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7132 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7133 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7134 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7135 CFLAGS="$SAVE_CFLAGS"
7139 # Find out which ABI we are using.
7140 echo 'int i;' > conftest.$ac_ext
7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7142 (eval $ac_compile) 2>&5
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }; then
7146 case `/usr/bin/file conftest.o` in
7148 case $lt_cv_prog_gnu_ld in
7149 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7151 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7163 need_locks="$enable_libtool_lock"
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}mt; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$MANIFEST_TOOL"; then
7174 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7194 if test -n "$MANIFEST_TOOL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7196 $as_echo "$MANIFEST_TOOL" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7204 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7205 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7206 # Extract the first word of "mt", so it can be a program name with args.
7207 set dummy mt; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$ac_ct_MANIFEST_TOOL"; then
7214 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7234 if test -n "$ac_ct_MANIFEST_TOOL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7236 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7242 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7251 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7254 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7257 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7259 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7260 if ${lt_cv_path_mainfest_tool+:} false; then :
7261 $as_echo_n "(cached) " >&6
7263 lt_cv_path_mainfest_tool=no
7264 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7265 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7266 cat conftest.err >&5
7267 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7268 lt_cv_path_mainfest_tool=yes
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7273 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7274 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7284 rhapsody* | darwin*)
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7291 $as_echo_n "(cached) " >&6
7293 if test -n "$DSYMUTIL"; then
7294 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7314 if test -n "$DSYMUTIL"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7316 $as_echo "$DSYMUTIL" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_prog_DSYMUTIL"; then
7325 ac_ct_DSYMUTIL=$DSYMUTIL
7326 # Extract the first word of "dsymutil", so it can be a program name with args.
7327 set dummy dsymutil; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7331 $as_echo_n "(cached) " >&6
7333 if test -n "$ac_ct_DSYMUTIL"; then
7334 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7354 if test -n "$ac_ct_DSYMUTIL"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7356 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7362 if test "x$ac_ct_DSYMUTIL" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7371 DSYMUTIL=$ac_ct_DSYMUTIL
7374 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_NMEDIT+:} false; then :
7383 $as_echo_n "(cached) " >&6
7385 if test -n "$NMEDIT"; then
7386 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 NMEDIT=$ac_cv_prog_NMEDIT
7406 if test -n "$NMEDIT"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7408 $as_echo "$NMEDIT" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7416 if test -z "$ac_cv_prog_NMEDIT"; then
7417 ac_ct_NMEDIT=$NMEDIT
7418 # Extract the first word of "nmedit", so it can be a program name with args.
7419 set dummy nmedit; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 if test -n "$ac_ct_NMEDIT"; then
7426 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7446 if test -n "$ac_ct_NMEDIT"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7448 $as_echo "$ac_ct_NMEDIT" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7454 if test "x$ac_ct_NMEDIT" = x; then
7457 case $cross_compiling:$ac_tool_warned in
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7463 NMEDIT=$ac_ct_NMEDIT
7466 NMEDIT="$ac_cv_prog_NMEDIT"
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_LIPO+:} false; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$LIPO"; then
7478 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 LIPO=$ac_cv_prog_LIPO
7498 if test -n "$LIPO"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7500 $as_echo "$LIPO" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7508 if test -z "$ac_cv_prog_LIPO"; then
7510 # Extract the first word of "lipo", so it can be a program name with args.
7511 set dummy lipo; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$ac_ct_LIPO"; then
7518 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_prog_ac_ct_LIPO="lipo"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7538 if test -n "$ac_ct_LIPO"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7540 $as_echo "$ac_ct_LIPO" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7546 if test "x$ac_ct_LIPO" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7558 LIPO="$ac_cv_prog_LIPO"
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}otool; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_OTOOL+:} false; then :
7567 $as_echo_n "(cached) " >&6
7569 if test -n "$OTOOL"; then
7570 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 OTOOL=$ac_cv_prog_OTOOL
7590 if test -n "$OTOOL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7592 $as_echo "$OTOOL" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7600 if test -z "$ac_cv_prog_OTOOL"; then
7602 # Extract the first word of "otool", so it can be a program name with args.
7603 set dummy otool; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 if test -n "$ac_ct_OTOOL"; then
7610 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_prog_ac_ct_OTOOL="otool"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7630 if test -n "$ac_ct_OTOOL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7632 $as_echo "$ac_ct_OTOOL" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7638 if test "x$ac_ct_OTOOL" = x; then
7641 case $cross_compiling:$ac_tool_warned in
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645 ac_tool_warned=yes ;;
7650 OTOOL="$ac_cv_prog_OTOOL"
7653 if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_OTOOL64+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$OTOOL64"; then
7662 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 OTOOL64=$ac_cv_prog_OTOOL64
7682 if test -n "$OTOOL64"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7684 $as_echo "$OTOOL64" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7692 if test -z "$ac_cv_prog_OTOOL64"; then
7693 ac_ct_OTOOL64=$OTOOL64
7694 # Extract the first word of "otool64", so it can be a program name with args.
7695 set dummy otool64; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 if test -n "$ac_ct_OTOOL64"; then
7702 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_prog_ac_ct_OTOOL64="otool64"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7722 if test -n "$ac_ct_OTOOL64"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7724 $as_echo "$ac_ct_OTOOL64" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7730 if test "x$ac_ct_OTOOL64" = x; then
7733 case $cross_compiling:$ac_tool_warned in
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737 ac_tool_warned=yes ;;
7739 OTOOL64=$ac_ct_OTOOL64
7742 OTOOL64="$ac_cv_prog_OTOOL64"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7772 $as_echo_n "checking for -single_module linker flag... " >&6; }
7773 if ${lt_cv_apple_cc_single_mod+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 lt_cv_apple_cc_single_mod=no
7777 if test -z "${LT_MULTI_MODULE}"; then
7778 # By default we will add the -single_module flag. You can override
7779 # by either setting the environment variable LT_MULTI_MODULE
7780 # non-empty at configure time, or by adding -multi_module to the
7782 rm -rf libconftest.dylib*
7783 echo "int foo(void){return 1;}" > conftest.c
7784 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7785 -dynamiclib -Wl,-single_module conftest.c" >&5
7786 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7787 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7789 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7790 lt_cv_apple_cc_single_mod=yes
7792 cat conftest.err >&5
7794 rm -rf libconftest.dylib*
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7799 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7801 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7802 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7803 $as_echo_n "(cached) " >&6
7805 lt_cv_ld_exported_symbols_list=no
7806 save_LDFLAGS=$LDFLAGS
7807 echo "_main" > conftest.sym
7808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7820 if ac_fn_c_try_link "$LINENO"; then :
7821 lt_cv_ld_exported_symbols_list=yes
7823 lt_cv_ld_exported_symbols_list=no
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 LDFLAGS="$save_LDFLAGS"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7831 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7833 $as_echo_n "checking for -force_load linker flag... " >&6; }
7834 if ${lt_cv_ld_force_load+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 lt_cv_ld_force_load=no
7838 cat > conftest.c << _LT_EOF
7839 int forced_loaded() { return 2;}
7841 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7842 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7843 echo "$AR cru libconftest.a conftest.o" >&5
7844 $AR cru libconftest.a conftest.o 2>&5
7845 echo "$RANLIB libconftest.a" >&5
7846 $RANLIB libconftest.a 2>&5
7847 cat > conftest.c << _LT_EOF
7848 int main() { return 0;}
7850 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7851 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7853 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7854 lt_cv_ld_force_load=yes
7856 cat conftest.err >&5
7858 rm -f conftest.err libconftest.a conftest conftest.c
7859 rm -rf conftest.dSYM
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7863 $as_echo "$lt_cv_ld_force_load" >&6; }
7865 rhapsody* | darwin1.[012])
7866 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7868 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7869 darwin*) # darwin 5.x on
7870 # if running on 10.5 or later, the deployment target defaults
7871 # to the OS version, if on x86, and 10.4, the deployment
7872 # target defaults to 10.4. Don't you love it?
7873 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7874 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7883 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7884 _lt_dar_single_mod='$single_module'
7886 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7887 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7889 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7891 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7892 _lt_dsymutil='~$DSYMUTIL $lib || :'
7899 for ac_header in dlfcn.h
7901 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7903 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7904 cat >>confdefs.h <<_ACEOF
7905 #define HAVE_DLFCN_H 1
7915 func_stripname_cnf ()
7918 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7919 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7921 } # func_stripname_cnf
7923 if test "x$with_system_libtool" = "xyes" ; then :
7924 # Extract the first word of "libtool", so it can be a program name with args.
7925 set dummy libtool; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_path_LIBTOOL+:} false; then :
7929 $as_echo_n "(cached) " >&6
7933 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 as_dummy="$PATH:/usr/local/bin"
7938 for as_dir in $as_dummy
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 LIBTOOL=$ac_cv_path_LIBTOOL
7956 if test -n "$LIBTOOL"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
7958 $as_echo "$LIBTOOL" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7980 # Check whether --enable-shared was given.
7981 if test "${enable_shared+set}" = set; then :
7982 enableval=$enable_shared; p=${PACKAGE-default}
7984 yes) enable_shared=yes ;;
7985 no) enable_shared=no ;;
7988 # Look at the argument we got. We use all the common list separators.
7989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7990 for pkg in $enableval; do
7992 if test "X$pkg" = "X$p"; then
8011 # Check whether --enable-static was given.
8012 if test "${enable_static+set}" = set; then :
8013 enableval=$enable_static; p=${PACKAGE-default}
8015 yes) enable_static=yes ;;
8016 no) enable_static=no ;;
8019 # Look at the argument we got. We use all the common list separators.
8020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8021 for pkg in $enableval; do
8023 if test "X$pkg" = "X$p"; then
8043 # Check whether --with-pic was given.
8044 if test "${with_pic+set}" = set; then :
8045 withval=$with_pic; pic_mode="$withval"
8051 test -z "$pic_mode" && pic_mode=default
8059 # Check whether --enable-fast-install was given.
8060 if test "${enable_fast_install+set}" = set; then :
8061 enableval=$enable_fast_install; p=${PACKAGE-default}
8063 yes) enable_fast_install=yes ;;
8064 no) enable_fast_install=no ;;
8066 enable_fast_install=no
8067 # Look at the argument we got. We use all the common list separators.
8068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8069 for pkg in $enableval; do
8071 if test "X$pkg" = "X$p"; then
8072 enable_fast_install=yes
8079 enable_fast_install=yes
8117 test -z "$LN_S" && LN_S="ln -s"
8132 if test -n "${ZSH_VERSION+set}" ; then
8133 setopt NO_GLOB_SUBST
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8137 $as_echo_n "checking for objdir... " >&6; }
8138 if ${lt_cv_objdir+:} false; then :
8139 $as_echo_n "(cached) " >&6
8141 rm -f .libs 2>/dev/null
8142 mkdir .libs 2>/dev/null
8143 if test -d .libs; then
8146 # MS-DOS does not allow filenames that begin with a dot.
8149 rmdir .libs 2>/dev/null
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8152 $as_echo "$lt_cv_objdir" >&6; }
8153 objdir=$lt_cv_objdir
8159 cat >>confdefs.h <<_ACEOF
8160 #define LT_OBJDIR "$lt_cv_objdir/"
8168 # AIX sometimes has problems with the GCC collect2 program. For some
8169 # reason, if we set the COLLECT_NAMES environment variable, the problems
8170 # vanish in a puff of smoke.
8171 if test "X${COLLECT_NAMES+set}" != Xset; then
8173 export COLLECT_NAMES
8180 can_build_shared=yes
8182 # All known linkers require a `.a' archive for static linking (except MSVC,
8183 # which needs '.lib').
8186 with_gnu_ld="$lt_cv_prog_gnu_ld"
8189 old_CFLAGS="$CFLAGS"
8191 # Set sane defaults for various variables
8192 test -z "$CC" && CC=cc
8193 test -z "$LTCC" && LTCC=$CC
8194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8195 test -z "$LD" && LD=ld
8196 test -z "$ac_objext" && ac_objext=o
8198 for cc_temp in $compiler""; do
8200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8206 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8209 # Only perform the check for file, if the check method requires it
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 case $deplibs_check_method in
8213 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8215 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8216 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217 $as_echo_n "(cached) " >&6
8221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8224 lt_save_MAGIC_CMD="$MAGIC_CMD"
8225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227 for ac_dir in $ac_dummy; do
8229 test -z "$ac_dir" && ac_dir=.
8230 if test -f $ac_dir/${ac_tool_prefix}file; then
8231 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8232 if test -n "$file_magic_test_file"; then
8233 case $deplibs_check_method in
8235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238 $EGREP "$file_magic_regex" > /dev/null; then
8243 *** Warning: the command libtool uses to detect shared libraries,
8244 *** $file_magic_cmd, produces output that libtool cannot recognize.
8245 *** The result is that libtool may fail to recognize shared libraries
8246 *** as such. This will affect the creation of libtool libraries that
8247 *** depend on shared libraries, but programs linked with such libtool
8248 *** libraries will work regardless of this problem. Nevertheless, you
8249 *** may want to report the problem to your system manager and/or to
8250 *** bug-libtool@gnu.org
8260 MAGIC_CMD="$lt_save_MAGIC_CMD"
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if test -n "$MAGIC_CMD"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268 $as_echo "$MAGIC_CMD" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8278 if test -z "$lt_cv_path_MAGIC_CMD"; then
8279 if test -n "$ac_tool_prefix"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8281 $as_echo_n "checking for file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283 $as_echo_n "(cached) " >&6
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8350 # Use C for the default configuration in the libtool script
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360 # Source file extension for C test sources.
8363 # Object file extension for compiled C test sources.
8367 # Code to be used in simple compile tests
8368 lt_simple_compile_test_code="int some_variable = 0;"
8370 # Code to be used in simple link tests
8371 lt_simple_link_test_code='int main(){return(0);}'
8379 # If no C compiler was specified, use CC.
8382 # If no C compiler flags were specified, use CFLAGS.
8383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8385 # Allow CC to be a program name with arguments.
8388 # Save the default compiler, since it gets overwritten when the other
8389 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8390 compiler_DEFAULT=$CC
8392 # save warnings/boilerplate of simple test code
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_compiler_boilerplate=`cat conftest.err`
8399 ac_outfile=conftest.$ac_objext
8400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8402 _lt_linker_boilerplate=`cat conftest.err`
8406 if test -n "$compiler"; then
8408 lt_prog_compiler_no_builtin_flag=
8410 if test "$GCC" = yes; then
8411 case $cc_basename in
8413 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8419 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8420 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8421 $as_echo_n "(cached) " >&6
8423 lt_cv_prog_compiler_rtti_exceptions=no
8424 ac_outfile=conftest.$ac_objext
8425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8426 lt_compiler_flag="-fno-rtti -fno-exceptions"
8427 # Insert the option either (1) after the last *FLAGS variable, or
8428 # (2) before a word containing "conftest.", or (3) at the end.
8429 # Note that $ac_compile itself does not contain backslashes and begins
8430 # with a dollar sign (not a hyphen), so the echo should work correctly.
8431 # The option is referenced via a variable to avoid confusing sed.
8432 lt_compile=`echo "$ac_compile" | $SED \
8433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435 -e 's:$: $lt_compiler_flag:'`
8436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8437 (eval "$lt_compile" 2>conftest.err)
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 if (exit $ac_status) && test -s "$ac_outfile"; then
8442 # The compiler can only warn and ignore the option if not recognized
8443 # So say no if there are warnings other than the usual output.
8444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8447 lt_cv_prog_compiler_rtti_exceptions=yes
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8454 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8469 lt_prog_compiler_wl=
8470 lt_prog_compiler_pic=
8471 lt_prog_compiler_static=
8474 if test "$GCC" = yes; then
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_static='-static'
8480 # All AIX code is PIC.
8481 if test "$host_cpu" = ia64; then
8482 # AIX 5 now supports IA64 processor
8483 lt_prog_compiler_static='-Bstatic'
8490 # see comment about AmigaOS4 .so support
8491 lt_prog_compiler_pic='-fPIC'
8494 # FIXME: we need at least 68020 code to build shared libraries, but
8495 # adding the `-m68020' flag to GCC prevents building anything better,
8497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8503 # PIC is the default for these OSes.
8506 mingw* | cygwin* | pw32* | os2* | cegcc*)
8507 # This hack is so that the source file can tell whether it is being
8508 # built for inclusion in a dll (and should export symbols for example).
8509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8510 # (--disable-auto-import) libraries
8511 lt_prog_compiler_pic='-DDLL_EXPORT'
8514 darwin* | rhapsody*)
8515 # PIC is the default on this platform
8516 # Common symbols not allowed in MH_DYLIB files
8517 lt_prog_compiler_pic='-fno-common'
8521 # PIC is the default for Haiku.
8522 # The "-static" flag exists, but is broken.
8523 lt_prog_compiler_static=
8527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8529 # sets the default TLS model and affects inlining.
8535 lt_prog_compiler_pic='-fPIC'
8541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8542 # Instead, we relocate shared libraries at runtime.
8546 # Just because we use GCC doesn't mean we suddenly get shared libraries
8547 # on systems that don't support them.
8548 lt_prog_compiler_can_build_shared=no
8553 # QNX uses GNU C++, but need to define -shared option too, otherwise
8555 lt_prog_compiler_pic='-fPIC -shared'
8559 if test -d /usr/nec; then
8560 lt_prog_compiler_pic=-Kconform_pic
8565 lt_prog_compiler_pic='-fPIC'
8569 case $cc_basename in
8570 nvcc*) # Cuda Compiler Driver 2.2
8571 lt_prog_compiler_wl='-Xlinker '
8572 lt_prog_compiler_pic='-Xcompiler -fPIC'
8576 # PORTME Check for flag to pass linker flags through the system compiler.
8579 lt_prog_compiler_wl='-Wl,'
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8588 mingw* | cygwin* | pw32* | os2* | cegcc*)
8589 # This hack is so that the source file can tell whether it is being
8590 # built for inclusion in a dll (and should export symbols for example).
8591 lt_prog_compiler_pic='-DDLL_EXPORT'
8594 hpux9* | hpux10* | hpux11*)
8595 lt_prog_compiler_wl='-Wl,'
8596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8603 lt_prog_compiler_pic='+Z'
8606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8607 lt_prog_compiler_static='${wl}-a ${wl}archive'
8610 irix5* | irix6* | nonstopux*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # PIC (with -KPIC) is the default.
8613 lt_prog_compiler_static='-non_shared'
8616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8617 case $cc_basename in
8618 # old Intel for x86_64 which still supported -KPIC.
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-static'
8624 # icc used to be incompatible with GCC.
8625 # ICC 10 doesn't accept -KPIC any more.
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-fPIC'
8629 lt_prog_compiler_static='-static'
8631 # Lahey Fortran 8.1.
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='--shared'
8635 lt_prog_compiler_static='--static'
8638 # NAG Fortran compiler
8639 lt_prog_compiler_wl='-Wl,-Wl,,'
8640 lt_prog_compiler_pic='-PIC'
8641 lt_prog_compiler_static='-Bstatic'
8643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8644 # Portland Group compilers (*not* the Pentium gcc compiler,
8645 # which looks to be a dead project)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fpic'
8648 lt_prog_compiler_static='-Bstatic'
8651 lt_prog_compiler_wl='-Wl,'
8652 # All Alpha code is PIC.
8653 lt_prog_compiler_static='-non_shared'
8655 xl* | bgxl* | bgf* | mpixl*)
8656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_pic='-qpic'
8659 lt_prog_compiler_static='-qstaticlink'
8662 case `$CC -V 2>&1 | sed 5q` in
8663 *Sun\ F* | *Sun*Fortran*)
8664 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8665 lt_prog_compiler_pic='-KPIC'
8666 lt_prog_compiler_static='-Bstatic'
8667 lt_prog_compiler_wl=''
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8686 # QNX uses GNU C++, but need to define -shared option too, otherwise
8688 lt_prog_compiler_pic='-fPIC -shared'
8691 osf3* | osf4* | osf5*)
8692 lt_prog_compiler_wl='-Wl,'
8693 # All OSF/1 code is PIC.
8694 lt_prog_compiler_static='-non_shared'
8698 lt_prog_compiler_static='-non_shared'
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 case $cc_basename in
8705 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8706 lt_prog_compiler_wl='-Qoption ld ';;
8708 lt_prog_compiler_wl='-Wl,';;
8713 lt_prog_compiler_wl='-Qoption ld '
8714 lt_prog_compiler_pic='-PIC'
8715 lt_prog_compiler_static='-Bstatic'
8718 sysv4 | sysv4.2uw2* | sysv4.3*)
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-Bstatic'
8725 if test -d /usr/nec ;then
8726 lt_prog_compiler_pic='-Kconform_pic'
8727 lt_prog_compiler_static='-Bstatic'
8731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_can_build_shared=no
8743 lt_prog_compiler_pic='-pic'
8744 lt_prog_compiler_static='-Bstatic'
8748 lt_prog_compiler_can_build_shared=no
8754 # For platforms which do not support PIC, -DPIC is meaningless:
8756 lt_prog_compiler_pic=
8759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8765 if ${lt_cv_prog_compiler_pic+:} false; then :
8766 $as_echo_n "(cached) " >&6
8768 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8771 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8772 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8775 # Check to make sure the PIC flag actually works.
8777 if test -n "$lt_prog_compiler_pic"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8780 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8781 $as_echo_n "(cached) " >&6
8783 lt_cv_prog_compiler_pic_works=no
8784 ac_outfile=conftest.$ac_objext
8785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8786 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787 # Insert the option either (1) after the last *FLAGS variable, or
8788 # (2) before a word containing "conftest.", or (3) at the end.
8789 # Note that $ac_compile itself does not contain backslashes and begins
8790 # with a dollar sign (not a hyphen), so the echo should work correctly.
8791 # The option is referenced via a variable to avoid confusing sed.
8792 lt_compile=`echo "$ac_compile" | $SED \
8793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795 -e 's:$: $lt_compiler_flag:'`
8796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8797 (eval "$lt_compile" 2>conftest.err)
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 if (exit $ac_status) && test -s "$ac_outfile"; then
8802 # The compiler can only warn and ignore the option if not recognized
8803 # So say no if there are warnings other than the usual output.
8804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8807 lt_cv_prog_compiler_pic_works=yes
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8814 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8816 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8817 case $lt_prog_compiler_pic in
8819 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822 lt_prog_compiler_pic=
8823 lt_prog_compiler_can_build_shared=no
8839 # Check to make sure the static flag actually works.
8841 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8844 if ${lt_cv_prog_compiler_static_works+:} false; then :
8845 $as_echo_n "(cached) " >&6
8847 lt_cv_prog_compiler_static_works=no
8848 save_LDFLAGS="$LDFLAGS"
8849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8852 # The linker can only warn and ignore the option if not recognized
8853 # So say no if there are warnings
8854 if test -s conftest.err; then
8855 # Append any errors to the config.log.
8856 cat conftest.err 1>&5
8857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8859 if diff conftest.exp conftest.er2 >/dev/null; then
8860 lt_cv_prog_compiler_static_works=yes
8863 lt_cv_prog_compiler_static_works=yes
8867 LDFLAGS="$save_LDFLAGS"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8871 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8873 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8876 lt_prog_compiler_static=
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8887 if ${lt_cv_prog_compiler_c_o+:} false; then :
8888 $as_echo_n "(cached) " >&6
8890 lt_cv_prog_compiler_c_o=no
8891 $RM -r conftest 2>/dev/null
8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8897 lt_compiler_flag="-o out/conftest2.$ac_objext"
8898 # Insert the option either (1) after the last *FLAGS variable, or
8899 # (2) before a word containing "conftest.", or (3) at the end.
8900 # Note that $ac_compile itself does not contain backslashes and begins
8901 # with a dollar sign (not a hyphen), so the echo should work correctly.
8902 lt_compile=`echo "$ac_compile" | $SED \
8903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8905 -e 's:$: $lt_compiler_flag:'`
8906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8907 (eval "$lt_compile" 2>out/conftest.err)
8909 cat out/conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8913 # The compiler can only warn and ignore the option if not recognized
8914 # So say no if there are warnings
8915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8918 lt_cv_prog_compiler_c_o=yes
8923 # SGI C++ compiler will create directory out/ii_files/ for
8924 # template instantiation
8925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8926 $RM out/* && rmdir out
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8942 if ${lt_cv_prog_compiler_c_o+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 lt_cv_prog_compiler_c_o=no
8946 $RM -r conftest 2>/dev/null
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952 lt_compiler_flag="-o out/conftest2.$ac_objext"
8953 # Insert the option either (1) after the last *FLAGS variable, or
8954 # (2) before a word containing "conftest.", or (3) at the end.
8955 # Note that $ac_compile itself does not contain backslashes and begins
8956 # with a dollar sign (not a hyphen), so the echo should work correctly.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>out/conftest.err)
8964 cat out/conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968 # The compiler can only warn and ignore the option if not recognized
8969 # So say no if there are warnings
8970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_c_o=yes
8978 # SGI C++ compiler will create directory out/ii_files/ for
8979 # template instantiation
8980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8981 $RM out/* && rmdir out
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8988 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8993 hard_links="nottested"
8994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8995 # do not overwrite the value of need_locks provided by the user
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8997 $as_echo_n "checking if we can lock with hard links... " >&6; }
9000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9002 ln conftest.a conftest.b 2>&5 || hard_links=no
9003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9005 $as_echo "$hard_links" >&6; }
9006 if test "$hard_links" = no; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9008 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9024 allow_undefined_flag=
9025 always_export_symbols=no
9027 archive_expsym_cmds=
9028 compiler_needs_object=no
9029 enable_shared_with_static_runtimes=no
9030 export_dynamic_flag_spec=
9031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9032 hardcode_automatic=no
9034 hardcode_direct_absolute=no
9035 hardcode_libdir_flag_spec=
9036 hardcode_libdir_flag_spec_ld=
9037 hardcode_libdir_separator=
9039 hardcode_shlibpath_var=unsupported
9041 link_all_deplibs=unknown
9044 old_archive_from_new_cmds=
9045 old_archive_from_expsyms_cmds=
9046 thread_safe_flag_spec=
9047 whole_archive_flag_spec=
9048 # include_expsyms should be a list of space-separated symbols to be *always*
9049 # included in the symbol list
9051 # exclude_expsyms can be an extended regexp of symbols to exclude
9052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9054 # as well as any symbol that contains `d'.
9055 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9057 # platforms (ab)use it in PIC code, but their linkers get confused if
9058 # the symbol is explicitly referenced. Since portable code cannot
9059 # rely on this symbol name, it's probably fine to never include it in
9060 # preloaded symbol tables.
9061 # Exclude shared library initialization/finalization symbols.
9062 extract_expsyms_cmds=
9065 cygwin* | mingw* | pw32* | cegcc*)
9066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9067 # When not using gcc, we currently assume that we are using
9068 # Microsoft Visual C++.
9069 if test "$GCC" != yes; then
9074 # we just hope/assume this is gcc and not c89 (= MSVC++)
9084 # On some targets, GNU ld is compatible enough with the native linker
9085 # that we're better off using the native interface for both.
9086 lt_use_gnu_ld_interface=no
9087 if test "$with_gnu_ld" = yes; then
9090 # The AIX port of GNU ld has always aspired to compatibility
9091 # with the native linker. However, as the warning in the GNU ld
9092 # block says, versions before 2.19.5* couldn't really create working
9093 # shared libraries, regardless of the interface used.
9094 case `$LD -v 2>&1` in
9095 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9096 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9097 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9099 lt_use_gnu_ld_interface=yes
9104 lt_use_gnu_ld_interface=yes
9109 if test "$lt_use_gnu_ld_interface" = yes; then
9110 # If archive_cmds runs LD, not CC, wlarc should be empty
9113 # Set some defaults for GNU ld with shared library support. These
9114 # are reset later if shared libraries are not supported. Putting them
9115 # here allows them to be overridden if necessary.
9116 runpath_var=LD_RUN_PATH
9117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9118 export_dynamic_flag_spec='${wl}--export-dynamic'
9119 # ancient GNU ld didn't support --whole-archive et. al.
9120 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9123 whole_archive_flag_spec=
9125 supports_anon_versioning=no
9126 case `$LD -v 2>&1` in
9127 *GNU\ gold*) supports_anon_versioning=yes ;;
9128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9131 *\ 2.11.*) ;; # other 2.11 versions
9132 *) supports_anon_versioning=yes ;;
9135 # See if GNU ld supports shared libraries.
9138 # On AIX/PPC, the GNU linker is very broken
9139 if test "$host_cpu" != ia64; then
9143 *** Warning: the GNU linker, at least up to release 2.19, is reported
9144 *** to be unable to reliably create shared libraries on AIX.
9145 *** Therefore, libtool is disabling shared libraries support. If you
9146 *** really care for shared libraries, you may want to install binutils
9147 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9148 *** You will then need to restart the configuration process.
9157 # see comment about AmigaOS4 .so support
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 archive_expsym_cmds=''
9162 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)'
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_minus_L=yes
9170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9171 allow_undefined_flag=unsupported
9172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9173 # support --undefined. This deserves some investigation. FIXME
9174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9182 # as there is no search path for DLLs.
9183 hardcode_libdir_flag_spec='-L$libdir'
9184 export_dynamic_flag_spec='${wl}--export-all-symbols'
9185 allow_undefined_flag=unsupported
9186 always_export_symbols=no
9187 enable_shared_with_static_runtimes=yes
9188 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'
9189 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9191 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9193 # If the export-symbols file already is a .def file (1st line
9194 # is EXPORTS), use it as is; otherwise, prepend...
9195 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9196 cp $export_symbols $output_objdir/$soname.def;
9198 echo EXPORTS > $output_objdir/$soname.def;
9199 cat $export_symbols >> $output_objdir/$soname.def;
9201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 link_all_deplibs=yes
9214 hardcode_shlibpath_var=no
9215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9216 export_dynamic_flag_spec='${wl}-E'
9217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9218 # Instead, shared libraries are loaded at an image base (0x10000000 by
9219 # default) and relocated if they conflict, which is a slow very memory
9220 # consuming and fragmenting process. To avoid this, we pick a random,
9221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9224 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'
9227 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9229 if test "$host_os" = linux-dietlibc; then
9230 case $cc_basename in
9231 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9234 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9235 && test "$tmp_diet" = no
9237 tmp_addflag=' $pic_flag'
9238 tmp_sharedflag='-shared'
9239 case $cc_basename,$host_cpu in
9240 pgcc*) # Portland Group C compiler
9241 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'
9242 tmp_addflag=' $pic_flag'
9244 pgf77* | pgf90* | pgf95* | pgfortran*)
9245 # Portland Group f77 and f90 compilers
9246 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'
9247 tmp_addflag=' $pic_flag -Mnomain' ;;
9248 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9249 tmp_addflag=' -i_dynamic' ;;
9250 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9251 tmp_addflag=' -i_dynamic -nofor_main' ;;
9252 ifc* | ifort*) # Intel Fortran compiler
9253 tmp_addflag=' -nofor_main' ;;
9254 lf95*) # Lahey Fortran 8.1
9255 whole_archive_flag_spec=
9256 tmp_sharedflag='--shared' ;;
9257 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9258 tmp_sharedflag='-qmkshrobj'
9260 nvcc*) # Cuda Compiler Driver 2.2
9261 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'
9262 compiler_needs_object=yes
9265 case `$CC -V 2>&1 | sed 5q` in
9266 *Sun\ C*) # Sun C 5.9
9267 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'
9268 compiler_needs_object=yes
9269 tmp_sharedflag='-G' ;;
9270 *Sun\ F*) # Sun Fortran 8.3
9271 tmp_sharedflag='-G' ;;
9273 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 if test "x$supports_anon_versioning" = xyes; then
9276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278 echo "local: *; };" >> $output_objdir/$libname.ver~
9279 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9282 case $cc_basename in
9283 xlf* | bgf* | bgxlf* | mpixlf*)
9284 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9285 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9286 hardcode_libdir_flag_spec=
9287 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9288 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9289 if test "x$supports_anon_versioning" = xyes; then
9290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9292 echo "local: *; };" >> $output_objdir/$libname.ver~
9293 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9304 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9318 *** create shared libraries on Solaris systems. Therefore, libtool
9319 *** is disabling shared libraries support. We urge you to upgrade GNU
9320 *** binutils to release 2.9.1 or newer. Another option is to modify
9321 *** your PATH or compiler configuration so that the native linker is
9322 *** used, and then restart.
9325 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9334 case `$LD -v 2>&1` in
9335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9340 *** reliably create shared libraries on SCO systems. Therefore, libtool
9341 *** is disabling shared libraries support. We urge you to upgrade GNU
9342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9343 *** your PATH or compiler configuration so that the native linker is
9344 *** used, and then restart.
9349 # For security reasons, it is highly recommended that you always
9350 # use absolute paths for naming shared libraries, and exclude the
9351 # DT_RUNPATH tag from executables and libraries. But doing so
9352 # requires that you compile everything twice, which is a pain.
9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_shlibpath_var=no
9372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 if test "$ld_shlibs" = no; then
9383 hardcode_libdir_flag_spec=
9384 export_dynamic_flag_spec=
9385 whole_archive_flag_spec=
9388 # PORTME fill in a description of your system's linker (not GNU ld)
9391 allow_undefined_flag=unsupported
9392 always_export_symbols=yes
9393 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'
9394 # Note: this linker hardcodes the directories in LIBPATH if there
9395 # are no directories specified by -L.
9396 hardcode_minus_L=yes
9397 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9398 # Neither direct hardcoding nor static linking is supported with a
9400 hardcode_direct=unsupported
9405 if test "$host_cpu" = ia64; then
9406 # On IA64, the linker does run time linking by default, so we don't
9407 # have to do anything special.
9408 aix_use_runtimelinking=no
9409 exp_sym_flag='-Bexport'
9412 # If we're using GNU nm, then we don't want the "-C" option.
9413 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9414 # Also, AIX nm treats weak defined symbols like other global
9415 # defined symbols, whereas GNU nm marks them as "W".
9416 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9417 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9419 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9421 aix_use_runtimelinking=no
9423 # Test if we are trying to use run time linking or normal
9424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9425 # need to do runtime linking.
9426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9427 for ld_flag in $LDFLAGS; do
9428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9429 aix_use_runtimelinking=yes
9436 exp_sym_flag='-bexport'
9437 no_entry_flag='-bnoentry'
9440 # When large executables or shared objects are built, AIX ld can
9441 # have problems creating the table of contents. If linking a library
9442 # or program results in "error TOC overflow" add -mminimal-toc to
9443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9448 hardcode_direct_absolute=yes
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 file_list_spec='${wl}-f,'
9453 if test "$GCC" = yes; then
9454 case $host_os in aix4.[012]|aix4.[012].*)
9455 # We only want to do this on AIX 4.2 and lower, the check
9456 # below for broken collect2 doesn't work under 4.3+
9457 collect2name=`${CC} -print-prog-name=collect2`
9458 if test -f "$collect2name" &&
9459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9461 # We have reworked collect2
9464 # We have old collect2
9465 hardcode_direct=unsupported
9466 # It fails to find uninstalled libraries when the uninstalled
9467 # path is not listed in the libpath. Setting hardcode_minus_L
9468 # to unsupported forces relinking
9469 hardcode_minus_L=yes
9470 hardcode_libdir_flag_spec='-L$libdir'
9471 hardcode_libdir_separator=
9475 shared_flag='-shared'
9476 if test "$aix_use_runtimelinking" = yes; then
9477 shared_flag="$shared_flag "'${wl}-G'
9481 if test "$host_cpu" = ia64; then
9482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9483 # chokes on -Wl,-G. The following line is correct:
9486 if test "$aix_use_runtimelinking" = yes; then
9487 shared_flag='${wl}-G'
9489 shared_flag='${wl}-bM:SRE'
9494 export_dynamic_flag_spec='${wl}-bexpall'
9495 # It seems that -bexpall does not export symbols beginning with
9496 # underscore (_), so it is better to generate a list of symbols to export.
9497 always_export_symbols=yes
9498 if test "$aix_use_runtimelinking" = yes; then
9499 # Warning - without using the other runtime loading flags (-brtl),
9500 # -berok will link without error, but may produce a broken library.
9501 allow_undefined_flag='-berok'
9502 # Determine the default libpath from the value encoded in an
9504 if test "${lt_cv_aix_libpath+set}" = set; then
9505 aix_libpath=$lt_cv_aix_libpath
9507 if ${lt_cv_aix_libpath_+:} false; then :
9508 $as_echo_n "(cached) " >&6
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9521 if ac_fn_c_try_link "$LINENO"; then :
9523 lt_aix_libpath_sed='
9524 /Import File Strings/,/^$/ {
9526 s/^0 *\([^ ]*\) *$/\1/
9530 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531 # Check for a 64-bit object if we didn't find anything.
9532 if test -z "$lt_cv_aix_libpath_"; then
9533 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_="/usr/lib:/lib"
9544 aix_libpath=$lt_cv_aix_libpath_
9547 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9548 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9550 if test "$host_cpu" = ia64; then
9551 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9552 allow_undefined_flag="-z nodefs"
9553 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"
9555 # Determine the default libpath from the value encoded in an
9557 if test "${lt_cv_aix_libpath+set}" = set; then
9558 aix_libpath=$lt_cv_aix_libpath
9560 if ${lt_cv_aix_libpath_+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9574 if ac_fn_c_try_link "$LINENO"; then :
9576 lt_aix_libpath_sed='
9577 /Import File Strings/,/^$/ {
9579 s/^0 *\([^ ]*\) *$/\1/
9583 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 # Check for a 64-bit object if we didn't find anything.
9585 if test -z "$lt_cv_aix_libpath_"; then
9586 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 if test -z "$lt_cv_aix_libpath_"; then
9592 lt_cv_aix_libpath_="/usr/lib:/lib"
9597 aix_libpath=$lt_cv_aix_libpath_
9600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9601 # Warning - without using the other run time loading flags,
9602 # -berok will link without error, but may produce a broken library.
9603 no_undefined_flag=' ${wl}-bernotok'
9604 allow_undefined_flag=' ${wl}-berok'
9605 if test "$with_gnu_ld" = yes; then
9606 # We only use this code for GNU lds that support --whole-archive.
9607 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9609 # Exported symbols can be pulled into shared objects from archives
9610 whole_archive_flag_spec='$convenience'
9612 archive_cmds_need_lc=yes
9613 # This is similar to how AIX traditionally builds its shared libraries.
9614 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9622 # see comment about AmigaOS4 .so support
9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 archive_expsym_cmds=''
9627 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)'
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_minus_L=yes
9635 export_dynamic_flag_spec=-rdynamic
9638 cygwin* | mingw* | pw32* | cegcc*)
9639 # When not using gcc, we currently assume that we are using
9640 # Microsoft Visual C++.
9641 # hardcode_libdir_flag_spec is actually meaningless, as there is
9642 # no search path for DLLs.
9643 case $cc_basename in
9646 hardcode_libdir_flag_spec=' '
9647 allow_undefined_flag=unsupported
9648 always_export_symbols=yes
9650 # Tell ltmain to make .lib files, not .a files.
9652 # Tell ltmain to make .dll files, not .so files.
9654 # FIXME: Setting linknames here is a bad hack.
9655 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9657 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9659 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9661 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9663 # The linker will not automatically build a static lib if we build a DLL.
9664 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9665 enable_shared_with_static_runtimes=yes
9666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9668 old_postinstall_cmds='chmod 644 $oldlib'
9669 postlink_cmds='lt_outputfile="@OUTPUT@"~
9670 lt_tool_outputfile="@TOOL_OUTPUT@"~
9671 case $lt_outputfile in
9674 lt_outputfile="$lt_outputfile.exe"
9675 lt_tool_outputfile="$lt_tool_outputfile.exe"
9678 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9679 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9680 $RM "$lt_outputfile.manifest";
9684 # Assume MSVC wrapper
9685 hardcode_libdir_flag_spec=' '
9686 allow_undefined_flag=unsupported
9687 # Tell ltmain to make .lib files, not .a files.
9689 # Tell ltmain to make .dll files, not .so files.
9691 # FIXME: Setting linknames here is a bad hack.
9692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9693 # The linker will automatically build a .lib file if we build a DLL.
9694 old_archive_from_new_cmds='true'
9695 # FIXME: Should let the user specify the lib program.
9696 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9697 enable_shared_with_static_runtimes=yes
9702 darwin* | rhapsody*)
9705 archive_cmds_need_lc=no
9707 hardcode_automatic=yes
9708 hardcode_shlibpath_var=unsupported
9709 if test "$lt_cv_ld_force_load" = "yes"; then
9710 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\"`'
9712 whole_archive_flag_spec=''
9714 link_all_deplibs=yes
9715 allow_undefined_flag="$_lt_dar_allow_undefined"
9716 case $cc_basename in
9717 ifort*) _lt_dar_can_shared=yes ;;
9718 *) _lt_dar_can_shared=$GCC ;;
9720 if test "$_lt_dar_can_shared" = "yes"; then
9721 output_verbose_link_cmd=func_echo_all
9722 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9723 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9724 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}"
9725 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}"
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_shlibpath_var=no
9743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9744 # support. Future versions do this automatically, but an explicit c++rt0.o
9745 # does not break anything, and helps significantly (at the cost of a little
9748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9749 hardcode_libdir_flag_spec='-R$libdir'
9751 hardcode_shlibpath_var=no
9754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_minus_L=yes
9759 hardcode_shlibpath_var=no
9762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9763 freebsd* | dragonfly*)
9764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9765 hardcode_libdir_flag_spec='-R$libdir'
9767 hardcode_shlibpath_var=no
9771 if test "$GCC" = yes; then
9772 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9774 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777 hardcode_libdir_separator=:
9780 # hardcode_minus_L: Not really in the search PATH,
9781 # but as the default location of the library.
9782 hardcode_minus_L=yes
9783 export_dynamic_flag_spec='${wl}-E'
9787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9788 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9792 if test "$with_gnu_ld" = no; then
9793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794 hardcode_libdir_flag_spec_ld='+b $libdir'
9795 hardcode_libdir_separator=:
9797 hardcode_direct_absolute=yes
9798 export_dynamic_flag_spec='${wl}-E'
9799 # hardcode_minus_L: Not really in the search PATH,
9800 # but as the default location of the library.
9801 hardcode_minus_L=yes
9806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9809 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828 # Older versions of the 11.00 compiler do not understand -b yet
9829 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9831 $as_echo_n "checking if $CC understands -b... " >&6; }
9832 if ${lt_cv_prog_compiler__b+:} false; then :
9833 $as_echo_n "(cached) " >&6
9835 lt_cv_prog_compiler__b=no
9836 save_LDFLAGS="$LDFLAGS"
9837 LDFLAGS="$LDFLAGS -b"
9838 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9840 # The linker can only warn and ignore the option if not recognized
9841 # So say no if there are warnings
9842 if test -s conftest.err; then
9843 # Append any errors to the config.log.
9844 cat conftest.err 1>&5
9845 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9847 if diff conftest.exp conftest.er2 >/dev/null; then
9848 lt_cv_prog_compiler__b=yes
9851 lt_cv_prog_compiler__b=yes
9855 LDFLAGS="$save_LDFLAGS"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9859 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9861 if test x"$lt_cv_prog_compiler__b" = xyes; then
9862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9870 if test "$with_gnu_ld" = no; then
9871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872 hardcode_libdir_separator=:
9877 hardcode_shlibpath_var=no
9881 hardcode_direct_absolute=yes
9882 export_dynamic_flag_spec='${wl}-E'
9884 # hardcode_minus_L: Not really in the search PATH,
9885 # but as the default location of the library.
9886 hardcode_minus_L=yes
9892 irix5* | irix6* | nonstopux*)
9893 if test "$GCC" = yes; then
9894 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'
9895 # Try to use the -exported_symbol ld option, if it does not
9896 # work, assume that -exports_file does not work either and
9897 # implicitly export all symbols.
9898 # This should be the same for all languages, so no per-tag cache variable.
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9900 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9901 if ${lt_cv_irix_exported_symbol+:} false; then :
9902 $as_echo_n "(cached) " >&6
9904 save_LDFLAGS="$LDFLAGS"
9905 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int foo (void) { return 0; }
9910 if ac_fn_c_try_link "$LINENO"; then :
9911 lt_cv_irix_exported_symbol=yes
9913 lt_cv_irix_exported_symbol=no
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 LDFLAGS="$save_LDFLAGS"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9920 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9921 if test "$lt_cv_irix_exported_symbol" = yes; then
9922 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'
9925 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'
9926 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'
9928 archive_cmds_need_lc='no'
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 hardcode_libdir_separator=:
9932 link_all_deplibs=yes
9936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9939 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9941 hardcode_libdir_flag_spec='-R$libdir'
9943 hardcode_shlibpath_var=no
9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950 hardcode_libdir_separator=:
9951 hardcode_shlibpath_var=no
9958 if test -f /usr/libexec/ld.so; then
9960 hardcode_shlibpath_var=no
9961 hardcode_direct_absolute=yes
9962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9965 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9966 export_dynamic_flag_spec='${wl}-E'
9969 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_libdir_flag_spec='-R$libdir'
9974 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 hardcode_minus_L=yes
9987 allow_undefined_flag=unsupported
9988 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9989 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9993 if test "$GCC" = yes; then
9994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9995 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'
9997 allow_undefined_flag=' -expect_unresolved \*'
9998 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'
10000 archive_cmds_need_lc='no'
10001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10002 hardcode_libdir_separator=:
10005 osf4* | osf5*) # as osf3* with the addition of -msym flag
10006 if test "$GCC" = yes; then
10007 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10008 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'
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 allow_undefined_flag=' -expect_unresolved \*'
10012 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'
10013 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~
10014 $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'
10016 # Both c and cxx compiler support -rpath directly
10017 hardcode_libdir_flag_spec='-rpath $libdir'
10019 archive_cmds_need_lc='no'
10020 hardcode_libdir_separator=:
10024 no_undefined_flag=' -z defs'
10025 if test "$GCC" = yes; then
10027 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10029 $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'
10031 case `$CC -V 2>&1` in
10034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10040 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10042 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10046 hardcode_libdir_flag_spec='-R$libdir'
10047 hardcode_shlibpath_var=no
10049 solaris2.[0-5] | solaris2.[0-5].*) ;;
10051 # The compiler driver will combine and reorder linker options,
10052 # but understands `-z linker_flag'. GCC discards it without `$wl',
10053 # but is careful enough not to reorder.
10054 # Supported since Solaris 2.6 (maybe 2.5.1?)
10055 if test "$GCC" = yes; then
10056 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10062 link_all_deplibs=yes
10066 if test "x$host_vendor" = xsequent; then
10067 # Use $CC to link under sequent, because it throws in some extra .o
10068 # files that make .init and .fini sections work.
10069 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_direct=yes
10075 hardcode_minus_L=yes
10076 hardcode_shlibpath_var=no
10080 case $host_vendor in
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct=yes # is this really true???
10086 ## LD is ld it makes a PLAMLIB
10087 ## CC just makes a GrossModule.
10088 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10089 reload_cmds='$CC -r -o $output$reload_objs'
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10097 runpath_var='LD_RUN_PATH'
10098 hardcode_shlibpath_var=no
10102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_shlibpath_var=no
10104 export_dynamic_flag_spec='-Bexport'
10108 if test -d /usr/nec; then
10109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_shlibpath_var=no
10111 runpath_var=LD_RUN_PATH
10112 hardcode_runpath_var=yes
10117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10118 no_undefined_flag='${wl}-z,text'
10119 archive_cmds_need_lc=no
10120 hardcode_shlibpath_var=no
10121 runpath_var='LD_RUN_PATH'
10123 if test "$GCC" = yes; then
10124 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 sysv5* | sco3.2v5* | sco5v6*)
10133 # Note: We can NOT use -z defs as we might desire, because we do not
10134 # link with -lc, and that would cause any symbols used from libc to
10135 # always be unresolved, which means just about no library would
10136 # ever link correctly. If we're not using GNU ld we use -z text
10137 # though, which does catch some bad symbols but isn't as heavy-handed
10139 no_undefined_flag='${wl}-z,text'
10140 allow_undefined_flag='${wl}-z,nodefs'
10141 archive_cmds_need_lc=no
10142 hardcode_shlibpath_var=no
10143 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10144 hardcode_libdir_separator=':'
10145 link_all_deplibs=yes
10146 export_dynamic_flag_spec='${wl}-Bexport'
10147 runpath_var='LD_RUN_PATH'
10149 if test "$GCC" = yes; then
10150 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_shlibpath_var=no
10169 if test x$host_vendor = xsni; then
10171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10172 export_dynamic_flag_spec='${wl}-Blargedynsym'
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10179 $as_echo "$ld_shlibs" >&6; }
10180 test "$ld_shlibs" = no && can_build_shared=no
10182 with_gnu_ld=$with_gnu_ld
10199 # Do we need to explicitly link libc?
10201 case "x$archive_cmds_need_lc" in
10203 # Assume -lc should be added
10204 archive_cmds_need_lc=yes
10206 if test "$enable_shared" = yes && test "$GCC" = yes; then
10207 case $archive_cmds in
10209 # FIXME: we may have to deal with multi-command sequences.
10212 # Test whether the compiler implicitly links with -lc since on some
10213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10214 # to ld, don't add -lc before -lgcc.
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10216 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10217 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10218 $as_echo_n "(cached) " >&6
10221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10224 (eval $ac_compile) 2>&5
10226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10227 test $ac_status = 0; } 2>conftest.err; then
10230 libobjs=conftest.$ac_objext
10232 wl=$lt_prog_compiler_wl
10233 pic_flag=$lt_prog_compiler_pic
10239 lt_save_allow_undefined_flag=$allow_undefined_flag
10240 allow_undefined_flag=
10241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10242 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10245 test $ac_status = 0; }
10247 lt_cv_archive_cmds_need_lc=no
10249 lt_cv_archive_cmds_need_lc=yes
10251 allow_undefined_flag=$lt_save_allow_undefined_flag
10253 cat conftest.err 1>&5
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10259 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10260 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10426 if test "$GCC" = yes; then
10428 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10429 *) lt_awk_arg="/^libraries:/" ;;
10432 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10433 *) lt_sed_strip_eq="s,=/,/,g" ;;
10435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10436 case $lt_search_path_spec in
10438 # if the path contains ";" then we assume it to be the separator
10439 # otherwise default to the standard path separator (i.e. ":") - it is
10440 # assumed that no part of a normal pathname contains ";" but that should
10441 # okay in the real world where ";" in dirpaths is itself problematic.
10442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10448 # Ok, now we have the path, separated by spaces, we can step through it
10449 # and add multilib dir if necessary.
10450 lt_tmp_lt_search_path_spec=
10451 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10452 for lt_sys_path in $lt_search_path_spec; do
10453 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10456 test -d "$lt_sys_path" && \
10457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10461 BEGIN {RS=" "; FS="/|\n";} {
10464 for (lt_i = NF; lt_i > 0; lt_i--) {
10465 if ($lt_i != "" && $lt_i != ".") {
10466 if ($lt_i == "..") {
10469 if (lt_count == 0) {
10470 lt_foo="/" $lt_i lt_foo;
10477 if (lt_foo != "") { lt_freq[lt_foo]++; }
10478 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10480 # AWK program above erroneously prepends '/' to C:/dos/paths
10483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10484 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10490 library_names_spec=
10491 libname_spec='lib$name'
10495 postuninstall_cmds=
10499 shlibpath_overrides_runpath=unknown
10501 dynamic_linker="$host_os ld.so"
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10503 need_lib_prefix=unknown
10504 hardcode_into_libs=no
10506 # when you set need_version to no, make sure it does not cause -set_version
10507 # flags to be left without arguments
10508 need_version=unknown
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10514 shlibpath_var=LIBPATH
10516 # AIX 3 has no versioning support, so we append a major version to the name.
10517 soname_spec='${libname}${release}${shared_ext}$major'
10524 hardcode_into_libs=yes
10525 if test "$host_cpu" = ia64; then
10526 # AIX 5 supports IA64
10527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10528 shlibpath_var=LD_LIBRARY_PATH
10530 # With GCC up to 2.95.x, collect2 would create an import file
10531 # for dependence libraries. The import file would start with
10532 # the line `#! .'. This would cause the generated library to
10533 # depend on `.', always an invalid library. This was fixed in
10534 # development snapshots of GCC prior to 3.0.
10536 aix4 | aix4.[01] | aix4.[01].*)
10537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10539 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10542 can_build_shared=no
10546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10547 # soname into executable. Probably we can add versioning support to
10548 # collect2, so additional links can be useful in future.
10549 if test "$aix_use_runtimelinking" = yes; then
10550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10551 # instead of lib<name>.a to let people know that these are not
10552 # typical AIX shared libraries.
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 # We preserve .a as extension for shared libraries through AIX4.2
10556 # and later when we are not doing run time linking.
10557 library_names_spec='${libname}${release}.a $libname.a'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LIBPATH
10567 # Since July 2007 AmigaOS4 officially supports .so libraries.
10568 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572 library_names_spec='$libname.ixlibrary $libname.a'
10573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10574 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10580 library_names_spec='${libname}${shared_ext}'
10581 dynamic_linker="$host_os ld.so"
10582 shlibpath_var=LIBRARY_PATH
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10594 # the default ld.so.conf also contains /usr/contrib/lib and
10595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10596 # libtool to hard-code these into programs
10599 cygwin* | mingw* | pw32* | cegcc*)
10600 version_type=windows
10605 case $GCC,$cc_basename in
10608 library_names_spec='$libname.dll.a'
10609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10610 postinstall_cmds='base_file=`basename \${file}`~
10611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10612 dldir=$destdir/`dirname \$dlpath`~
10613 test -d \$dldir || mkdir -p \$dldir~
10614 $install_prog $dir/$dlname \$dldir/$dlname~
10615 chmod a+x \$dldir/$dlname~
10616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10620 dlpath=$dir/\$dldll~
10622 shlibpath_overrides_runpath=yes
10626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10632 # MinGW DLLs use traditional 'lib' prefix
10633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10636 # pw32 DLLs use 'pw' prefix rather than 'lib'
10637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640 dynamic_linker='Win32 ld.exe'
10645 libname_spec='$name'
10646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647 library_names_spec='${libname}.dll.lib'
10651 sys_lib_search_path_spec=
10654 for lt_path in $LIB
10657 # Let DOS variable expansion print the short 8.3 style file name.
10658 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10659 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10662 # Convert to MSYS style.
10663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10666 # Convert to unix form, then to dos form, then back to unix form
10667 # but this time dos style (no spaces!) so that the unix form looks
10668 # like /cygdrive/c/PROGRA~1:/cygdr...
10669 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10670 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10671 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10674 sys_lib_search_path_spec="$LIB"
10675 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10676 # It is most probably a Windows format PATH.
10677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10681 # FIXME: find the short name or the path components, as spaces are
10682 # common. (e.g. "Program Files" -> "PROGRA~1")
10686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10687 postinstall_cmds='base_file=`basename \${file}`~
10688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10689 dldir=$destdir/`dirname \$dlpath`~
10690 test -d \$dldir || mkdir -p \$dldir~
10691 $install_prog $dir/$dlname \$dldir/$dlname'
10692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10693 dlpath=$dir/\$dldll~
10695 shlibpath_overrides_runpath=yes
10696 dynamic_linker='Win32 link.exe'
10700 # Assume MSVC wrapper
10701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10702 dynamic_linker='Win32 ld.exe'
10705 # FIXME: first we should search . and the directory the executable is in
10709 darwin* | rhapsody*)
10710 dynamic_linker="$host_os dyld"
10711 version_type=darwin
10714 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10715 soname_spec='${libname}${release}${major}$shared_ext'
10716 shlibpath_overrides_runpath=yes
10717 shlibpath_var=DYLD_LIBRARY_PATH
10718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10737 freebsd* | dragonfly*)
10738 # DragonFly does not have aout. When/if they implement a new
10739 # versioning mechanism, adjust this.
10740 if test -x /usr/bin/objformat; then
10741 objformat=`/usr/bin/objformat`
10744 freebsd[123]*) objformat=aout ;;
10745 *) objformat=elf ;;
10748 version_type=freebsd-$objformat
10749 case $version_type in
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10760 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes
10765 freebsd3.[01]* | freebsdelf3.[01]*)
10766 shlibpath_overrides_runpath=yes
10767 hardcode_into_libs=yes
10769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10774 *) # from 4.6 on, and DragonFly
10775 shlibpath_overrides_runpath=yes
10776 hardcode_into_libs=yes
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 hardcode_into_libs=yes
10795 dynamic_linker="$host_os runtime_loader"
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 shlibpath_var=LIBRARY_PATH
10799 shlibpath_overrides_runpath=yes
10800 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10801 hardcode_into_libs=yes
10804 hpux9* | hpux10* | hpux11*)
10805 # Give a soname corresponding to the major version so that dld.sl refuses to
10806 # link against other versions.
10813 hardcode_into_libs=yes
10814 dynamic_linker="$host_os dld.so"
10815 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 if test "X$HPUX_IA64_MODE" = X32; then
10820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10828 hardcode_into_libs=yes
10829 dynamic_linker="$host_os dld.sl"
10830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10839 dynamic_linker="$host_os dld.sl"
10840 shlibpath_var=SHLIB_PATH
10841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10846 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10847 postinstall_cmds='chmod 555 $lib'
10848 # or fails outright, so override atomically:
10849 install_override_mode=555
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=no
10861 hardcode_into_libs=yes
10864 irix5* | irix6* | nonstopux*)
10866 nonstopux*) version_type=nonstopux ;;
10868 if test "$lt_cv_prog_gnu_ld" = yes; then
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 irix5* | nonstopux*)
10880 libsuff= shlibsuff=
10883 case $LD in # libtool.m4 will add one of these switches to LD
10884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10885 libsuff= shlibsuff= libmagic=32-bit;;
10886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10887 libsuff=32 shlibsuff=N32 libmagic=N32;;
10888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10890 *) libsuff= shlibsuff= libmagic=never-match;;
10894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10895 shlibpath_overrides_runpath=no
10896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10898 hardcode_into_libs=yes
10901 # No shared lib support for Linux oldld, aout, or coff.
10902 linux*oldld* | linux*aout* | linux*coff*)
10906 # This must be Linux ELF.
10907 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10917 # Some binutils ld are patched to set DT_RUNPATH
10918 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10919 $as_echo_n "(cached) " >&6
10921 lt_cv_shlibpath_overrides_runpath=no
10922 save_LDFLAGS=$LDFLAGS
10923 save_libdir=$libdir
10924 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10925 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10937 if ac_fn_c_try_link "$LINENO"; then :
10938 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10939 lt_cv_shlibpath_overrides_runpath=yes
10942 rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LDFLAGS=$save_LDFLAGS
10945 libdir=$save_libdir
10949 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10951 # This implies no fast_install, which is unacceptable.
10952 # Some rework will be needed to allow for fast_install
10953 # before this can be enabled.
10954 hardcode_into_libs=yes
10956 # Append ld.so.conf contents to the search path
10957 if test -f /etc/ld.so.conf; then
10958 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' ' '`
10959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10962 # We used to test for /lib/ld.so.1 and disable shared libraries on
10963 # powerpc, because MkLinux only supported shared libraries with the
10964 # GNU dynamic linker. Since this was broken with cross compilers,
10965 # most powerpc-linux boxes support dynamic linking these days and
10966 # people can always --disable-shared, the test was removed, and we
10967 # assume the GNU/Linux dynamic linker is in use.
10968 dynamic_linker='GNU/Linux ld.so'
10975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978 dynamic_linker='NetBSD (a.out) ld.so'
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 dynamic_linker='NetBSD ld.elf_so'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 hardcode_into_libs=yes
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11005 dynamic_linker='ldqnx.so'
11010 sys_lib_dlsearch_path_spec="/usr/lib"
11012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11015 *) need_version=no ;;
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11022 openbsd2.[89] | openbsd2.[89].*)
11023 shlibpath_overrides_runpath=no
11026 shlibpath_overrides_runpath=yes
11030 shlibpath_overrides_runpath=yes
11035 libname_spec='$name'
11038 library_names_spec='$libname${shared_ext} $libname.a'
11039 dynamic_linker='OS/2 ld.exe'
11040 shlibpath_var=LIBPATH
11043 osf3* | osf4* | osf5*)
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 hardcode_into_libs=yes
11067 # ldd complains unless libraries are executable
11068 postinstall_cmds='chmod +x $lib'
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes
11077 if test "$with_gnu_ld" = yes; then
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 case $host_vendor in
11090 shlibpath_overrides_runpath=no
11092 runpath_var=LD_RUN_PATH
11100 shlibpath_overrides_runpath=no
11101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11107 if test -d /usr/nec ;then
11109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11110 soname_spec='$libname${shared_ext}.$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11116 version_type=freebsd-elf
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 if test "$with_gnu_ld" = yes; then
11125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11134 sys_lib_dlsearch_path_spec='/usr/lib'
11138 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 hardcode_into_libs=yes
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11160 $as_echo "$dynamic_linker" >&6; }
11161 test "$dynamic_linker" = no && can_build_shared=no
11163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11164 if test "$GCC" = yes; then
11165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11168 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11169 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11171 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11172 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11267 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11269 if test -n "$hardcode_libdir_flag_spec" ||
11270 test -n "$runpath_var" ||
11271 test "X$hardcode_automatic" = "Xyes" ; then
11273 # We can hardcode non-existent directories.
11274 if test "$hardcode_direct" != no &&
11275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11276 # have to relink, otherwise we might link with an installed library
11277 # when we should be linking with a yet-to-be-installed one
11278 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11279 test "$hardcode_minus_L" != no; then
11280 # Linking always hardcodes the temporary library directory.
11281 hardcode_action=relink
11283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11284 hardcode_action=immediate
11287 # We cannot hardcode anything, or else we can only hardcode existing
11289 hardcode_action=unsupported
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11292 $as_echo "$hardcode_action" >&6; }
11294 if test "$hardcode_action" = relink ||
11295 test "$inherit_rpath" = yes; then
11296 # Fast installation is not supported
11297 enable_fast_install=no
11298 elif test "$shlibpath_overrides_runpath" = yes ||
11299 test "$enable_shared" = no; then
11300 # Fast installation is not necessary
11301 enable_fast_install=needless
11309 if test "x$enable_dlopen" != xyes; then
11310 enable_dlopen=unknown
11311 enable_dlopen_self=unknown
11312 enable_dlopen_self_static=unknown
11319 lt_cv_dlopen="load_add_on"
11321 lt_cv_dlopen_self=yes
11324 mingw* | pw32* | cegcc*)
11325 lt_cv_dlopen="LoadLibrary"
11330 lt_cv_dlopen="dlopen"
11335 # if libdl is installed we need to link against it
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11338 if ${ac_cv_lib_dl_dlopen+:} false; then :
11339 $as_echo_n "(cached) " >&6
11341 ac_check_lib_save_LIBS=$LIBS
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11364 ac_cv_lib_dl_dlopen=no
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376 lt_cv_dlopen="dyld"
11378 lt_cv_dlopen_self=yes
11385 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11386 if test "x$ac_cv_func_shl_load" = xyes; then :
11387 lt_cv_dlopen="shl_load"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11390 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11391 if ${ac_cv_lib_dld_shl_load+:} false; then :
11392 $as_echo_n "(cached) " >&6
11394 ac_check_lib_save_LIBS=$LIBS
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11409 return shl_load ();
11414 if ac_fn_c_try_link "$LINENO"; then :
11415 ac_cv_lib_dld_shl_load=yes
11417 ac_cv_lib_dld_shl_load=no
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11425 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11428 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11429 if test "x$ac_cv_func_dlopen" = xyes; then :
11430 lt_cv_dlopen="dlopen"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11434 if ${ac_cv_lib_dl_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11437 ac_check_lib_save_LIBS=$LIBS
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dl_dlopen=yes
11460 ac_cv_lib_dl_dlopen=no
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11472 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11473 if ${ac_cv_lib_svld_dlopen+:} false; then :
11474 $as_echo_n "(cached) " >&6
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-lsvld $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_svld_dlopen=yes
11499 ac_cv_lib_svld_dlopen=no
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11506 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11507 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11511 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11512 if ${ac_cv_lib_dld_dld_link+:} false; then :
11513 $as_echo_n "(cached) " >&6
11515 ac_check_lib_save_LIBS=$LIBS
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11530 return dld_link ();
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dld_dld_link=yes
11538 ac_cv_lib_dld_dld_link=no
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11545 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11546 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11568 if test "x$lt_cv_dlopen" != xno; then
11574 case $lt_cv_dlopen in
11576 save_CPPFLAGS="$CPPFLAGS"
11577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11579 save_LDFLAGS="$LDFLAGS"
11580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11583 LIBS="$lt_cv_dlopen_libs $LIBS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11586 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11587 if ${lt_cv_dlopen_self+:} false; then :
11588 $as_echo_n "(cached) " >&6
11590 if test "$cross_compiling" = yes; then :
11591 lt_cv_dlopen_self=cross
11593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594 lt_status=$lt_dlunknown
11595 cat > conftest.$ac_ext <<_LT_EOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11606 # define LT_DLGLOBAL RTLD_GLOBAL
11609 # define LT_DLGLOBAL DL_GLOBAL
11611 # define LT_DLGLOBAL 0
11615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616 find out it does not work in some platform. */
11617 #ifndef LT_DLLAZY_OR_NOW
11619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11622 # define LT_DLLAZY_OR_NOW DL_LAZY
11625 # define LT_DLLAZY_OR_NOW RTLD_NOW
11628 # define LT_DLLAZY_OR_NOW DL_NOW
11630 # define LT_DLLAZY_OR_NOW 0
11637 /* When -fvisbility=hidden is used, assume the code has been annotated
11638 correspondingly for the symbols needed. */
11639 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11640 int fnord () __attribute__((visibility("default")));
11643 int fnord () { return 42; }
11646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11647 int status = $lt_dlunknown;
11651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11654 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655 else puts (dlerror ());
11657 /* dlclose (self); */
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11666 (eval $ac_link) 2>&5
11668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11670 (./conftest; exit; ) >&5 2>/dev/null
11672 case x$lt_status in
11673 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11674 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11675 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11678 # compilation failed
11679 lt_cv_dlopen_self=no
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11687 $as_echo "$lt_cv_dlopen_self" >&6; }
11689 if test "x$lt_cv_dlopen_self" = xyes; then
11690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11692 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self_static+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 if test "$cross_compiling" = yes; then :
11697 lt_cv_dlopen_self_static=cross
11699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700 lt_status=$lt_dlunknown
11701 cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11712 # define LT_DLGLOBAL RTLD_GLOBAL
11715 # define LT_DLGLOBAL DL_GLOBAL
11717 # define LT_DLGLOBAL 0
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722 find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11728 # define LT_DLLAZY_OR_NOW DL_LAZY
11731 # define LT_DLLAZY_OR_NOW RTLD_NOW
11734 # define LT_DLLAZY_OR_NOW DL_NOW
11736 # define LT_DLLAZY_OR_NOW 0
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744 correspondingly for the symbols needed. */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11749 int fnord () { return 42; }
11752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753 int status = $lt_dlunknown;
11757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11760 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11761 else puts (dlerror ());
11763 /* dlclose (self); */
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11784 # compilation failed
11785 lt_cv_dlopen_self_static=no
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11793 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11796 CPPFLAGS="$save_CPPFLAGS"
11797 LDFLAGS="$save_LDFLAGS"
11802 case $lt_cv_dlopen_self in
11803 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11804 *) enable_dlopen_self=unknown ;;
11807 case $lt_cv_dlopen_self_static in
11808 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11809 *) enable_dlopen_self_static=unknown ;;
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11832 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11833 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11839 # FIXME - insert some real tests, host_os isn't really good enough
11842 if test -n "$STRIP" ; then
11843 striplib="$STRIP -x"
11844 old_striplib="$STRIP -S"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11870 # Report which library types will actually be built
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11872 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11874 $as_echo "$can_build_shared" >&6; }
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11877 $as_echo_n "checking whether to build shared libraries... " >&6; }
11878 test "$can_build_shared" = "no" && enable_shared=no
11880 # On AIX, shared libraries and static libraries use the same namespace, and
11881 # are all built from PIC.
11884 test "$enable_shared" = yes && enable_static=no
11885 if test -n "$RANLIB"; then
11886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11887 postinstall_cmds='$RANLIB $lib'
11892 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11893 test "$enable_shared" = yes && enable_static=no
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902 # Make sure either enable_shared or enable_static is yes.
11903 test "$enable_shared" = yes || enable_static=yes
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11919 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11921 (test "X$CXX" != "Xg++"))) ; then
11923 ac_cpp='$CXXCPP $CPPFLAGS'
11924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11928 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11929 if test -z "$CXXCPP"; then
11930 if ${ac_cv_prog_CXXCPP+:} false; then :
11931 $as_echo_n "(cached) " >&6
11933 # Double quotes because CXXCPP needs to be expanded
11934 for CXXCPP in "$CXX -E" "/lib/cpp"
11936 ac_preproc_ok=false
11937 for ac_cxx_preproc_warn_flag in '' yes
11939 # Use a header file that comes with gcc, so configuring glibc
11940 # with a fresh cross-compiler works.
11941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11942 # <limits.h> exists even on freestanding compilers.
11943 # On the NeXT, cc -E runs the code through the compiler's parser,
11944 # not just through cpp. "Syntax error" is here to catch this case.
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 # include <limits.h>
11950 # include <assert.h>
11954 if ac_fn_cxx_try_cpp "$LINENO"; then :
11957 # Broken: fails on valid input.
11960 rm -f conftest.err conftest.i conftest.$ac_ext
11962 # OK, works on sane cases. Now check whether nonexistent headers
11963 # can be detected and how.
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <ac_nonexistent.h>
11968 if ac_fn_cxx_try_cpp "$LINENO"; then :
11969 # Broken: success on invalid input.
11972 # Passes both tests.
11976 rm -f conftest.err conftest.i conftest.$ac_ext
11979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11980 rm -f conftest.i conftest.err conftest.$ac_ext
11981 if $ac_preproc_ok; then :
11986 ac_cv_prog_CXXCPP=$CXXCPP
11989 CXXCPP=$ac_cv_prog_CXXCPP
11991 ac_cv_prog_CXXCPP=$CXXCPP
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11994 $as_echo "$CXXCPP" >&6; }
11995 ac_preproc_ok=false
11996 for ac_cxx_preproc_warn_flag in '' yes
11998 # Use a header file that comes with gcc, so configuring glibc
11999 # with a fresh cross-compiler works.
12000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12001 # <limits.h> exists even on freestanding compilers.
12002 # On the NeXT, cc -E runs the code through the compiler's parser,
12003 # not just through cpp. "Syntax error" is here to catch this case.
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12007 # include <limits.h>
12009 # include <assert.h>
12013 if ac_fn_cxx_try_cpp "$LINENO"; then :
12016 # Broken: fails on valid input.
12019 rm -f conftest.err conftest.i conftest.$ac_ext
12021 # OK, works on sane cases. Now check whether nonexistent headers
12022 # can be detected and how.
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #include <ac_nonexistent.h>
12027 if ac_fn_cxx_try_cpp "$LINENO"; then :
12028 # Broken: success on invalid input.
12031 # Passes both tests.
12035 rm -f conftest.err conftest.i conftest.$ac_ext
12038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12039 rm -f conftest.i conftest.err conftest.$ac_ext
12040 if $ac_preproc_ok; then :
12043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12045 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12046 See \`config.log' for more details" "$LINENO" 5; }
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12056 _lt_caught_CXX_error=yes
12060 ac_cpp='$CXXCPP $CPPFLAGS'
12061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12065 archive_cmds_need_lc_CXX=no
12066 allow_undefined_flag_CXX=
12067 always_export_symbols_CXX=no
12068 archive_expsym_cmds_CXX=
12069 compiler_needs_object_CXX=no
12070 export_dynamic_flag_spec_CXX=
12071 hardcode_direct_CXX=no
12072 hardcode_direct_absolute_CXX=no
12073 hardcode_libdir_flag_spec_CXX=
12074 hardcode_libdir_flag_spec_ld_CXX=
12075 hardcode_libdir_separator_CXX=
12076 hardcode_minus_L_CXX=no
12077 hardcode_shlibpath_var_CXX=unsupported
12078 hardcode_automatic_CXX=no
12079 inherit_rpath_CXX=no
12081 module_expsym_cmds_CXX=
12082 link_all_deplibs_CXX=unknown
12083 old_archive_cmds_CXX=$old_archive_cmds
12084 reload_flag_CXX=$reload_flag
12085 reload_cmds_CXX=$reload_cmds
12086 no_undefined_flag_CXX=
12087 whole_archive_flag_spec_CXX=
12088 enable_shared_with_static_runtimes_CXX=no
12090 # Source file extension for C++ test sources.
12093 # Object file extension for compiled C++ test sources.
12097 # No sense in running all these tests if we already determined that
12098 # the CXX compiler isn't working. Some variables (like enable_shared)
12099 # are currently assumed to apply to all compilers on this platform,
12100 # and will be corrupted by setting them based on a non-working compiler.
12101 if test "$_lt_caught_CXX_error" != yes; then
12102 # Code to be used in simple compile tests
12103 lt_simple_compile_test_code="int some_variable = 0;"
12105 # Code to be used in simple link tests
12106 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12115 # If no C compiler was specified, use CC.
12118 # If no C compiler flags were specified, use CFLAGS.
12119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12121 # Allow CC to be a program name with arguments.
12125 # save warnings/boilerplate of simple test code
12126 ac_outfile=conftest.$ac_objext
12127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12129 _lt_compiler_boilerplate=`cat conftest.err`
12132 ac_outfile=conftest.$ac_objext
12133 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12135 _lt_linker_boilerplate=`cat conftest.err`
12139 # Allow CC to be a program name with arguments.
12141 lt_save_CFLAGS=$CFLAGS
12145 lt_save_with_gnu_ld=$with_gnu_ld
12146 lt_save_path_LD=$lt_cv_path_LD
12147 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12148 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12150 $as_unset lt_cv_prog_gnu_ld
12152 if test -n "${lt_cv_path_LDCXX+set}"; then
12153 lt_cv_path_LD=$lt_cv_path_LDCXX
12155 $as_unset lt_cv_path_LD
12157 test -z "${LDCXX+set}" || LD=$LDCXX
12162 for cc_temp in $compiler""; do
12164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12170 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12173 if test -n "$compiler"; then
12174 # We don't want -fno-exception when compiling C++ code, so set the
12175 # no_builtin_flag separately
12176 if test "$GXX" = yes; then
12177 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12179 lt_prog_compiler_no_builtin_flag_CXX=
12182 if test "$GXX" = yes; then
12183 # Set up default GNU C++ configuration
12187 # Check whether --with-gnu-ld was given.
12188 if test "${with_gnu_ld+set}" = set; then :
12189 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12195 if test "$GCC" = yes; then
12196 # Check if gcc -print-prog-name=ld gives a path.
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12198 $as_echo_n "checking for ld used by $CC... " >&6; }
12201 # gcc leaves a trailing carriage return which upsets mingw
12202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12207 # Accept absolute paths.
12209 re_direlt='/[^/][^/]*/\.\./'
12210 # Canonicalize the pathname of ld
12211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12215 test -z "$LD" && LD="$ac_prog"
12218 # If it fails, then pretend we aren't using GCC.
12222 # If it is relative, then search for the first ld in PATH.
12223 with_gnu_ld=unknown
12226 elif test "$with_gnu_ld" = yes; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12228 $as_echo_n "checking for GNU ld... " >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12231 $as_echo_n "checking for non-GNU ld... " >&6; }
12233 if ${lt_cv_path_LD+:} false; then :
12234 $as_echo_n "(cached) " >&6
12236 if test -z "$LD"; then
12237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12238 for ac_dir in $PATH; do
12240 test -z "$ac_dir" && ac_dir=.
12241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12242 lt_cv_path_LD="$ac_dir/$ac_prog"
12243 # Check to see if the program is GNU ld. I'd rather use --version,
12244 # but apparently some variants of GNU ld only accept -v.
12245 # Break only if it was the GNU/non-GNU ld that we prefer.
12246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12247 *GNU* | *'with BFD'*)
12248 test "$with_gnu_ld" != no && break
12251 test "$with_gnu_ld" != yes && break
12258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12262 LD="$lt_cv_path_LD"
12263 if test -n "$LD"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12265 $as_echo "$LD" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12270 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12272 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12273 if ${lt_cv_prog_gnu_ld+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12277 case `$LD -v 2>&1 </dev/null` in
12278 *GNU* | *'with BFD'*)
12279 lt_cv_prog_gnu_ld=yes
12282 lt_cv_prog_gnu_ld=no
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12287 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12288 with_gnu_ld=$lt_cv_prog_gnu_ld
12296 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12297 # archiving commands below assume that GNU ld is being used.
12298 if test "$with_gnu_ld" = yes; then
12299 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12300 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12305 # If archive_cmds runs LD, not CC, wlarc should be empty
12306 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12307 # investigate it a little bit more. (MM)
12310 # ancient GNU ld didn't support --whole-archive et. al.
12311 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12312 $GREP 'no-whole-archive' > /dev/null; then
12313 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12315 whole_archive_flag_spec_CXX=
12321 # A generic and very simple default shared library creation
12322 # command for GNU C++ for the case where it uses the native
12323 # linker, instead of GNU ld. If possible, this setting should
12324 # overridden to take advantage of the native linker features on
12325 # the platform it is being used on.
12326 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12340 # PORTME: fill in a description of your system's C++ link characteristics
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12346 # FIXME: insert proper C++ library support
12350 if test "$host_cpu" = ia64; then
12351 # On IA64, the linker does run time linking by default, so we don't
12352 # have to do anything special.
12353 aix_use_runtimelinking=no
12354 exp_sym_flag='-Bexport'
12357 aix_use_runtimelinking=no
12359 # Test if we are trying to use run time linking or normal
12360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12361 # need to do runtime linking.
12362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12363 for ld_flag in $LDFLAGS; do
12366 aix_use_runtimelinking=yes
12374 exp_sym_flag='-bexport'
12375 no_entry_flag='-bnoentry'
12378 # When large executables or shared objects are built, AIX ld can
12379 # have problems creating the table of contents. If linking a library
12380 # or program results in "error TOC overflow" add -mminimal-toc to
12381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12384 archive_cmds_CXX=''
12385 hardcode_direct_CXX=yes
12386 hardcode_direct_absolute_CXX=yes
12387 hardcode_libdir_separator_CXX=':'
12388 link_all_deplibs_CXX=yes
12389 file_list_spec_CXX='${wl}-f,'
12391 if test "$GXX" = yes; then
12392 case $host_os in aix4.[012]|aix4.[012].*)
12393 # We only want to do this on AIX 4.2 and lower, the check
12394 # below for broken collect2 doesn't work under 4.3+
12395 collect2name=`${CC} -print-prog-name=collect2`
12396 if test -f "$collect2name" &&
12397 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12399 # We have reworked collect2
12402 # We have old collect2
12403 hardcode_direct_CXX=unsupported
12404 # It fails to find uninstalled libraries when the uninstalled
12405 # path is not listed in the libpath. Setting hardcode_minus_L
12406 # to unsupported forces relinking
12407 hardcode_minus_L_CXX=yes
12408 hardcode_libdir_flag_spec_CXX='-L$libdir'
12409 hardcode_libdir_separator_CXX=
12412 shared_flag='-shared'
12413 if test "$aix_use_runtimelinking" = yes; then
12414 shared_flag="$shared_flag "'${wl}-G'
12418 if test "$host_cpu" = ia64; then
12419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12420 # chokes on -Wl,-G. The following line is correct:
12423 if test "$aix_use_runtimelinking" = yes; then
12424 shared_flag='${wl}-G'
12426 shared_flag='${wl}-bM:SRE'
12431 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12432 # It seems that -bexpall does not export symbols beginning with
12433 # underscore (_), so it is better to generate a list of symbols to
12435 always_export_symbols_CXX=yes
12436 if test "$aix_use_runtimelinking" = yes; then
12437 # Warning - without using the other runtime loading flags (-brtl),
12438 # -berok will link without error, but may produce a broken library.
12439 allow_undefined_flag_CXX='-berok'
12440 # Determine the default libpath from the value encoded in an empty
12442 if test "${lt_cv_aix_libpath+set}" = set; then
12443 aix_libpath=$lt_cv_aix_libpath
12445 if ${lt_cv_aix_libpath__CXX+:} false; then :
12446 $as_echo_n "(cached) " >&6
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12459 if ac_fn_cxx_try_link "$LINENO"; then :
12461 lt_aix_libpath_sed='
12462 /Import File Strings/,/^$/ {
12464 s/^0 *\([^ ]*\) *$/\1/
12468 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12469 # Check for a 64-bit object if we didn't find anything.
12470 if test -z "$lt_cv_aix_libpath__CXX"; then
12471 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12474 rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 if test -z "$lt_cv_aix_libpath__CXX"; then
12477 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12482 aix_libpath=$lt_cv_aix_libpath__CXX
12485 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12487 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12489 if test "$host_cpu" = ia64; then
12490 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12491 allow_undefined_flag_CXX="-z nodefs"
12492 archive_expsym_cmds_CXX="\$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"
12494 # Determine the default libpath from the value encoded in an
12495 # empty executable.
12496 if test "${lt_cv_aix_libpath+set}" = set; then
12497 aix_libpath=$lt_cv_aix_libpath
12499 if ${lt_cv_aix_libpath__CXX+:} false; then :
12500 $as_echo_n "(cached) " >&6
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12513 if ac_fn_cxx_try_link "$LINENO"; then :
12515 lt_aix_libpath_sed='
12516 /Import File Strings/,/^$/ {
12518 s/^0 *\([^ ]*\) *$/\1/
12522 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12523 # Check for a 64-bit object if we didn't find anything.
12524 if test -z "$lt_cv_aix_libpath__CXX"; then
12525 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 if test -z "$lt_cv_aix_libpath__CXX"; then
12531 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12536 aix_libpath=$lt_cv_aix_libpath__CXX
12539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 # Warning - without using the other run time loading flags,
12541 # -berok will link without error, but may produce a broken library.
12542 no_undefined_flag_CXX=' ${wl}-bernotok'
12543 allow_undefined_flag_CXX=' ${wl}-berok'
12544 if test "$with_gnu_ld" = yes; then
12545 # We only use this code for GNU lds that support --whole-archive.
12546 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12548 # Exported symbols can be pulled into shared objects from archives
12549 whole_archive_flag_spec_CXX='$convenience'
12551 archive_cmds_need_lc_CXX=yes
12552 # This is similar to how AIX traditionally builds its shared
12554 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12561 allow_undefined_flag_CXX=unsupported
12562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12563 # support --undefined. This deserves some investigation. FIXME
12564 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12571 case $cc_basename in
12573 # FIXME: insert proper C++ library support
12579 cygwin* | mingw* | pw32* | cegcc*)
12580 case $GXX,$cc_basename in
12583 # hardcode_libdir_flag_spec is actually meaningless, as there is
12584 # no search path for DLLs.
12585 hardcode_libdir_flag_spec_CXX=' '
12586 allow_undefined_flag_CXX=unsupported
12587 always_export_symbols_CXX=yes
12588 file_list_spec_CXX='@'
12589 # Tell ltmain to make .lib files, not .a files.
12591 # Tell ltmain to make .dll files, not .so files.
12593 # FIXME: Setting linknames here is a bad hack.
12594 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12595 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12596 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12598 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12600 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12602 # The linker will not automatically build a static lib if we build a DLL.
12603 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12604 enable_shared_with_static_runtimes_CXX=yes
12606 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12607 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12608 lt_tool_outputfile="@TOOL_OUTPUT@"~
12609 case $lt_outputfile in
12612 lt_outputfile="$lt_outputfile.exe"
12613 lt_tool_outputfile="$lt_tool_outputfile.exe"
12616 func_to_tool_file "$lt_outputfile"~
12617 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12619 $RM "$lt_outputfile.manifest";
12624 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12625 # as there is no search path for DLLs.
12626 hardcode_libdir_flag_spec_CXX='-L$libdir'
12627 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12628 allow_undefined_flag_CXX=unsupported
12629 always_export_symbols_CXX=no
12630 enable_shared_with_static_runtimes_CXX=yes
12632 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12634 # If the export-symbols file already is a .def file (1st line
12635 # is EXPORTS), use it as is; otherwise, prepend...
12636 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12637 cp $export_symbols $output_objdir/$soname.def;
12639 echo EXPORTS > $output_objdir/$soname.def;
12640 cat $export_symbols >> $output_objdir/$soname.def;
12642 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12649 darwin* | rhapsody*)
12652 archive_cmds_need_lc_CXX=no
12653 hardcode_direct_CXX=no
12654 hardcode_automatic_CXX=yes
12655 hardcode_shlibpath_var_CXX=unsupported
12656 if test "$lt_cv_ld_force_load" = "yes"; then
12657 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12659 whole_archive_flag_spec_CXX=''
12661 link_all_deplibs_CXX=yes
12662 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12663 case $cc_basename in
12664 ifort*) _lt_dar_can_shared=yes ;;
12665 *) _lt_dar_can_shared=$GCC ;;
12667 if test "$_lt_dar_can_shared" = "yes"; then
12668 output_verbose_link_cmd=func_echo_all
12669 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12670 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12671 archive_expsym_cmds_CXX="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}"
12672 module_expsym_cmds_CXX="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}"
12673 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12674 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12675 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12685 case $cc_basename in
12687 # FIXME: insert proper C++ library support
12691 # Green Hills C++ Compiler
12692 # FIXME: insert proper C++ library support
12696 # FIXME: insert proper C++ library support
12703 # C++ shared libraries reported to be fairly broken before
12709 archive_cmds_need_lc_CXX=no
12712 freebsd* | dragonfly*)
12713 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12722 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723 link_all_deplibs_CXX=yes
12727 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12728 hardcode_libdir_separator_CXX=:
12729 export_dynamic_flag_spec_CXX='${wl}-E'
12730 hardcode_direct_CXX=yes
12731 hardcode_minus_L_CXX=yes # Not in the search PATH,
12732 # but as the default
12733 # location of the library.
12735 case $cc_basename in
12737 # FIXME: insert proper C++ library support
12741 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12742 # Commands to make compiler produce verbose output that lists
12743 # what "hidden" libraries, object files and flags are used when
12744 # linking a shared library.
12746 # There doesn't appear to be a way to prevent this compiler from
12747 # explicitly linking system object files so we need to strip them
12748 # from the output so that they don't get included in the library
12750 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12753 if test "$GXX" = yes; then
12754 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12756 # FIXME: insert proper C++ library support
12764 if test $with_gnu_ld = no; then
12765 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12766 hardcode_libdir_separator_CXX=:
12772 export_dynamic_flag_spec_CXX='${wl}-E'
12778 hardcode_direct_CXX=no
12779 hardcode_shlibpath_var_CXX=no
12782 hardcode_direct_CXX=yes
12783 hardcode_direct_absolute_CXX=yes
12784 hardcode_minus_L_CXX=yes # Not in the search PATH,
12785 # but as the default
12786 # location of the library.
12790 case $cc_basename in
12792 # FIXME: insert proper C++ library support
12798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12807 # Commands to make compiler produce verbose output that lists
12808 # what "hidden" libraries, object files and flags are used when
12809 # linking a shared library.
12811 # There doesn't appear to be a way to prevent this compiler from
12812 # explicitly linking system object files so we need to strip them
12813 # from the output so that they don't get included in the library
12815 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12818 if test "$GXX" = yes; then
12819 if test $with_gnu_ld = no; then
12822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12833 # FIXME: insert proper C++ library support
12841 hardcode_direct_CXX=no
12842 hardcode_shlibpath_var_CXX=no
12843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12844 export_dynamic_flag_spec_CXX='${wl}-E'
12845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12846 # Instead, shared libraries are loaded at an image base (0x10000000 by
12847 # default) and relocated if they conflict, which is a slow very memory
12848 # consuming and fragmenting process. To avoid this, we pick a random,
12849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12851 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12852 archive_expsym_cmds_CXX='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'
12855 case $cc_basename in
12858 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12860 # Archives containing C++ object files must be created using
12861 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12862 # necessary to make sure instantiated templates are included
12864 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12867 if test "$GXX" = yes; then
12868 if test "$with_gnu_ld" = no; then
12869 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12871 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12874 link_all_deplibs_CXX=yes
12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_CXX=:
12879 inherit_rpath_CXX=yes
12882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12883 case $cc_basename in
12885 # Kuck and Associates, Inc. (KAI) C++ Compiler
12887 # KCC will only create a shared library if the output file
12888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12889 # to its proper name (with version) after linking.
12890 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12891 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12892 # Commands to make compiler produce verbose output that lists
12893 # what "hidden" libraries, object files and flags are used when
12894 # linking a shared library.
12896 # There doesn't appear to be a way to prevent this compiler from
12897 # explicitly linking system object files so we need to strip them
12898 # from the output so that they don't get included in the library
12900 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12903 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12905 # Archives containing C++ object files must be created using
12906 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12907 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12912 # version 8.0 and above of icpc choke on multiply defined symbols
12913 # if we add $predep_objects and $postdep_objects, however 7.1 and
12914 # earlier do not add the objects themselves.
12915 case `$CC -V 2>&1` in
12917 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920 *) # Version 8.0 or newer
12923 ia64*) tmp_idyn=' -i_dynamic';;
12925 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929 archive_cmds_need_lc_CXX=no
12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12932 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12935 # Portland Group C++ compiler
12937 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12938 prelink_cmds_CXX='tpldir=Template.dir~
12940 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12941 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12942 old_archive_cmds_CXX='tpldir=Template.dir~
12944 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12945 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12947 archive_cmds_CXX='tpldir=Template.dir~
12949 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12950 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12951 archive_expsym_cmds_CXX='tpldir=Template.dir~
12953 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12954 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12956 *) # Version 6 and above use weak symbols
12957 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12958 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12962 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12964 whole_archive_flag_spec_CXX='${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'
12968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12971 runpath_var=LD_RUN_PATH
12972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12973 hardcode_libdir_separator_CXX=:
12975 # Commands to make compiler produce verbose output that lists
12976 # what "hidden" libraries, object files and flags are used when
12977 # linking a shared library.
12979 # There doesn't appear to be a way to prevent this compiler from
12980 # explicitly linking system object files so we need to strip them
12981 # from the output so that they don't get included in the library
12983 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12985 xl* | mpixl* | bgxl*)
12986 # IBM XL 8.0 on PPC, with GNU ld
12987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12989 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 if test "x$supports_anon_versioning" = xyes; then
12991 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12993 echo "local: *; };" >> $output_objdir/$libname.ver~
12994 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12998 case `$CC -V 2>&1 | sed 5q` in
13001 no_undefined_flag_CXX=' -zdefs'
13002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13004 hardcode_libdir_flag_spec_CXX='-R$libdir'
13005 whole_archive_flag_spec_CXX='${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'
13006 compiler_needs_object_CXX=yes
13008 # Not sure whether something based on
13009 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13011 output_verbose_link_cmd='func_echo_all'
13013 # Archives containing C++ object files must be created using
13014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13015 # necessary to make sure instantiated templates are included
13017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13025 # FIXME: insert proper C++ library support
13030 # FIXME: insert proper C++ library support
13035 case $cc_basename in
13037 # FIXME: insert proper C++ library support
13041 # FIXME: insert proper C++ library support
13048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13049 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13051 hardcode_libdir_flag_spec_CXX='-R$libdir'
13052 hardcode_direct_CXX=yes
13053 hardcode_shlibpath_var_CXX=no
13055 # Workaround some broken pre-1.5 toolchains
13056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13064 # C++ shared libraries are fairly broken
13069 if test -f /usr/libexec/ld.so; then
13070 hardcode_direct_CXX=yes
13071 hardcode_shlibpath_var_CXX=no
13072 hardcode_direct_absolute_CXX=yes
13073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13076 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13077 export_dynamic_flag_spec_CXX='${wl}-E'
13078 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13080 output_verbose_link_cmd=func_echo_all
13086 osf3* | osf4* | osf5*)
13087 case $cc_basename in
13089 # Kuck and Associates, Inc. (KAI) C++ Compiler
13091 # KCC will only create a shared library if the output file
13092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13093 # to its proper name (with version) after linking.
13094 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13097 hardcode_libdir_separator_CXX=:
13099 # Archives containing C++ object files must be created using
13100 # the KAI C++ compiler.
13102 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13103 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13107 # Rational C++ 2.4.1
13108 # FIXME: insert proper C++ library support
13114 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13115 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13119 allow_undefined_flag_CXX=' -expect_unresolved \*'
13120 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13121 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13122 echo "-hidden">> $lib.exp~
13123 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13129 hardcode_libdir_separator_CXX=:
13131 # Commands to make compiler produce verbose output that lists
13132 # what "hidden" libraries, object files and flags are used when
13133 # linking a shared library.
13135 # There doesn't appear to be a way to prevent this compiler from
13136 # explicitly linking system object files so we need to strip them
13137 # from the output so that they don't get included in the library
13139 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13142 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13143 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13149 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154 hardcode_libdir_separator_CXX=:
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13162 # FIXME: insert proper C++ library support
13170 # FIXME: insert proper C++ library support
13175 case $cc_basename in
13178 # FIXME: insert proper C++ library support
13183 # FIXME: insert proper C++ library support
13187 # FIXME: insert proper C++ library support
13194 case $cc_basename in
13196 # Sun C++ 4.2, 5.x and Centerline C++
13197 archive_cmds_need_lc_CXX=yes
13198 no_undefined_flag_CXX=' -zdefs'
13199 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13201 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13203 hardcode_libdir_flag_spec_CXX='-R$libdir'
13204 hardcode_shlibpath_var_CXX=no
13206 solaris2.[0-5] | solaris2.[0-5].*) ;;
13208 # The compiler driver will combine and reorder linker options,
13209 # but understands `-z linker_flag'.
13210 # Supported since Solaris 2.6 (maybe 2.5.1?)
13211 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13214 link_all_deplibs_CXX=yes
13216 output_verbose_link_cmd='func_echo_all'
13218 # Archives containing C++ object files must be created using
13219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13220 # necessary to make sure instantiated templates are included
13222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13225 # Green Hills C++ Compiler
13226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13228 # The C++ compiler must be used to create the archive.
13229 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13232 # GNU C++ compiler with Solaris linker
13233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13234 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13235 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13236 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13238 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13240 # Commands to make compiler produce verbose output that lists
13241 # what "hidden" libraries, object files and flags are used when
13242 # linking a shared library.
13243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13247 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13251 # Commands to make compiler produce verbose output that lists
13252 # what "hidden" libraries, object files and flags are used when
13253 # linking a shared library.
13254 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13257 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13259 solaris2.[0-5] | solaris2.[0-5].*) ;;
13261 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13270 no_undefined_flag_CXX='${wl}-z,text'
13271 archive_cmds_need_lc_CXX=no
13272 hardcode_shlibpath_var_CXX=no
13273 runpath_var='LD_RUN_PATH'
13275 case $cc_basename in
13277 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13287 sysv5* | sco3.2v5* | sco5v6*)
13288 # Note: We can NOT use -z defs as we might desire, because we do not
13289 # link with -lc, and that would cause any symbols used from libc to
13290 # always be unresolved, which means just about no library would
13291 # ever link correctly. If we're not using GNU ld we use -z text
13292 # though, which does catch some bad symbols but isn't as heavy-handed
13294 no_undefined_flag_CXX='${wl}-z,text'
13295 allow_undefined_flag_CXX='${wl}-z,nodefs'
13296 archive_cmds_need_lc_CXX=no
13297 hardcode_shlibpath_var_CXX=no
13298 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13299 hardcode_libdir_separator_CXX=':'
13300 link_all_deplibs_CXX=yes
13301 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13302 runpath_var='LD_RUN_PATH'
13304 case $cc_basename in
13306 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13309 '"$old_archive_cmds_CXX"
13310 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13311 '"$reload_cmds_CXX"
13314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 case $cc_basename in
13323 # NonStop-UX NCC 3.20
13324 # FIXME: insert proper C++ library support
13328 # FIXME: insert proper C++ library support
13335 # FIXME: insert proper C++ library support
13340 # FIXME: insert proper C++ library support
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13346 $as_echo "$ld_shlibs_CXX" >&6; }
13347 test "$ld_shlibs_CXX" = no && can_build_shared=no
13353 ## There is no encapsulation within the following macros, do not change
13354 ## the running order or otherwise move them around unless you know exactly
13355 ## what you are doing...
13356 # Dependencies to place before and after the object being linked:
13357 predep_objects_CXX=
13358 postdep_objects_CXX=
13361 compiler_lib_search_path_CXX=
13363 cat > conftest.$ac_ext <<_LT_EOF
13367 Foo (void) { a = 0; }
13374 _lt_libdeps_save_CFLAGS=$CFLAGS
13375 case "$CC $CFLAGS " in #(
13376 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13377 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13381 (eval $ac_compile) 2>&5
13383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384 test $ac_status = 0; }; then
13385 # Parse the compiler output and extract the necessary
13386 # objects, libraries and library flags.
13388 # Sentinel used to keep track of whether or not we are before
13389 # the conftest object file.
13390 pre_test_object_deps_done=no
13392 for p in `eval "$output_verbose_link_cmd"`; do
13393 case ${prev}${p} in
13396 # Some compilers place space between "-{L,R}" and the path.
13397 # Remove the space.
13398 if test $p = "-L" ||
13399 test $p = "-R"; then
13404 # Expand the sysroot to ease extracting the directories later.
13405 if test -z "$prev"; then
13407 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13408 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13409 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13413 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13415 if test "$pre_test_object_deps_done" = no; then
13418 # Internal compiler library paths should come after those
13419 # provided the user. The postdeps already come after the
13420 # user supplied libs so there is no need to process them.
13421 if test -z "$compiler_lib_search_path_CXX"; then
13422 compiler_lib_search_path_CXX="${prev}${p}"
13424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13427 # The "-l" case would never come before the object being
13428 # linked, so don't bother handling this case.
13431 if test -z "$postdeps_CXX"; then
13432 postdeps_CXX="${prev}${p}"
13434 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13440 *.lto.$objext) ;; # Ignore GCC LTO objects
13442 # This assumes that the test object file only shows up
13443 # once in the compiler output.
13444 if test "$p" = "conftest.$objext"; then
13445 pre_test_object_deps_done=yes
13449 if test "$pre_test_object_deps_done" = no; then
13450 if test -z "$predep_objects_CXX"; then
13451 predep_objects_CXX="$p"
13453 predep_objects_CXX="$predep_objects_CXX $p"
13456 if test -z "$postdep_objects_CXX"; then
13457 postdep_objects_CXX="$p"
13459 postdep_objects_CXX="$postdep_objects_CXX $p"
13464 *) ;; # Ignore the rest.
13472 echo "libtool.m4: error: problem compiling CXX test program"
13475 $RM -f confest.$objext
13476 CFLAGS=$_lt_libdeps_save_CFLAGS
13478 # PORTME: override above test on systems where it is broken
13481 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13482 # hack all around it, let's just trust "g++" to DTRT.
13483 predep_objects_CXX=
13484 postdep_objects_CXX=
13489 case `$CC -V 2>&1 | sed 5q` in
13493 # The more standards-conforming stlport4 library is
13494 # incompatible with the Cstd library. Avoid specifying
13495 # it if it's in CXXFLAGS. Ignore libCrun as
13496 # -library=stlport4 depends on it.
13497 case " $CXX $CXXFLAGS " in
13498 *" -library=stlport4 "*)
13499 solaris_use_stlport4=yes
13503 if test "$solaris_use_stlport4" != yes; then
13504 postdeps_CXX='-library=Cstd -library=Crun'
13511 case $cc_basename in
13513 # The more standards-conforming stlport4 library is
13514 # incompatible with the Cstd library. Avoid specifying
13515 # it if it's in CXXFLAGS. Ignore libCrun as
13516 # -library=stlport4 depends on it.
13517 case " $CXX $CXXFLAGS " in
13518 *" -library=stlport4 "*)
13519 solaris_use_stlport4=yes
13523 # Adding this requires a known-good setup of shared libraries for
13524 # Sun compiler versions before 5.6, else PIC objects from an old
13525 # archive will be linked into the output, leading to subtle bugs.
13526 if test "$solaris_use_stlport4" != yes; then
13527 postdeps_CXX='-library=Cstd -library=Crun'
13535 case " $postdeps_CXX " in
13536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13538 compiler_lib_search_dirs_CXX=
13539 if test -n "${compiler_lib_search_path_CXX}"; then
13540 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13573 lt_prog_compiler_wl_CXX=
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_static_CXX=
13578 # C++ specific cases for pic, static, wl, etc.
13579 if test "$GXX" = yes; then
13580 lt_prog_compiler_wl_CXX='-Wl,'
13581 lt_prog_compiler_static_CXX='-static'
13585 # All AIX code is PIC.
13586 if test "$host_cpu" = ia64; then
13587 # AIX 5 now supports IA64 processor
13588 lt_prog_compiler_static_CXX='-Bstatic'
13595 # see comment about AmigaOS4 .so support
13596 lt_prog_compiler_pic_CXX='-fPIC'
13599 # FIXME: we need at least 68020 code to build shared libraries, but
13600 # adding the `-m68020' flag to GCC prevents building anything better,
13602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13607 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13608 # PIC is the default for these OSes.
13610 mingw* | cygwin* | os2* | pw32* | cegcc*)
13611 # This hack is so that the source file can tell whether it is being
13612 # built for inclusion in a dll (and should export symbols for example).
13613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13614 # (--disable-auto-import) libraries
13615 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13617 darwin* | rhapsody*)
13618 # PIC is the default on this platform
13619 # Common symbols not allowed in MH_DYLIB files
13620 lt_prog_compiler_pic_CXX='-fno-common'
13623 # DJGPP does not support shared libraries at all
13624 lt_prog_compiler_pic_CXX=
13627 # PIC is the default for Haiku.
13628 # The "-static" flag exists, but is broken.
13629 lt_prog_compiler_static_CXX=
13632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13633 # Instead, we relocate shared libraries at runtime.
13636 if test -d /usr/nec; then
13637 lt_prog_compiler_pic_CXX=-Kconform_pic
13641 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13642 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13643 # sets the default TLS model and affects inlining.
13648 lt_prog_compiler_pic_CXX='-fPIC'
13653 # QNX uses GNU C++, but need to define -shared option too, otherwise
13654 # it will coredump.
13655 lt_prog_compiler_pic_CXX='-fPIC -shared'
13658 lt_prog_compiler_pic_CXX='-fPIC'
13664 # All AIX code is PIC.
13665 if test "$host_cpu" = ia64; then
13666 # AIX 5 now supports IA64 processor
13667 lt_prog_compiler_static_CXX='-Bstatic'
13669 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13673 case $cc_basename in
13675 # Green Hills C++ Compiler
13676 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13680 mingw* | cygwin* | os2* | pw32* | cegcc*)
13681 # This hack is so that the source file can tell whether it is being
13682 # built for inclusion in a dll (and should export symbols for example).
13683 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13686 case $cc_basename in
13688 lt_prog_compiler_pic_CXX='-KPIC'
13691 # Green Hills C++ Compiler
13692 lt_prog_compiler_pic_CXX='-pic'
13698 freebsd* | dragonfly*)
13699 # FreeBSD uses GNU C++
13701 hpux9* | hpux10* | hpux11*)
13702 case $cc_basename in
13704 lt_prog_compiler_wl_CXX='-Wl,'
13705 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13706 if test "$host_cpu" != ia64; then
13707 lt_prog_compiler_pic_CXX='+Z'
13711 lt_prog_compiler_wl_CXX='-Wl,'
13712 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13718 lt_prog_compiler_pic_CXX='+Z'
13727 # This is c89, which is MS Visual C++ (no shared libs)
13728 # Anyone wants to do a port?
13730 irix5* | irix6* | nonstopux*)
13731 case $cc_basename in
13733 lt_prog_compiler_wl_CXX='-Wl,'
13734 lt_prog_compiler_static_CXX='-non_shared'
13735 # CC pic flag -KPIC is the default.
13741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13742 case $cc_basename in
13745 lt_prog_compiler_wl_CXX='--backend -Wl,'
13746 lt_prog_compiler_pic_CXX='-fPIC'
13749 # old Intel C++ for x86_64 which still supported -KPIC.
13750 lt_prog_compiler_wl_CXX='-Wl,'
13751 lt_prog_compiler_pic_CXX='-KPIC'
13752 lt_prog_compiler_static_CXX='-static'
13755 # Intel C++, used to be incompatible with GCC.
13756 # ICC 10 doesn't accept -KPIC any more.
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_pic_CXX='-fPIC'
13759 lt_prog_compiler_static_CXX='-static'
13762 # Portland Group C++ compiler
13763 lt_prog_compiler_wl_CXX='-Wl,'
13764 lt_prog_compiler_pic_CXX='-fpic'
13765 lt_prog_compiler_static_CXX='-Bstatic'
13769 # Make sure the PIC flag is empty. It appears that all Alpha
13770 # Linux and Compaq Tru64 Unix objects are PIC.
13771 lt_prog_compiler_pic_CXX=
13772 lt_prog_compiler_static_CXX='-non_shared'
13774 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13775 # IBM XL 8.0, 9.0 on PPC and BlueGene
13776 lt_prog_compiler_wl_CXX='-Wl,'
13777 lt_prog_compiler_pic_CXX='-qpic'
13778 lt_prog_compiler_static_CXX='-qstaticlink'
13781 case `$CC -V 2>&1 | sed 5q` in
13784 lt_prog_compiler_pic_CXX='-KPIC'
13785 lt_prog_compiler_static_CXX='-Bstatic'
13786 lt_prog_compiler_wl_CXX='-Qoption ld '
13797 case $cc_basename in
13799 lt_prog_compiler_pic_CXX='-W c,exportall'
13808 # QNX uses GNU C++, but need to define -shared option too, otherwise
13809 # it will coredump.
13810 lt_prog_compiler_pic_CXX='-fPIC -shared'
13812 osf3* | osf4* | osf5*)
13813 case $cc_basename in
13815 lt_prog_compiler_wl_CXX='--backend -Wl,'
13818 # Rational C++ 2.4.1
13819 lt_prog_compiler_pic_CXX='-pic'
13822 # Digital/Compaq C++
13823 lt_prog_compiler_wl_CXX='-Wl,'
13824 # Make sure the PIC flag is empty. It appears that all Alpha
13825 # Linux and Compaq Tru64 Unix objects are PIC.
13826 lt_prog_compiler_pic_CXX=
13827 lt_prog_compiler_static_CXX='-non_shared'
13836 case $cc_basename in
13838 # Sun C++ 4.2, 5.x and Centerline C++
13839 lt_prog_compiler_pic_CXX='-KPIC'
13840 lt_prog_compiler_static_CXX='-Bstatic'
13841 lt_prog_compiler_wl_CXX='-Qoption ld '
13844 # Green Hills C++ Compiler
13845 lt_prog_compiler_pic_CXX='-PIC'
13852 case $cc_basename in
13855 lt_prog_compiler_pic_CXX='-pic'
13856 lt_prog_compiler_static_CXX='-Bstatic'
13860 lt_prog_compiler_pic_CXX='-pic'
13866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13867 case $cc_basename in
13869 lt_prog_compiler_wl_CXX='-Wl,'
13870 lt_prog_compiler_pic_CXX='-KPIC'
13871 lt_prog_compiler_static_CXX='-Bstatic'
13876 case $cc_basename in
13878 # NonStop-UX NCC 3.20
13879 lt_prog_compiler_pic_CXX='-KPIC'
13888 lt_prog_compiler_can_build_shared_CXX=no
13894 # For platforms which do not support PIC, -DPIC is meaningless:
13896 lt_prog_compiler_pic_CXX=
13899 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13905 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13906 $as_echo_n "(cached) " >&6
13908 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13911 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13912 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13915 # Check to make sure the PIC flag actually works.
13917 if test -n "$lt_prog_compiler_pic_CXX"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13920 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13921 $as_echo_n "(cached) " >&6
13923 lt_cv_prog_compiler_pic_works_CXX=no
13924 ac_outfile=conftest.$ac_objext
13925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13926 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13927 # Insert the option either (1) after the last *FLAGS variable, or
13928 # (2) before a word containing "conftest.", or (3) at the end.
13929 # Note that $ac_compile itself does not contain backslashes and begins
13930 # with a dollar sign (not a hyphen), so the echo should work correctly.
13931 # The option is referenced via a variable to avoid confusing sed.
13932 lt_compile=`echo "$ac_compile" | $SED \
13933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935 -e 's:$: $lt_compiler_flag:'`
13936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13937 (eval "$lt_compile" 2>conftest.err)
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 if (exit $ac_status) && test -s "$ac_outfile"; then
13942 # The compiler can only warn and ignore the option if not recognized
13943 # So say no if there are warnings other than the usual output.
13944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947 lt_cv_prog_compiler_pic_works_CXX=yes
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13954 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13956 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13957 case $lt_prog_compiler_pic_CXX in
13959 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13962 lt_prog_compiler_pic_CXX=
13963 lt_prog_compiler_can_build_shared_CXX=no
13973 # Check to make sure the static flag actually works.
13975 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13978 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13979 $as_echo_n "(cached) " >&6
13981 lt_cv_prog_compiler_static_works_CXX=no
13982 save_LDFLAGS="$LDFLAGS"
13983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13986 # The linker can only warn and ignore the option if not recognized
13987 # So say no if there are warnings
13988 if test -s conftest.err; then
13989 # Append any errors to the config.log.
13990 cat conftest.err 1>&5
13991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993 if diff conftest.exp conftest.er2 >/dev/null; then
13994 lt_cv_prog_compiler_static_works_CXX=yes
13997 lt_cv_prog_compiler_static_works_CXX=yes
14001 LDFLAGS="$save_LDFLAGS"
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14005 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14007 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14010 lt_prog_compiler_static_CXX=
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14018 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14019 $as_echo_n "(cached) " >&6
14021 lt_cv_prog_compiler_c_o_CXX=no
14022 $RM -r conftest 2>/dev/null
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028 lt_compiler_flag="-o out/conftest2.$ac_objext"
14029 # Insert the option either (1) after the last *FLAGS variable, or
14030 # (2) before a word containing "conftest.", or (3) at the end.
14031 # Note that $ac_compile itself does not contain backslashes and begins
14032 # with a dollar sign (not a hyphen), so the echo should work correctly.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>out/conftest.err)
14040 cat out/conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14044 # The compiler can only warn and ignore the option if not recognized
14045 # So say no if there are warnings
14046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14049 lt_cv_prog_compiler_c_o_CXX=yes
14054 # SGI C++ compiler will create directory out/ii_files/ for
14055 # template instantiation
14056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14057 $RM out/* && rmdir out
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14064 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14070 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14071 $as_echo_n "(cached) " >&6
14073 lt_cv_prog_compiler_c_o_CXX=no
14074 $RM -r conftest 2>/dev/null
14078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14080 lt_compiler_flag="-o out/conftest2.$ac_objext"
14081 # Insert the option either (1) after the last *FLAGS variable, or
14082 # (2) before a word containing "conftest.", or (3) at the end.
14083 # Note that $ac_compile itself does not contain backslashes and begins
14084 # with a dollar sign (not a hyphen), so the echo should work correctly.
14085 lt_compile=`echo "$ac_compile" | $SED \
14086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14088 -e 's:$: $lt_compiler_flag:'`
14089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14090 (eval "$lt_compile" 2>out/conftest.err)
14092 cat out/conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14096 # The compiler can only warn and ignore the option if not recognized
14097 # So say no if there are warnings
14098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14101 lt_cv_prog_compiler_c_o_CXX=yes
14106 # SGI C++ compiler will create directory out/ii_files/ for
14107 # template instantiation
14108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14109 $RM out/* && rmdir out
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14116 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14121 hard_links="nottested"
14122 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14123 # do not overwrite the value of need_locks provided by the user
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14125 $as_echo_n "checking if we can lock with hard links... " >&6; }
14128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14130 ln conftest.a conftest.b 2>&5 || hard_links=no
14131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14133 $as_echo "$hard_links" >&6; }
14134 if test "$hard_links" = no; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14136 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14152 # If we're using GNU nm, then we don't want the "-C" option.
14153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14154 # Also, AIX nm treats weak defined symbols like other global defined
14155 # symbols, whereas GNU nm marks them as "W".
14156 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14157 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14159 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14163 export_symbols_cmds_CXX="$ltdll_cmds"
14165 cygwin* | mingw* | cegcc*)
14166 case $cc_basename in
14169 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14170 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14180 $as_echo "$ld_shlibs_CXX" >&6; }
14181 test "$ld_shlibs_CXX" = no && can_build_shared=no
14183 with_gnu_ld_CXX=$with_gnu_ld
14191 # Do we need to explicitly link libc?
14193 case "x$archive_cmds_need_lc_CXX" in
14195 # Assume -lc should be added
14196 archive_cmds_need_lc_CXX=yes
14198 if test "$enable_shared" = yes && test "$GCC" = yes; then
14199 case $archive_cmds_CXX in
14201 # FIXME: we may have to deal with multi-command sequences.
14204 # Test whether the compiler implicitly links with -lc since on some
14205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14206 # to ld, don't add -lc before -lgcc.
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14208 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14209 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14210 $as_echo_n "(cached) " >&6
14213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; } 2>conftest.err; then
14222 libobjs=conftest.$ac_objext
14224 wl=$lt_prog_compiler_wl_CXX
14225 pic_flag=$lt_prog_compiler_pic_CXX
14231 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14232 allow_undefined_flag_CXX=
14233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14234 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }
14239 lt_cv_archive_cmds_need_lc_CXX=no
14241 lt_cv_archive_cmds_need_lc_CXX=yes
14243 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14245 cat conftest.err 1>&5
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14251 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14252 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14325 library_names_spec=
14326 libname_spec='lib$name'
14330 postuninstall_cmds=
14334 shlibpath_overrides_runpath=unknown
14336 dynamic_linker="$host_os ld.so"
14337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338 need_lib_prefix=unknown
14339 hardcode_into_libs=no
14341 # when you set need_version to no, make sure it does not cause -set_version
14342 # flags to be left without arguments
14343 need_version=unknown
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349 shlibpath_var=LIBPATH
14351 # AIX 3 has no versioning support, so we append a major version to the name.
14352 soname_spec='${libname}${release}${shared_ext}$major'
14359 hardcode_into_libs=yes
14360 if test "$host_cpu" = ia64; then
14361 # AIX 5 supports IA64
14362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363 shlibpath_var=LD_LIBRARY_PATH
14365 # With GCC up to 2.95.x, collect2 would create an import file
14366 # for dependence libraries. The import file would start with
14367 # the line `#! .'. This would cause the generated library to
14368 # depend on `.', always an invalid library. This was fixed in
14369 # development snapshots of GCC prior to 3.0.
14371 aix4 | aix4.[01] | aix4.[01].*)
14372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14374 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14377 can_build_shared=no
14381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382 # soname into executable. Probably we can add versioning support to
14383 # collect2, so additional links can be useful in future.
14384 if test "$aix_use_runtimelinking" = yes; then
14385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386 # instead of lib<name>.a to let people know that these are not
14387 # typical AIX shared libraries.
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 # We preserve .a as extension for shared libraries through AIX4.2
14391 # and later when we are not doing run time linking.
14392 library_names_spec='${libname}${release}.a $libname.a'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14395 shlibpath_var=LIBPATH
14402 # Since July 2007 AmigaOS4 officially supports .so libraries.
14403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 library_names_spec='$libname.ixlibrary $libname.a'
14408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14409 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
14415 library_names_spec='${libname}${shared_ext}'
14416 dynamic_linker="$host_os ld.so"
14417 shlibpath_var=LIBRARY_PATH
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429 # the default ld.so.conf also contains /usr/contrib/lib and
14430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431 # libtool to hard-code these into programs
14434 cygwin* | mingw* | pw32* | cegcc*)
14435 version_type=windows
14440 case $GCC,$cc_basename in
14443 library_names_spec='$libname.dll.a'
14444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14445 postinstall_cmds='base_file=`basename \${file}`~
14446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14447 dldir=$destdir/`dirname \$dlpath`~
14448 test -d \$dldir || mkdir -p \$dldir~
14449 $install_prog $dir/$dlname \$dldir/$dlname~
14450 chmod a+x \$dldir/$dlname~
14451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14455 dlpath=$dir/\$dldll~
14457 shlibpath_overrides_runpath=yes
14461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14466 # MinGW DLLs use traditional 'lib' prefix
14467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14470 # pw32 DLLs use 'pw' prefix rather than 'lib'
14471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474 dynamic_linker='Win32 ld.exe'
14479 libname_spec='$name'
14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 library_names_spec='${libname}.dll.lib'
14485 sys_lib_search_path_spec=
14488 for lt_path in $LIB
14491 # Let DOS variable expansion print the short 8.3 style file name.
14492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14496 # Convert to MSYS style.
14497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14500 # Convert to unix form, then to dos form, then back to unix form
14501 # but this time dos style (no spaces!) so that the unix form looks
14502 # like /cygdrive/c/PROGRA~1:/cygdr...
14503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14508 sys_lib_search_path_spec="$LIB"
14509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14510 # It is most probably a Windows format PATH.
14511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14515 # FIXME: find the short name or the path components, as spaces are
14516 # common. (e.g. "Program Files" -> "PROGRA~1")
14520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14521 postinstall_cmds='base_file=`basename \${file}`~
14522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14523 dldir=$destdir/`dirname \$dlpath`~
14524 test -d \$dldir || mkdir -p \$dldir~
14525 $install_prog $dir/$dlname \$dldir/$dlname'
14526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14527 dlpath=$dir/\$dldll~
14529 shlibpath_overrides_runpath=yes
14530 dynamic_linker='Win32 link.exe'
14534 # Assume MSVC wrapper
14535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14536 dynamic_linker='Win32 ld.exe'
14539 # FIXME: first we should search . and the directory the executable is in
14543 darwin* | rhapsody*)
14544 dynamic_linker="$host_os dyld"
14545 version_type=darwin
14548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14549 soname_spec='${libname}${release}${major}$shared_ext'
14550 shlibpath_overrides_runpath=yes
14551 shlibpath_var=DYLD_LIBRARY_PATH
14552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14570 freebsd* | dragonfly*)
14571 # DragonFly does not have aout. When/if they implement a new
14572 # versioning mechanism, adjust this.
14573 if test -x /usr/bin/objformat; then
14574 objformat=`/usr/bin/objformat`
14577 freebsd[123]*) objformat=aout ;;
14578 *) objformat=elf ;;
14581 version_type=freebsd-$objformat
14582 case $version_type in
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14593 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14598 freebsd3.[01]* | freebsdelf3.[01]*)
14599 shlibpath_overrides_runpath=yes
14600 hardcode_into_libs=yes
14602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14604 shlibpath_overrides_runpath=no
14605 hardcode_into_libs=yes
14607 *) # from 4.6 on, and DragonFly
14608 shlibpath_overrides_runpath=yes
14609 hardcode_into_libs=yes
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 hardcode_into_libs=yes
14628 dynamic_linker="$host_os runtime_loader"
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LIBRARY_PATH
14632 shlibpath_overrides_runpath=yes
14633 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14634 hardcode_into_libs=yes
14637 hpux9* | hpux10* | hpux11*)
14638 # Give a soname corresponding to the major version so that dld.sl refuses to
14639 # link against other versions.
14646 hardcode_into_libs=yes
14647 dynamic_linker="$host_os dld.so"
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 if test "X$HPUX_IA64_MODE" = X32; then
14653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14661 hardcode_into_libs=yes
14662 dynamic_linker="$host_os dld.sl"
14663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672 dynamic_linker="$host_os dld.sl"
14673 shlibpath_var=SHLIB_PATH
14674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14679 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14680 postinstall_cmds='chmod 555 $lib'
14681 # or fails outright, so override atomically:
14682 install_override_mode=555
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=no
14694 hardcode_into_libs=yes
14697 irix5* | irix6* | nonstopux*)
14699 nonstopux*) version_type=nonstopux ;;
14701 if test "$lt_cv_prog_gnu_ld" = yes; then
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14712 irix5* | nonstopux*)
14713 libsuff= shlibsuff=
14716 case $LD in # libtool.m4 will add one of these switches to LD
14717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14718 libsuff= shlibsuff= libmagic=32-bit;;
14719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14720 libsuff=32 shlibsuff=N32 libmagic=N32;;
14721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14723 *) libsuff= shlibsuff= libmagic=never-match;;
14727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14728 shlibpath_overrides_runpath=no
14729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14731 hardcode_into_libs=yes
14734 # No shared lib support for Linux oldld, aout, or coff.
14735 linux*oldld* | linux*aout* | linux*coff*)
14739 # This must be Linux ELF.
14740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=no
14750 # Some binutils ld are patched to set DT_RUNPATH
14751 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14752 $as_echo_n "(cached) " >&6
14754 lt_cv_shlibpath_overrides_runpath=no
14755 save_LDFLAGS=$LDFLAGS
14756 save_libdir=$libdir
14757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14770 if ac_fn_cxx_try_link "$LINENO"; then :
14771 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14772 lt_cv_shlibpath_overrides_runpath=yes
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LDFLAGS=$save_LDFLAGS
14778 libdir=$save_libdir
14782 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14784 # This implies no fast_install, which is unacceptable.
14785 # Some rework will be needed to allow for fast_install
14786 # before this can be enabled.
14787 hardcode_into_libs=yes
14789 # Append ld.so.conf contents to the search path
14790 if test -f /etc/ld.so.conf; then
14791 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' ' '`
14792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14795 # We used to test for /lib/ld.so.1 and disable shared libraries on
14796 # powerpc, because MkLinux only supported shared libraries with the
14797 # GNU dynamic linker. Since this was broken with cross compilers,
14798 # most powerpc-linux boxes support dynamic linking these days and
14799 # people can always --disable-shared, the test was removed, and we
14800 # assume the GNU/Linux dynamic linker is in use.
14801 dynamic_linker='GNU/Linux ld.so'
14808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811 dynamic_linker='NetBSD (a.out) ld.so'
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 dynamic_linker='NetBSD ld.elf_so'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 shlibpath_overrides_runpath=yes
14819 hardcode_into_libs=yes
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825 shlibpath_var=LD_LIBRARY_PATH
14826 shlibpath_overrides_runpath=yes
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 shlibpath_overrides_runpath=no
14837 hardcode_into_libs=yes
14838 dynamic_linker='ldqnx.so'
14843 sys_lib_dlsearch_path_spec="/usr/lib"
14845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14848 *) need_version=no ;;
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14855 openbsd2.[89] | openbsd2.[89].*)
14856 shlibpath_overrides_runpath=no
14859 shlibpath_overrides_runpath=yes
14863 shlibpath_overrides_runpath=yes
14868 libname_spec='$name'
14871 library_names_spec='$libname${shared_ext} $libname.a'
14872 dynamic_linker='OS/2 ld.exe'
14873 shlibpath_var=LIBPATH
14876 osf3* | osf4* | osf5*)
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 hardcode_into_libs=yes
14900 # ldd complains unless libraries are executable
14901 postinstall_cmds='chmod +x $lib'
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 shlibpath_overrides_runpath=yes
14910 if test "$with_gnu_ld" = yes; then
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 case $host_vendor in
14923 shlibpath_overrides_runpath=no
14925 runpath_var=LD_RUN_PATH
14933 shlibpath_overrides_runpath=no
14934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14940 if test -d /usr/nec ;then
14942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14943 soname_spec='$libname${shared_ext}.$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14949 version_type=freebsd-elf
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=yes
14956 hardcode_into_libs=yes
14957 if test "$with_gnu_ld" = yes; then
14958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14967 sys_lib_dlsearch_path_spec='/usr/lib'
14971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 shlibpath_overrides_runpath=no
14978 hardcode_into_libs=yes
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984 soname_spec='${libname}${release}${shared_ext}$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14993 $as_echo "$dynamic_linker" >&6; }
14994 test "$dynamic_linker" = no && can_build_shared=no
14996 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14997 if test "$GCC" = yes; then
14998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15001 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15002 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15004 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15005 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15046 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15047 hardcode_action_CXX=
15048 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15049 test -n "$runpath_var_CXX" ||
15050 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15052 # We can hardcode non-existent directories.
15053 if test "$hardcode_direct_CXX" != no &&
15054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15055 # have to relink, otherwise we might link with an installed library
15056 # when we should be linking with a yet-to-be-installed one
15057 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15058 test "$hardcode_minus_L_CXX" != no; then
15059 # Linking always hardcodes the temporary library directory.
15060 hardcode_action_CXX=relink
15062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15063 hardcode_action_CXX=immediate
15066 # We cannot hardcode anything, or else we can only hardcode existing
15068 hardcode_action_CXX=unsupported
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15071 $as_echo "$hardcode_action_CXX" >&6; }
15073 if test "$hardcode_action_CXX" = relink ||
15074 test "$inherit_rpath_CXX" = yes; then
15075 # Fast installation is not supported
15076 enable_fast_install=no
15077 elif test "$shlibpath_overrides_runpath" = yes ||
15078 test "$enable_shared" = no; then
15079 # Fast installation is not necessary
15080 enable_fast_install=needless
15089 fi # test -n "$compiler"
15092 CFLAGS=$lt_save_CFLAGS
15096 with_gnu_ld=$lt_save_with_gnu_ld
15097 lt_cv_path_LDCXX=$lt_cv_path_LD
15098 lt_cv_path_LD=$lt_save_path_LD
15099 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15100 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15101 fi # test "$_lt_caught_CXX_error" != yes
15104 ac_cpp='$CPP $CPPFLAGS'
15105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15121 ac_config_commands="$ac_config_commands libtool"
15126 # Only expand once:
15131 LIBTOOL='${top_srcdir}/scripts/jlibtool'
15142 # Check whether --enable-strict-dependencies was given.
15143 if test "${enable_strict_dependencies+set}" = set; then :
15144 enableval=$enable_strict_dependencies;
15148 docdir='${datadir}/doc/freeradius'
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15150 $as_echo_n "checking docdir... " >&6; }
15152 # Check whether --with-docdir was given.
15153 if test "${with_docdir+set}" = set; then :
15154 withval=$with_docdir; case "$withval" in
15160 [\\/$]* | ?:[\\/]* )
15164 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15172 $as_echo "$docdir" >&6; }
15173 if test "x$docdir" = xno; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15175 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15178 logdir='${localstatedir}/log/radius'
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15180 $as_echo_n "checking logdir... " >&6; }
15182 # Check whether --with-logdir was given.
15183 if test "${with_logdir+set}" = set; then :
15184 withval=$with_logdir; case "$withval" in
15186 as_fn_error $? "Need logdir" "$LINENO" 5
15190 [\\/$]* | ?:[\\/]* )
15194 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15202 $as_echo "$logdir" >&6; }
15204 radacctdir='${logdir}/radacct'
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15206 $as_echo_n "checking radacctdir... " >&6; }
15208 # Check whether --with-radacctdir was given.
15209 if test "${with_radacctdir+set}" = set; then :
15210 withval=$with_radacctdir; case "$withval" in
15212 as_fn_error $? "Need radacctdir" "$LINENO" 5
15216 [\\/$]* | ?:[\\/]* )
15217 radacctdir="$withval"
15220 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15228 $as_echo "$radacctdir" >&6; }
15230 raddbdir='${sysconfdir}/raddb'
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15232 $as_echo_n "checking raddbdir... " >&6; }
15234 # Check whether --with-raddbdir was given.
15235 if test "${with_raddbdir+set}" = set; then :
15236 withval=$with_raddbdir; case "$withval" in
15238 as_fn_error $? "Need raddbdir" "$LINENO" 5
15242 [\\/$]* | ?:[\\/]* )
15243 raddbdir="$withval"
15246 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15254 $as_echo "$raddbdir" >&6; }
15258 # Check whether --with-ascend-binary was given.
15259 if test "${with_ascend_binary+set}" = set; then :
15260 withval=$with_ascend_binary; case "$withval" in
15269 if test "X$ASCEND_BINARY" = "Xyes"; then
15271 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
15277 # Check whether --with-threads was given.
15278 if test "${with_threads+set}" = set; then :
15279 withval=$with_threads; case "$withval" in
15291 # Check whether --with-vmps was given.
15292 if test "${with_vmps+set}" = set; then :
15293 withval=$with_vmps; case "$withval" in
15302 if test "x$WITH_VMPS" = "xyes"; then
15304 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15310 # Check whether --with-dhcp was given.
15311 if test "${with_dhcp+set}" = set; then :
15312 withval=$with_dhcp; case "$withval" in
15321 if test "x$WITH_DHCP" = "xyes"; then
15323 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15330 # Check whether --with-static_modules was given.
15331 if test "${with_static_modules+set}" = set; then :
15332 withval=$with_static_modules;
15333 for i in $withval; do
15334 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15342 # Check whether --with-modules was given.
15343 if test "${with_modules+set}" = set; then :
15344 withval=$with_modules;
15345 for i in $withval; do
15346 MODULES="$MODULES $i"
15352 # Check whether --enable-developer was given.
15353 if test "${enable_developer+set}" = set; then :
15354 enableval=$enable_developer; case "$enableval" in
15365 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
15369 if test "x$developer" != "xno" -a -d $srcdir/.git; then
15375 # Check whether --with-experimental-modules was given.
15376 if test "${with_experimental_modules+set}" = set; then :
15377 withval=$with_experimental_modules; case "$withval" in
15389 # Check whether --with-openssl was given.
15390 if test "${with_openssl+set}" = set; then :
15391 withval=$with_openssl; case "$withval" in
15403 OPENSSL_INCLUDE_DIR=
15405 # Check whether --with-openssl-includes was given.
15406 if test "${with_openssl_includes+set}" = set; then :
15407 withval=$with_openssl_includes; case "$withval" in
15408 *) OPENSSL_INCLUDE_DIR="$withval"
15417 # Check whether --with-openssl-libraries was given.
15418 if test "${with_openssl_libraries+set}" = set; then :
15419 withval=$with_openssl_libraries; case "$withval" in
15420 *) OPENSSL_LIB_DIR="$withval"
15429 # Check whether --with-rlm-FOO-lib-dir was given.
15430 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15431 withval=$with_rlm_FOO_lib_dir; case "$withval" in
15440 # Check whether --with-rlm-FOO-include-dir was given.
15441 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15442 withval=$with_rlm_FOO_include_dir; case "$withval" in
15453 # Check whether --with-udpfromto was given.
15454 if test "${with_udpfromto+set}" = set; then :
15455 withval=$with_udpfromto; case "$withval" in
15466 if test "x$WITH_UDPFROMTO" = "xyes"; then
15468 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15473 CHECKRAD=checkrad.pl
15474 # Extract the first word of "perl", so it can be a program name with args.
15475 set dummy perl; ac_word=$2
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15477 $as_echo_n "checking for $ac_word... " >&6; }
15478 if ${ac_cv_path_PERL+:} false; then :
15479 $as_echo_n "(cached) " >&6
15483 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15493 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15505 PERL=$ac_cv_path_PERL
15506 if test -n "$PERL"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15508 $as_echo "$PERL" >&6; }
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }
15515 if test "x$ac_cv_path_PERL" = "x"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15517 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15519 # Extract the first word of "snmpget", so it can be a program name with args.
15520 set dummy snmpget; ac_word=$2
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15522 $as_echo_n "checking for $ac_word... " >&6; }
15523 if ${ac_cv_path_SNMPGET+:} false; then :
15524 $as_echo_n "(cached) " >&6
15528 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $PATH
15535 test -z "$as_dir" && as_dir=.
15536 for ac_exec_ext in '' $ac_executable_extensions; do
15537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15538 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15549 SNMPGET=$ac_cv_path_SNMPGET
15550 if test -n "$SNMPGET"; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15552 $as_echo "$SNMPGET" >&6; }
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15555 $as_echo "no" >&6; }
15559 if test "x$ac_cv_path_SNMPGET" = "x"; then
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15561 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15564 # Extract the first word of "snmpwalk", so it can be a program name with args.
15565 set dummy snmpwalk; ac_word=$2
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15567 $as_echo_n "checking for $ac_word... " >&6; }
15568 if ${ac_cv_path_SNMPWALK+:} false; then :
15569 $as_echo_n "(cached) " >&6
15573 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15580 test -z "$as_dir" && as_dir=.
15581 for ac_exec_ext in '' $ac_executable_extensions; do
15582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15583 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15594 SNMPWALK=$ac_cv_path_SNMPWALK
15595 if test -n "$SNMPWALK"; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15597 $as_echo "$SNMPWALK" >&6; }
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600 $as_echo "no" >&6; }
15604 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15606 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15609 # Extract the first word of "rusers", so it can be a program name with args.
15610 set dummy rusers; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if ${ac_cv_path_RUSERS+:} false; then :
15614 $as_echo_n "(cached) " >&6
15618 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622 for as_dir in $PATH
15625 test -z "$as_dir" && as_dir=.
15626 for ac_exec_ext in '' $ac_executable_extensions; do
15627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15628 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15636 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15640 RUSERS=$ac_cv_path_RUSERS
15641 if test -n "$RUSERS"; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15643 $as_echo "$RUSERS" >&6; }
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15651 missing_dir=`cd $ac_aux_dir && pwd`
15652 # expand $ac_aux_dir to an absolute path
15653 am_aux_dir=`cd $ac_aux_dir && pwd`
15655 if test x"${MISSING+set}" != xset; then
15656 case $am_aux_dir in
15658 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15660 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15663 # Use eval to expand $SHELL
15664 if eval "$MISSING --run true"; then
15665 am_missing_run="$MISSING --run "
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15669 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15673 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15676 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15682 # Extract the first word of "locate", so it can be a program name with args.
15683 set dummy locate; ac_word=$2
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15685 $as_echo_n "checking for $ac_word... " >&6; }
15686 if ${ac_cv_path_LOCATE+:} false; then :
15687 $as_echo_n "(cached) " >&6
15691 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695 for as_dir in $PATH
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15701 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15712 LOCATE=$ac_cv_path_LOCATE
15713 if test -n "$LOCATE"; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15715 $as_echo "$LOCATE" >&6; }
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15722 # Extract the first word of "dirname", so it can be a program name with args.
15723 set dummy dirname; ac_word=$2
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15725 $as_echo_n "checking for $ac_word... " >&6; }
15726 if ${ac_cv_path_DIRNAME+:} false; then :
15727 $as_echo_n "(cached) " >&6
15731 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 for as_dir in $PATH
15738 test -z "$as_dir" && as_dir=.
15739 for ac_exec_ext in '' $ac_executable_extensions; do
15740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15741 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15752 DIRNAME=$ac_cv_path_DIRNAME
15753 if test -n "$DIRNAME"; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15755 $as_echo "$DIRNAME" >&6; }
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15762 # Extract the first word of "grep", so it can be a program name with args.
15763 set dummy grep; ac_word=$2
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15765 $as_echo_n "checking for $ac_word... " >&6; }
15766 if ${ac_cv_path_GREP+:} false; then :
15767 $as_echo_n "(cached) " >&6
15771 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775 for as_dir in $PATH
15778 test -z "$as_dir" && as_dir=.
15779 for ac_exec_ext in '' $ac_executable_extensions; do
15780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15781 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15792 GREP=$ac_cv_path_GREP
15793 if test -n "$GREP"; then
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15795 $as_echo "$GREP" >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798 $as_echo "no" >&6; }
15805 if test "x$WITH_THREADS" = "xyes"; then
15806 if test $ac_cv_prog_suncc = "yes"; then
15807 CFLAGS="$CFLAGS -mt"
15810 for ac_header in pthread.h
15812 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15813 if test "x$ac_cv_header_pthread_h" = xyes; then :
15814 cat >>confdefs.h <<_ACEOF
15815 #define HAVE_PTHREAD_H 1
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15826 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15827 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15828 $as_echo_n "(cached) " >&6
15830 ac_check_lib_save_LIBS=$LIBS
15831 LIBS="-lpthread $LIBS"
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15835 /* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
15841 char pthread_create ();
15845 return pthread_create ();
15850 if ac_fn_c_try_link "$LINENO"; then :
15851 ac_cv_lib_pthread_pthread_create=yes
15853 ac_cv_lib_pthread_pthread_create=no
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15860 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15861 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15862 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15863 LIBS="-lpthread $LIBS"
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15866 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15867 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15868 $as_echo_n "(cached) " >&6
15870 ac_check_lib_save_LIBS=$LIBS
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15875 /* Override any GCC internal prototype to avoid an error.
15876 Use char because int might match the return type of a GCC
15877 builtin and then its argument prototype would still apply. */
15881 char pthread_create ();
15885 return pthread_create ();
15890 if ac_fn_c_try_link "$LINENO"; then :
15891 ac_cv_lib_c_r_pthread_create=yes
15893 ac_cv_lib_c_r_pthread_create=no
15895 rm -f core conftest.err conftest.$ac_objext \
15896 conftest$ac_exeext conftest.$ac_ext
15897 LIBS=$ac_check_lib_save_LIBS
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
15900 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15901 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
15902 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
15913 if test "x$WITH_THREADS" != "xyes"; then
15915 ac_cv_header_pthread_h="no"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
15920 $as_echo_n "checking for library containing sem_init... " >&6; }
15921 if ${ac_cv_search_sem_init+:} false; then :
15922 $as_echo_n "(cached) " >&6
15924 ac_func_search_save_LIBS=$LIBS
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15928 /* Override any GCC internal prototype to avoid an error.
15929 Use char because int might match the return type of a GCC
15930 builtin and then its argument prototype would still apply. */
15938 return sem_init ();
15943 for ac_lib in '' pthread sem posix4 rt semaphore; do
15944 if test -z "$ac_lib"; then
15945 ac_res="none required"
15948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15950 if ac_fn_c_try_link "$LINENO"; then :
15951 ac_cv_search_sem_init=$ac_res
15953 rm -f core conftest.err conftest.$ac_objext \
15955 if ${ac_cv_search_sem_init+:} false; then :
15959 if ${ac_cv_search_sem_init+:} false; then :
15962 ac_cv_search_sem_init=no
15964 rm conftest.$ac_ext
15965 LIBS=$ac_func_search_save_LIBS
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15968 $as_echo "$ac_cv_search_sem_init" >&6; }
15969 ac_res=$ac_cv_search_sem_init
15970 if test "$ac_res" != no; then :
15971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15974 as_fn_error $? "-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15981 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15982 if ${ac_cv_lib_dl_dlopen+:} false; then :
15983 $as_echo_n "(cached) " >&6
15985 ac_check_lib_save_LIBS=$LIBS
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15990 /* Override any GCC internal prototype to avoid an error.
15991 Use char because int might match the return type of a GCC
15992 builtin and then its argument prototype would still apply. */
16005 if ac_fn_c_try_link "$LINENO"; then :
16006 ac_cv_lib_dl_dlopen=yes
16008 ac_cv_lib_dl_dlopen=no
16010 rm -f core conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16015 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16016 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16017 cat >>confdefs.h <<_ACEOF
16018 #define HAVE_LIBDL 1
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16027 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16028 if ${ac_cv_lib_socket_getsockname+:} false; then :
16029 $as_echo_n "(cached) " >&6
16031 ac_check_lib_save_LIBS=$LIBS
16032 LIBS="-lsocket $LIBS"
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16042 char getsockname ();
16046 return getsockname ();
16051 if ac_fn_c_try_link "$LINENO"; then :
16052 ac_cv_lib_socket_getsockname=yes
16054 ac_cv_lib_socket_getsockname=no
16056 rm -f core conftest.err conftest.$ac_objext \
16057 conftest$ac_exeext conftest.$ac_ext
16058 LIBS=$ac_check_lib_save_LIBS
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16061 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16062 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16063 cat >>confdefs.h <<_ACEOF
16064 #define HAVE_LIBSOCKET 1
16067 LIBS="-lsocket $LIBS"
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16073 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16074 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16075 $as_echo_n "(cached) " >&6
16077 ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lresolv $LIBS"
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16082 /* Override any GCC internal prototype to avoid an error.
16083 Use char because int might match the return type of a GCC
16084 builtin and then its argument prototype would still apply. */
16092 return inet_aton ();
16097 if ac_fn_c_try_link "$LINENO"; then :
16098 ac_cv_lib_resolv_inet_aton=yes
16100 ac_cv_lib_resolv_inet_aton=no
16102 rm -f core conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16104 LIBS=$ac_check_lib_save_LIBS
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16107 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16108 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16109 cat >>confdefs.h <<_ACEOF
16110 #define HAVE_LIBRESOLV 1
16113 LIBS="-lresolv $LIBS"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16119 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16120 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16121 $as_echo_n "(cached) " >&6
16123 ac_check_lib_save_LIBS=$LIBS
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16128 /* Override any GCC internal prototype to avoid an error.
16129 Use char because int might match the return type of a GCC
16130 builtin and then its argument prototype would still apply. */
16138 return inet_ntoa ();
16143 if ac_fn_c_try_link "$LINENO"; then :
16144 ac_cv_lib_nsl_inet_ntoa=yes
16146 ac_cv_lib_nsl_inet_ntoa=no
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16150 LIBS=$ac_check_lib_save_LIBS
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16153 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16154 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16155 cat >>confdefs.h <<_ACEOF
16156 #define HAVE_LIBNSL 1
16165 if test "x$WITH_OPENSSL" = xyes; then
16167 old_LDFLAGS="$LDFLAGS"
16168 if test "x$OPENSSL_LIB_DIR" != "x"; then
16169 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16172 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16173 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16174 $as_echo_n "(cached) " >&6
16176 ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-lcrypto $LIBS"
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16181 /* Override any GCC internal prototype to avoid an error.
16182 Use char because int might match the return type of a GCC
16183 builtin and then its argument prototype would still apply. */
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 ac_cv_lib_crypto_DH_new=yes
16199 ac_cv_lib_crypto_DH_new=no
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16206 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16207 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16209 LIBS="-lcrypto $LIBS"
16211 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16214 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16215 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16216 $as_echo_n "(cached) " >&6
16218 ac_check_lib_save_LIBS=$LIBS
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16238 if ac_fn_c_try_link "$LINENO"; then :
16239 ac_cv_lib_ssl_SSL_new=yes
16241 ac_cv_lib_ssl_SSL_new=no
16243 rm -f core conftest.err conftest.$ac_objext \
16244 conftest$ac_exeext conftest.$ac_ext
16245 LIBS=$ac_check_lib_save_LIBS
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16248 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16249 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16252 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16254 if test "x$OPENSSL_LIB_DIR" != "x"; then
16255 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16257 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16265 LDFLAGS="$old_LDFLAGS"
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16269 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16270 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16271 $as_echo_n "(cached) " >&6
16273 ac_check_lib_save_LIBS=$LIBS
16274 LIBS="-lws2_32 $LIBS"
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16293 if ac_fn_c_try_link "$LINENO"; then :
16294 ac_cv_lib_ws2_32_htonl=yes
16296 ac_cv_lib_ws2_32_htonl=no
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16303 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16304 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_LIBWS2_32 1
16309 LIBS="-lws2_32 $LIBS"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16316 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16317 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16318 $as_echo_n "(cached) " >&6
16320 ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-lpcap $LIBS"
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16325 /* Override any GCC internal prototype to avoid an error.
16326 Use char because int might match the return type of a GCC
16327 builtin and then its argument prototype would still apply. */
16331 char pcap_open_live ();
16335 return pcap_open_live ();
16340 if ac_fn_c_try_link "$LINENO"; then :
16341 ac_cv_lib_pcap_pcap_open_live=yes
16343 ac_cv_lib_pcap_pcap_open_live=no
16345 rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347 LIBS=$ac_check_lib_save_LIBS
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16350 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16351 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16354 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16359 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16365 $as_echo_n "checking for a readline compatible library... " >&6; }
16366 if ${ac_cv_lib_readline+:} false; then :
16367 $as_echo_n "(cached) " >&6
16371 for readline_lib in readline edit editline; do
16372 for termcap_lib in "" termcap curses ncurses; do
16373 if test -z "$termcap_lib"; then
16374 TRY_LIB="-l$readline_lib"
16376 TRY_LIB="-l$readline_lib -l$termcap_lib"
16378 LIBS="$ORIG_LIBS $TRY_LIB"
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16392 return readline ();
16397 if ac_fn_c_try_link "$LINENO"; then :
16398 ac_cv_lib_readline="$TRY_LIB"
16400 rm -f core conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16402 if test -n "$ac_cv_lib_readline"; then
16403 LIBREADLINE="$TRY_LIB"
16408 if test -n "$ac_cv_lib_readline"; then
16412 if test -z "$ac_cv_lib_readline"; then
16413 ac_cv_lib_readline="no"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
16419 $as_echo "$ac_cv_lib_readline" >&6; }
16421 if test "$ac_cv_lib_readline" != "no"; then
16423 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16425 for ac_header in readline.h readline/readline.h
16427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16430 cat >>confdefs.h <<_ACEOF
16431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16439 $as_echo_n "checking whether readline supports history... " >&6; }
16440 if ${ac_cv_lib_readline_history+:} false; then :
16441 $as_echo_n "(cached) " >&6
16444 ac_cv_lib_readline_history="no"
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16454 char add_history ();
16458 return add_history ();
16463 if ac_fn_c_try_link "$LINENO"; then :
16464 ac_cv_lib_readline_history="yes"
16466 rm -f core conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
16471 $as_echo "$ac_cv_lib_readline_history" >&6; }
16472 if test "$ac_cv_lib_readline_history" = "yes"; then
16474 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16476 for ac_header in history.h readline/history.h
16478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16481 cat >>confdefs.h <<_ACEOF
16482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16496 CFLAGS="$CFLAGS -D_ALL_SOURCE"
16499 CFLAGS="$CFLAGS -DDARWIN"
16500 LIBS="-framework DirectoryService $LIBS"
16504 ac_header_dirent=no
16505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16506 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16509 if eval \${$as_ac_Header+:} false; then :
16510 $as_echo_n "(cached) " >&6
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 #include <sys/types.h>
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527 eval "$as_ac_Header=yes"
16529 eval "$as_ac_Header=no"
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 eval ac_res=\$$as_ac_Header
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16535 $as_echo "$ac_res" >&6; }
16536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16537 cat >>confdefs.h <<_ACEOF
16538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16541 ac_header_dirent=$ac_hdr; break
16545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16546 if test $ac_header_dirent = dirent.h; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16548 $as_echo_n "checking for library containing opendir... " >&6; }
16549 if ${ac_cv_search_opendir+:} false; then :
16550 $as_echo_n "(cached) " >&6
16552 ac_func_search_save_LIBS=$LIBS
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16556 /* Override any GCC internal prototype to avoid an error.
16557 Use char because int might match the return type of a GCC
16558 builtin and then its argument prototype would still apply. */
16571 for ac_lib in '' dir; do
16572 if test -z "$ac_lib"; then
16573 ac_res="none required"
16576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16578 if ac_fn_c_try_link "$LINENO"; then :
16579 ac_cv_search_opendir=$ac_res
16581 rm -f core conftest.err conftest.$ac_objext \
16583 if ${ac_cv_search_opendir+:} false; then :
16587 if ${ac_cv_search_opendir+:} false; then :
16590 ac_cv_search_opendir=no
16592 rm conftest.$ac_ext
16593 LIBS=$ac_func_search_save_LIBS
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16596 $as_echo "$ac_cv_search_opendir" >&6; }
16597 ac_res=$ac_cv_search_opendir
16598 if test "$ac_res" != no; then :
16599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16605 $as_echo_n "checking for library containing opendir... " >&6; }
16606 if ${ac_cv_search_opendir+:} false; then :
16607 $as_echo_n "(cached) " >&6
16609 ac_func_search_save_LIBS=$LIBS
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
16628 for ac_lib in '' x; do
16629 if test -z "$ac_lib"; then
16630 ac_res="none required"
16633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16635 if ac_fn_c_try_link "$LINENO"; then :
16636 ac_cv_search_opendir=$ac_res
16638 rm -f core conftest.err conftest.$ac_objext \
16640 if ${ac_cv_search_opendir+:} false; then :
16644 if ${ac_cv_search_opendir+:} false; then :
16647 ac_cv_search_opendir=no
16649 rm conftest.$ac_ext
16650 LIBS=$ac_func_search_save_LIBS
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16653 $as_echo "$ac_cv_search_opendir" >&6; }
16654 ac_res=$ac_cv_search_opendir
16655 if test "$ac_res" != no; then :
16656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16663 $as_echo_n "checking for ANSI C header files... " >&6; }
16664 if ${ac_cv_header_stdc+:} false; then :
16665 $as_echo_n "(cached) " >&6
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <stdlib.h>
16670 #include <stdarg.h>
16671 #include <string.h>
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683 ac_cv_header_stdc=yes
16685 ac_cv_header_stdc=no
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 if test $ac_cv_header_stdc = yes; then
16690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693 #include <string.h>
16696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16697 $EGREP "memchr" >/dev/null 2>&1; then :
16700 ac_cv_header_stdc=no
16706 if test $ac_cv_header_stdc = yes; then
16707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710 #include <stdlib.h>
16713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16714 $EGREP "free" >/dev/null 2>&1; then :
16717 ac_cv_header_stdc=no
16723 if test $ac_cv_header_stdc = yes; then
16724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16725 if test "$cross_compiling" = yes; then :
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16731 #include <stdlib.h>
16732 #if ((' ' & 0x0FF) == 0x020)
16733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16736 # define ISLOWER(c) \
16737 (('a' <= (c) && (c) <= 'i') \
16738 || ('j' <= (c) && (c) <= 'r') \
16739 || ('s' <= (c) && (c) <= 'z'))
16740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16748 for (i = 0; i < 256; i++)
16749 if (XOR (islower (i), ISLOWER (i))
16750 || toupper (i) != TOUPPER (i))
16755 if ac_fn_c_try_run "$LINENO"; then :
16758 ac_cv_header_stdc=no
16760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16761 conftest.$ac_objext conftest.beam conftest.$ac_ext
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16767 $as_echo "$ac_cv_header_stdc" >&6; }
16768 if test $ac_cv_header_stdc = yes; then
16770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16776 if ${ac_cv_header_time+:} false; then :
16777 $as_echo_n "(cached) " >&6
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <sys/types.h>
16782 #include <sys/time.h>
16788 if ((struct tm *) 0)
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795 ac_cv_header_time=yes
16797 ac_cv_header_time=no
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16802 $as_echo "$ac_cv_header_time" >&6; }
16803 if test $ac_cv_header_time = yes; then
16805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16810 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16811 if ${ac_cv_header_sys_wait_h+:} false; then :
16812 $as_echo_n "(cached) " >&6
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16816 #include <sys/types.h>
16817 #include <sys/wait.h>
16818 #ifndef WEXITSTATUS
16819 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16822 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836 ac_cv_header_sys_wait_h=yes
16838 ac_cv_header_sys_wait_h=no
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16843 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16844 if test $ac_cv_header_sys_wait_h = yes; then
16846 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16895 cat >>confdefs.h <<_ACEOF
16896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904 for ac_header in net/if.h
16906 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
16907 # include <sys/socket.h>
16911 if test "x$ac_cv_header_net_if_h" = xyes; then :
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_NET_IF_H 1
16922 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
16923 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
16925 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
16930 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
16932 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16937 LIBS="$LIBS -lpcreposix"
16940 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16941 if test "x$ac_cv_header_regex_h" = xyes; then :
16943 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
16948 if test "x$ac_cv_header_regex_h" = "xyes"; then
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16955 #ifdef REG_EXTENDED
16960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16961 $EGREP "yes" >/dev/null 2>&1; then :
16963 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
16975 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
16978 $as_echo "#define OSFC2 /**/" >>confdefs.h
16982 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
16985 $as_echo "#define OSFSIA /**/" >>confdefs.h
16989 OPENSSL_INCLUDE="-DNO_OPENSSL"
16990 if test "x$WITH_OPENSSL" = xyes; then
16991 if test "x$OPENSSL_LIBS" = "x"; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
16993 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
16995 old_CPPFLAGS=$CPPFLAGS
16996 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
16997 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
16999 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17012 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17014 cat >>confdefs.h <<_ACEOF
17015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17025 if test "x$OPENSSL_LIBS" != "x"; then
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17027 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 #include <openssl/crypto.h>
17031 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17037 $EGREP "yes" >/dev/null 2>&1; then :
17042 if test "x$goodssl" != "xyes"; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 $as_echo "no" >&6; }
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17048 $as_echo "yes" >&6; }
17049 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17050 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17052 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17056 CPPFLAGS=$old_CPPFLAGS
17061 export OPENSSL_LIBS
17063 if test "x$PCAP_LIBS" = x; then
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17065 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17067 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17068 if test "x$ac_cv_header_pcap_h" = xyes; then :
17070 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17075 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17082 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17083 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17084 $as_echo_n "(cached) " >&6
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lpcap $LIBS"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17097 char pcap_fopen_offline ();
17101 return pcap_fopen_offline ();
17106 if ac_fn_c_try_link "$LINENO"; then :
17107 ac_cv_lib_pcap_pcap_fopen_offline=yes
17109 ac_cv_lib_pcap_pcap_fopen_offline=no
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17116 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17117 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17119 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17125 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17126 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17127 $as_echo_n "(cached) " >&6
17129 ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lpcap $LIBS"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17140 char pcap_dump_fopen ();
17144 return pcap_dump_fopen ();
17149 if ac_fn_c_try_link "$LINENO"; then :
17150 ac_cv_lib_pcap_pcap_dump_fopen=yes
17152 ac_cv_lib_pcap_pcap_dump_fopen=no
17154 rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17159 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17160 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17162 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17171 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17172 if test "x$ac_cv_type_off_t" = xyes; then :
17176 cat >>confdefs.h <<_ACEOF
17177 #define off_t long int
17182 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17183 if test "x$ac_cv_type_pid_t" = xyes; then :
17187 cat >>confdefs.h <<_ACEOF
17193 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17194 if test "x$ac_cv_type_size_t" = xyes; then :
17198 cat >>confdefs.h <<_ACEOF
17199 #define size_t unsigned int
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17205 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17206 if ${ac_cv_type_uid_t+:} false; then :
17207 $as_echo_n "(cached) " >&6
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17211 #include <sys/types.h>
17214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17215 $EGREP "uid_t" >/dev/null 2>&1; then :
17216 ac_cv_type_uid_t=yes
17218 ac_cv_type_uid_t=no
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17224 $as_echo "$ac_cv_type_uid_t" >&6; }
17225 if test $ac_cv_type_uid_t = no; then
17227 $as_echo "#define uid_t int" >>confdefs.h
17230 $as_echo "#define gid_t int" >>confdefs.h
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17237 $as_echo_n "checking for socklen_t... " >&6; }
17238 if ${ac_cv_type_socklen_t+:} false; then :
17239 $as_echo_n "(cached) " >&6
17241 ac_cv_type_socklen_t=no
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 #ifdef HAVE_SYS_TYPES_H
17245 #include <sys/types.h>
17247 #ifdef HAVE_SYS_SOCKET_H
17248 #include <sys/socket.h>
17259 if ac_fn_c_try_compile "$LINENO"; then :
17260 ac_cv_type_socklen_t=yes
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17267 $as_echo "$ac_cv_type_socklen_t" >&6; }
17269 if test "$ac_cv_type_socklen_t" != "yes"; then
17271 $as_echo "#define socklen_t int" >>confdefs.h
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17278 $as_echo_n "checking for uint8_t... " >&6; }
17279 if ${ac_cv_type_uint8_t+:} false; then :
17280 $as_echo_n "(cached) " >&6
17282 ac_cv_type_uint8_t=no
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 #ifdef HAVE_INTTYPES_H
17286 #include <inttypes.h>
17288 #ifdef HAVE_STDINT_H
17289 #include <stdint.h>
17300 if ac_fn_c_try_compile "$LINENO"; then :
17301 ac_cv_type_uint8_t=yes
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17308 $as_echo "$ac_cv_type_uint8_t" >&6; }
17310 if test "$ac_cv_type_uint8_t" != "yes"; then
17312 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17319 $as_echo_n "checking for uint16_t... " >&6; }
17320 if ${ac_cv_type_uint16_t+:} false; then :
17321 $as_echo_n "(cached) " >&6
17323 ac_cv_type_uint16_t=no
17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h. */
17326 #ifdef HAVE_INTTYPES_H
17327 #include <inttypes.h>
17329 #ifdef HAVE_STDINT_H
17330 #include <stdint.h>
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342 ac_cv_type_uint16_t=yes
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17349 $as_echo "$ac_cv_type_uint16_t" >&6; }
17351 if test "$ac_cv_type_uint16_t" != "yes"; then
17353 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17360 $as_echo_n "checking for uint32_t... " >&6; }
17361 if ${ac_cv_type_uint32_t+:} false; then :
17362 $as_echo_n "(cached) " >&6
17364 ac_cv_type_uint32_t=no
17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h. */
17367 #ifdef HAVE_INTTYPES_H
17368 #include <inttypes.h>
17370 #ifdef HAVE_STDINT_H
17371 #include <stdint.h>
17382 if ac_fn_c_try_compile "$LINENO"; then :
17383 ac_cv_type_uint32_t=yes
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17390 $as_echo "$ac_cv_type_uint32_t" >&6; }
17392 if test "$ac_cv_type_uint32_t" != "yes"; then
17394 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17399 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17400 #ifdef HAVE_NETINET_IN_H
17401 #include <netinet/in.h>
17405 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17407 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17412 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17413 #ifdef HAVE_NETINET_IN_H
17414 #include <netinet/in.h>
17416 #ifdef HAVE_SYS_SOCKET_H
17417 #include <sys/socket.h>
17421 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17423 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17428 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17429 #ifdef HAVE_NETINET_IN_H
17430 #include <netinet/in.h>
17434 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17436 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17441 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17442 #ifdef HAVE_SYS_TYPES_H
17443 #include <sys/types.h>
17445 #ifdef HAVE_SYS_SOCKET_H
17446 #include <sys/socket.h>
17448 #ifdef HAVE_NETDB_H
17453 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17455 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17498 cat >>confdefs.h <<_ACEOF
17499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17516 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17517 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17518 $as_echo_n "(cached) " >&6
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17524 #include <string.h>
17525 #ifdef HAVE_UNISTD_H
17526 #include <unistd.h>
17528 #ifdef HAVE_CRYPT_H
17531 #ifdef HAVE_ERRNO_H
17534 #ifdef HAVE_RESOURCE_H
17535 #include <resource.h>
17537 #ifdef HAVE_GETOPT_H
17538 #include <getopt.h>
17540 #ifdef HAVE_MALLOC_H
17541 #include <malloc.h>
17546 #ifdef HAVE_UTMPX_H
17549 #ifdef HAVE_SYS_SELECT_H
17550 #include <sys/select.h>
17552 #ifdef HAVE_DLFCN_H
17555 #ifdef HAVE_REGEX_H
17558 #ifdef HAVE_SYSLOG_H
17559 #include <syslog.h>
17561 #ifdef HAVE_INTTYPES_H
17562 #include <inttypes.h>
17564 #ifdef HAVE_STDINT_H
17565 #include <stdint.h>
17567 #ifdef HAVE_ARPA_INET_H
17568 #include <arpa/inet.h>
17574 char *(*pfn) = (char *(*)) $ac_func
17579 if ac_fn_c_try_compile "$LINENO"; then :
17580 eval "radius_cv_decl_needed_$ac_func=no"
17582 eval "radius_cv_decl_needed_$ac_func=yes"
17584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17589 $as_echo "yes" >&6; }
17590 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17591 cat >>confdefs.h <<_ACEOF
17592 #define $radius_tr_decl 1
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17597 $as_echo "no" >&6; }
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17604 $as_echo_n "checking return type of signal handlers... " >&6; }
17605 if ${ac_cv_type_signal+:} false; then :
17606 $as_echo_n "(cached) " >&6
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <sys/types.h>
17611 #include <signal.h>
17616 return *(signal (0, 0)) (0) == 1;
17621 if ac_fn_c_try_compile "$LINENO"; then :
17622 ac_cv_type_signal=int
17624 ac_cv_type_signal=void
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17629 $as_echo "$ac_cv_type_signal" >&6; }
17631 cat >>confdefs.h <<_ACEOF
17632 #define RETSIGTYPE $ac_cv_type_signal
17637 if test "x$ac_cv_header_utmpx_h" = "xyes"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17641 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17648 #ifdef HAVE_STDDEF_H
17649 #include <stddef.h>
17652 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17658 int foo = offsetof(struct utmpx, ut_xtime)
17663 if ac_fn_c_try_compile "$LINENO"; then :
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17671 if test "x$has_element" != "x"; then
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17673 $as_echo "yes" >&6; }
17674 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17677 $as_echo "no" >&6; }
17678 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17681 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17684 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17691 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17697 #include <netinet/in.h>
17698 #ifdef HAVE_STDDEF_H
17699 #include <stddef.h>
17702 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17708 int foo = offsetof(struct in_pktinfo, ipi_addr)
17713 if ac_fn_c_try_compile "$LINENO"; then :
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17720 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17721 if test "x$has_element" != "x"; then
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17723 $as_echo "yes" >&6; }
17724 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17731 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17734 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17740 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 #include <netinet/in.h>
17747 #ifdef HAVE_STDDEF_H
17748 #include <stddef.h>
17751 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17757 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17762 if ac_fn_c_try_compile "$LINENO"; then :
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17770 if test "x$has_element" != "x"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17772 $as_echo "yes" >&6; }
17773 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776 $as_echo "no" >&6; }
17777 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17780 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17783 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17789 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17790 if ${ac_cv_c_const+:} false; then :
17791 $as_echo_n "(cached) " >&6
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17799 /* FIXME: Include the comments suggested by Paul. */
17800 #ifndef __cplusplus
17801 /* Ultrix mips cc rejects this. */
17802 typedef int charset[2];
17804 /* SunOS 4.1.1 cc rejects this. */
17805 char const *const *pcpcc;
17807 /* NEC SVR4.0.2 mips cc rejects this. */
17808 struct point {int x, y;};
17809 static struct point const zero = {0,0};
17810 /* AIX XL C 1.02.0.0 rejects this.
17811 It does not let you subtract one const X* pointer from another in
17812 an arm of an if-expression whose if-part is not a constant
17814 const char *g = "string";
17815 pcpcc = &g + (g ? g-g : 0);
17816 /* HPUX 7.0 cc rejects these. */
17818 ppc = (char**) pcpcc;
17819 pcpcc = (char const *const *) ppc;
17820 { /* SCO 3.2v4 cc rejects this. */
17822 char const *s = 0 ? (char *) 0 : (char const *) 0;
17827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17828 int x[] = {25, 17};
17829 const int *foo = &x[0];
17832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17833 typedef const int *iptr;
17837 { /* AIX XL C 1.02.0.0 rejects this saying
17838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17839 struct s { int j; const int *ap[3]; };
17840 struct s *b; b->j = 5;
17842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17843 const int foo = 10;
17844 if (!foo) return 0;
17846 return !cs[0] && !zero.x;
17853 if ac_fn_c_try_compile "$LINENO"; then :
17858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17861 $as_echo "$ac_cv_c_const" >&6; }
17862 if test $ac_cv_c_const = no; then
17864 $as_echo "#define const /**/" >>confdefs.h
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17870 $as_echo_n "checking type of OS... " >&6; }
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17873 $as_echo "$OS" >&6; }
17874 if test "$OS" = "OS/2"; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17882 $as_echo_n "checking for developer gcc flags... " >&6; }
17883 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
17884 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wformat=2"
17885 CFLAGS="$CFLAGS $devflags"
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
17888 $as_echo "yes. Using $devflags" >&6; }
17891 CFLAGS="$CFLAGS -DNDEBUG"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
17894 $as_echo "no." >&6; }
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
17899 $as_echo_n "checking for TLS... " >&6; }
17900 if test "$cross_compiling" = yes; then :
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17905 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
17907 if ac_fn_c_try_run "$LINENO"; then :
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17913 conftest.$ac_objext conftest.beam conftest.$ac_ext
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
17917 $as_echo "$have_tls" >&6; }
17918 if test "$have_tls" = "yes"; then
17920 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
17927 LIBS="$LIBS $LIBLTDL"
17928 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
17929 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
17931 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17938 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17939 if ${ac_cv_lib_crypt_crypt+:} false; then :
17940 $as_echo_n "(cached) " >&6
17942 ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lcrypt $LIBS"
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17947 /* Override any GCC internal prototype to avoid an error.
17948 Use char because int might match the return type of a GCC
17949 builtin and then its argument prototype would still apply. */
17962 if ac_fn_c_try_link "$LINENO"; then :
17963 ac_cv_lib_crypt_crypt=yes
17965 ac_cv_lib_crypt_crypt=no
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969 LIBS=$ac_check_lib_save_LIBS
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17972 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17973 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17978 if test "$CRYPTLIB" != ""; then
17980 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17983 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
17984 if test "x$ac_cv_func_crypt" = xyes; then :
17986 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
17993 $as_echo_n "checking for setkey in -lcipher... " >&6; }
17994 if ${ac_cv_lib_cipher_setkey+:} false; then :
17995 $as_echo_n "(cached) " >&6
17997 ac_check_lib_save_LIBS=$LIBS
17998 LIBS="-lcipher $LIBS"
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18017 if ac_fn_c_try_link "$LINENO"; then :
18018 ac_cv_lib_cipher_setkey=yes
18020 ac_cv_lib_cipher_setkey=no
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18027 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18028 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18029 CRYPTLIB="${CRYPTLIB} -lcipher"
18036 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18039 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18042 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18044 gethostbyaddrrstyle=""
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18046 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18049 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18050 #ifdef HAVE_NETDB_H
18055 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18061 cat >>confdefs.h <<_ACEOF
18062 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18064 if test $ac_have_decl = 1; then :
18069 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18071 gethostbyaddrrstyle=BSD
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18073 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18079 if test "x$gethostbyaddrrstyle" = "x"; then
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h. */
18089 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18094 if ac_fn_c_try_link "$LINENO"; then :
18097 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18099 gethostbyaddrrstyle=GNU
18102 rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18105 if test "x$gethostbyaddrrstyle" = "x"; then
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18115 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18120 if ac_fn_c_try_link "$LINENO"; then :
18123 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18125 gethostbyaddrrstyle=SYSV
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18131 if test "x$gethostbyaddrrstyle" = "x"; then
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18141 gethostbyaddr(NULL, 0, 0)
18146 if ac_fn_c_try_link "$LINENO"; then :
18149 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18151 gethostbyaddrrstyle=BSD
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18158 if test "x$gethostbyaddrrstyle" = "x"; then
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18160 $as_echo "none! It must not exist, here." >&6; }
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18163 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18166 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18168 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18171 gethostbynamerstyle=""
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18173 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18183 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18188 if ac_fn_c_try_link "$LINENO"; then :
18191 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18193 gethostbynamerstyle=GNU
18196 rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198 if test "x$gethostbynamerstyle" = "x"; then
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18208 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18213 if ac_fn_c_try_link "$LINENO"; then :
18216 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18218 gethostbynamerstyle=SYSV
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18224 if test "x$gethostbynamerstyle" = "x"; then
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18234 gethostbyname(NULL)
18239 if ac_fn_c_try_link "$LINENO"; then :
18242 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18244 gethostbynamerstyle=BSD
18247 rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18251 if test "x$gethostbynamerstyle" = "x"; then
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18253 $as_echo "none! It must not exist, here." >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18256 $as_echo "${gethostbynamerstyle}-style" >&6; }
18259 if test "x$gethostbynamerstyle" = "xBSD"; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18261 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18265 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18268 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18272 $as_echo_n "checking ctime_r() syntax... " >&6; }
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18281 ctime_r(NULL, NULL, 0)
18286 if ac_fn_c_try_link "$LINENO"; then :
18289 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18291 ctimerstyle="SOLARIS"
18294 rm -f core conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296 if test "x$ctimerstyle" = "x"; then
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18305 ctime_r(NULL, NULL)
18310 if ac_fn_c_try_link "$LINENO"; then :
18313 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18315 ctimerstyle="POSIX"
18318 rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18322 if test "x$ctimerstyle" = "x"; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18324 $as_echo "none! It must not exist, here." >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18327 $as_echo "${ctimerstyle}-style" >&6; }
18335 export top_builddir
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18337 $as_echo "top_builddir=$top_builddir" >&6; }
18344 if test "x$EXPERIMENTAL" = "xyes"; then
18345 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18346 mysubdirs=`echo $mysubdirs $bar`
18348 for bar in `cat "${srcdir}"/src/modules/stable`; do
18349 if test -f "${srcdir}"/src/modules/$bar/configure; then
18350 mysubdirs="$mysubdirs src/modules/$bar"
18355 if test "x$EXPERIMENTAL" = "xyes"; then
18356 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18357 MODULES="$MODULES $foo"
18360 for foo in `cat "${srcdir}"/src/modules/stable`; do
18361 MODULES="$MODULES $foo"
18367 subdirs="$subdirs $mysubdirs"
18372 ac_config_commands="$ac_config_commands stamp-h"
18374 ac_config_commands="$ac_config_commands build-radpaths-h"
18376 ac_config_commands="$ac_config_commands main-chmod"
18378 ac_config_commands="$ac_config_commands scripts-chmod"
18384 USE_SHARED_LIBS=$enable_shared
18386 USE_STATIC_LIBS=$enable_static
18394 unset ac_cv_env_LIBS_set
18395 unset ac_cv_env_LIBS_value
18397 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18399 cat >confcache <<\_ACEOF
18400 # This file is a shell script that caches the results of configure
18401 # tests run on this system so they can be shared between configure
18402 # scripts and configure runs, see configure's option --config-cache.
18403 # It is not useful on other systems. If it contains results you don't
18404 # want to keep, you may remove or edit it.
18406 # config.status only pays attention to the cache file if you give it
18407 # the --recheck option to rerun configure.
18409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18411 # following values.
18415 # The following way of writing the cache mishandles newlines in values,
18416 # but we know of no workaround that is simple, portable, and efficient.
18417 # So, we kill variables containing newlines.
18418 # Ultrix sh set writes to stderr and can't be redirected directly,
18419 # and sets the high bit in the cache file unless we assign to the vars.
18421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18422 eval ac_val=\$$ac_var
18426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18430 _ | IFS | as_nl) ;; #(
18431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18432 *) { eval $ac_var=; unset $ac_var;} ;;
18438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18439 *${as_nl}ac_space=\ *)
18440 # `set' does not quote correctly, so add quotes: double-quote
18441 # substitution turns \\\\ into \\, and sed turns \\ into \.
18444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18447 # `set' quotes correctly as required by POSIX, so do not add quotes.
18448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18462 if test -w "$cache_file"; then
18463 if test "x$cache_file" != "x/dev/null"; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18465 $as_echo "$as_me: updating cache $cache_file" >&6;}
18466 if test ! -f "$cache_file" || test -h "$cache_file"; then
18467 cat confcache >"$cache_file"
18469 case $cache_file in #(
18471 mv -f confcache "$cache_file"$$ &&
18472 mv -f "$cache_file"$$ "$cache_file" ;; #(
18474 mv -f confcache "$cache_file" ;;
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18486 # Let make expand exec_prefix.
18487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18489 DEFS=-DHAVE_CONFIG_H
18494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18495 # 1. Remove the extension, and $U if already installed.
18496 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18497 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18499 # will be set to the directory where LIBOBJS objects are built.
18500 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18501 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18503 LIBOBJS=$ac_libobjs
18505 LTLIBOBJS=$ac_ltlibobjs
18510 : "${CONFIG_STATUS=./config.status}"
18512 ac_clean_files_save=$ac_clean_files
18513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18519 # Generated by $as_me.
18520 # Run this file to recreate the current configuration.
18521 # Compiler output produced by configure, useful for debugging
18522 # configure, is in config.log if it exists.
18525 ac_cs_recheck=false
18528 SHELL=\${CONFIG_SHELL-$SHELL}
18531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18532 ## -------------------- ##
18533 ## M4sh Initialization. ##
18534 ## -------------------- ##
18536 # Be more Bourne compatible
18537 DUALCASE=1; export DUALCASE # for MKS sh
18538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18542 # is contrary to our usage. Disable this feature.
18543 alias -g '${1+"$@"}'='"$@"'
18544 setopt NO_GLOB_SUBST
18546 case `(set -o) 2>/dev/null` in #(
18558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18559 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18562 # Prefer a ksh shell builtin over an external printf program on Solaris,
18563 # but without wasting forks for bash or zsh.
18564 if test -z "$BASH_VERSION$ZSH_VERSION" \
18565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18566 as_echo='print -r --'
18567 as_echo_n='print -rn --'
18568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18569 as_echo='printf %s\n'
18570 as_echo_n='printf %s'
18572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18574 as_echo_n='/usr/ucb/echo -n'
18576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18577 as_echo_n_body='eval
18581 expr "X$arg" : "X\\(.*\\)$as_nl";
18582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18586 export as_echo_n_body
18587 as_echo_n='sh -c $as_echo_n_body as_echo'
18589 export as_echo_body
18590 as_echo='sh -c $as_echo_body as_echo'
18593 # The user is always right.
18594 if test "${PATH_SEPARATOR+set}" != set; then
18596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18604 # We need space, tab and new line, in precisely that order. Quoting is
18605 # there to prevent editors from complaining about space-tab.
18606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18607 # splitting by setting IFS to empty value.)
18610 # Find who we are. Look in the path if we contain no directory separator.
18613 *[\\/]* ) as_myself=$0 ;;
18614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615 for as_dir in $PATH
18618 test -z "$as_dir" && as_dir=.
18619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18625 # We did not find ourselves, most probably we were run as `sh COMMAND'
18626 # in which case we are not to be found in the path.
18627 if test "x$as_myself" = x; then
18630 if test ! -f "$as_myself"; then
18631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18635 # Unset variables that we do not need and which cause bugs (e.g. in
18636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18637 # suppresses any "Segmentation fault" message there. '((' could
18638 # trigger a bug in pdksh 5.2.14.
18639 for as_var in BASH_ENV ENV MAIL MAILPATH
18640 do eval test x\${$as_var+set} = xset \
18641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18657 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18658 # ----------------------------------------
18659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18661 # script with STATUS, using 1 if that was 0.
18664 as_status=$1; test $as_status -eq 0 && as_status=1
18666 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18669 $as_echo "$as_me: error: $2" >&2
18670 as_fn_exit $as_status
18674 # as_fn_set_status STATUS
18675 # -----------------------
18676 # Set $? to STATUS, without forking.
18677 as_fn_set_status ()
18680 } # as_fn_set_status
18682 # as_fn_exit STATUS
18683 # -----------------
18684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18688 as_fn_set_status $1
18694 # Portably unset VAR.
18697 { eval $1=; unset $1;}
18699 as_unset=as_fn_unset
18700 # as_fn_append VAR VALUE
18701 # ----------------------
18702 # Append the text in VALUE to the end of the definition contained in VAR. Take
18703 # advantage of any shell optimizations that allow amortized linear growth over
18704 # repeated appends, instead of the typical quadratic growth present in naive
18706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18707 eval 'as_fn_append ()
18718 # as_fn_arith ARG...
18719 # ------------------
18720 # Perform arithmetic evaluation on the ARGs, and store the result in the
18721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18722 # must be portable across $(()) and expr.
18723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18724 eval 'as_fn_arith ()
18731 as_val=`expr "$@" || test $? -eq 1`
18736 if expr a : '\(a\)' >/dev/null 2>&1 &&
18737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18744 as_basename=basename
18749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18755 as_me=`$as_basename -- "$0" ||
18756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18757 X"$0" : 'X\(//\)$' \| \
18758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18760 sed '/^.*\/\([^/][^/]*\)\/*$/{
18774 # Avoid depending upon Character Ranges.
18775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18778 as_cr_digits='0123456789'
18779 as_cr_alnum=$as_cr_Letters$as_cr_digits
18781 ECHO_C= ECHO_N= ECHO_T=
18782 case `echo -n x` in #(((((
18784 case `echo 'xy\c'` in
18785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18794 rm -f conf$$ conf$$.exe conf$$.file
18795 if test -d conf$$.dir; then
18796 rm -f conf$$.dir/conf$$.file
18799 mkdir conf$$.dir 2>/dev/null
18801 if (echo >conf$$.file) 2>/dev/null; then
18802 if ln -s conf$$.file conf$$ 2>/dev/null; then
18804 # ... but there are two gotchas:
18805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18807 # In both cases, we have to default to `cp -p'.
18808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18810 elif ln conf$$.file conf$$ 2>/dev/null; then
18818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18819 rmdir conf$$.dir 2>/dev/null
18824 # Create "$as_dir" as a directory, including parents if necessary.
18829 -*) as_dir=./$as_dir;;
18831 test -d "$as_dir" || eval $as_mkdir_p || {
18835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18836 *) as_qdir=$as_dir;;
18838 as_dirs="'$as_qdir' $as_dirs"
18839 as_dir=`$as_dirname -- "$as_dir" ||
18840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18841 X"$as_dir" : 'X\(//\)[^/]' \| \
18842 X"$as_dir" : 'X\(//\)$' \| \
18843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18844 $as_echo X"$as_dir" |
18845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18849 /^X\(\/\/\)[^/].*/{
18862 test -d "$as_dir" && break
18864 test -z "$as_dirs" || eval "mkdir $as_dirs"
18865 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18869 if mkdir -p . 2>/dev/null; then
18870 as_mkdir_p='mkdir -p "$as_dir"'
18872 test -d ./-p && rmdir ./-p
18876 if test -x / >/dev/null 2>&1; then
18877 as_test_x='test -x'
18879 if ls -dL / >/dev/null 2>&1; then
18886 if test -d "$1"; then
18892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18893 ???[sx]*):;;*)false;;esac;fi
18897 as_executable_p=$as_test_x
18899 # Sed expression to map a string onto a valid CPP name.
18900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18902 # Sed expression to map a string onto a valid variable name.
18903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18907 ## ----------------------------------- ##
18908 ## Main body of $CONFIG_STATUS script. ##
18909 ## ----------------------------------- ##
18911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18914 # Save the log message, to keep $0 and so on meaningful, and to
18915 # report actual input values of CONFIG_FILES etc. instead of their
18916 # values after options handling.
18918 This file was extended by $as_me, which was
18919 generated by GNU Autoconf 2.68. Invocation command line was
18921 CONFIG_FILES = $CONFIG_FILES
18922 CONFIG_HEADERS = $CONFIG_HEADERS
18923 CONFIG_LINKS = $CONFIG_LINKS
18924 CONFIG_COMMANDS = $CONFIG_COMMANDS
18927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18932 case $ac_config_files in *"
18933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18936 case $ac_config_headers in *"
18937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18942 # Files that config.status was made for.
18943 config_files="$ac_config_files"
18944 config_headers="$ac_config_headers"
18945 config_commands="$ac_config_commands"
18949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18951 \`$as_me' instantiates files and other configuration actions
18952 from templates according to the current configuration. Unless the files
18953 and actions are specified as TAGs, all are instantiated by default.
18955 Usage: $0 [OPTION]... [TAG]...
18957 -h, --help print this help, then exit
18958 -V, --version print version number and configuration settings, then exit
18959 --config print configuration, then exit
18960 -q, --quiet, --silent
18961 do not print progress messages
18962 -d, --debug don't remove temporary files
18963 --recheck update $as_me by reconfiguring in the same conditions
18964 --file=FILE[:TEMPLATE]
18965 instantiate the configuration file FILE
18966 --header=FILE[:TEMPLATE]
18967 instantiate the configuration header FILE
18969 Configuration files:
18972 Configuration headers:
18975 Configuration commands:
18978 Report bugs to the package provider."
18981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18985 configured by $0, generated by GNU Autoconf 2.68,
18986 with options \\"\$ac_cs_config\\"
18988 Copyright (C) 2010 Free Software Foundation, Inc.
18989 This config.status script is free software; the Free Software Foundation
18990 gives unlimited permission to copy, distribute and modify it."
18995 test -n "\$AWK" || AWK=awk
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18999 # The default lists apply if the user does not specify any file.
19005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19022 # Handling of the options.
19023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19026 $as_echo "$ac_cs_version"; exit ;;
19027 --config | --confi | --conf | --con | --co | --c )
19028 $as_echo "$ac_cs_config"; exit ;;
19029 --debug | --debu | --deb | --de | --d | -d )
19031 --file | --fil | --fi | --f )
19034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19035 '') as_fn_error $? "missing file argument" ;;
19037 as_fn_append CONFIG_FILES " '$ac_optarg'"
19038 ac_need_defaults=false;;
19039 --header | --heade | --head | --hea )
19042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19045 ac_need_defaults=false;;
19047 # Conflict between --help and --header
19048 as_fn_error $? "ambiguous option: \`$1'
19049 Try \`$0 --help' for more information.";;
19050 --help | --hel | -h )
19051 $as_echo "$ac_cs_usage"; exit ;;
19052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19056 # This is an error.
19057 -*) as_fn_error $? "unrecognized option: \`$1'
19058 Try \`$0 --help' for more information." ;;
19060 *) as_fn_append ac_config_targets " $1"
19061 ac_need_defaults=false ;;
19067 ac_configure_extra_args=
19069 if $ac_cs_silent; then
19071 ac_configure_extra_args="$ac_configure_extra_args --silent"
19075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19076 if \$ac_cs_recheck; then
19077 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19080 CONFIG_SHELL='$SHELL'
19081 export CONFIG_SHELL
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19091 ## Running $as_me. ##
19097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19103 # The HP-UX ksh and POSIX shell print the target directory to stdout
19104 # if CDPATH is set.
19105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19107 sed_quote_subst='$sed_quote_subst'
19108 double_quote_subst='$double_quote_subst'
19109 delay_variable_subst='$delay_variable_subst'
19110 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19111 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19112 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19113 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19114 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19115 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19116 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19117 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19118 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19119 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19120 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19121 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19122 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19123 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19124 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19125 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19126 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19127 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19128 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19129 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19130 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19131 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19132 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19133 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19134 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19135 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19136 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19137 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19138 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19139 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19140 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19141 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19142 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19143 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19144 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19145 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19146 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19147 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19148 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19149 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19150 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19151 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19152 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19153 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19154 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19155 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19156 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19157 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19158 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19159 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19160 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19161 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19162 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19165 lt_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"`'
19166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19171 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19176 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19200 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19209 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19210 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19211 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19212 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19213 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19214 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19233 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19234 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19235 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19236 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19237 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19238 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19239 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19240 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19241 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19242 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19243 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19244 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19245 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19246 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19247 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19248 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19249 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19250 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19251 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19252 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19253 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19254 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19255 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19256 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19257 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19258 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19259 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19260 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19261 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19262 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19263 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19264 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19265 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19266 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19267 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19268 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19269 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19270 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19271 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19272 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19273 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19274 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19275 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19276 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19277 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19278 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19279 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19280 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19281 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19282 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19283 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19284 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19285 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19286 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19287 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19288 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19289 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19290 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19291 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19292 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19293 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19294 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19297 LTCFLAGS='$LTCFLAGS'
19298 compiler='$compiler_DEFAULT'
19300 # A function that is used when there is no print builtin or printf.
19301 func_fallback_echo ()
19303 eval 'cat <<_LTECHO_EOF
19308 # Quote evaled strings.
19322 deplibs_check_method \
19327 sharedlib_from_linklib_cmd \
19330 archiver_list_spec \
19336 lt_cv_sys_global_symbol_pipe \
19337 lt_cv_sys_global_symbol_to_cdecl \
19338 lt_cv_sys_global_symbol_to_c_name_address \
19339 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19340 nm_file_list_spec \
19341 lt_prog_compiler_no_builtin_flag \
19342 lt_prog_compiler_pic \
19343 lt_prog_compiler_wl \
19344 lt_prog_compiler_static \
19345 lt_cv_prog_compiler_c_o \
19354 export_dynamic_flag_spec \
19355 whole_archive_flag_spec \
19356 compiler_needs_object \
19358 allow_undefined_flag \
19359 no_undefined_flag \
19360 hardcode_libdir_flag_spec \
19361 hardcode_libdir_flag_spec_ld \
19362 hardcode_libdir_separator \
19366 variables_saved_for_relink \
19368 library_names_spec \
19370 install_override_mode \
19374 compiler_lib_search_dirs \
19379 compiler_lib_search_path \
19383 lt_prog_compiler_no_builtin_flag_CXX \
19384 lt_prog_compiler_pic_CXX \
19385 lt_prog_compiler_wl_CXX \
19386 lt_prog_compiler_static_CXX \
19387 lt_cv_prog_compiler_c_o_CXX \
19388 export_dynamic_flag_spec_CXX \
19389 whole_archive_flag_spec_CXX \
19390 compiler_needs_object_CXX \
19392 allow_undefined_flag_CXX \
19393 no_undefined_flag_CXX \
19394 hardcode_libdir_flag_spec_CXX \
19395 hardcode_libdir_flag_spec_ld_CXX \
19396 hardcode_libdir_separator_CXX \
19397 exclude_expsyms_CXX \
19398 include_expsyms_CXX \
19399 file_list_spec_CXX \
19400 compiler_lib_search_dirs_CXX \
19401 predep_objects_CXX \
19402 postdep_objects_CXX \
19405 compiler_lib_search_path_CXX; do
19406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19407 *[\\\\\\\`\\"\\\$]*)
19408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19416 # Double-quote double-evaled strings.
19417 for var in reload_cmds \
19418 old_postinstall_cmds \
19419 old_postuninstall_cmds \
19421 extract_expsyms_cmds \
19422 old_archive_from_new_cmds \
19423 old_archive_from_expsyms_cmds \
19425 archive_expsym_cmds \
19427 module_expsym_cmds \
19428 export_symbols_cmds \
19432 postuninstall_cmds \
19434 sys_lib_search_path_spec \
19435 sys_lib_dlsearch_path_spec \
19437 old_archive_cmds_CXX \
19438 old_archive_from_new_cmds_CXX \
19439 old_archive_from_expsyms_cmds_CXX \
19441 archive_expsym_cmds_CXX \
19443 module_expsym_cmds_CXX \
19444 export_symbols_cmds_CXX \
19446 postlink_cmds_CXX; do
19447 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19448 *[\\\\\\\`\\"\\\$]*)
19449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19457 xsi_shell='$xsi_shell'
19458 lt_shell_append='$lt_shell_append'
19460 # See if we are running on zsh, and set the options which allow our
19461 # commands through without removal of \ escapes INIT.
19462 if test -n "\${ZSH_VERSION+set}" ; then
19463 setopt NO_GLOB_SUBST
19469 TIMESTAMP='$TIMESTAMP'
19480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19482 # Handling of arguments.
19483 for ac_config_target in $ac_config_targets
19485 case $ac_config_target in
19486 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19488 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19489 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19490 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19491 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19492 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19493 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19494 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19495 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19496 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19497 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19498 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19499 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19500 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19501 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19502 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19503 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19504 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19505 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19507 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19512 # If the user did not use the arguments to specify the items to instantiate,
19513 # then the envvar interface is used. Set only those that are not.
19514 # We use the long form for the default assignment because of an extremely
19515 # bizarre bug on SunOS 4.1.3.
19516 if $ac_need_defaults; then
19517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19522 # Have a temporary directory for convenience. Make it in the build tree
19523 # simply because there is no reason against having it here, and in addition,
19524 # creating and moving files from /tmp can sometimes cause problems.
19525 # Hook for its removal unless debugging.
19526 # Note that there is a small window in which the directory will not be cleaned:
19527 # after its creation but before its name has been assigned to `$tmp'.
19531 trap 'exit_status=$?
19532 : "${ac_tmp:=$tmp}"
19533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19535 trap 'as_fn_exit 1' 1 2 13 15
19537 # Create a (secure) tmp directory for tmp files.
19540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19544 tmp=./conf$$-$RANDOM
19545 (umask 077 && mkdir "$tmp")
19546 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19549 # Set up the scripts for CONFIG_FILES section.
19550 # No need to generate them if there are no CONFIG_FILES.
19551 # This happens for instance with `./config.status config.h'.
19552 if test -n "$CONFIG_FILES"; then
19555 ac_cr=`echo X | tr X '\015'`
19556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19557 # But we know of no other shell where ac_cr would be empty at this
19558 # point, so we can use a bashism as a fallback.
19559 if test "x$ac_cr" = x; then
19560 eval ac_cr=\$\'\\r\'
19562 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19566 ac_cs_awk_cr=$ac_cr
19569 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19574 echo "cat >conf$$subs.awk <<_ACEOF" &&
19575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19577 } >conf$$subs.sh ||
19578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19581 for ac_last_try in false false false false false :; do
19582 . ./conf$$subs.sh ||
19583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19586 if test $ac_delim_n = $ac_delim_num; then
19588 elif $ac_last_try; then
19589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19594 rm -f conf$$subs.sh
19596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19601 s/^/S["/; s/!.*/"]=/
19611 s/\(.\{148\}\)..*/\1/
19613 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19625 s/\(.\{148\}\)..*/\1/
19627 s/["\\]/\\&/g; s/^/"/; s/$/"/
19631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19636 ' <conf$$subs.awk | sed '
19641 ' >>$CONFIG_STATUS || ac_write_fail=1
19642 rm -f conf$$subs.awk
19643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19645 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19646 for (key in S) S_is_set[key] = 1
19652 nfields = split(line, field, "@")
19654 len = length(field[1])
19655 for (i = 2; i < nfields; i++) {
19657 keylen = length(key)
19658 if (S_is_set[key]) {
19660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661 len += length(value) + length(field[++i])
19672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19677 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19678 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19681 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19682 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19683 # trailing colons and then remove the whole line if VPATH becomes empty
19684 # (actually we leave an empty line to preserve line numbers).
19685 if test "x$srcdir" = x.; then
19686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 fi # test -n "$CONFIG_FILES"
19707 # Set up the scripts for CONFIG_HEADERS section.
19708 # No need to generate them if there are no CONFIG_HEADERS.
19709 # This happens for instance with `./config.status Makefile'.
19710 if test -n "$CONFIG_HEADERS"; then
19711 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19715 # Transform confdefs.h into an awk script `defines.awk', embedded as
19716 # here-document in config.status, that substitutes the proper values into
19717 # config.h.in to produce config.h.
19719 # Create a delimiter string that does not exist in confdefs.h, to ease
19720 # handling of long lines.
19722 for ac_last_try in false false :; do
19723 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19724 if test -z "$ac_tt"; then
19726 elif $ac_last_try; then
19727 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19733 # For the awk script, D is an array of macro values keyed by name,
19734 # likewise P contains macro parameters if any. Preserve backslash
19735 # newline sequences.
19737 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19739 s/.\{148\}/&'"$ac_delim"'/g
19742 s/^[ ]*#[ ]*define[ ][ ]*/ /
19749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19756 D["\1"]=" \3\\\\\\n"\\/p
19758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19763 s/.\{148\}/&'"$ac_delim"'/g
19768 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19771 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19773 ' <confdefs.h | sed '
19774 s/'"$ac_delim"'/"\\\
19775 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 for (key in D) D_is_set[key] = 1
19781 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19783 split(line, arg, " ")
19784 if (arg[1] == "#") {
19788 defundef = substr(arg[1], 2)
19791 split(mac1, mac2, "(") #)
19793 prefix = substr(line, 1, index(line, defundef) - 1)
19794 if (D_is_set[macro]) {
19795 # Preserve the white space surrounding the "#".
19796 print prefix "define", macro P[macro] D[macro]
19799 # Replace #undef with comments. This is necessary, for example,
19800 # in the case of _POSIX_SOURCE, which is predefined and required
19801 # on some systems where configure will not decide to define it.
19802 if (defundef == "undef") {
19803 print "/*", prefix defundef, macro, "*/"
19811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19812 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19813 fi # test -n "$CONFIG_HEADERS"
19816 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19821 :[FHLC]) ac_mode=$ac_tag; continue;;
19823 case $ac_mode$ac_tag in
19825 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19826 :[FH]-) ac_tag=-:-;;
19827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19844 -) ac_f="$ac_tmp/stdin";;
19845 *) # Look for the file first in the build tree, then in the source tree
19846 # (if the path is not absolute). The absolute path cannot be DOS-style,
19847 # because $ac_f cannot contain `:'.
19851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19853 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19855 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19856 as_fn_append ac_file_inputs " '$ac_f'"
19859 # Let's still pretend it is `configure' which instantiates (i.e., don't
19860 # use $as_me), people would be surprised to read:
19861 # /* config.h. Generated by config.status. */
19862 configure_input='Generated from '`
19863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19865 if test x"$ac_file" != x-; then
19866 configure_input="$ac_file. $configure_input"
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19868 $as_echo "$as_me: creating $ac_file" >&6;}
19870 # Neutralize special characters interpreted by sed in replacement strings.
19871 case $configure_input in #(
19872 *\&* | *\|* | *\\* )
19873 ac_sed_conf_input=`$as_echo "$configure_input" |
19874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19875 *) ac_sed_conf_input=$configure_input;;
19879 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19885 ac_dir=`$as_dirname -- "$ac_file" ||
19886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19887 X"$ac_file" : 'X\(//\)[^/]' \| \
19888 X"$ac_file" : 'X\(//\)$' \| \
19889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19890 $as_echo X"$ac_file" |
19891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19895 /^X\(\/\/\)[^/].*/{
19908 as_dir="$ac_dir"; as_fn_mkdir_p
19912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19915 # A ".." for each directory in $ac_dir_suffix.
19916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19917 case $ac_top_builddir_sub in
19918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19922 ac_abs_top_builddir=$ac_pwd
19923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19924 # for backward compatibility:
19925 ac_top_builddir=$ac_top_build_prefix
19928 .) # We are building in place.
19930 ac_top_srcdir=$ac_top_builddir_sub
19931 ac_abs_top_srcdir=$ac_pwd ;;
19932 [\\/]* | ?:[\\/]* ) # Absolute name.
19933 ac_srcdir=$srcdir$ac_dir_suffix;
19934 ac_top_srcdir=$srcdir
19935 ac_abs_top_srcdir=$srcdir ;;
19936 *) # Relative name.
19937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19938 ac_top_srcdir=$ac_top_build_prefix$srcdir
19939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953 # If the template does not know about datarootdir, expand it.
19954 # FIXME: This hack should be removed a few years after 2.60.
19955 ac_datarootdir_hack=; ac_datarootdir_seen=
19966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19967 *datarootdir*) ac_datarootdir_seen=yes;;
19968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973 ac_datarootdir_hack='
19974 s&@datadir@&$datadir&g
19975 s&@docdir@&$docdir&g
19976 s&@infodir@&$infodir&g
19977 s&@localedir@&$localedir&g
19978 s&@mandir@&$mandir&g
19979 s&\\\${datarootdir}&$datarootdir&g' ;;
19983 # Neutralize VPATH when `$srcdir' = `.'.
19984 # Shell code in configure.ac might set extrasub.
19985 # FIXME: do we really want to maintain this feature?
19986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987 ac_sed_extra="$ac_vpsub
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19993 s|@configure_input@|$ac_sed_conf_input|;t t
19994 s&@top_builddir@&$ac_top_builddir_sub&;t t
19995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19996 s&@srcdir@&$ac_srcdir&;t t
19997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19998 s&@top_srcdir@&$ac_top_srcdir&;t t
19999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20000 s&@builddir@&$ac_builddir&;t t
20001 s&@abs_builddir@&$ac_abs_builddir&;t t
20002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20003 $ac_datarootdir_hack
20005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20006 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20009 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20011 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20013 which seems to be undefined. Please make sure it is defined" >&5
20014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20015 which seems to be undefined. Please make sure it is defined" >&2;}
20017 rm -f "$ac_tmp/stdin"
20019 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20020 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20028 if test x"$ac_file" != x-; then
20030 $as_echo "/* $configure_input */" \
20031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20032 } >"$ac_tmp/config.h" \
20033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20034 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20039 mv "$ac_tmp/config.h" "$ac_file" \
20040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20043 $as_echo "/* $configure_input */" \
20044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20045 || as_fn_error $? "could not create -" "$LINENO" 5
20049 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20050 $as_echo "$as_me: executing $ac_file commands" >&6;}
20055 case $ac_file$ac_mode in
20058 # See if we are running on zsh, and set the options which allow our
20059 # commands through without removal of \ escapes.
20060 if test -n "${ZSH_VERSION+set}" ; then
20061 setopt NO_GLOB_SUBST
20064 cfgfile="${ofile}T"
20065 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20068 cat <<_LT_EOF >> "$cfgfile"
20071 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20072 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20076 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20077 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20079 # Written by Gordon Matzigkeit, 1996
20081 # This file is part of GNU Libtool.
20083 # GNU Libtool is free software; you can redistribute it and/or
20084 # modify it under the terms of the GNU General Public License as
20085 # published by the Free Software Foundation; either version 2 of
20086 # the License, or (at your option) any later version.
20088 # As a special exception to the GNU General Public License,
20089 # if you distribute this file as part of a program or library that
20090 # is built using GNU Libtool, you may include this file under the
20091 # same distribution terms that you use for the rest of that program.
20093 # GNU Libtool is distributed in the hope that it will be useful,
20094 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20096 # GNU General Public License for more details.
20098 # You should have received a copy of the GNU General Public License
20099 # along with GNU Libtool; see the file COPYING. If not, a copy
20100 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20101 # obtained by writing to the Free Software Foundation, Inc.,
20102 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20105 # The names of the tagged configurations supported by this script.
20106 available_tags="CXX "
20108 # ### BEGIN LIBTOOL CONFIG
20110 # Which release of libtool.m4 was used?
20111 macro_version=$macro_version
20112 macro_revision=$macro_revision
20114 # Whether or not to build shared libraries.
20115 build_libtool_libs=$enable_shared
20117 # Whether or not to build static libraries.
20118 build_old_libs=$enable_static
20120 # What type of objects to build.
20123 # Whether or not to optimize for fast installation.
20124 fast_install=$enable_fast_install
20126 # Shell to use when invoking shell scripts.
20129 # An echo program that protects backslashes.
20133 host_alias=$host_alias
20137 # The build system.
20138 build_alias=$build_alias
20142 # A sed program that does not truncate output.
20145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20146 Xsed="\$SED -e 1s/^X//"
20148 # A grep program that handles long lines.
20154 # A literal string matcher.
20157 # A BSD- or MS-compatible name lister.
20160 # Whether we need soft or hard links.
20163 # What is the maximum length of a command?
20164 max_cmd_len=$max_cmd_len
20166 # Object file suffix (normally "o").
20169 # Executable file suffix (normally "").
20172 # whether the shell understands "unset".
20175 # turn spaces into newlines.
20178 # turn newlines into spaces.
20181 # convert \$build file names to \$host format.
20182 to_host_file_cmd=$lt_cv_to_host_file_cmd
20184 # convert \$build files to toolchain format.
20185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20187 # An object symbol dumper.
20188 OBJDUMP=$lt_OBJDUMP
20190 # Method to check whether dependent libraries are shared objects.
20191 deplibs_check_method=$lt_deplibs_check_method
20193 # Command to use when deplibs_check_method = "file_magic".
20194 file_magic_cmd=$lt_file_magic_cmd
20196 # How to find potential files when deplibs_check_method = "file_magic".
20197 file_magic_glob=$lt_file_magic_glob
20199 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20200 want_nocaseglob=$lt_want_nocaseglob
20202 # DLL creation program.
20203 DLLTOOL=$lt_DLLTOOL
20205 # Command to associate shared and link libraries.
20206 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20211 # Flags to create an archive.
20212 AR_FLAGS=$lt_AR_FLAGS
20214 # How to feed a file listing to the archiver.
20215 archiver_list_spec=$lt_archiver_list_spec
20217 # A symbol stripping program.
20220 # Commands used to install an old-style archive.
20222 old_postinstall_cmds=$lt_old_postinstall_cmds
20223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20225 # Whether to use a lock for old archive extraction.
20226 lock_old_archive_extraction=$lock_old_archive_extraction
20231 # LTCC compiler flags.
20232 LTCFLAGS=$lt_CFLAGS
20234 # Take the output of nm and produce a listing of raw symbols and C names.
20235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20237 # Transform the output of nm in a proper C declaration.
20238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20240 # Transform the output of nm in a C name address pair.
20241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20243 # Transform the output of nm in a C name address pair when lib prefix is needed.
20244 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20246 # Specify filename containing input files for \$NM.
20247 nm_file_list_spec=$lt_nm_file_list_spec
20249 # The root where to search for dependent libraries,and in which our libraries should be installed.
20250 lt_sysroot=$lt_sysroot
20252 # The name of the directory that contains temporary libtool files.
20255 # Used to examine libraries when file_magic_cmd begins with "file".
20256 MAGIC_CMD=$MAGIC_CMD
20258 # Must we lock files when doing compilation?
20259 need_locks=$lt_need_locks
20262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20265 DSYMUTIL=$lt_DSYMUTIL
20267 # Tool to change global to local symbols on Mac OS X.
20270 # Tool to manipulate fat objects and archives on Mac OS X.
20273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20277 OTOOL64=$lt_OTOOL64
20279 # Old archive suffix (normally "a").
20282 # Shared library suffix (normally ".so").
20283 shrext_cmds=$lt_shrext_cmds
20285 # The commands to extract the exported symbol list from a shared archive.
20286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20288 # Variables whose values should be saved in libtool wrapper scripts and
20289 # restored at link time.
20290 variables_saved_for_relink=$lt_variables_saved_for_relink
20292 # Do we need the "lib" prefix for modules?
20293 need_lib_prefix=$need_lib_prefix
20295 # Do we need a version for libraries?
20296 need_version=$need_version
20298 # Library versioning type.
20299 version_type=$version_type
20301 # Shared library runtime path variable.
20302 runpath_var=$runpath_var
20304 # Shared library path variable.
20305 shlibpath_var=$shlibpath_var
20307 # Is shlibpath searched before the hard-coded library search path?
20308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20310 # Format of library name prefix.
20311 libname_spec=$lt_libname_spec
20313 # List of archive names. First name is the real one, the rest are links.
20314 # The last name is the one that the linker finds with -lNAME
20315 library_names_spec=$lt_library_names_spec
20317 # The coded name of the library, if different from the real name.
20318 soname_spec=$lt_soname_spec
20320 # Permission mode override for installation of shared libraries.
20321 install_override_mode=$lt_install_override_mode
20323 # Command to use after installation of a shared archive.
20324 postinstall_cmds=$lt_postinstall_cmds
20326 # Command to use after uninstallation of a shared archive.
20327 postuninstall_cmds=$lt_postuninstall_cmds
20329 # Commands used to finish a libtool library installation in a directory.
20330 finish_cmds=$lt_finish_cmds
20332 # As "finish_cmds", except a single script fragment to be evaled but
20334 finish_eval=$lt_finish_eval
20336 # Whether we should hardcode library paths into libraries.
20337 hardcode_into_libs=$hardcode_into_libs
20339 # Compile-time system search path for libraries.
20340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20342 # Run-time system search path for libraries.
20343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20345 # Whether dlopen is supported.
20346 dlopen_support=$enable_dlopen
20348 # Whether dlopen of programs is supported.
20349 dlopen_self=$enable_dlopen_self
20351 # Whether dlopen of statically linked programs is supported.
20352 dlopen_self_static=$enable_dlopen_self_static
20354 # Commands to strip libraries.
20355 old_striplib=$lt_old_striplib
20356 striplib=$lt_striplib
20359 # The linker used to build libraries.
20362 # How to create reloadable object files.
20363 reload_flag=$lt_reload_flag
20364 reload_cmds=$lt_reload_cmds
20366 # Commands used to build an old-style archive.
20367 old_archive_cmds=$lt_old_archive_cmds
20369 # A language specific compiler.
20372 # Is the compiler the GNU compiler?
20375 # Compiler flag to turn off builtin functions.
20376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20378 # Additional compiler flags for building library objects.
20379 pic_flag=$lt_lt_prog_compiler_pic
20381 # How to pass a linker flag through the compiler.
20382 wl=$lt_lt_prog_compiler_wl
20384 # Compiler flag to prevent dynamic linking.
20385 link_static_flag=$lt_lt_prog_compiler_static
20387 # Does compiler simultaneously support -c and -o options?
20388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20390 # Whether or not to add -lc for building shared libraries.
20391 build_libtool_need_lc=$archive_cmds_need_lc
20393 # Whether or not to disallow shared libs when runtime libs are static.
20394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20396 # Compiler flag to allow reflexive dlopens.
20397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20399 # Compiler flag to generate shared objects directly from archives.
20400 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20402 # Whether the compiler copes with passing no objects directly.
20403 compiler_needs_object=$lt_compiler_needs_object
20405 # Create an old-style archive from a shared archive.
20406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20408 # Create a temporary old-style archive to link instead of a shared archive.
20409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20411 # Commands used to build a shared archive.
20412 archive_cmds=$lt_archive_cmds
20413 archive_expsym_cmds=$lt_archive_expsym_cmds
20415 # Commands used to build a loadable module if different from building
20416 # a shared archive.
20417 module_cmds=$lt_module_cmds
20418 module_expsym_cmds=$lt_module_expsym_cmds
20420 # Whether we are building with GNU ld or not.
20421 with_gnu_ld=$lt_with_gnu_ld
20423 # Flag that allows shared libraries with undefined symbols to be built.
20424 allow_undefined_flag=$lt_allow_undefined_flag
20426 # Flag that enforces no undefined symbols.
20427 no_undefined_flag=$lt_no_undefined_flag
20429 # Flag to hardcode \$libdir into a binary during linking.
20430 # This must work even if \$libdir does not exist
20431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20433 # If ld is used when linking, flag to hardcode \$libdir into a binary
20434 # during linking. This must work even if \$libdir does not exist.
20435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20437 # Whether we need a single "-rpath" flag with a separated argument.
20438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20441 # DIR into the resulting binary.
20442 hardcode_direct=$hardcode_direct
20444 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20445 # DIR into the resulting binary and the resulting library dependency is
20446 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20447 # library is relocated.
20448 hardcode_direct_absolute=$hardcode_direct_absolute
20450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20451 # into the resulting binary.
20452 hardcode_minus_L=$hardcode_minus_L
20454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20455 # into the resulting binary.
20456 hardcode_shlibpath_var=$hardcode_shlibpath_var
20458 # Set to "yes" if building a shared library automatically hardcodes DIR
20459 # into the library and all subsequent libraries and executables linked
20461 hardcode_automatic=$hardcode_automatic
20463 # Set to yes if linker adds runtime paths of dependent libraries
20464 # to runtime path list.
20465 inherit_rpath=$inherit_rpath
20467 # Whether libtool must link a program against all its dependency libraries.
20468 link_all_deplibs=$link_all_deplibs
20470 # Set to "yes" if exported symbols are required.
20471 always_export_symbols=$always_export_symbols
20473 # The commands to list exported symbols.
20474 export_symbols_cmds=$lt_export_symbols_cmds
20476 # Symbols that should not be listed in the preloaded symbols.
20477 exclude_expsyms=$lt_exclude_expsyms
20479 # Symbols that must always be exported.
20480 include_expsyms=$lt_include_expsyms
20482 # Commands necessary for linking programs (against libraries) with templates.
20483 prelink_cmds=$lt_prelink_cmds
20485 # Commands necessary for finishing linking programs.
20486 postlink_cmds=$lt_postlink_cmds
20488 # Specify filename containing input files.
20489 file_list_spec=$lt_file_list_spec
20491 # How to hardcode a shared library path into an executable.
20492 hardcode_action=$hardcode_action
20494 # The directories searched by this compiler when creating a shared library.
20495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20497 # Dependencies to place before and after the objects being linked to
20498 # create a shared library.
20499 predep_objects=$lt_predep_objects
20500 postdep_objects=$lt_postdep_objects
20501 predeps=$lt_predeps
20502 postdeps=$lt_postdeps
20504 # The library search path used internally by the compiler when linking
20505 # a shared library.
20506 compiler_lib_search_path=$lt_compiler_lib_search_path
20508 # ### END LIBTOOL CONFIG
20514 cat <<\_LT_EOF >> "$cfgfile"
20515 # AIX sometimes has problems with the GCC collect2 program. For some
20516 # reason, if we set the COLLECT_NAMES environment variable, the problems
20517 # vanish in a puff of smoke.
20518 if test "X${COLLECT_NAMES+set}" != Xset; then
20520 export COLLECT_NAMES
20528 # We use sed instead of cat because bash on DJGPP gets confused if
20529 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20530 # text mode, it properly converts lines to CR/LF. This bash problem
20531 # is reportedly fixed, but why not run on old versions too?
20532 sed '$q' "$ltmain" >> "$cfgfile" \
20533 || (rm -f "$cfgfile"; exit 1)
20535 if test x"$xsi_shell" = xyes; then
20536 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20540 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20541 \ * ) func_dirname_result="${3}" ;;\
20543 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20544 && mv -f "$cfgfile.tmp" "$cfgfile" \
20545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20546 test 0 -eq $? || _lt_function_replace_fail=:
20549 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20552 \ func_basename_result="${1##*/}"\
20553 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20554 && mv -f "$cfgfile.tmp" "$cfgfile" \
20555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20556 test 0 -eq $? || _lt_function_replace_fail=:
20559 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20560 func_dirname_and_basename ()\
20563 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20564 \ * ) func_dirname_result="${3}" ;;\
20566 \ func_basename_result="${1##*/}"\
20567 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20568 && mv -f "$cfgfile.tmp" "$cfgfile" \
20569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20570 test 0 -eq $? || _lt_function_replace_fail=:
20573 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20576 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20577 \ # positional parameters, so assign one to ordinary parameter first.\
20578 \ func_stripname_result=${3}\
20579 \ func_stripname_result=${func_stripname_result#"${1}"}\
20580 \ func_stripname_result=${func_stripname_result%"${2}"}\
20581 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20582 && mv -f "$cfgfile.tmp" "$cfgfile" \
20583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20584 test 0 -eq $? || _lt_function_replace_fail=:
20587 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20588 func_split_long_opt ()\
20590 \ func_split_long_opt_name=${1%%=*}\
20591 \ func_split_long_opt_arg=${1#*=}\
20592 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20593 && mv -f "$cfgfile.tmp" "$cfgfile" \
20594 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20595 test 0 -eq $? || _lt_function_replace_fail=:
20598 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20599 func_split_short_opt ()\
20601 \ func_split_short_opt_arg=${1#??}\
20602 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20603 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20604 && mv -f "$cfgfile.tmp" "$cfgfile" \
20605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20606 test 0 -eq $? || _lt_function_replace_fail=:
20609 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20613 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20614 \ *) func_lo2o_result=${1} ;;\
20616 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20617 && mv -f "$cfgfile.tmp" "$cfgfile" \
20618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20619 test 0 -eq $? || _lt_function_replace_fail=:
20622 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20625 func_xform_result=${1%.*}.lo\
20626 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20627 && mv -f "$cfgfile.tmp" "$cfgfile" \
20628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629 test 0 -eq $? || _lt_function_replace_fail=:
20632 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20635 func_arith_result=$(( $* ))\
20636 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20637 && mv -f "$cfgfile.tmp" "$cfgfile" \
20638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20639 test 0 -eq $? || _lt_function_replace_fail=:
20642 sed -e '/^func_len ()$/,/^} # func_len /c\
20645 func_len_result=${#1}\
20646 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20647 && mv -f "$cfgfile.tmp" "$cfgfile" \
20648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20649 test 0 -eq $? || _lt_function_replace_fail=:
20653 if test x"$lt_shell_append" = xyes; then
20654 sed -e '/^func_append ()$/,/^} # func_append /c\
20657 eval "${1}+=\\${2}"\
20658 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20659 && mv -f "$cfgfile.tmp" "$cfgfile" \
20660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20661 test 0 -eq $? || _lt_function_replace_fail=:
20664 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20665 func_append_quoted ()\
20667 \ func_quote_for_eval "${2}"\
20668 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20669 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20670 && mv -f "$cfgfile.tmp" "$cfgfile" \
20671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20672 test 0 -eq $? || _lt_function_replace_fail=:
20675 # Save a `func_append' function call where possible by direct use of '+='
20676 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20677 && mv -f "$cfgfile.tmp" "$cfgfile" \
20678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20679 test 0 -eq $? || _lt_function_replace_fail=:
20681 # Save a `func_append' function call even when '+=' is not available
20682 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20683 && mv -f "$cfgfile.tmp" "$cfgfile" \
20684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20685 test 0 -eq $? || _lt_function_replace_fail=:
20688 if test x"$_lt_function_replace_fail" = x":"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20690 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20694 mv -f "$cfgfile" "$ofile" ||
20695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20699 cat <<_LT_EOF >> "$ofile"
20701 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20703 # The linker used to build libraries.
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag_CXX
20708 reload_cmds=$lt_reload_cmds_CXX
20710 # Commands used to build an old-style archive.
20711 old_archive_cmds=$lt_old_archive_cmds_CXX
20713 # A language specific compiler.
20714 CC=$lt_compiler_CXX
20716 # Is the compiler the GNU compiler?
20719 # Compiler flag to turn off builtin functions.
20720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20722 # Additional compiler flags for building library objects.
20723 pic_flag=$lt_lt_prog_compiler_pic_CXX
20725 # How to pass a linker flag through the compiler.
20726 wl=$lt_lt_prog_compiler_wl_CXX
20728 # Compiler flag to prevent dynamic linking.
20729 link_static_flag=$lt_lt_prog_compiler_static_CXX
20731 # Does compiler simultaneously support -c and -o options?
20732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20734 # Whether or not to add -lc for building shared libraries.
20735 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20737 # Whether or not to disallow shared libs when runtime libs are static.
20738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20740 # Compiler flag to allow reflexive dlopens.
20741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20743 # Compiler flag to generate shared objects directly from archives.
20744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20746 # Whether the compiler copes with passing no objects directly.
20747 compiler_needs_object=$lt_compiler_needs_object_CXX
20749 # Create an old-style archive from a shared archive.
20750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20752 # Create a temporary old-style archive to link instead of a shared archive.
20753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20755 # Commands used to build a shared archive.
20756 archive_cmds=$lt_archive_cmds_CXX
20757 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20759 # Commands used to build a loadable module if different from building
20760 # a shared archive.
20761 module_cmds=$lt_module_cmds_CXX
20762 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20764 # Whether we are building with GNU ld or not.
20765 with_gnu_ld=$lt_with_gnu_ld_CXX
20767 # Flag that allows shared libraries with undefined symbols to be built.
20768 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20770 # Flag that enforces no undefined symbols.
20771 no_undefined_flag=$lt_no_undefined_flag_CXX
20773 # Flag to hardcode \$libdir into a binary during linking.
20774 # This must work even if \$libdir does not exist
20775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20777 # If ld is used when linking, flag to hardcode \$libdir into a binary
20778 # during linking. This must work even if \$libdir does not exist.
20779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20781 # Whether we need a single "-rpath" flag with a separated argument.
20782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20785 # DIR into the resulting binary.
20786 hardcode_direct=$hardcode_direct_CXX
20788 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20789 # DIR into the resulting binary and the resulting library dependency is
20790 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20791 # library is relocated.
20792 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20794 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20795 # into the resulting binary.
20796 hardcode_minus_L=$hardcode_minus_L_CXX
20798 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20799 # into the resulting binary.
20800 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20802 # Set to "yes" if building a shared library automatically hardcodes DIR
20803 # into the library and all subsequent libraries and executables linked
20805 hardcode_automatic=$hardcode_automatic_CXX
20807 # Set to yes if linker adds runtime paths of dependent libraries
20808 # to runtime path list.
20809 inherit_rpath=$inherit_rpath_CXX
20811 # Whether libtool must link a program against all its dependency libraries.
20812 link_all_deplibs=$link_all_deplibs_CXX
20814 # Set to "yes" if exported symbols are required.
20815 always_export_symbols=$always_export_symbols_CXX
20817 # The commands to list exported symbols.
20818 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20820 # Symbols that should not be listed in the preloaded symbols.
20821 exclude_expsyms=$lt_exclude_expsyms_CXX
20823 # Symbols that must always be exported.
20824 include_expsyms=$lt_include_expsyms_CXX
20826 # Commands necessary for linking programs (against libraries) with templates.
20827 prelink_cmds=$lt_prelink_cmds_CXX
20829 # Commands necessary for finishing linking programs.
20830 postlink_cmds=$lt_postlink_cmds_CXX
20832 # Specify filename containing input files.
20833 file_list_spec=$lt_file_list_spec_CXX
20835 # How to hardcode a shared library path into an executable.
20836 hardcode_action=$hardcode_action_CXX
20838 # The directories searched by this compiler when creating a shared library.
20839 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20841 # Dependencies to place before and after the objects being linked to
20842 # create a shared library.
20843 predep_objects=$lt_predep_objects_CXX
20844 postdep_objects=$lt_postdep_objects_CXX
20845 predeps=$lt_predeps_CXX
20846 postdeps=$lt_postdeps_CXX
20848 # The library search path used internally by the compiler when linking
20849 # a shared library.
20850 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20852 # ### END LIBTOOL TAG CONFIG: CXX
20856 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20857 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20858 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
20859 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20867 ac_clean_files=$ac_clean_files_save
20869 test $ac_write_fail = 0 ||
20870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20873 # configure is writing to config.log, and then calls config.status.
20874 # config.status does its own redirection, appending to config.log.
20875 # Unfortunately, on DOS this fails, as config.log is still kept open
20876 # by configure, so config.status won't be able to write to it; its
20877 # output is simply discarded. So we exec the FD to /dev/null,
20878 # effectively closing config.log, so it can be properly (re)opened and
20879 # appended to by config.status. When coming back to configure, we
20880 # need to make the FD available again.
20881 if test "$no_create" != yes; then
20883 ac_config_status_args=
20884 test "$silent" = yes &&
20885 ac_config_status_args="$ac_config_status_args --quiet"
20887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20890 # would make configure fail if this is the last instruction.
20891 $ac_cs_success || as_fn_exit 1
20895 # CONFIG_SUBDIRS section.
20897 if test "$no_recursion" != yes; then
20899 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20900 # so they do not pile up.
20901 ac_sub_configure_args=
20903 eval "set x $ac_configure_args"
20907 if test -n "$ac_prev"; then
20912 -cache-file | --cache-file | --cache-fil | --cache-fi \
20913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20914 ac_prev=cache_file ;;
20915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20919 --config-cache | -C)
20921 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20923 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20929 --disable-option-checking)
20933 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20935 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20939 # Always prepend --prefix to ensure using the same prefix
20940 # in subdir configurations.
20941 ac_arg="--prefix=$prefix"
20943 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20945 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20948 if test "$silent" = yes; then
20949 ac_sub_configure_args="--silent $ac_sub_configure_args"
20952 # Always prepend --disable-option-checking to silence warnings, since
20953 # different subdirs can have different --enable and --with options.
20954 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20957 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20959 # Do not complain, so a configure script can configure whichever
20960 # parts of a large source tree are present.
20961 test -d "$srcdir/$ac_dir" || continue
20963 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20964 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20965 $as_echo "$ac_msg" >&6
20966 as_dir="$ac_dir"; as_fn_mkdir_p
20970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20973 # A ".." for each directory in $ac_dir_suffix.
20974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20975 case $ac_top_builddir_sub in
20976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20980 ac_abs_top_builddir=$ac_pwd
20981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982 # for backward compatibility:
20983 ac_top_builddir=$ac_top_build_prefix
20986 .) # We are building in place.
20988 ac_top_srcdir=$ac_top_builddir_sub
20989 ac_abs_top_srcdir=$ac_pwd ;;
20990 [\\/]* | ?:[\\/]* ) # Absolute name.
20991 ac_srcdir=$srcdir$ac_dir_suffix;
20992 ac_top_srcdir=$srcdir
20993 ac_abs_top_srcdir=$srcdir ;;
20994 *) # Relative name.
20995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996 ac_top_srcdir=$ac_top_build_prefix$srcdir
20997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21004 # Check for guested configure; otherwise get Cygnus style configure.
21005 if test -f "$ac_srcdir/configure.gnu"; then
21006 ac_sub_configure=$ac_srcdir/configure.gnu
21007 elif test -f "$ac_srcdir/configure"; then
21008 ac_sub_configure=$ac_srcdir/configure
21009 elif test -f "$ac_srcdir/configure.in"; then
21010 # This should be Cygnus configure.
21011 ac_sub_configure=$ac_aux_dir/configure
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21014 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21018 # The recursion is here.
21019 if test -n "$ac_sub_configure"; then
21020 # Make the cache file name correct relative to the subdirectory.
21021 case $cache_file in
21022 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21023 *) # Relative name.
21024 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21028 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21029 # The eval makes quoting arguments work.
21030 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21031 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21032 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}