2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for trust_router 1.3.1.
5 # Report bugs to <bugs@project-moonshot.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bugs@project-moonshot.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='trust_router'
592 PACKAGE_TARNAME='trust_router'
593 PACKAGE_VERSION='1.3.1'
594 PACKAGE_STRING='trust_router 1.3.1'
595 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
672 MAINTAINER_MODE_FALSE
696 INSTALL_STRIP_PROGRAM
748 program_transform_name
761 enable_option_checking
762 enable_dependency_tracking
764 enable_maintainer_mode
772 with_systemdsystemunitdir
774 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures trust_router 1.3.1 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/trust_router]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of trust_router 1.3.1:";;
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-dependency-tracking
1405 do not reject slow dependency extractors
1406 --disable-dependency-tracking
1407 speeds up one-time build
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-maintainer-mode
1411 enable make rules and dependencies not useful (and
1412 sometimes confusing) to the casual installer
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
1427 --with-systemdsystemunitdir=DIR
1428 Directory for systemd service files
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1439 PKG_CONFIG path to pkg-config utility
1441 directories to add to pkg-config's search path
1443 path overriding pkg-config's built-in search path
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to <bugs@project-moonshot.org>.
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1478 .) # We are building in place.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1511 trust_router configure 1.3.1
1512 generated by GNU Autoconf 2.69
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1561 } # ac_fn_c_try_compile
1563 # ac_fn_c_try_cpp LINENO
1564 # ----------------------
1565 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 if { { ac_try="$ac_cpp conftest.$ac_ext"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } > conftest.i && {
1585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1600 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603 # the include files in INCLUDES and setting the cache variable VAR
1605 ac_fn_c_check_header_mongrel ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if eval \${$3+:} false; then :
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1618 # Is the header compilable?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620 $as_echo_n "checking $2 usability... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 ac_header_compiler=yes
1629 ac_header_compiler=no
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633 $as_echo "$ac_header_compiler" >&6; }
1635 # Is the header present?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637 $as_echo_n "checking $2 presence... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1642 if ac_fn_c_try_cpp "$LINENO"; then :
1643 ac_header_preproc=yes
1645 ac_header_preproc=no
1647 rm -f conftest.err conftest.i conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649 $as_echo "$ac_header_preproc" >&6; }
1651 # So? What about this header?
1652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1663 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1667 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ( $as_echo "## ---------------------------------------- ##
1671 ## Report this to bugs@project-moonshot.org ##
1672 ## ---------------------------------------- ##"
1673 ) | sed "s/^/$as_me: WARNING: /" >&2
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1681 eval "$3=\$ac_header_compiler"
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 } # ac_fn_c_check_header_mongrel
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1833 # include <limits.h>
1835 # include <assert.h>
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1862 if ac_fn_c_try_link "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1880 It was created by trust_router $as_me 1.3.1, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_must_keep_next=false
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 -* ) ac_must_keep_next=true ;;
1973 as_fn_append ac_configure_args " '$ac_arg'"
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2031 for ac_var in $ac_subst_vars
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 $as_echo "$ac_var='\''$ac_val'\''"
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2046 for ac_var in $ac_subst_files
2048 eval ac_val=\$$ac_var
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2081 $as_echo "/* confdefs.h */" > confdefs.h
2083 # Predefined preprocessor variables.
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 # Check that the precious variables saved in the cache have kept the same
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 for ac_dir in build-aux "$srcdir"/build-aux; do
2231 if test -f "$ac_dir/install-sh"; then
2233 ac_install_sh="$ac_aux_dir/install-sh -c"
2235 elif test -f "$ac_dir/install.sh"; then
2237 ac_install_sh="$ac_aux_dir/install.sh -c"
2239 elif test -f "$ac_dir/shtool"; then
2241 ac_install_sh="$ac_aux_dir/shtool install -c"
2245 if test -z "$ac_aux_dir"; then
2246 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2249 # These three variables are undocumented and unsupported,
2250 # and are intended to be withdrawn in a future Autoconf release.
2251 # They can cause serious problems if a builder's source tree is in a directory
2252 # whose full name contains unusual characters.
2253 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2254 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2255 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2258 # expand $ac_aux_dir to an absolute path
2259 am_aux_dir=`cd $ac_aux_dir && pwd`
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_CC+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2305 if test -z "$ac_cv_prog_CC"; then
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="gcc"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2343 if test "x$ac_ct_CC" = x; then
2346 case $cross_compiling:$ac_tool_warned in
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350 ac_tool_warned=yes ;;
2358 if test -z "$CC"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}cc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377 ac_cv_prog_CC="${ac_tool_prefix}cc"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_CC+:} false; then :
2405 $as_echo_n "(cached) " >&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2419 ac_prog_rejected=yes
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test $ac_prog_rejected = yes; then
2431 # We found a bogon in the path, so make sure we never use it.
2432 set dummy $ac_cv_prog_CC
2434 if test $# != 0; then
2435 # We chose a different compiler from the bogus one.
2436 # However, it has the same basename, so the bogon will be chosen
2437 # first if we set CC to just the basename; use the full file name.
2439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2445 if test -n "$CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 for ac_prog in cl.exe
2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2496 test -n "$CC" && break
2499 if test -z "$CC"; then
2501 for ac_prog in cl.exe
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CC="$ac_prog"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533 $as_echo "$ac_ct_CC" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$ac_ct_CC" && break
2543 if test "x$ac_ct_CC" = x; then
2546 case $cross_compiling:$ac_tool_warned in
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2559 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details" "$LINENO" 5; }
2564 # Provide some information about the compiler.
2565 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2568 for ac_option in --version -v -V -qversion; do
2569 { { ac_try="$ac_compiler $ac_option >&5"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2578 if test -s conftest.err; then
2580 ... rest of stderr output deleted ...
2581 10q' conftest.err >conftest.er1
2582 cat conftest.er1 >&5
2584 rm -f conftest.er1 conftest.err
2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586 test $ac_status = 0; }
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2600 ac_clean_files_save=$ac_clean_files
2601 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2602 # Try to create an executable without -o first, disregard a.out.
2603 # It will help us diagnose broken compilers, and finding out an intuition
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2606 $as_echo_n "checking whether the C compiler works... " >&6; }
2607 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2609 # The possible output files:
2610 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2613 for ac_file in $ac_files
2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2622 if { { ac_try="$ac_link_default"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link_default") 2>&5
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }; then :
2633 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2634 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2635 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2636 # so that the user can short-circuit this test for compilers unknown to
2638 for ac_file in $ac_files ''
2640 test -f "$ac_file" || continue
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2645 # We found the default executable, but exeext='' is most
2649 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2651 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 # We set ac_cv_exeext here because the later test for it is not
2654 # safe: cross compilers may not add the suffix if given an `-o'
2655 # argument, so we may need to know it at that point already.
2656 # Even if this section looks crufty: it has the advantage of
2663 test "$ac_cv_exeext" = no && ac_cv_exeext=
2668 if test -z "$ac_file"; then :
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 as_fn_error 77 "C compiler cannot create executables
2677 See \`config.log' for more details" "$LINENO" 5; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 $as_echo "yes" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2683 $as_echo_n "checking for C compiler default output file name... " >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2685 $as_echo "$ac_file" >&6; }
2686 ac_exeext=$ac_cv_exeext
2688 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2689 ac_clean_files=$ac_clean_files_save
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2691 $as_echo_n "checking for suffix of executables... " >&6; }
2692 if { { ac_try="$ac_link"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_link") 2>&5
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; then :
2703 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2704 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2705 # work properly (i.e., refer to `conftest.exe'), while it won't with
2707 for ac_file in conftest.exe conftest conftest.*; do
2708 test -f "$ac_file" || continue
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2711 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2720 See \`config.log' for more details" "$LINENO" 5; }
2722 rm -f conftest conftest$ac_cv_exeext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2724 $as_echo "$ac_cv_exeext" >&6; }
2726 rm -f conftest.$ac_ext
2727 EXEEXT=$ac_cv_exeext
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2735 FILE *f = fopen ("conftest.out", "w");
2736 return ferror (f) || fclose (f) != 0;
2742 ac_clean_files="$ac_clean_files conftest.out"
2743 # Check that the compiler produces executables we can run. If not, either
2744 # the compiler is broken, or we cross compile.
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2746 $as_echo_n "checking whether we are cross compiling... " >&6; }
2747 if test "$cross_compiling" != yes; then
2748 { { ac_try="$ac_link"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_link") 2>&5
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }
2759 if { ac_try='./conftest$ac_cv_exeext'
2760 { { case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_try") 2>&5
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; }; then
2772 if test "$cross_compiling" = maybe; then
2775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 as_fn_error $? "cannot run C compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details" "$LINENO" 5; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2784 $as_echo "$cross_compiling" >&6; }
2786 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2787 ac_clean_files=$ac_clean_files_save
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2789 $as_echo_n "checking for suffix of object files... " >&6; }
2790 if ${ac_cv_objext+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2804 rm -f conftest.o conftest.obj
2805 if { { ac_try="$ac_compile"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_compile") 2>&5
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; then :
2816 for ac_file in conftest.o conftest.obj conftest.*; do
2817 test -f "$ac_file" || continue;
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2820 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2825 $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "cannot compute suffix of object files: cannot compile
2831 See \`config.log' for more details" "$LINENO" 5; }
2833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2836 $as_echo "$ac_cv_objext" >&6; }
2837 OBJEXT=$ac_cv_objext
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2841 if ${ac_cv_c_compiler_gnu+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2858 if ac_fn_c_try_compile "$LINENO"; then :
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2869 if test $ac_compiler_gnu = yes; then
2874 ac_test_CFLAGS=${CFLAGS+set}
2875 ac_save_CFLAGS=$CFLAGS
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2877 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2878 if ${ac_cv_prog_cc_g+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 ac_save_c_werror_flag=$ac_c_werror_flag
2882 ac_c_werror_flag=yes
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 if ac_fn_c_try_compile "$LINENO"; then :
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2911 if ac_fn_c_try_compile "$LINENO"; then :
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2927 if ac_fn_c_try_compile "$LINENO"; then :
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2938 $as_echo "$ac_cv_prog_cc_g" >&6; }
2939 if test "$ac_test_CFLAGS" = set; then
2940 CFLAGS=$ac_save_CFLAGS
2941 elif test $ac_cv_prog_cc_g = yes; then
2942 if test "$GCC" = yes; then
2948 if test "$GCC" = yes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2956 if ${ac_cv_prog_cc_c89+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 ac_cv_prog_cc_c89=no
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2980 s = g (p, va_arg (v,int));
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2986 function prototypes and stuff, but not '\xHH' hex character constants.
2987 These don't provoke an error unfortunately, instead are silently treated
2988 as 'x'. The following induces an error, until -std is added to get
2989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2990 array size at least. It's necessary to write '\x00'==0 to get something
2991 that's true only with -std. */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995 inside strings and character constants. */
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3016 CC="$ac_save_CC $ac_arg"
3017 if ac_fn_c_try_compile "$LINENO"; then :
3018 ac_cv_prog_cc_c89=$ac_arg
3020 rm -f core conftest.err conftest.$ac_objext
3021 test "x$ac_cv_prog_cc_c89" != "xno" && break
3023 rm -f conftest.$ac_ext
3028 case "x$ac_cv_prog_cc_c89" in
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3031 $as_echo "none needed" >&6; } ;;
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3034 $as_echo "unsupported" >&6; } ;;
3036 CC="$CC $ac_cv_prog_cc_c89"
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3040 if test "x$ac_cv_prog_cc_c89" != xno; then :
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3056 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3057 if ${am_cv_prog_cc_c_o+:} false; then :
3058 $as_echo_n "(cached) " >&6
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3071 # Make sure it works both with $CC and with simple cc.
3072 # Following AC_PROG_CC_C_O, we do the test twice because some
3073 # compilers refuse to overwrite an existing .o file with -o,
3074 # though they will create one.
3075 am_cv_prog_cc_c_o=yes
3077 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3078 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } \
3082 && test -f conftest2.$ac_objext; then
3085 am_cv_prog_cc_c_o=no
3089 rm -f core conftest*
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3093 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3094 if test "$am_cv_prog_cc_c_o" != yes; then
3095 # Losing compiler, so override with the script.
3096 # FIXME: It is wrong to rewrite CC.
3097 # But if we don't then we get into trouble of one sort or another.
3098 # A longer-term fix would be to have automake use am__CC in this case,
3099 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3100 CC="$am_aux_dir/compile $CC"
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3116 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3117 # On Suns, sometimes $CPP names a directory.
3118 if test -n "$CPP" && test -d "$CPP"; then
3121 if test -z "$CPP"; then
3122 if ${ac_cv_prog_CPP+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 # Double quotes because CPP needs to be expanded
3126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3129 for ac_c_preproc_warn_flag in '' yes
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3140 # include <limits.h>
3142 # include <assert.h>
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3149 # Broken: fails on valid input.
3152 rm -f conftest.err conftest.i conftest.$ac_ext
3154 # OK, works on sane cases. Now check whether nonexistent headers
3155 # can be detected and how.
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158 #include <ac_nonexistent.h>
3160 if ac_fn_c_try_cpp "$LINENO"; then :
3161 # Broken: success on invalid input.
3164 # Passes both tests.
3168 rm -f conftest.err conftest.i conftest.$ac_ext
3171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172 rm -f conftest.i conftest.err conftest.$ac_ext
3173 if $ac_preproc_ok; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3186 $as_echo "$CPP" >&6; }
3188 for ac_c_preproc_warn_flag in '' yes
3190 # Use a header file that comes with gcc, so configuring glibc
3191 # with a fresh cross-compiler works.
3192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3193 # <limits.h> exists even on freestanding compilers.
3194 # On the NeXT, cc -E runs the code through the compiler's parser,
3195 # not just through cpp. "Syntax error" is here to catch this case.
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3199 # include <limits.h>
3201 # include <assert.h>
3205 if ac_fn_c_try_cpp "$LINENO"; then :
3208 # Broken: fails on valid input.
3211 rm -f conftest.err conftest.i conftest.$ac_ext
3213 # OK, works on sane cases. Now check whether nonexistent headers
3214 # can be detected and how.
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3217 #include <ac_nonexistent.h>
3219 if ac_fn_c_try_cpp "$LINENO"; then :
3220 # Broken: success on invalid input.
3223 # Passes both tests.
3227 rm -f conftest.err conftest.i conftest.$ac_ext
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.i conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then :
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3238 See \`config.log' for more details" "$LINENO" 5; }
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3250 if ${ac_cv_path_GREP+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -z "$GREP"; then
3254 ac_path_GREP_found=false
3255 # Loop through the user's path and test for each of PROGNAME-LIST
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3260 test -z "$as_dir" && as_dir=.
3261 for ac_prog in grep ggrep; do
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3264 as_fn_executable_p "$ac_path_GREP" || continue
3265 # Check for GNU ac_path_GREP and select it if it is found.
3266 # Check for GNU $ac_path_GREP
3267 case `"$ac_path_GREP" --version 2>&1` in
3269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3272 $as_echo_n 0123456789 >"conftest.in"
3275 cat "conftest.in" "conftest.in" >"conftest.tmp"
3276 mv "conftest.tmp" "conftest.in"
3277 cp "conftest.in" "conftest.nl"
3278 $as_echo 'GREP' >> "conftest.nl"
3279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281 as_fn_arith $ac_count + 1 && ac_count=$as_val
3282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3283 # Best one so far, save it but keep looking for a better one
3284 ac_cv_path_GREP="$ac_path_GREP"
3285 ac_path_GREP_max=$ac_count
3287 # 10*(2^10) chars as input seems more than enough
3288 test $ac_count -gt 10 && break
3290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3293 $ac_path_GREP_found && break 3
3298 if test -z "$ac_cv_path_GREP"; then
3299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3302 ac_cv_path_GREP=$GREP
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3307 $as_echo "$ac_cv_path_GREP" >&6; }
3308 GREP="$ac_cv_path_GREP"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3312 $as_echo_n "checking for egrep... " >&6; }
3313 if ${ac_cv_path_EGREP+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3317 then ac_cv_path_EGREP="$GREP -E"
3319 if test -z "$EGREP"; then
3320 ac_path_EGREP_found=false
3321 # Loop through the user's path and test for each of PROGNAME-LIST
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3326 test -z "$as_dir" && as_dir=.
3327 for ac_prog in egrep; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3330 as_fn_executable_p "$ac_path_EGREP" || continue
3331 # Check for GNU ac_path_EGREP and select it if it is found.
3332 # Check for GNU $ac_path_EGREP
3333 case `"$ac_path_EGREP" --version 2>&1` in
3335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3338 $as_echo_n 0123456789 >"conftest.in"
3341 cat "conftest.in" "conftest.in" >"conftest.tmp"
3342 mv "conftest.tmp" "conftest.in"
3343 cp "conftest.in" "conftest.nl"
3344 $as_echo 'EGREP' >> "conftest.nl"
3345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3347 as_fn_arith $ac_count + 1 && ac_count=$as_val
3348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3349 # Best one so far, save it but keep looking for a better one
3350 ac_cv_path_EGREP="$ac_path_EGREP"
3351 ac_path_EGREP_max=$ac_count
3353 # 10*(2^10) chars as input seems more than enough
3354 test $ac_count -gt 10 && break
3356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3359 $ac_path_EGREP_found && break 3
3364 if test -z "$ac_cv_path_EGREP"; then
3365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3368 ac_cv_path_EGREP=$EGREP
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3374 $as_echo "$ac_cv_path_EGREP" >&6; }
3375 EGREP="$ac_cv_path_EGREP"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3379 $as_echo_n "checking for ANSI C header files... " >&6; }
3380 if ${ac_cv_header_stdc+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_header_stdc=yes
3401 ac_cv_header_stdc=no
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 if test $ac_cv_header_stdc = yes; then
3406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 $EGREP "memchr" >/dev/null 2>&1; then :
3416 ac_cv_header_stdc=no
3422 if test $ac_cv_header_stdc = yes; then
3423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 $EGREP "free" >/dev/null 2>&1; then :
3433 ac_cv_header_stdc=no
3439 if test $ac_cv_header_stdc = yes; then
3440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3441 if test "$cross_compiling" = yes; then :
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 #if ((' ' & 0x0FF) == 0x020)
3449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3452 # define ISLOWER(c) \
3453 (('a' <= (c) && (c) <= 'i') \
3454 || ('j' <= (c) && (c) <= 'r') \
3455 || ('s' <= (c) && (c) <= 'z'))
3456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3464 for (i = 0; i < 256; i++)
3465 if (XOR (islower (i), ISLOWER (i))
3466 || toupper (i) != TOUPPER (i))
3471 if ac_fn_c_try_run "$LINENO"; then :
3474 ac_cv_header_stdc=no
3476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3477 conftest.$ac_objext conftest.beam conftest.$ac_ext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3483 $as_echo "$ac_cv_header_stdc" >&6; }
3484 if test $ac_cv_header_stdc = yes; then
3486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3492 inttypes.h stdint.h unistd.h
3494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3498 cat >>confdefs.h <<_ACEOF
3499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3508 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3509 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3516 if test "$MINIX" = yes; then
3518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3524 $as_echo "#define _MINIX 1" >>confdefs.h
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3531 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3537 # define __EXTENSIONS__ 1
3538 $ac_includes_default
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_safe_to_define___extensions__=yes
3550 ac_cv_safe_to_define___extensions__=no
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3556 test $ac_cv_safe_to_define___extensions__ = yes &&
3557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3568 am__api_version='1.14'
3570 # Find a good install program. We prefer a C program (faster),
3571 # so one script is as good as another. But avoid the broken or
3572 # incompatible versions:
3573 # SysV /etc/install, /usr/sbin/install
3574 # SunOS /usr/etc/install
3575 # IRIX /sbin/install
3577 # AmigaOS /C/install, which installs bootblocks on floppy discs
3578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581 # OS/2's system install, which has a completely different semantic
3582 # ./install, which can be erroneously created by make from ./install.sh.
3583 # Reject install programs that cannot install multiple files.
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3585 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3586 if test -z "$INSTALL"; then
3587 if ${ac_cv_path_install+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 # Account for people who put trailing slashes in PATH elements.
3596 case $as_dir/ in #((
3597 ./ | .// | /[cC]/* | \
3598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3599 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3602 # OSF1 and SCO ODT 3.0 have their own names for install.
3603 # Don't use installbsd from OSF since it installs stuff as root
3605 for ac_prog in ginstall scoinst install; do
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3608 if test $ac_prog = install &&
3609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3610 # AIX install. It has an incompatible calling convention.
3612 elif test $ac_prog = install &&
3613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3614 # program-specific install script used by HP pwplus--don't use.
3617 rm -rf conftest.one conftest.two conftest.dir
3618 echo one > conftest.one
3619 echo two > conftest.two
3621 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3622 test -s conftest.one && test -s conftest.two &&
3623 test -s conftest.dir/conftest.one &&
3624 test -s conftest.dir/conftest.two
3626 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3639 rm -rf conftest.one conftest.two conftest.dir
3642 if test "${ac_cv_path_install+set}" = set; then
3643 INSTALL=$ac_cv_path_install
3645 # As a last resort, use the slow shell script. Don't cache a
3646 # value for INSTALL within a source directory, because that will
3647 # break other packages using the cache if that directory is
3648 # removed, or if the value is a relative name.
3649 INSTALL=$ac_install_sh
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3653 $as_echo "$INSTALL" >&6; }
3655 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3656 # It thinks the first close brace ends the variable substitution.
3657 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3659 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3661 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3664 $as_echo_n "checking whether build environment is sane... " >&6; }
3665 # Reject unsafe characters in $srcdir or the absolute working directory
3666 # name. Accept space and tab only in the latter.
3670 *[\\\"\#\$\&\'\`$am_lf]*)
3671 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3674 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3675 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3678 # Do 'set' in a subshell so we don't clobber the current shell's
3679 # arguments. Must try -L first in case configure is actually a
3680 # symlink; some systems play weird games with the mod time of symlinks
3681 # (eg FreeBSD returns the mod time of the symlink's containing
3685 for am_try in 1 2; do
3686 echo "timestamp, slept: $am_has_slept" > conftest.file
3687 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3688 if test "$*" = "X"; then
3690 set X `ls -t "$srcdir/configure" conftest.file`
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
3699 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3700 alias in your environment" "$LINENO" 5
3702 if test "$2" = conftest.file || test $am_try -eq 2; then
3709 test "$2" = conftest.file
3715 as_fn_error $? "newly created file is older than distributed files!
3716 Check your system clock" "$LINENO" 5
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719 $as_echo "yes" >&6; }
3720 # If we didn't sleep, we still need to ensure time stamps of config.status and
3721 # generated files are strictly newer.
3723 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3730 test "$program_prefix" != NONE &&
3731 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3732 # Use a double $ so make ignores it.
3733 test "$program_suffix" != NONE &&
3734 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3735 # Double any \ or $.
3736 # By default was `s,x,x', remove it if useless.
3737 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3738 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3740 if test x"${MISSING+set}" != xset; then
3743 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3745 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3748 # Use eval to expand $SHELL
3749 if eval "$MISSING --is-lightweight"; then
3750 am_missing_run="$MISSING "
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3754 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3757 if test x"${install_sh}" != xset; then
3760 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3762 install_sh="\${SHELL} $am_aux_dir/install-sh"
3766 # Installed binaries are usually stripped using 'strip' when the user
3767 # run "make install-strip". However 'strip' might not be the right
3768 # tool to use in cross-compilation environments, therefore Automake
3769 # will honor the 'STRIP' environment variable to overrule this program.
3770 if test "$cross_compiling" != no; then
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}strip; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_STRIP+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 if test -n "$STRIP"; then
3780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 STRIP=$ac_cv_prog_STRIP
3800 if test -n "$STRIP"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3802 $as_echo "$STRIP" >&6; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3810 if test -z "$ac_cv_prog_STRIP"; then
3812 # Extract the first word of "strip", so it can be a program name with args.
3813 set dummy strip; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$ac_ct_STRIP"; then
3820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_STRIP="strip"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3840 if test -n "$ac_ct_STRIP"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3842 $as_echo "$ac_ct_STRIP" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3848 if test "x$ac_ct_STRIP" = x; then
3851 case $cross_compiling:$ac_tool_warned in
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3860 STRIP="$ac_cv_prog_STRIP"
3864 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3867 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3868 if test -z "$MKDIR_P"; then
3869 if ${ac_cv_path_mkdir+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in mkdir gmkdir; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3880 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3881 'mkdir (GNU coreutils) '* | \
3882 'mkdir (coreutils) '* | \
3883 'mkdir (fileutils) '4.1*)
3884 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3894 test -d ./--version && rmdir ./--version
3895 if test "${ac_cv_path_mkdir+set}" = set; then
3896 MKDIR_P="$ac_cv_path_mkdir -p"
3898 # As a last resort, use the slow shell script. Don't cache a
3899 # value for MKDIR_P within a source directory, because that will
3900 # break other packages using the cache if that directory is
3901 # removed, or if the value is a relative name.
3902 MKDIR_P="$ac_install_sh -d"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3906 $as_echo "$MKDIR_P" >&6; }
3908 for ac_prog in gawk mawk nawk awk
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_AWK+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$AWK"; then
3918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_AWK="$ac_prog"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$AWK"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3940 $as_echo "$AWK" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3947 test -n "$AWK" && break
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 cat >conftest.make <<\_ACEOF
3960 @echo '@@@%%%=$(MAKE)=@@@%%%'
3962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3965 eval ac_cv_prog_make_${ac_make}_set=yes;;
3967 eval ac_cv_prog_make_${ac_make}_set=no;;
3971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 SET_MAKE="MAKE=${MAKE-make}"
3981 rm -rf .tst 2>/dev/null
3982 mkdir .tst 2>/dev/null
3983 if test -d .tst; then
3988 rmdir .tst 2>/dev/null
3990 DEPDIR="${am__leading_dot}deps"
3992 ac_config_commands="$ac_config_commands depfiles"
3995 am_make=${MAKE-make}
3996 cat > confinc << 'END'
3998 @echo this is the am__doit target
4001 # If we don't find an include directive, just comment out the code.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4003 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4007 # First try GNU make style include.
4008 echo "include confinc" > confmf
4009 # Ignore all kinds of additional output from 'make'.
4010 case `$am_make -s -f confmf 2> /dev/null` in #(
4011 *the\ am__doit\ target*)
4017 # Now try BSD make style include.
4018 if test "$am__include" = "#"; then
4019 echo '.include "confinc"' > confmf
4020 case `$am_make -s -f confmf 2> /dev/null` in #(
4021 *the\ am__doit\ target*)
4022 am__include=.include
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4031 $as_echo "$_am_result" >&6; }
4032 rm -f confinc confmf
4034 # Check whether --enable-dependency-tracking was given.
4035 if test "${enable_dependency_tracking+set}" = set; then :
4036 enableval=$enable_dependency_tracking;
4039 if test "x$enable_dependency_tracking" != xno; then
4040 am_depcomp="$ac_aux_dir/depcomp"
4044 if test "x$enable_dependency_tracking" != xno; then
4053 # Check whether --enable-silent-rules was given.
4054 if test "${enable_silent_rules+set}" = set; then :
4055 enableval=$enable_silent_rules;
4058 case $enable_silent_rules in # (((
4059 yes) AM_DEFAULT_VERBOSITY=0;;
4060 no) AM_DEFAULT_VERBOSITY=1;;
4061 *) AM_DEFAULT_VERBOSITY=1;;
4063 am_make=${MAKE-make}
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4065 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4066 if ${am_cv_make_support_nested_variables+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 if $as_echo 'TRUE=$(BAR$(V))
4075 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4076 am_cv_make_support_nested_variables=yes
4078 am_cv_make_support_nested_variables=no
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4082 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4083 if test $am_cv_make_support_nested_variables = yes; then
4085 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4087 AM_V=$AM_DEFAULT_VERBOSITY
4088 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4092 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4093 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4094 # is not polluted with repeated "-I."
4095 am__isrc=' -I$(srcdir)'
4096 # test to see if srcdir already configured
4097 if test -f $srcdir/config.status; then
4098 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4102 # test whether we have cygpath
4103 if test -z "$CYGPATH_W"; then
4104 if (cygpath --version) >/dev/null 2>/dev/null; then
4105 CYGPATH_W='cygpath -w'
4112 # Define the identity of the package.
4113 PACKAGE='trust_router'
4117 cat >>confdefs.h <<_ACEOF
4118 #define PACKAGE "$PACKAGE"
4122 cat >>confdefs.h <<_ACEOF
4123 #define VERSION "$VERSION"
4126 # Some tools Automake needs.
4128 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4131 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4134 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4137 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4140 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4142 # For better backward compatibility. To be removed once Automake 1.9.x
4143 # dies out for good. For more background, see:
4144 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4145 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4146 mkdir_p='$(MKDIR_P)'
4148 # We need awk for the "check" target. The system "awk" is bad on
4150 # Always define AMTAR for backward compatibility. Yes, it's still used
4151 # in the wild :-( We should find a proper way to deprecate it ...
4155 # We'll loop over all known methods to create a tar archive until one works.
4156 _am_tools='gnutar pax cpio none'
4158 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4164 depcc="$CC" am_compiler_list=
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167 $as_echo_n "checking dependency style of $depcc... " >&6; }
4168 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172 # We make a subdir and do the tests there. Otherwise we can end up
4173 # making bogus files that we don't know about and never remove. For
4174 # instance it was reported that on HP-UX the gcc test will end up
4175 # making a dummy file named 'D' -- because '-MD' means "put the output
4179 # Copy depcomp to subdir because otherwise we won't find it if we're
4180 # using a relative directory.
4181 cp "$am_depcomp" conftest.dir
4183 # We will build objects and dependencies in a subdirectory because
4184 # it helps to detect inapplicable dependency modes. For instance
4185 # both Tru64's cc and ICC support -MD to output dependencies as a
4186 # side effect of compilation, but ICC will put the dependencies in
4187 # the current directory while Tru64 will put them in the object
4191 am_cv_CC_dependencies_compiler_type=none
4192 if test "$am_compiler_list" = ""; then
4193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4196 case " $depcc " in #(
4197 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4200 for depmode in $am_compiler_list; do
4201 # Setup a source with many dependencies, because some compilers
4202 # like to wrap large dependency lists on column 80 (with \), and
4203 # we should not choose a depcomp mode which is confused by this.
4205 # We need to recreate these files for each test, as the compiler may
4206 # overwrite some of them when testing with obscure command lines.
4207 # This happens at least with the AIX C compiler.
4209 for i in 1 2 3 4 5 6; do
4210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4211 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4212 # Solaris 10 /bin/sh.
4213 echo '/* dummy */' > sub/conftst$i.h
4215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4217 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4218 # mode. It turns out that the SunPro C++ compiler does not properly
4219 # handle '-M -o', and we need to detect this. Also, some Intel
4220 # versions had trouble with output in subdirs.
4221 am__obj=sub/conftest.${OBJEXT-o}
4222 am__minus_obj="-o $am__obj"
4225 # This depmode causes a compiler race in universal mode.
4226 test "$am__universal" = false || continue
4229 # After this tag, mechanisms are not by side-effect, so they'll
4230 # only be used when explicitly requested.
4231 if test "x$enable_dependency_tracking" = xyes; then
4237 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4238 # This compiler won't grok '-c -o', but also, the minuso test has
4239 # not run yet. These depmodes are late enough in the game, and
4240 # so weak that their functioning should not be impacted.
4241 am__obj=conftest.${OBJEXT-o}
4246 if depmode=$depmode \
4247 source=sub/conftest.c object=$am__obj \
4248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4249 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4250 >/dev/null 2>conftest.err &&
4251 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4252 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4253 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4254 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4255 # icc doesn't choke on unknown options, it will just issue warnings
4256 # or remarks (even with -Werror). So we grep stderr for any message
4257 # that says an option was ignored or not supported.
4258 # When given -MP, icc 7.0 and 7.1 complain thusly:
4259 # icc: Command line warning: ignoring option '-M'; no argument required
4260 # The diagnosis changed in icc 8.0:
4261 # icc: Command line remark: option '-MP' not supported
4262 if (grep 'ignoring option' conftest.err ||
4263 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4264 am_cv_CC_dependencies_compiler_type=$depmode
4273 am_cv_CC_dependencies_compiler_type=none
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4278 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4279 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4282 test "x$enable_dependency_tracking" != xno \
4283 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4285 am__fastdepCC_FALSE='#'
4287 am__fastdepCC_TRUE='#'
4288 am__fastdepCC_FALSE=
4293 # POSIX will say in a future version that running "rm -f" with no argument
4294 # is OK; and we want to be able to make that assumption in our Makefile
4295 # recipes. So use an aggressive probe to check that the usage we want is
4296 # actually supported "in the wild" to an acceptable degree.
4297 # See automake bug#10828.
4298 # To make any issue more visible, cause the running configure to be aborted
4299 # by default if the 'rm' program in use doesn't match our expectations; the
4300 # user can still override this though.
4301 if rm -f && rm -fr && rm -rf; then : OK; else
4305 Your 'rm' program seems unable to run without file operands specified
4306 on the command line, even when the '-f' option is present. This is contrary
4307 to the behaviour of most rm programs out there, and not conforming with
4308 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4310 Please tell bug-automake@gnu.org about your system, including the value
4311 of your $PATH and any error possibly output before this message. This
4312 can help us improve future automake versions.
4315 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4316 echo 'Configuration will proceed anyway, since you have set the' >&2
4317 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4321 Aborting the configuration process, to ensure you take notice of the issue.
4323 You can download and install GNU coreutils to get an 'rm' implementation
4324 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4326 If you want to complete the configuration process using your problematic
4327 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4328 to "yes", and re-run configure.
4331 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4335 # Check whether --enable-silent-rules was given.
4336 if test "${enable_silent_rules+set}" = set; then :
4337 enableval=$enable_silent_rules;
4340 case $enable_silent_rules in # (((
4341 yes) AM_DEFAULT_VERBOSITY=0;;
4342 no) AM_DEFAULT_VERBOSITY=1;;
4343 *) AM_DEFAULT_VERBOSITY=1;;
4345 am_make=${MAKE-make}
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4347 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4348 if ${am_cv_make_support_nested_variables+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 if $as_echo 'TRUE=$(BAR$(V))
4357 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4358 am_cv_make_support_nested_variables=yes
4360 am_cv_make_support_nested_variables=no
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4364 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4365 if test $am_cv_make_support_nested_variables = yes; then
4367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4369 AM_V=$AM_DEFAULT_VERBOSITY
4370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4376 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4377 # Check whether --enable-maintainer-mode was given.
4378 if test "${enable_maintainer_mode+set}" = set; then :
4379 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4381 USE_MAINTAINER_MODE=no
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4385 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4386 if test $USE_MAINTAINER_MODE = yes; then
4387 MAINTAINER_MODE_TRUE=
4388 MAINTAINER_MODE_FALSE='#'
4390 MAINTAINER_MODE_TRUE='#'
4391 MAINTAINER_MODE_FALSE=
4394 MAINT=$MAINTAINER_MODE_TRUE
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4400 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4405 macro_version='2.4.2'
4406 macro_revision='1.3337'
4420 ltmain="$ac_aux_dir/ltmain.sh"
4422 # Make sure we can run config.sub.
4423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4424 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4427 $as_echo_n "checking build system type... " >&6; }
4428 if ${ac_cv_build+:} false; then :
4429 $as_echo_n "(cached) " >&6
4431 ac_build_alias=$build_alias
4432 test "x$ac_build_alias" = x &&
4433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4434 test "x$ac_build_alias" = x &&
4435 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4441 $as_echo "$ac_cv_build" >&6; }
4442 case $ac_cv_build in
4444 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4447 ac_save_IFS=$IFS; IFS='-'
4453 # Remember, the first character of IFS is used to create $*,
4454 # except with old shells:
4457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4461 $as_echo_n "checking host system type... " >&6; }
4462 if ${ac_cv_host+:} false; then :
4463 $as_echo_n "(cached) " >&6
4465 if test "x$host_alias" = x; then
4466 ac_cv_host=$ac_cv_build
4468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4474 $as_echo "$ac_cv_host" >&6; }
4477 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4480 ac_save_IFS=$IFS; IFS='-'
4486 # Remember, the first character of IFS is used to create $*,
4487 # except with old shells:
4490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4493 # Backslashify metacharacters that are still active within
4494 # double-quoted strings.
4495 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4497 # Same as above, but do not quote variable references.
4498 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4500 # Sed substitution to delay expansion of an escaped shell variable in a
4501 # double_quote_subst'ed string.
4502 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4504 # Sed substitution to delay expansion of an escaped single quote.
4505 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4507 # Sed substitution to avoid accidental globbing in evaled expressions
4508 no_glob_subst='s/\*/\\\*/g'
4510 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4511 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4515 $as_echo_n "checking how to print strings... " >&6; }
4516 # Test print first, because it will be a builtin if present.
4517 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4518 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4520 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4523 # Use this function as a fallback that always works.
4524 func_fallback_echo ()
4526 eval 'cat <<_LTECHO_EOF
4530 ECHO='func_fallback_echo'
4533 # func_echo_all arg...
4534 # Invoke $ECHO with all args, space-separated.
4541 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4542 $as_echo "printf" >&6; } ;;
4543 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4544 $as_echo "print -r" >&6; } ;;
4545 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4546 $as_echo "cat" >&6; } ;;
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4563 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4564 if ${ac_cv_path_SED+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4568 for ac_i in 1 2 3 4 5 6 7; do
4569 ac_script="$ac_script$as_nl$ac_script"
4571 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4572 { ac_script=; unset ac_script;}
4573 if test -z "$SED"; then
4574 ac_path_SED_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in sed gsed; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4584 as_fn_executable_p "$ac_path_SED" || continue
4585 # Check for GNU ac_path_SED and select it if it is found.
4586 # Check for GNU $ac_path_SED
4587 case `"$ac_path_SED" --version 2>&1` in
4589 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo '' >> "conftest.nl"
4599 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_SED_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_SED="$ac_path_SED"
4605 ac_path_SED_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 $ac_path_SED_found && break 3
4618 if test -z "$ac_cv_path_SED"; then
4619 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4627 $as_echo "$ac_cv_path_SED" >&6; }
4628 SED="$ac_cv_path_SED"
4631 test -z "$SED" && SED=sed
4632 Xsed="$SED -e 1s/^X//"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645 $as_echo_n "checking for fgrep... " >&6; }
4646 if ${ac_cv_path_FGREP+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650 then ac_cv_path_FGREP="$GREP -F"
4652 if test -z "$FGREP"; then
4653 ac_path_FGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in fgrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 as_fn_executable_p "$ac_path_FGREP" || continue
4664 # Check for GNU ac_path_FGREP and select it if it is found.
4665 # Check for GNU $ac_path_FGREP
4666 case `"$ac_path_FGREP" --version 2>&1` in
4668 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4671 $as_echo_n 0123456789 >"conftest.in"
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'FGREP' >> "conftest.nl"
4678 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_FGREP="$ac_path_FGREP"
4684 ac_path_FGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 $ac_path_FGREP_found && break 3
4697 if test -z "$ac_cv_path_FGREP"; then
4698 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 ac_cv_path_FGREP=$FGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707 $as_echo "$ac_cv_path_FGREP" >&6; }
4708 FGREP="$ac_cv_path_FGREP"
4711 test -z "$GREP" && GREP=grep
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4739 if test "$GCC" = yes; then
4740 # Check if gcc -print-prog-name=ld gives a path.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4745 # gcc leaves a trailing carriage return which upsets mingw
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4751 # Accept absolute paths.
4753 re_direlt='/[^/][^/]*/\.\./'
4754 # Canonicalize the pathname of ld
4755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4759 test -z "$LD" && LD="$ac_prog"
4762 # If it fails, then pretend we aren't using GCC.
4766 # If it is relative, then search for the first ld in PATH.
4770 elif test "$with_gnu_ld" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4777 if ${lt_cv_path_LD+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 if test -z "$LD"; then
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786 lt_cv_path_LD="$ac_dir/$ac_prog"
4787 # Check to see if the program is GNU ld. I'd rather use --version,
4788 # but apparently some variants of GNU ld only accept -v.
4789 # Break only if it was the GNU/non-GNU ld that we prefer.
4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 test "$with_gnu_ld" != no && break
4795 test "$with_gnu_ld" != yes && break
4802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4807 if test -n "$LD"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4814 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if ${lt_cv_prog_gnu_ld+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823 lt_cv_prog_gnu_ld=yes
4826 lt_cv_prog_gnu_ld=no
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if ${lt_cv_path_NM+:} false; then :
4845 $as_echo_n "(cached) " >&6
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4874 lt_cv_path_NM="$tmp_nm -p"
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4888 : ${lt_cv_path_NM=no}
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_DUMPBIN+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 test -n "$DUMPBIN" && break
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 test -n "$ac_ct_DUMPBIN" && break
4987 if test "x$ac_ct_DUMPBIN" = x; then
4990 case $cross_compiling:$ac_tool_warned in
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4996 DUMPBIN=$ac_ct_DUMPBIN
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5002 DUMPBIN="$DUMPBIN -symbols"
5010 if test "$DUMPBIN" != ":"; then
5014 test -z "$NM" && NM=nm
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if ${lt_cv_nm_interface+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if ${lt_cv_sys_max_cmd_len+:} false; then :
5059 $as_echo_n "(cached) " >&6
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5122 # The test takes a long time on OS/2.
5123 lt_cv_sys_max_cmd_len=8192
5127 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5128 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5129 # nice to cause kernel panics so lets avoid the loop below.
5130 # First set a reasonable default.
5131 lt_cv_sys_max_cmd_len=16384
5133 if test -x /sbin/sysconfig; then
5134 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5135 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5140 lt_cv_sys_max_cmd_len=102400
5142 sysv5* | sco5v6* | sysv4.2uw2*)
5143 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5144 if test -n "$kargmax"; then
5145 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5147 lt_cv_sys_max_cmd_len=32768
5151 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5152 if test -n "$lt_cv_sys_max_cmd_len" && \
5153 test undefined != "$lt_cv_sys_max_cmd_len"; then
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157 # Make teststring a little bigger before we do anything with it.
5158 # a 1K string should be a reasonable start.
5159 for i in 1 2 3 4 5 6 7 8 ; do
5160 teststring=$teststring$teststring
5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163 # If test is not a shell built-in, we'll probably end up computing a
5164 # maximum length that is only half of the actual maximum length, but
5166 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5167 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168 test $i != 17 # 1/2 MB should be enough
5171 teststring=$teststring$teststring
5173 # Only check the string length outside the loop.
5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176 # Add a significant safety factor because C++ compilers can tack on
5177 # massive amounts of additional arguments before passing them to the
5178 # linker. It appears as though 1/2 is a usable value.
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5186 if test -n $lt_cv_sys_max_cmd_len ; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206 # Try some XSI features
5209 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5211 && eval 'test $(( 1 + 1 )) -eq 2 \
5212 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215 $as_echo "$xsi_shell" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5221 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5223 && lt_shell_append=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225 $as_echo "$lt_shell_append" >&6; }
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5238 # test EBCDIC or ASCII
5239 case `echo X|tr X '\101'` in
5240 A) # ASCII based system
5241 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242 lt_SP2NL='tr \040 \012'
5243 lt_NL2SP='tr \015\012 \040\040'
5245 *) # EBCDIC based system
5246 lt_SP2NL='tr \100 \n'
5247 lt_NL2SP='tr \r\n \100\100'
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5260 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5261 if ${lt_cv_to_host_file_cmd+:} false; then :
5262 $as_echo_n "(cached) " >&6
5267 *-*-mingw* ) # actually msys
5268 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5271 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5273 * ) # otherwise, assume *nix
5274 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5280 *-*-mingw* ) # actually msys
5281 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5284 lt_cv_to_host_file_cmd=func_convert_file_noop
5286 * ) # otherwise, assume *nix
5287 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5291 * ) # unhandled hosts (and "normal" native builds)
5292 lt_cv_to_host_file_cmd=func_convert_file_noop
5298 to_host_file_cmd=$lt_cv_to_host_file_cmd
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5300 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5307 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5308 if ${lt_cv_to_tool_file_cmd+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 #assume ordinary cross tools, or native build.
5312 lt_cv_to_tool_file_cmd=func_convert_file_noop
5316 *-*-mingw* ) # actually msys
5317 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5325 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5327 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5334 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5335 if ${lt_cv_ld_reload_flag+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 lt_cv_ld_reload_flag='-r'
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5341 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5342 reload_flag=$lt_cv_ld_reload_flag
5343 case $reload_flag in
5345 *) reload_flag=" $reload_flag" ;;
5347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5349 cygwin* | mingw* | pw32* | cegcc*)
5350 if test "$GCC" != yes; then
5355 if test "$GCC" = yes; then
5356 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5371 if test -n "$ac_tool_prefix"; then
5372 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5373 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_OBJDUMP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 if test -n "$OBJDUMP"; then
5380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 OBJDUMP=$ac_cv_prog_OBJDUMP
5400 if test -n "$OBJDUMP"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5402 $as_echo "$OBJDUMP" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5410 if test -z "$ac_cv_prog_OBJDUMP"; then
5411 ac_ct_OBJDUMP=$OBJDUMP
5412 # Extract the first word of "objdump", so it can be a program name with args.
5413 set dummy objdump; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 if test -n "$ac_ct_OBJDUMP"; then
5420 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5440 if test -n "$ac_ct_OBJDUMP"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5442 $as_echo "$ac_ct_OBJDUMP" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5448 if test "x$ac_ct_OBJDUMP" = x; then
5451 case $cross_compiling:$ac_tool_warned in
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455 ac_tool_warned=yes ;;
5457 OBJDUMP=$ac_ct_OBJDUMP
5460 OBJDUMP="$ac_cv_prog_OBJDUMP"
5463 test -z "$OBJDUMP" && OBJDUMP=objdump
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5475 if ${lt_cv_deplibs_check_method+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 lt_cv_file_magic_cmd='$MAGIC_CMD'
5479 lt_cv_file_magic_test_file=
5480 lt_cv_deplibs_check_method='unknown'
5481 # Need to set the preceding variable on all platforms that support
5482 # interlibrary dependencies.
5483 # 'none' -- dependencies not supported.
5484 # `unknown' -- same as none, but documents that we really don't know.
5485 # 'pass_all' -- all dependencies passed with no checks.
5486 # 'test_compile' -- check by making test program.
5487 # 'file_magic [[regex]]' -- check by looking for files in library path
5488 # which responds to the $file_magic_cmd with a given extended regex.
5489 # If you have `file' or equivalent on your system and you're not sure
5490 # whether `pass_all' will *always* work, you probably want this one.
5494 lt_cv_deplibs_check_method=pass_all
5498 lt_cv_deplibs_check_method=pass_all
5502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5503 lt_cv_file_magic_cmd='/usr/bin/file -L'
5504 lt_cv_file_magic_test_file=/shlib/libc.so
5508 # func_win32_libid is a shell function defined in ltmain.sh
5509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510 lt_cv_file_magic_cmd='func_win32_libid'
5514 # Base MSYS/MinGW do not provide the 'file' command needed by
5515 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5516 # unless we find 'file', for example because we are cross-compiling.
5517 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5518 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520 lt_cv_file_magic_cmd='func_win32_libid'
5522 # Keep this pattern in sync with the one in func_win32_libid.
5523 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5524 lt_cv_file_magic_cmd='$OBJDUMP -f'
5529 # use the weaker test based on 'objdump'. See mingw*.
5530 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5531 lt_cv_file_magic_cmd='$OBJDUMP -f'
5534 darwin* | rhapsody*)
5535 lt_cv_deplibs_check_method=pass_all
5538 freebsd* | dragonfly*)
5539 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542 # Not sure whether the presence of OpenBSD here was a mistake.
5543 # Let's accept both of them until this is cleared up.
5544 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5545 lt_cv_file_magic_cmd=/usr/bin/file
5546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5550 lt_cv_deplibs_check_method=pass_all
5555 lt_cv_deplibs_check_method=pass_all
5558 hpux10.20* | hpux11*)
5559 lt_cv_file_magic_cmd=/usr/bin/file
5562 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5563 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5566 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]'
5567 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5571 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5581 irix5* | irix6* | nonstopux*)
5583 *-32|*"-32 ") libmagic=32-bit;;
5584 *-n32|*"-n32 ") libmagic=N32;;
5585 *-64|*"-64 ") libmagic=64-bit;;
5586 *) libmagic=never-match;;
5588 lt_cv_deplibs_check_method=pass_all
5591 # This must be glibc/ELF.
5592 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5593 lt_cv_deplibs_check_method=pass_all
5596 netbsd* | netbsdelf*-gnu)
5597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5606 lt_cv_file_magic_cmd=/usr/bin/file
5607 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5611 lt_cv_deplibs_check_method=pass_all
5615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5622 osf3* | osf4* | osf5*)
5623 lt_cv_deplibs_check_method=pass_all
5627 lt_cv_deplibs_check_method=pass_all
5631 lt_cv_deplibs_check_method=pass_all
5634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5635 lt_cv_deplibs_check_method=pass_all
5639 case $host_vendor in
5641 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]'
5642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5645 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_file_magic_cmd='/bin/file'
5649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5652 lt_cv_file_magic_cmd='/bin/file'
5653 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654 lt_cv_file_magic_test_file=/lib/libc.so
5657 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5666 lt_cv_deplibs_check_method=pass_all
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5672 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5676 if test "$build" = "$host"; then
5679 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5682 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5688 file_magic_cmd=$lt_cv_file_magic_cmd
5689 deplibs_check_method=$lt_cv_deplibs_check_method
5690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_DLLTOOL+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$DLLTOOL"; then
5722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 DLLTOOL=$ac_cv_prog_DLLTOOL
5742 if test -n "$DLLTOOL"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5744 $as_echo "$DLLTOOL" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5752 if test -z "$ac_cv_prog_DLLTOOL"; then
5753 ac_ct_DLLTOOL=$DLLTOOL
5754 # Extract the first word of "dlltool", so it can be a program name with args.
5755 set dummy dlltool; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$ac_ct_DLLTOOL"; then
5762 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5782 if test -n "$ac_ct_DLLTOOL"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5784 $as_echo "$ac_ct_DLLTOOL" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5790 if test "x$ac_ct_DLLTOOL" = x; then
5793 case $cross_compiling:$ac_tool_warned in
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5799 DLLTOOL=$ac_ct_DLLTOOL
5802 DLLTOOL="$ac_cv_prog_DLLTOOL"
5805 test -z "$DLLTOOL" && DLLTOOL=dlltool
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5817 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5818 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 lt_cv_sharedlib_from_linklib_cmd='unknown'
5824 cygwin* | mingw* | pw32* | cegcc*)
5825 # two different shell functions defined in ltmain.sh
5826 # decide which to use based on capabilities of $DLLTOOL
5827 case `$DLLTOOL --help 2>&1` in
5828 *--identify-strict*)
5829 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5832 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5837 # fallback: assume linklib IS sharedlib
5838 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5844 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5845 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5846 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5854 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_AR+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$AR"; then
5865 ac_cv_prog_AR="$AR" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 if test -n "$AR"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5887 $as_echo "$AR" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5894 test -n "$AR" && break
5897 if test -z "$AR"; then
5901 # Extract the first word of "$ac_prog", so it can be a program name with args.
5902 set dummy $ac_prog; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$ac_ct_AR"; then
5909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_ac_ct_AR="$ac_prog"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5929 if test -n "$ac_ct_AR"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5931 $as_echo "$ac_ct_AR" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5938 test -n "$ac_ct_AR" && break
5941 if test "x$ac_ct_AR" = x; then
5944 case $cross_compiling:$ac_tool_warned in
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948 ac_tool_warned=yes ;;
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5968 $as_echo_n "checking for archiver @FILE support... " >&6; }
5969 if ${lt_cv_ar_at_file+:} false; then :
5970 $as_echo_n "(cached) " >&6
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985 echo conftest.$ac_objext > conftest.lst
5986 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5988 (eval $lt_ar_try) 2>&5
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992 if test "$ac_status" -eq 0; then
5993 # Ensure the archiver fails upon bogus file names.
5994 rm -f conftest.$ac_objext libconftest.a
5995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996 (eval $lt_ar_try) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }
6000 if test "$ac_status" -ne 0; then
6004 rm -f conftest.* libconftest.a
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6011 $as_echo "$lt_cv_ar_at_file" >&6; }
6013 if test "x$lt_cv_ar_at_file" = xno; then
6016 archiver_list_spec=$lt_cv_ar_at_file
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}strip; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_prog_STRIP+:} false; then :
6031 $as_echo_n "(cached) " >&6
6033 if test -n "$STRIP"; then
6034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 STRIP=$ac_cv_prog_STRIP
6054 if test -n "$STRIP"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6056 $as_echo "$STRIP" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_STRIP"; then
6066 # Extract the first word of "strip", so it can be a program name with args.
6067 set dummy strip; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 if test -n "$ac_ct_STRIP"; then
6074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_ac_ct_STRIP="strip"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6094 if test -n "$ac_ct_STRIP"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6096 $as_echo "$ac_ct_STRIP" >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_STRIP" = x; then
6105 case $cross_compiling:$ac_tool_warned in
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6114 STRIP="$ac_cv_prog_STRIP"
6117 test -z "$STRIP" && STRIP=:
6124 if test -n "$ac_tool_prefix"; then
6125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_RANLIB+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 if test -n "$RANLIB"; then
6133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 RANLIB=$ac_cv_prog_RANLIB
6153 if test -n "$RANLIB"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6155 $as_echo "$RANLIB" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6163 if test -z "$ac_cv_prog_RANLIB"; then
6164 ac_ct_RANLIB=$RANLIB
6165 # Extract the first word of "ranlib", so it can be a program name with args.
6166 set dummy ranlib; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -n "$ac_ct_RANLIB"; then
6173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_ac_ct_RANLIB="ranlib"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6193 if test -n "$ac_ct_RANLIB"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6195 $as_echo "$ac_ct_RANLIB" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6201 if test "x$ac_ct_RANLIB" = x; then
6204 case $cross_compiling:$ac_tool_warned in
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6210 RANLIB=$ac_ct_RANLIB
6213 RANLIB="$ac_cv_prog_RANLIB"
6216 test -z "$RANLIB" && RANLIB=:
6223 # Determine commands to create old-style static archives.
6224 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6225 old_postinstall_cmds='chmod 644 $oldlib'
6226 old_postuninstall_cmds=
6228 if test -n "$RANLIB"; then
6231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6234 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6237 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6242 lock_old_archive_extraction=yes ;;
6244 lock_old_archive_extraction=no ;;
6285 # If no C compiler was specified, use CC.
6288 # If no C compiler flags were specified, use CFLAGS.
6289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6291 # Allow CC to be a program name with arguments.
6295 # Check for command to grab the raw symbol name followed by C symbol from nm.
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6297 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6298 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6299 $as_echo_n "(cached) " >&6
6302 # These are sane defaults that work on at least a few old systems.
6303 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6305 # Character class describing NM global symbol codes.
6306 symcode='[BCDEGRST]'
6308 # Regexp to match symbols that can be accessed directly from C.
6309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6311 # Define system-specific variables.
6316 cygwin* | mingw* | pw32* | cegcc*)
6317 symcode='[ABCDGISTW]'
6320 if test "$host_cpu" = ia64; then
6321 symcode='[ABCDEGRST]'
6325 symcode='[BCDEGRST]'
6328 symcode='[BCDEGQRST]'
6339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6347 # If we're using GNU nm, then use its standard symbol codes.
6348 case `$NM -V 2>&1` in
6349 *GNU* | *'with BFD'*)
6350 symcode='[ABCDGIRSTW]' ;;
6353 # Transform an extracted symbol line into a proper C declaration.
6354 # Some systems (esp. on ia64) link data and code symbols differently,
6355 # so use this general approach.
6356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358 # Transform an extracted symbol line into symbol name and symbol address
6359 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6360 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'"
6362 # Handle CRLF in mingw tool chain
6366 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6370 # Try without a prefix underscore, then with it.
6371 for ac_symprfx in "" "_"; do
6373 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6374 symxfrm="\\1 $ac_symprfx\\2 \\2"
6376 # Write the raw and C identifiers.
6377 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378 # Fake it for dumpbin and say T for any non-static function
6379 # and D for any global variable.
6380 # Also find C++ and __fastcall symbols from MSVC++,
6381 # which start with @ or ?.
6382 lt_cv_sys_global_symbol_pipe="$AWK '"\
6383 " {last_section=section; section=\$ 3};"\
6384 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6385 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6386 " \$ 0!~/External *\|/{next};"\
6387 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6388 " {if(hide[section]) next};"\
6389 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6390 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6391 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6392 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6393 " ' prfx=^$ac_symprfx"
6395 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6397 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6399 # Check to see that the pipe works correctly.
6403 cat > conftest.$ac_ext <<_LT_EOF
6408 void nm_test_func(void);
6409 void nm_test_func(void){}
6413 int main(){nm_test_var='a';nm_test_func();return(0);}
6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417 (eval $ac_compile) 2>&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 # Now try to grab the symbols.
6423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6424 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; } && test -s "$nlist"; then
6428 # Try sorting and uniquifying the output.
6429 if sort "$nlist" | uniq > "$nlist"T; then
6430 mv -f "$nlist"T "$nlist"
6435 # Make sure that we snagged all the symbols we need.
6436 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6437 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6438 cat <<_LT_EOF > conftest.$ac_ext
6439 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6440 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6441 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6442 relocations are performed -- see ld's documentation on pseudo-relocs. */
6443 # define LT_DLSYM_CONST
6444 #elif defined(__osf__)
6445 /* This system does not cope well with relocations in const data. */
6446 # define LT_DLSYM_CONST
6448 # define LT_DLSYM_CONST const
6456 # Now generate the symbol file.
6457 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6459 cat <<_LT_EOF >> conftest.$ac_ext
6461 /* The mapping between symbol names and symbols. */
6462 LT_DLSYM_CONST struct {
6466 lt__PROGRAM__LTX_preloaded_symbols[] =
6468 { "@PROGRAM@", (void *) 0 },
6470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6471 cat <<\_LT_EOF >> conftest.$ac_ext
6475 /* This works around a problem in FreeBSD linker */
6476 #ifdef FREEBSD_WORKAROUND
6477 static const void *lt_preloaded_setup() {
6478 return lt__PROGRAM__LTX_preloaded_symbols;
6486 # Now try linking the two files.
6487 mv conftest.$ac_objext conftstm.$ac_objext
6488 lt_globsym_save_LIBS=$LIBS
6489 lt_globsym_save_CFLAGS=$CFLAGS
6490 LIBS="conftstm.$ac_objext"
6491 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6493 (eval $ac_link) 2>&5
6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6499 LIBS=$lt_globsym_save_LIBS
6500 CFLAGS=$lt_globsym_save_CFLAGS
6502 echo "cannot find nm_test_func in $nlist" >&5
6505 echo "cannot find nm_test_var in $nlist" >&5
6508 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511 echo "$progname: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 rm -rf conftest* conftst*
6516 # Do not use the global_symbol_pipe unless it works.
6517 if test "$pipe_works" = yes; then
6520 lt_cv_sys_global_symbol_pipe=
6526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527 lt_cv_sys_global_symbol_to_cdecl=
6529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6531 $as_echo "failed" >&6; }
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6534 $as_echo "ok" >&6; }
6537 # Response file support.
6538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539 nm_file_list_spec='@'
6540 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6541 nm_file_list_spec='@'
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6571 $as_echo_n "checking for sysroot... " >&6; }
6573 # Check whether --with-sysroot was given.
6574 if test "${with_sysroot+set}" = set; then :
6575 withval=$with_sysroot;
6582 case ${with_sysroot} in #(
6584 if test "$GCC" = yes; then
6585 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6589 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6595 $as_echo "${with_sysroot}" >&6; }
6596 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6601 $as_echo "${lt_sysroot:-no}" >&6; }
6607 # Check whether --enable-libtool-lock was given.
6608 if test "${enable_libtool_lock+set}" = set; then :
6609 enableval=$enable_libtool_lock;
6612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6614 # Some flags need to be propagated to the compiler or linker for good
6618 # Find out which ABI we are using.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.$ac_objext` in
6637 # Find out which ABI we are using.
6638 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640 (eval $ac_compile) 2>&5
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; }; then
6644 if test "$lt_cv_prog_gnu_ld" = yes; then
6645 case `/usr/bin/file conftest.$ac_objext` in
6647 LD="${LD-ld} -melf32bsmip"
6650 LD="${LD-ld} -melf32bmipn32"
6653 LD="${LD-ld} -melf64bmip"
6657 case `/usr/bin/file conftest.$ac_objext` in
6673 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6674 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.o` in
6685 x86_64-*kfreebsd*-gnu)
6686 LD="${LD-ld} -m elf_i386_fbsd"
6689 case `/usr/bin/file conftest.o` in
6691 LD="${LD-ld} -m elf32_x86_64"
6694 LD="${LD-ld} -m elf_i386"
6699 LD="${LD-ld} -m elf32lppclinux"
6702 LD="${LD-ld} -m elf32ppclinux"
6705 LD="${LD-ld} -m elf_s390"
6708 LD="${LD-ld} -m elf32_sparc"
6714 x86_64-*kfreebsd*-gnu)
6715 LD="${LD-ld} -m elf_x86_64_fbsd"
6718 LD="${LD-ld} -m elf_x86_64"
6721 LD="${LD-ld} -m elf64lppc"
6724 LD="${LD-ld} -m elf64ppc"
6726 s390*-*linux*|s390*-*tpf*)
6727 LD="${LD-ld} -m elf64_s390"
6730 LD="${LD-ld} -m elf64_sparc"
6740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6741 SAVE_CFLAGS="$CFLAGS"
6742 CFLAGS="$CFLAGS -belf"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6744 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6745 if ${lt_cv_cc_needs_belf+:} false; then :
6746 $as_echo_n "(cached) " >&6
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6765 if ac_fn_c_try_link "$LINENO"; then :
6766 lt_cv_cc_needs_belf=yes
6768 lt_cv_cc_needs_belf=no
6770 rm -f core conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6780 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6783 CFLAGS="$SAVE_CFLAGS"
6787 # Find out which ABI we are using.
6788 echo 'int i;' > conftest.$ac_ext
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 case `/usr/bin/file conftest.o` in
6796 case $lt_cv_prog_gnu_ld in
6800 LD="${LD-ld} -m elf_x86_64"
6803 LD="${LD-ld} -m elf64_sparc"
6806 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6807 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6824 need_locks="$enable_libtool_lock"
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}mt; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 if test -n "$MANIFEST_TOOL"; then
6835 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6855 if test -n "$MANIFEST_TOOL"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6857 $as_echo "$MANIFEST_TOOL" >&6; }
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6865 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6866 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6867 # Extract the first word of "mt", so it can be a program name with args.
6868 set dummy mt; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6872 $as_echo_n "(cached) " >&6
6874 if test -n "$ac_ct_MANIFEST_TOOL"; then
6875 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6895 if test -n "$ac_ct_MANIFEST_TOOL"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6897 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6903 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6906 case $cross_compiling:$ac_tool_warned in
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6912 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6915 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6918 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6920 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6921 if ${lt_cv_path_mainfest_tool+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 lt_cv_path_mainfest_tool=no
6925 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6926 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6927 cat conftest.err >&5
6928 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6929 lt_cv_path_mainfest_tool=yes
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6934 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6935 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6945 rhapsody* | darwin*)
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 if test -n "$DSYMUTIL"; then
6955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6975 if test -n "$DSYMUTIL"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6977 $as_echo "$DSYMUTIL" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 if test -z "$ac_cv_prog_DSYMUTIL"; then
6986 ac_ct_DSYMUTIL=$DSYMUTIL
6987 # Extract the first word of "dsymutil", so it can be a program name with args.
6988 set dummy dsymutil; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$ac_ct_DSYMUTIL"; then
6995 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7015 if test -n "$ac_ct_DSYMUTIL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7017 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7023 if test "x$ac_ct_DSYMUTIL" = x; then
7026 case $cross_compiling:$ac_tool_warned in
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7032 DSYMUTIL=$ac_ct_DSYMUTIL
7035 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_NMEDIT+:} false; then :
7044 $as_echo_n "(cached) " >&6
7046 if test -n "$NMEDIT"; then
7047 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 NMEDIT=$ac_cv_prog_NMEDIT
7067 if test -n "$NMEDIT"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7069 $as_echo "$NMEDIT" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7077 if test -z "$ac_cv_prog_NMEDIT"; then
7078 ac_ct_NMEDIT=$NMEDIT
7079 # Extract the first word of "nmedit", so it can be a program name with args.
7080 set dummy nmedit; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$ac_ct_NMEDIT"; then
7087 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7107 if test -n "$ac_ct_NMEDIT"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7109 $as_echo "$ac_ct_NMEDIT" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7115 if test "x$ac_ct_NMEDIT" = x; then
7118 case $cross_compiling:$ac_tool_warned in
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7124 NMEDIT=$ac_ct_NMEDIT
7127 NMEDIT="$ac_cv_prog_NMEDIT"
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_LIPO+:} false; then :
7136 $as_echo_n "(cached) " >&6
7138 if test -n "$LIPO"; then
7139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 LIPO=$ac_cv_prog_LIPO
7159 if test -n "$LIPO"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7161 $as_echo "$LIPO" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7169 if test -z "$ac_cv_prog_LIPO"; then
7171 # Extract the first word of "lipo", so it can be a program name with args.
7172 set dummy lipo; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$ac_ct_LIPO"; then
7179 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_ac_ct_LIPO="lipo"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7199 if test -n "$ac_ct_LIPO"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7201 $as_echo "$ac_ct_LIPO" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7207 if test "x$ac_ct_LIPO" = x; then
7210 case $cross_compiling:$ac_tool_warned in
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7219 LIPO="$ac_cv_prog_LIPO"
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}otool; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_OTOOL+:} false; then :
7228 $as_echo_n "(cached) " >&6
7230 if test -n "$OTOOL"; then
7231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 OTOOL=$ac_cv_prog_OTOOL
7251 if test -n "$OTOOL"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7253 $as_echo "$OTOOL" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7261 if test -z "$ac_cv_prog_OTOOL"; then
7263 # Extract the first word of "otool", so it can be a program name with args.
7264 set dummy otool; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$ac_ct_OTOOL"; then
7271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_OTOOL="otool"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7291 if test -n "$ac_ct_OTOOL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7293 $as_echo "$ac_ct_OTOOL" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7299 if test "x$ac_ct_OTOOL" = x; then
7302 case $cross_compiling:$ac_tool_warned in
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7311 OTOOL="$ac_cv_prog_OTOOL"
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_OTOOL64+:} false; then :
7320 $as_echo_n "(cached) " >&6
7322 if test -n "$OTOOL64"; then
7323 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 OTOOL64=$ac_cv_prog_OTOOL64
7343 if test -n "$OTOOL64"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7345 $as_echo "$OTOOL64" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7353 if test -z "$ac_cv_prog_OTOOL64"; then
7354 ac_ct_OTOOL64=$OTOOL64
7355 # Extract the first word of "otool64", so it can be a program name with args.
7356 set dummy otool64; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$ac_ct_OTOOL64"; then
7363 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_ac_ct_OTOOL64="otool64"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7383 if test -n "$ac_ct_OTOOL64"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7385 $as_echo "$ac_ct_OTOOL64" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$ac_ct_OTOOL64" = x; then
7394 case $cross_compiling:$ac_tool_warned in
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7400 OTOOL64=$ac_ct_OTOOL64
7403 OTOOL64="$ac_cv_prog_OTOOL64"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7433 $as_echo_n "checking for -single_module linker flag... " >&6; }
7434 if ${lt_cv_apple_cc_single_mod+:} false; then :
7435 $as_echo_n "(cached) " >&6
7437 lt_cv_apple_cc_single_mod=no
7438 if test -z "${LT_MULTI_MODULE}"; then
7439 # By default we will add the -single_module flag. You can override
7440 # by either setting the environment variable LT_MULTI_MODULE
7441 # non-empty at configure time, or by adding -multi_module to the
7443 rm -rf libconftest.dylib*
7444 echo "int foo(void){return 1;}" > conftest.c
7445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7446 -dynamiclib -Wl,-single_module conftest.c" >&5
7447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7450 # If there is a non-empty error log, and "single_module"
7451 # appears in it, assume the flag caused a linker warning
7452 if test -s conftest.err && $GREP single_module conftest.err; then
7453 cat conftest.err >&5
7454 # Otherwise, if the output was created with a 0 exit code from
7455 # the compiler, it worked.
7456 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7457 lt_cv_apple_cc_single_mod=yes
7459 cat conftest.err >&5
7461 rm -rf libconftest.dylib*
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7466 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7470 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 lt_cv_ld_exported_symbols_list=no
7474 save_LDFLAGS=$LDFLAGS
7475 echo "_main" > conftest.sym
7476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7488 if ac_fn_c_try_link "$LINENO"; then :
7489 lt_cv_ld_exported_symbols_list=yes
7491 lt_cv_ld_exported_symbols_list=no
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 LDFLAGS="$save_LDFLAGS"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7502 $as_echo_n "checking for -force_load linker flag... " >&6; }
7503 if ${lt_cv_ld_force_load+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 lt_cv_ld_force_load=no
7507 cat > conftest.c << _LT_EOF
7508 int forced_loaded() { return 2;}
7510 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7511 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7512 echo "$AR cru libconftest.a conftest.o" >&5
7513 $AR cru libconftest.a conftest.o 2>&5
7514 echo "$RANLIB libconftest.a" >&5
7515 $RANLIB libconftest.a 2>&5
7516 cat > conftest.c << _LT_EOF
7517 int main() { return 0;}
7519 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7522 if test -s conftest.err && $GREP force_load conftest.err; then
7523 cat conftest.err >&5
7524 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7525 lt_cv_ld_force_load=yes
7527 cat conftest.err >&5
7529 rm -f conftest.err libconftest.a conftest conftest.c
7530 rm -rf conftest.dSYM
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7534 $as_echo "$lt_cv_ld_force_load" >&6; }
7536 rhapsody* | darwin1.[012])
7537 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7540 darwin*) # darwin 5.x on
7541 # if running on 10.5 or later, the deployment target defaults
7542 # to the OS version, if on x86, and 10.4, the deployment
7543 # target defaults to 10.4. Don't you love it?
7544 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7545 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7554 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7555 _lt_dar_single_mod='$single_module'
7557 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7558 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7560 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7562 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7563 _lt_dsymutil='~$DSYMUTIL $lib || :'
7570 for ac_header in dlfcn.h
7572 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7574 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7575 cat >>confdefs.h <<_ACEOF
7576 #define HAVE_DLFCN_H 1
7597 # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599 enableval=$enable_shared; p=${PACKAGE-default}
7601 yes) enable_shared=yes ;;
7602 no) enable_shared=no ;;
7605 # Look at the argument we got. We use all the common list separators.
7606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7607 for pkg in $enableval; do
7609 if test "X$pkg" = "X$p"; then
7628 # Check whether --enable-static was given.
7629 if test "${enable_static+set}" = set; then :
7630 enableval=$enable_static; p=${PACKAGE-default}
7632 yes) enable_static=yes ;;
7633 no) enable_static=no ;;
7636 # Look at the argument we got. We use all the common list separators.
7637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638 for pkg in $enableval; do
7640 if test "X$pkg" = "X$p"; then
7660 # Check whether --with-pic was given.
7661 if test "${with_pic+set}" = set; then :
7662 withval=$with_pic; lt_p=${PACKAGE-default}
7664 yes|no) pic_mode=$withval ;;
7667 # Look at the argument we got. We use all the common list separators.
7668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669 for lt_pkg in $withval; do
7671 if test "X$lt_pkg" = "X$lt_p"; then
7683 test -z "$pic_mode" && pic_mode=default
7691 # Check whether --enable-fast-install was given.
7692 if test "${enable_fast_install+set}" = set; then :
7693 enableval=$enable_fast_install; p=${PACKAGE-default}
7695 yes) enable_fast_install=yes ;;
7696 no) enable_fast_install=no ;;
7698 enable_fast_install=no
7699 # Look at the argument we got. We use all the common list separators.
7700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701 for pkg in $enableval; do
7703 if test "X$pkg" = "X$p"; then
7704 enable_fast_install=yes
7711 enable_fast_install=yes
7724 # This can be used to rebuild libtool when needed
7725 LIBTOOL_DEPS="$ltmain"
7727 # Always use our own libtool.
7728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7759 test -z "$LN_S" && LN_S="ln -s"
7774 if test -n "${ZSH_VERSION+set}" ; then
7775 setopt NO_GLOB_SUBST
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7779 $as_echo_n "checking for objdir... " >&6; }
7780 if ${lt_cv_objdir+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 rm -f .libs 2>/dev/null
7784 mkdir .libs 2>/dev/null
7785 if test -d .libs; then
7788 # MS-DOS does not allow filenames that begin with a dot.
7791 rmdir .libs 2>/dev/null
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7794 $as_echo "$lt_cv_objdir" >&6; }
7795 objdir=$lt_cv_objdir
7801 cat >>confdefs.h <<_ACEOF
7802 #define LT_OBJDIR "$lt_cv_objdir/"
7810 # AIX sometimes has problems with the GCC collect2 program. For some
7811 # reason, if we set the COLLECT_NAMES environment variable, the problems
7812 # vanish in a puff of smoke.
7813 if test "X${COLLECT_NAMES+set}" != Xset; then
7815 export COLLECT_NAMES
7822 can_build_shared=yes
7824 # All known linkers require a `.a' archive for static linking (except MSVC,
7825 # which needs '.lib').
7828 with_gnu_ld="$lt_cv_prog_gnu_ld"
7831 old_CFLAGS="$CFLAGS"
7833 # Set sane defaults for various variables
7834 test -z "$CC" && CC=cc
7835 test -z "$LTCC" && LTCC=$CC
7836 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7837 test -z "$LD" && LD=ld
7838 test -z "$ac_objext" && ac_objext=o
7840 for cc_temp in $compiler""; do
7842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7848 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7851 # Only perform the check for file, if the check method requires it
7852 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7853 case $deplibs_check_method in
7855 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7857 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7858 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7859 $as_echo_n "(cached) " >&6
7863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7866 lt_save_MAGIC_CMD="$MAGIC_CMD"
7867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7869 for ac_dir in $ac_dummy; do
7871 test -z "$ac_dir" && ac_dir=.
7872 if test -f $ac_dir/${ac_tool_prefix}file; then
7873 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7874 if test -n "$file_magic_test_file"; then
7875 case $deplibs_check_method in
7877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7880 $EGREP "$file_magic_regex" > /dev/null; then
7885 *** Warning: the command libtool uses to detect shared libraries,
7886 *** $file_magic_cmd, produces output that libtool cannot recognize.
7887 *** The result is that libtool may fail to recognize shared libraries
7888 *** as such. This will affect the creation of libtool libraries that
7889 *** depend on shared libraries, but programs linked with such libtool
7890 *** libraries will work regardless of this problem. Nevertheless, you
7891 *** may want to report the problem to your system manager and/or to
7892 *** bug-libtool@gnu.org
7902 MAGIC_CMD="$lt_save_MAGIC_CMD"
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if test -n "$MAGIC_CMD"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7910 $as_echo "$MAGIC_CMD" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7920 if test -z "$lt_cv_path_MAGIC_CMD"; then
7921 if test -n "$ac_tool_prefix"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7923 $as_echo_n "checking for file... " >&6; }
7924 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7925 $as_echo_n "(cached) " >&6
7929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7932 lt_save_MAGIC_CMD="$MAGIC_CMD"
7933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7935 for ac_dir in $ac_dummy; do
7937 test -z "$ac_dir" && ac_dir=.
7938 if test -f $ac_dir/file; then
7939 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7940 if test -n "$file_magic_test_file"; then
7941 case $deplibs_check_method in
7943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7946 $EGREP "$file_magic_regex" > /dev/null; then
7951 *** Warning: the command libtool uses to detect shared libraries,
7952 *** $file_magic_cmd, produces output that libtool cannot recognize.
7953 *** The result is that libtool may fail to recognize shared libraries
7954 *** as such. This will affect the creation of libtool libraries that
7955 *** depend on shared libraries, but programs linked with such libtool
7956 *** libraries will work regardless of this problem. Nevertheless, you
7957 *** may want to report the problem to your system manager and/or to
7958 *** bug-libtool@gnu.org
7968 MAGIC_CMD="$lt_save_MAGIC_CMD"
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if test -n "$MAGIC_CMD"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7976 $as_echo "$MAGIC_CMD" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7992 # Use C for the default configuration in the libtool script
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002 # Source file extension for C test sources.
8005 # Object file extension for compiled C test sources.
8009 # Code to be used in simple compile tests
8010 lt_simple_compile_test_code="int some_variable = 0;"
8012 # Code to be used in simple link tests
8013 lt_simple_link_test_code='int main(){return(0);}'
8021 # If no C compiler was specified, use CC.
8024 # If no C compiler flags were specified, use CFLAGS.
8025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8027 # Allow CC to be a program name with arguments.
8030 # Save the default compiler, since it gets overwritten when the other
8031 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8032 compiler_DEFAULT=$CC
8034 # save warnings/boilerplate of simple test code
8035 ac_outfile=conftest.$ac_objext
8036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8038 _lt_compiler_boilerplate=`cat conftest.err`
8041 ac_outfile=conftest.$ac_objext
8042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8044 _lt_linker_boilerplate=`cat conftest.err`
8049 ## There is no encapsulation within the following macros, do not change
8050 ## the running order or otherwise move them around unless you know exactly
8051 ## what you are doing...
8052 if test -n "$compiler"; then
8054 lt_prog_compiler_no_builtin_flag=
8056 if test "$GCC" = yes; then
8057 case $cc_basename in
8059 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8061 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8065 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8066 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8067 $as_echo_n "(cached) " >&6
8069 lt_cv_prog_compiler_rtti_exceptions=no
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072 lt_compiler_flag="-fno-rtti -fno-exceptions"
8073 # Insert the option either (1) after the last *FLAGS variable, or
8074 # (2) before a word containing "conftest.", or (3) at the end.
8075 # Note that $ac_compile itself does not contain backslashes and begins
8076 # with a dollar sign (not a hyphen), so the echo should work correctly.
8077 # The option is referenced via a variable to avoid confusing sed.
8078 lt_compile=`echo "$ac_compile" | $SED \
8079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081 -e 's:$: $lt_compiler_flag:'`
8082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8083 (eval "$lt_compile" 2>conftest.err)
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 if (exit $ac_status) && test -s "$ac_outfile"; then
8088 # The compiler can only warn and ignore the option if not recognized
8089 # So say no if there are warnings other than the usual output.
8090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8093 lt_cv_prog_compiler_rtti_exceptions=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8100 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8103 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8115 lt_prog_compiler_wl=
8116 lt_prog_compiler_pic=
8117 lt_prog_compiler_static=
8120 if test "$GCC" = yes; then
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_static='-static'
8126 # All AIX code is PIC.
8127 if test "$host_cpu" = ia64; then
8128 # AIX 5 now supports IA64 processor
8129 lt_prog_compiler_static='-Bstatic'
8136 # see comment about AmigaOS4 .so support
8137 lt_prog_compiler_pic='-fPIC'
8140 # FIXME: we need at least 68020 code to build shared libraries, but
8141 # adding the `-m68020' flag to GCC prevents building anything better,
8143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8149 # PIC is the default for these OSes.
8152 mingw* | cygwin* | pw32* | os2* | cegcc*)
8153 # This hack is so that the source file can tell whether it is being
8154 # built for inclusion in a dll (and should export symbols for example).
8155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8156 # (--disable-auto-import) libraries
8157 lt_prog_compiler_pic='-DDLL_EXPORT'
8160 darwin* | rhapsody*)
8161 # PIC is the default on this platform
8162 # Common symbols not allowed in MH_DYLIB files
8163 lt_prog_compiler_pic='-fno-common'
8167 # PIC is the default for Haiku.
8168 # The "-static" flag exists, but is broken.
8169 lt_prog_compiler_static=
8173 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8174 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8175 # sets the default TLS model and affects inlining.
8181 lt_prog_compiler_pic='-fPIC'
8187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8188 # Instead, we relocate shared libraries at runtime.
8192 # Just because we use GCC doesn't mean we suddenly get shared libraries
8193 # on systems that don't support them.
8194 lt_prog_compiler_can_build_shared=no
8199 # QNX uses GNU C++, but need to define -shared option too, otherwise
8201 lt_prog_compiler_pic='-fPIC -shared'
8205 if test -d /usr/nec; then
8206 lt_prog_compiler_pic=-Kconform_pic
8211 lt_prog_compiler_pic='-fPIC'
8215 case $cc_basename in
8216 nvcc*) # Cuda Compiler Driver 2.2
8217 lt_prog_compiler_wl='-Xlinker '
8218 if test -n "$lt_prog_compiler_pic"; then
8219 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8224 # PORTME Check for flag to pass linker flags through the system compiler.
8227 lt_prog_compiler_wl='-Wl,'
8228 if test "$host_cpu" = ia64; then
8229 # AIX 5 now supports IA64 processor
8230 lt_prog_compiler_static='-Bstatic'
8232 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8236 mingw* | cygwin* | pw32* | os2* | cegcc*)
8237 # This hack is so that the source file can tell whether it is being
8238 # built for inclusion in a dll (and should export symbols for example).
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8242 hpux9* | hpux10* | hpux11*)
8243 lt_prog_compiler_wl='-Wl,'
8244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8251 lt_prog_compiler_pic='+Z'
8254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8255 lt_prog_compiler_static='${wl}-a ${wl}archive'
8258 irix5* | irix6* | nonstopux*)
8259 lt_prog_compiler_wl='-Wl,'
8260 # PIC (with -KPIC) is the default.
8261 lt_prog_compiler_static='-non_shared'
8264 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8265 case $cc_basename in
8266 # old Intel for x86_64 which still supported -KPIC.
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-KPIC'
8270 lt_prog_compiler_static='-static'
8272 # icc used to be incompatible with GCC.
8273 # ICC 10 doesn't accept -KPIC any more.
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_pic='-fPIC'
8277 lt_prog_compiler_static='-static'
8279 # Lahey Fortran 8.1.
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='--shared'
8283 lt_prog_compiler_static='--static'
8286 # NAG Fortran compiler
8287 lt_prog_compiler_wl='-Wl,-Wl,,'
8288 lt_prog_compiler_pic='-PIC'
8289 lt_prog_compiler_static='-Bstatic'
8291 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8292 # Portland Group compilers (*not* the Pentium gcc compiler,
8293 # which looks to be a dead project)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-fpic'
8296 lt_prog_compiler_static='-Bstatic'
8299 lt_prog_compiler_wl='-Wl,'
8300 # All Alpha code is PIC.
8301 lt_prog_compiler_static='-non_shared'
8303 xl* | bgxl* | bgf* | mpixl*)
8304 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-qpic'
8307 lt_prog_compiler_static='-qstaticlink'
8310 case `$CC -V 2>&1 | sed 5q` in
8311 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8312 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 lt_prog_compiler_wl=''
8317 *Sun\ F* | *Sun*Fortran*)
8318 lt_prog_compiler_pic='-KPIC'
8319 lt_prog_compiler_static='-Bstatic'
8320 lt_prog_compiler_wl='-Qoption ld '
8324 lt_prog_compiler_pic='-KPIC'
8325 lt_prog_compiler_static='-Bstatic'
8326 lt_prog_compiler_wl='-Wl,'
8328 *Intel*\ [CF]*Compiler*)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fPIC'
8331 lt_prog_compiler_static='-static'
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-fpic'
8336 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8349 # QNX uses GNU C++, but need to define -shared option too, otherwise
8351 lt_prog_compiler_pic='-fPIC -shared'
8354 osf3* | osf4* | osf5*)
8355 lt_prog_compiler_wl='-Wl,'
8356 # All OSF/1 code is PIC.
8357 lt_prog_compiler_static='-non_shared'
8361 lt_prog_compiler_static='-non_shared'
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 case $cc_basename in
8368 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8369 lt_prog_compiler_wl='-Qoption ld ';;
8371 lt_prog_compiler_wl='-Wl,';;
8376 lt_prog_compiler_wl='-Qoption ld '
8377 lt_prog_compiler_pic='-PIC'
8378 lt_prog_compiler_static='-Bstatic'
8381 sysv4 | sysv4.2uw2* | sysv4.3*)
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8388 if test -d /usr/nec ;then
8389 lt_prog_compiler_pic='-Kconform_pic'
8390 lt_prog_compiler_static='-Bstatic'
8394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_can_build_shared=no
8406 lt_prog_compiler_pic='-pic'
8407 lt_prog_compiler_static='-Bstatic'
8411 lt_prog_compiler_can_build_shared=no
8417 # For platforms which do not support PIC, -DPIC is meaningless:
8419 lt_prog_compiler_pic=
8422 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8427 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8428 if ${lt_cv_prog_compiler_pic+:} false; then :
8429 $as_echo_n "(cached) " >&6
8431 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8434 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8435 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8438 # Check to make sure the PIC flag actually works.
8440 if test -n "$lt_prog_compiler_pic"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 lt_cv_prog_compiler_pic_works=no
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450 # Insert the option either (1) after the last *FLAGS variable, or
8451 # (2) before a word containing "conftest.", or (3) at the end.
8452 # Note that $ac_compile itself does not contain backslashes and begins
8453 # with a dollar sign (not a hyphen), so the echo should work correctly.
8454 # The option is referenced via a variable to avoid confusing sed.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>conftest.err)
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s "$ac_outfile"; then
8465 # The compiler can only warn and ignore the option if not recognized
8466 # So say no if there are warnings other than the usual output.
8467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470 lt_cv_prog_compiler_pic_works=yes
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480 case $lt_prog_compiler_pic in
8482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8485 lt_prog_compiler_pic=
8486 lt_prog_compiler_can_build_shared=no
8502 # Check to make sure the static flag actually works.
8504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507 if ${lt_cv_prog_compiler_static_works+:} false; then :
8508 $as_echo_n "(cached) " >&6
8510 lt_cv_prog_compiler_static_works=no
8511 save_LDFLAGS="$LDFLAGS"
8512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err; then
8518 # Append any errors to the config.log.
8519 cat conftest.err 1>&5
8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_static_works=yes
8526 lt_cv_prog_compiler_static_works=yes
8530 LDFLAGS="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8536 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8539 lt_prog_compiler_static=
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550 if ${lt_cv_prog_compiler_c_o+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 lt_cv_prog_compiler_c_o=no
8554 $RM -r conftest 2>/dev/null
8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560 lt_compiler_flag="-o out/conftest2.$ac_objext"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 lt_compile=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>out/conftest.err)
8572 cat out/conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_c_o=yes
8586 # SGI C++ compiler will create directory out/ii_files/ for
8587 # template instantiation
8588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589 $RM out/* && rmdir out
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605 if ${lt_cv_prog_compiler_c_o+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 lt_cv_prog_compiler_c_o=no
8609 $RM -r conftest 2>/dev/null
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615 lt_compiler_flag="-o out/conftest2.$ac_objext"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>out/conftest.err)
8627 cat out/conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings
8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_c_o=yes
8641 # SGI C++ compiler will create directory out/ii_files/ for
8642 # template instantiation
8643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8644 $RM out/* && rmdir out
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8656 hard_links="nottested"
8657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8658 # do not overwrite the value of need_locks provided by the user
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660 $as_echo_n "checking if we can lock with hard links... " >&6; }
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 ln conftest.a conftest.b 2>&5 || hard_links=no
8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668 $as_echo "$hard_links" >&6; }
8669 if test "$hard_links" = no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8687 allow_undefined_flag=
8688 always_export_symbols=no
8690 archive_expsym_cmds=
8691 compiler_needs_object=no
8692 enable_shared_with_static_runtimes=no
8693 export_dynamic_flag_spec=
8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695 hardcode_automatic=no
8697 hardcode_direct_absolute=no
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_separator=
8701 hardcode_shlibpath_var=unsupported
8703 link_all_deplibs=unknown
8706 old_archive_from_new_cmds=
8707 old_archive_from_expsyms_cmds=
8708 thread_safe_flag_spec=
8709 whole_archive_flag_spec=
8710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
8717 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
8723 # Exclude shared library initialization/finalization symbols.
8724 extract_expsyms_cmds=
8727 cygwin* | mingw* | pw32* | cegcc*)
8728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729 # When not using gcc, we currently assume that we are using
8730 # Microsoft Visual C++.
8731 if test "$GCC" != yes; then
8736 # we just hope/assume this is gcc and not c89 (= MSVC++)
8742 linux* | k*bsd*-gnu | gnu*)
8749 # On some targets, GNU ld is compatible enough with the native linker
8750 # that we're better off using the native interface for both.
8751 lt_use_gnu_ld_interface=no
8752 if test "$with_gnu_ld" = yes; then
8755 # The AIX port of GNU ld has always aspired to compatibility
8756 # with the native linker. However, as the warning in the GNU ld
8757 # block says, versions before 2.19.5* couldn't really create working
8758 # shared libraries, regardless of the interface used.
8759 case `$LD -v 2>&1` in
8760 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8761 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8762 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8764 lt_use_gnu_ld_interface=yes
8769 lt_use_gnu_ld_interface=yes
8774 if test "$lt_use_gnu_ld_interface" = yes; then
8775 # If archive_cmds runs LD, not CC, wlarc should be empty
8778 # Set some defaults for GNU ld with shared library support. These
8779 # are reset later if shared libraries are not supported. Putting them
8780 # here allows them to be overridden if necessary.
8781 runpath_var=LD_RUN_PATH
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 export_dynamic_flag_spec='${wl}--export-dynamic'
8784 # ancient GNU ld didn't support --whole-archive et. al.
8785 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8786 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8788 whole_archive_flag_spec=
8790 supports_anon_versioning=no
8791 case `$LD -v 2>&1` in
8792 *GNU\ gold*) supports_anon_versioning=yes ;;
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796 *\ 2.11.*) ;; # other 2.11 versions
8797 *) supports_anon_versioning=yes ;;
8800 # See if GNU ld supports shared libraries.
8803 # On AIX/PPC, the GNU linker is very broken
8804 if test "$host_cpu" != ia64; then
8808 *** Warning: the GNU linker, at least up to release 2.19, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support. If you
8811 *** really care for shared libraries, you may want to install binutils
8812 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8813 *** You will then need to restart the configuration process.
8822 # see comment about AmigaOS4 .so support
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds=''
8827 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)'
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_minus_L=yes
8835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 allow_undefined_flag=unsupported
8837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8838 # support --undefined. This deserves some investigation. FIXME
8839 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8847 # as there is no search path for DLLs.
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 export_dynamic_flag_spec='${wl}--export-all-symbols'
8850 allow_undefined_flag=unsupported
8851 always_export_symbols=no
8852 enable_shared_with_static_runtimes=yes
8853 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'
8854 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8856 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858 # If the export-symbols file already is a .def file (1st line
8859 # is EXPORTS), use it as is; otherwise, prepend...
8860 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8861 cp $export_symbols $output_objdir/$soname.def;
8863 echo EXPORTS > $output_objdir/$soname.def;
8864 cat $export_symbols >> $output_objdir/$soname.def;
8866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 link_all_deplibs=yes
8879 hardcode_shlibpath_var=no
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881 export_dynamic_flag_spec='${wl}-E'
8882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883 # Instead, shared libraries are loaded at an image base (0x10000000 by
8884 # default) and relocated if they conflict, which is a slow very memory
8885 # consuming and fragmenting process. To avoid this, we pick a random,
8886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 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'
8892 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8894 if test "$host_os" = linux-dietlibc; then
8895 case $cc_basename in
8896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900 && test "$tmp_diet" = no
8902 tmp_addflag=' $pic_flag'
8903 tmp_sharedflag='-shared'
8904 case $cc_basename,$host_cpu in
8905 pgcc*) # Portland Group C compiler
8906 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'
8907 tmp_addflag=' $pic_flag'
8909 pgf77* | pgf90* | pgf95* | pgfortran*)
8910 # Portland Group f77 and f90 compilers
8911 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'
8912 tmp_addflag=' $pic_flag -Mnomain' ;;
8913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8914 tmp_addflag=' -i_dynamic' ;;
8915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8916 tmp_addflag=' -i_dynamic -nofor_main' ;;
8917 ifc* | ifort*) # Intel Fortran compiler
8918 tmp_addflag=' -nofor_main' ;;
8919 lf95*) # Lahey Fortran 8.1
8920 whole_archive_flag_spec=
8921 tmp_sharedflag='--shared' ;;
8922 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8923 tmp_sharedflag='-qmkshrobj'
8925 nvcc*) # Cuda Compiler Driver 2.2
8926 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'
8927 compiler_needs_object=yes
8930 case `$CC -V 2>&1 | sed 5q` in
8931 *Sun\ C*) # Sun C 5.9
8932 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'
8933 compiler_needs_object=yes
8934 tmp_sharedflag='-G' ;;
8935 *Sun\ F*) # Sun Fortran 8.3
8936 tmp_sharedflag='-G' ;;
8938 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 if test "x$supports_anon_versioning" = xyes; then
8941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8943 echo "local: *; };" >> $output_objdir/$libname.ver~
8944 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8947 case $cc_basename in
8948 xlf* | bgf* | bgxlf* | mpixlf*)
8949 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8950 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes; then
8954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8966 netbsd* | netbsdelf*-gnu)
8967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8968 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8977 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8981 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982 *** create shared libraries on Solaris systems. Therefore, libtool
8983 *** is disabling shared libraries support. We urge you to upgrade GNU
8984 *** binutils to release 2.9.1 or newer. Another option is to modify
8985 *** your PATH or compiler configuration so that the native linker is
8986 *** used, and then restart.
8989 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9003 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004 *** reliably create shared libraries on SCO systems. Therefore, libtool
9005 *** is disabling shared libraries support. We urge you to upgrade GNU
9006 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9007 *** your PATH or compiler configuration so that the native linker is
9008 *** used, and then restart.
9013 # For security reasons, it is highly recommended that you always
9014 # use absolute paths for naming shared libraries, and exclude the
9015 # DT_RUNPATH tag from executables and libraries. But doing so
9016 # requires that you compile everything twice, which is a pain.
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9032 hardcode_shlibpath_var=no
9036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 if test "$ld_shlibs" = no; then
9047 hardcode_libdir_flag_spec=
9048 export_dynamic_flag_spec=
9049 whole_archive_flag_spec=
9052 # PORTME fill in a description of your system's linker (not GNU ld)
9055 allow_undefined_flag=unsupported
9056 always_export_symbols=yes
9057 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'
9058 # Note: this linker hardcodes the directories in LIBPATH if there
9059 # are no directories specified by -L.
9060 hardcode_minus_L=yes
9061 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9062 # Neither direct hardcoding nor static linking is supported with a
9064 hardcode_direct=unsupported
9069 if test "$host_cpu" = ia64; then
9070 # On IA64, the linker does run time linking by default, so we don't
9071 # have to do anything special.
9072 aix_use_runtimelinking=no
9073 exp_sym_flag='-Bexport'
9076 # If we're using GNU nm, then we don't want the "-C" option.
9077 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9078 # Also, AIX nm treats weak defined symbols like other global
9079 # defined symbols, whereas GNU nm marks them as "W".
9080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9081 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'
9083 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'
9085 aix_use_runtimelinking=no
9087 # Test if we are trying to use run time linking or normal
9088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9089 # need to do runtime linking.
9090 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9091 for ld_flag in $LDFLAGS; do
9092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9093 aix_use_runtimelinking=yes
9100 exp_sym_flag='-bexport'
9101 no_entry_flag='-bnoentry'
9104 # When large executables or shared objects are built, AIX ld can
9105 # have problems creating the table of contents. If linking a library
9106 # or program results in "error TOC overflow" add -mminimal-toc to
9107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9112 hardcode_direct_absolute=yes
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 file_list_spec='${wl}-f,'
9117 if test "$GCC" = yes; then
9118 case $host_os in aix4.[012]|aix4.[012].*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" &&
9123 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9125 # We have reworked collect2
9128 # We have old collect2
9129 hardcode_direct=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L=yes
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_libdir_separator=
9139 shared_flag='-shared'
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag="$shared_flag "'${wl}-G'
9146 if test "$host_cpu" = ia64; then
9147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9148 # chokes on -Wl,-G. The following line is correct:
9151 if test "$aix_use_runtimelinking" = yes; then
9152 shared_flag='${wl}-G'
9154 shared_flag='${wl}-bM:SRE'
9159 export_dynamic_flag_spec='${wl}-bexpall'
9160 # It seems that -bexpall does not export symbols beginning with
9161 # underscore (_), so it is better to generate a list of symbols to export.
9162 always_export_symbols=yes
9163 if test "$aix_use_runtimelinking" = yes; then
9164 # Warning - without using the other runtime loading flags (-brtl),
9165 # -berok will link without error, but may produce a broken library.
9166 allow_undefined_flag='-berok'
9167 # Determine the default libpath from the value encoded in an
9169 if test "${lt_cv_aix_libpath+set}" = set; then
9170 aix_libpath=$lt_cv_aix_libpath
9172 if ${lt_cv_aix_libpath_+:} false; then :
9173 $as_echo_n "(cached) " >&6
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9186 if ac_fn_c_try_link "$LINENO"; then :
9188 lt_aix_libpath_sed='
9189 /Import File Strings/,/^$/ {
9191 s/^0 *\([^ ]*\) *$/\1/
9195 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196 # Check for a 64-bit object if we didn't find anything.
9197 if test -z "$lt_cv_aix_libpath_"; then
9198 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 if test -z "$lt_cv_aix_libpath_"; then
9204 lt_cv_aix_libpath_="/usr/lib:/lib"
9209 aix_libpath=$lt_cv_aix_libpath_
9212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 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"
9215 if test "$host_cpu" = ia64; then
9216 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9217 allow_undefined_flag="-z nodefs"
9218 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"
9220 # Determine the default libpath from the value encoded in an
9222 if test "${lt_cv_aix_libpath+set}" = set; then
9223 aix_libpath=$lt_cv_aix_libpath
9225 if ${lt_cv_aix_libpath_+:} false; then :
9226 $as_echo_n "(cached) " >&6
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9239 if ac_fn_c_try_link "$LINENO"; then :
9241 lt_aix_libpath_sed='
9242 /Import File Strings/,/^$/ {
9244 s/^0 *\([^ ]*\) *$/\1/
9248 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 # Check for a 64-bit object if we didn't find anything.
9250 if test -z "$lt_cv_aix_libpath_"; then
9251 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 if test -z "$lt_cv_aix_libpath_"; then
9257 lt_cv_aix_libpath_="/usr/lib:/lib"
9262 aix_libpath=$lt_cv_aix_libpath_
9265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266 # Warning - without using the other run time loading flags,
9267 # -berok will link without error, but may produce a broken library.
9268 no_undefined_flag=' ${wl}-bernotok'
9269 allow_undefined_flag=' ${wl}-berok'
9270 if test "$with_gnu_ld" = yes; then
9271 # We only use this code for GNU lds that support --whole-archive.
9272 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9274 # Exported symbols can be pulled into shared objects from archives
9275 whole_archive_flag_spec='$convenience'
9277 archive_cmds_need_lc=yes
9278 # This is similar to how AIX traditionally builds its shared libraries.
9279 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'
9287 # see comment about AmigaOS4 .so support
9288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289 archive_expsym_cmds=''
9292 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)'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_minus_L=yes
9300 export_dynamic_flag_spec=-rdynamic
9303 cygwin* | mingw* | pw32* | cegcc*)
9304 # When not using gcc, we currently assume that we are using
9305 # Microsoft Visual C++.
9306 # hardcode_libdir_flag_spec is actually meaningless, as there is
9307 # no search path for DLLs.
9308 case $cc_basename in
9311 hardcode_libdir_flag_spec=' '
9312 allow_undefined_flag=unsupported
9313 always_export_symbols=yes
9315 # Tell ltmain to make .lib files, not .a files.
9317 # Tell ltmain to make .dll files, not .so files.
9319 # FIXME: Setting linknames here is a bad hack.
9320 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9321 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9322 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9324 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9326 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9328 # The linker will not automatically build a static lib if we build a DLL.
9329 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9330 enable_shared_with_static_runtimes=yes
9331 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9332 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9334 old_postinstall_cmds='chmod 644 $oldlib'
9335 postlink_cmds='lt_outputfile="@OUTPUT@"~
9336 lt_tool_outputfile="@TOOL_OUTPUT@"~
9337 case $lt_outputfile in
9340 lt_outputfile="$lt_outputfile.exe"
9341 lt_tool_outputfile="$lt_tool_outputfile.exe"
9344 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9345 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9346 $RM "$lt_outputfile.manifest";
9350 # Assume MSVC wrapper
9351 hardcode_libdir_flag_spec=' '
9352 allow_undefined_flag=unsupported
9353 # Tell ltmain to make .lib files, not .a files.
9355 # Tell ltmain to make .dll files, not .so files.
9357 # FIXME: Setting linknames here is a bad hack.
9358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9359 # The linker will automatically build a .lib file if we build a DLL.
9360 old_archive_from_new_cmds='true'
9361 # FIXME: Should let the user specify the lib program.
9362 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9363 enable_shared_with_static_runtimes=yes
9368 darwin* | rhapsody*)
9371 archive_cmds_need_lc=no
9373 hardcode_automatic=yes
9374 hardcode_shlibpath_var=unsupported
9375 if test "$lt_cv_ld_force_load" = "yes"; then
9376 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\"`'
9379 whole_archive_flag_spec=''
9381 link_all_deplibs=yes
9382 allow_undefined_flag="$_lt_dar_allow_undefined"
9383 case $cc_basename in
9384 ifort*) _lt_dar_can_shared=yes ;;
9385 *) _lt_dar_can_shared=$GCC ;;
9387 if test "$_lt_dar_can_shared" = "yes"; then
9388 output_verbose_link_cmd=func_echo_all
9389 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9390 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9391 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}"
9392 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}"
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_libdir_flag_spec='-L$libdir'
9403 hardcode_shlibpath_var=no
9406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9407 # support. Future versions do this automatically, but an explicit c++rt0.o
9408 # does not break anything, and helps significantly (at the cost of a little
9411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9412 hardcode_libdir_flag_spec='-R$libdir'
9414 hardcode_shlibpath_var=no
9417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_minus_L=yes
9422 hardcode_shlibpath_var=no
9425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9426 freebsd* | dragonfly*)
9427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9428 hardcode_libdir_flag_spec='-R$libdir'
9430 hardcode_shlibpath_var=no
9434 if test "$GCC" = yes; then
9435 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'
9437 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'
9439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9440 hardcode_libdir_separator=:
9443 # hardcode_minus_L: Not really in the search PATH,
9444 # but as the default location of the library.
9445 hardcode_minus_L=yes
9446 export_dynamic_flag_spec='${wl}-E'
9450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9451 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9455 if test "$with_gnu_ld" = no; then
9456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457 hardcode_libdir_separator=:
9459 hardcode_direct_absolute=yes
9460 export_dynamic_flag_spec='${wl}-E'
9461 # hardcode_minus_L: Not really in the search PATH,
9462 # but as the default location of the library.
9463 hardcode_minus_L=yes
9468 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9471 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9490 # Older versions of the 11.00 compiler do not understand -b yet
9491 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9493 $as_echo_n "checking if $CC understands -b... " >&6; }
9494 if ${lt_cv_prog_compiler__b+:} false; then :
9495 $as_echo_n "(cached) " >&6
9497 lt_cv_prog_compiler__b=no
9498 save_LDFLAGS="$LDFLAGS"
9499 LDFLAGS="$LDFLAGS -b"
9500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9502 # The linker can only warn and ignore the option if not recognized
9503 # So say no if there are warnings
9504 if test -s conftest.err; then
9505 # Append any errors to the config.log.
9506 cat conftest.err 1>&5
9507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509 if diff conftest.exp conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler__b=yes
9513 lt_cv_prog_compiler__b=yes
9517 LDFLAGS="$save_LDFLAGS"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9521 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9523 if test x"$lt_cv_prog_compiler__b" = xyes; then
9524 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9532 if test "$with_gnu_ld" = no; then
9533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9534 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9543 hardcode_direct_absolute=yes
9544 export_dynamic_flag_spec='${wl}-E'
9546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9554 irix5* | irix6* | nonstopux*)
9555 if test "$GCC" = yes; then
9556 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'
9557 # Try to use the -exported_symbol ld option, if it does not
9558 # work, assume that -exports_file does not work either and
9559 # implicitly export all symbols.
9560 # This should be the same for all languages, so no per-tag cache variable.
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9562 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9563 if ${lt_cv_irix_exported_symbol+:} false; then :
9564 $as_echo_n "(cached) " >&6
9566 save_LDFLAGS="$LDFLAGS"
9567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 int foo (void) { return 0; }
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 lt_cv_irix_exported_symbol=yes
9575 lt_cv_irix_exported_symbol=no
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LDFLAGS="$save_LDFLAGS"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9582 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9583 if test "$lt_cv_irix_exported_symbol" = yes; then
9584 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'
9587 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'
9588 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'
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9592 hardcode_libdir_separator=:
9594 link_all_deplibs=yes
9597 netbsd* | netbsdelf*-gnu)
9598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9603 hardcode_libdir_flag_spec='-R$libdir'
9605 hardcode_shlibpath_var=no
9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 hardcode_shlibpath_var=no
9620 if test -f /usr/libexec/ld.so; then
9622 hardcode_shlibpath_var=no
9623 hardcode_direct_absolute=yes
9624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9628 export_dynamic_flag_spec='${wl}-E'
9631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_libdir_flag_spec='-R$libdir'
9636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_minus_L=yes
9649 allow_undefined_flag=unsupported
9650 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'
9651 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9655 if test "$GCC" = yes; then
9656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657 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'
9659 allow_undefined_flag=' -expect_unresolved \*'
9660 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'
9662 archive_cmds_need_lc='no'
9663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9664 hardcode_libdir_separator=:
9667 osf4* | osf5*) # as osf3* with the addition of -msym flag
9668 if test "$GCC" = yes; then
9669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9670 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'
9671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 allow_undefined_flag=' -expect_unresolved \*'
9674 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'
9675 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~
9676 $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'
9678 # Both c and cxx compiler support -rpath directly
9679 hardcode_libdir_flag_spec='-rpath $libdir'
9681 archive_cmds_need_lc='no'
9682 hardcode_libdir_separator=:
9686 no_undefined_flag=' -z defs'
9687 if test "$GCC" = yes; then
9689 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9691 $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'
9693 case `$CC -V 2>&1` in
9696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9702 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9704 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9708 hardcode_libdir_flag_spec='-R$libdir'
9709 hardcode_shlibpath_var=no
9711 solaris2.[0-5] | solaris2.[0-5].*) ;;
9713 # The compiler driver will combine and reorder linker options,
9714 # but understands `-z linker_flag'. GCC discards it without `$wl',
9715 # but is careful enough not to reorder.
9716 # Supported since Solaris 2.6 (maybe 2.5.1?)
9717 if test "$GCC" = yes; then
9718 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9724 link_all_deplibs=yes
9728 if test "x$host_vendor" = xsequent; then
9729 # Use $CC to link under sequent, because it throws in some extra .o
9730 # files that make .init and .fini sections work.
9731 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9733 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_minus_L=yes
9738 hardcode_shlibpath_var=no
9742 case $host_vendor in
9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_direct=yes # is this really true???
9748 ## LD is ld it makes a PLAMLIB
9749 ## CC just makes a GrossModule.
9750 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9751 reload_cmds='$CC -r -o $output$reload_objs'
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9759 runpath_var='LD_RUN_PATH'
9760 hardcode_shlibpath_var=no
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_shlibpath_var=no
9766 export_dynamic_flag_spec='-Bexport'
9770 if test -d /usr/nec; then
9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_shlibpath_var=no
9773 runpath_var=LD_RUN_PATH
9774 hardcode_runpath_var=yes
9779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9780 no_undefined_flag='${wl}-z,text'
9781 archive_cmds_need_lc=no
9782 hardcode_shlibpath_var=no
9783 runpath_var='LD_RUN_PATH'
9785 if test "$GCC" = yes; then
9786 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 sysv5* | sco3.2v5* | sco5v6*)
9795 # Note: We can NOT use -z defs as we might desire, because we do not
9796 # link with -lc, and that would cause any symbols used from libc to
9797 # always be unresolved, which means just about no library would
9798 # ever link correctly. If we're not using GNU ld we use -z text
9799 # though, which does catch some bad symbols but isn't as heavy-handed
9801 no_undefined_flag='${wl}-z,text'
9802 allow_undefined_flag='${wl}-z,nodefs'
9803 archive_cmds_need_lc=no
9804 hardcode_shlibpath_var=no
9805 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9806 hardcode_libdir_separator=':'
9807 link_all_deplibs=yes
9808 export_dynamic_flag_spec='${wl}-Bexport'
9809 runpath_var='LD_RUN_PATH'
9811 if test "$GCC" = yes; then
9812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_shlibpath_var=no
9831 if test x$host_vendor = xsni; then
9833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9834 export_dynamic_flag_spec='${wl}-Blargedynsym'
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9841 $as_echo "$ld_shlibs" >&6; }
9842 test "$ld_shlibs" = no && can_build_shared=no
9844 with_gnu_ld=$with_gnu_ld
9861 # Do we need to explicitly link libc?
9863 case "x$archive_cmds_need_lc" in
9865 # Assume -lc should be added
9866 archive_cmds_need_lc=yes
9868 if test "$enable_shared" = yes && test "$GCC" = yes; then
9869 case $archive_cmds in
9871 # FIXME: we may have to deal with multi-command sequences.
9874 # Test whether the compiler implicitly links with -lc since on some
9875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9876 # to ld, don't add -lc before -lgcc.
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9878 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9879 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9880 $as_echo_n "(cached) " >&6
9883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9886 (eval $ac_compile) 2>&5
9888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889 test $ac_status = 0; } 2>conftest.err; then
9892 libobjs=conftest.$ac_objext
9894 wl=$lt_prog_compiler_wl
9895 pic_flag=$lt_prog_compiler_pic
9901 lt_save_allow_undefined_flag=$allow_undefined_flag
9902 allow_undefined_flag=
9903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9904 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9907 test $ac_status = 0; }
9909 lt_cv_archive_cmds_need_lc=no
9911 lt_cv_archive_cmds_need_lc=yes
9913 allow_undefined_flag=$lt_save_allow_undefined_flag
9915 cat conftest.err 1>&5
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9921 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9922 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10081 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10083 if test "$GCC" = yes; then
10085 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10086 *) lt_awk_arg="/^libraries:/" ;;
10089 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10090 *) lt_sed_strip_eq="s,=/,/,g" ;;
10092 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10093 case $lt_search_path_spec in
10095 # if the path contains ";" then we assume it to be the separator
10096 # otherwise default to the standard path separator (i.e. ":") - it is
10097 # assumed that no part of a normal pathname contains ";" but that should
10098 # okay in the real world where ";" in dirpaths is itself problematic.
10099 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10105 # Ok, now we have the path, separated by spaces, we can step through it
10106 # and add multilib dir if necessary.
10107 lt_tmp_lt_search_path_spec=
10108 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10109 for lt_sys_path in $lt_search_path_spec; do
10110 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10111 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10113 test -d "$lt_sys_path" && \
10114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10117 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10118 BEGIN {RS=" "; FS="/|\n";} {
10121 for (lt_i = NF; lt_i > 0; lt_i--) {
10122 if ($lt_i != "" && $lt_i != ".") {
10123 if ($lt_i == "..") {
10126 if (lt_count == 0) {
10127 lt_foo="/" $lt_i lt_foo;
10134 if (lt_foo != "") { lt_freq[lt_foo]++; }
10135 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10137 # AWK program above erroneously prepends '/' to C:/dos/paths
10140 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10141 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10143 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10145 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10147 library_names_spec=
10148 libname_spec='lib$name'
10152 postuninstall_cmds=
10156 shlibpath_overrides_runpath=unknown
10158 dynamic_linker="$host_os ld.so"
10159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10160 need_lib_prefix=unknown
10161 hardcode_into_libs=no
10163 # when you set need_version to no, make sure it does not cause -set_version
10164 # flags to be left without arguments
10165 need_version=unknown
10169 version_type=linux # correct to gnu/linux during the next big refactor
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10171 shlibpath_var=LIBPATH
10173 # AIX 3 has no versioning support, so we append a major version to the name.
10174 soname_spec='${libname}${release}${shared_ext}$major'
10178 version_type=linux # correct to gnu/linux during the next big refactor
10181 hardcode_into_libs=yes
10182 if test "$host_cpu" = ia64; then
10183 # AIX 5 supports IA64
10184 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10185 shlibpath_var=LD_LIBRARY_PATH
10187 # With GCC up to 2.95.x, collect2 would create an import file
10188 # for dependence libraries. The import file would start with
10189 # the line `#! .'. This would cause the generated library to
10190 # depend on `.', always an invalid library. This was fixed in
10191 # development snapshots of GCC prior to 3.0.
10193 aix4 | aix4.[01] | aix4.[01].*)
10194 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10196 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10199 can_build_shared=no
10203 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10204 # soname into executable. Probably we can add versioning support to
10205 # collect2, so additional links can be useful in future.
10206 if test "$aix_use_runtimelinking" = yes; then
10207 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10208 # instead of lib<name>.a to let people know that these are not
10209 # typical AIX shared libraries.
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 # We preserve .a as extension for shared libraries through AIX4.2
10213 # and later when we are not doing run time linking.
10214 library_names_spec='${libname}${release}.a $libname.a'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LIBPATH
10224 # Since July 2007 AmigaOS4 officially supports .so libraries.
10225 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 library_names_spec='$libname.ixlibrary $libname.a'
10230 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10231 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'
10237 library_names_spec='${libname}${shared_ext}'
10238 dynamic_linker="$host_os ld.so"
10239 shlibpath_var=LIBRARY_PATH
10243 version_type=linux # correct to gnu/linux during the next big refactor
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10251 # the default ld.so.conf also contains /usr/contrib/lib and
10252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10253 # libtool to hard-code these into programs
10256 cygwin* | mingw* | pw32* | cegcc*)
10257 version_type=windows
10262 case $GCC,$cc_basename in
10265 library_names_spec='$libname.dll.a'
10266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10267 postinstall_cmds='base_file=`basename \${file}`~
10268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10269 dldir=$destdir/`dirname \$dlpath`~
10270 test -d \$dldir || mkdir -p \$dldir~
10271 $install_prog $dir/$dlname \$dldir/$dlname~
10272 chmod a+x \$dldir/$dlname~
10273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10277 dlpath=$dir/\$dldll~
10279 shlibpath_overrides_runpath=yes
10283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10289 # MinGW DLLs use traditional 'lib' prefix
10290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10293 # pw32 DLLs use 'pw' prefix rather than 'lib'
10294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297 dynamic_linker='Win32 ld.exe'
10302 libname_spec='$name'
10303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304 library_names_spec='${libname}.dll.lib'
10308 sys_lib_search_path_spec=
10311 for lt_path in $LIB
10314 # Let DOS variable expansion print the short 8.3 style file name.
10315 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10316 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10319 # Convert to MSYS style.
10320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10323 # Convert to unix form, then to dos form, then back to unix form
10324 # but this time dos style (no spaces!) so that the unix form looks
10325 # like /cygdrive/c/PROGRA~1:/cygdr...
10326 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10327 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10328 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10331 sys_lib_search_path_spec="$LIB"
10332 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10333 # It is most probably a Windows format PATH.
10334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10338 # FIXME: find the short name or the path components, as spaces are
10339 # common. (e.g. "Program Files" -> "PROGRA~1")
10343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10344 postinstall_cmds='base_file=`basename \${file}`~
10345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10346 dldir=$destdir/`dirname \$dlpath`~
10347 test -d \$dldir || mkdir -p \$dldir~
10348 $install_prog $dir/$dlname \$dldir/$dlname'
10349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10350 dlpath=$dir/\$dldll~
10352 shlibpath_overrides_runpath=yes
10353 dynamic_linker='Win32 link.exe'
10357 # Assume MSVC wrapper
10358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10359 dynamic_linker='Win32 ld.exe'
10362 # FIXME: first we should search . and the directory the executable is in
10366 darwin* | rhapsody*)
10367 dynamic_linker="$host_os dyld"
10368 version_type=darwin
10371 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10372 soname_spec='${libname}${release}${major}$shared_ext'
10373 shlibpath_overrides_runpath=yes
10374 shlibpath_var=DYLD_LIBRARY_PATH
10375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10382 version_type=linux # correct to gnu/linux during the next big refactor
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10390 freebsd* | dragonfly*)
10391 # DragonFly does not have aout. When/if they implement a new
10392 # versioning mechanism, adjust this.
10393 if test -x /usr/bin/objformat; then
10394 objformat=`/usr/bin/objformat`
10397 freebsd[23].*) objformat=aout ;;
10398 *) objformat=elf ;;
10401 version_type=freebsd-$objformat
10402 case $version_type in
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10413 shlibpath_var=LD_LIBRARY_PATH
10416 shlibpath_overrides_runpath=yes
10418 freebsd3.[01]* | freebsdelf3.[01]*)
10419 shlibpath_overrides_runpath=yes
10420 hardcode_into_libs=yes
10422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10427 *) # from 4.6 on, and DragonFly
10428 shlibpath_overrides_runpath=yes
10429 hardcode_into_libs=yes
10435 version_type=linux # correct to gnu/linux during the next big refactor
10438 dynamic_linker="$host_os runtime_loader"
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10444 hardcode_into_libs=yes
10447 hpux9* | hpux10* | hpux11*)
10448 # Give a soname corresponding to the major version so that dld.sl refuses to
10449 # link against other versions.
10456 hardcode_into_libs=yes
10457 dynamic_linker="$host_os dld.so"
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 if test "X$HPUX_IA64_MODE" = X32; then
10463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10471 hardcode_into_libs=yes
10472 dynamic_linker="$host_os dld.sl"
10473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 dynamic_linker="$host_os dld.sl"
10483 shlibpath_var=SHLIB_PATH
10484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10490 postinstall_cmds='chmod 555 $lib'
10491 # or fails outright, so override atomically:
10492 install_override_mode=555
10496 version_type=linux # correct to gnu/linux during the next big refactor
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10507 irix5* | irix6* | nonstopux*)
10509 nonstopux*) version_type=nonstopux ;;
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux # correct to gnu/linux during the next big refactor
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10549 # This must be glibc/ELF.
10550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10551 version_type=linux # correct to gnu/linux during the next big refactor
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10560 # Some binutils ld are patched to set DT_RUNPATH
10561 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10562 $as_echo_n "(cached) " >&6
10564 lt_cv_shlibpath_overrides_runpath=no
10565 save_LDFLAGS=$LDFLAGS
10566 save_libdir=$libdir
10567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582 lt_cv_shlibpath_overrides_runpath=yes
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LDFLAGS=$save_LDFLAGS
10588 libdir=$save_libdir
10592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10594 # This implies no fast_install, which is unacceptable.
10595 # Some rework will be needed to allow for fast_install
10596 # before this can be enabled.
10597 hardcode_into_libs=yes
10599 # Append ld.so.conf contents to the search path
10600 if test -f /etc/ld.so.conf; then
10601 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' ' '`
10602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10605 # We used to test for /lib/ld.so.1 and disable shared libraries on
10606 # powerpc, because MkLinux only supported shared libraries with the
10607 # GNU dynamic linker. Since this was broken with cross compilers,
10608 # most powerpc-linux boxes support dynamic linking these days and
10609 # people can always --disable-shared, the test was removed, and we
10610 # assume the GNU/Linux dynamic linker is in use.
10611 dynamic_linker='GNU/Linux ld.so'
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=no
10622 hardcode_into_libs=yes
10623 dynamic_linker='NetBSD ld.elf_so'
10630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10633 dynamic_linker='NetBSD (a.out) ld.so'
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 dynamic_linker='NetBSD ld.elf_so'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 hardcode_into_libs=yes
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=no
10659 hardcode_into_libs=yes
10660 dynamic_linker='ldqnx.so'
10665 sys_lib_dlsearch_path_spec="/usr/lib"
10667 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10669 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10670 *) need_version=no ;;
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10677 openbsd2.[89] | openbsd2.[89].*)
10678 shlibpath_overrides_runpath=no
10681 shlibpath_overrides_runpath=yes
10685 shlibpath_overrides_runpath=yes
10690 libname_spec='$name'
10693 library_names_spec='$libname${shared_ext} $libname.a'
10694 dynamic_linker='OS/2 ld.exe'
10695 shlibpath_var=LIBPATH
10698 osf3* | osf4* | osf5*)
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10714 version_type=linux # correct to gnu/linux during the next big refactor
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=yes
10721 hardcode_into_libs=yes
10722 # ldd complains unless libraries are executable
10723 postinstall_cmds='chmod +x $lib'
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath=yes
10732 if test "$with_gnu_ld" = yes; then
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 case $host_vendor in
10745 shlibpath_overrides_runpath=no
10747 runpath_var=LD_RUN_PATH
10755 shlibpath_overrides_runpath=no
10756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10762 if test -d /usr/nec ;then
10763 version_type=linux # correct to gnu/linux during the next big refactor
10764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10765 soname_spec='$libname${shared_ext}.$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10771 version_type=freebsd-elf
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=yes
10778 hardcode_into_libs=yes
10779 if test "$with_gnu_ld" = yes; then
10780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10782 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10785 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10789 sys_lib_dlsearch_path_spec='/usr/lib'
10793 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10794 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 shlibpath_overrides_runpath=no
10800 hardcode_into_libs=yes
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10815 $as_echo "$dynamic_linker" >&6; }
10816 test "$dynamic_linker" = no && can_build_shared=no
10818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10819 if test "$GCC" = yes; then
10820 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10823 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10824 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10826 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10827 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10922 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10924 if test -n "$hardcode_libdir_flag_spec" ||
10925 test -n "$runpath_var" ||
10926 test "X$hardcode_automatic" = "Xyes" ; then
10928 # We can hardcode non-existent directories.
10929 if test "$hardcode_direct" != no &&
10930 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10931 # have to relink, otherwise we might link with an installed library
10932 # when we should be linking with a yet-to-be-installed one
10933 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10934 test "$hardcode_minus_L" != no; then
10935 # Linking always hardcodes the temporary library directory.
10936 hardcode_action=relink
10938 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10939 hardcode_action=immediate
10942 # We cannot hardcode anything, or else we can only hardcode existing
10944 hardcode_action=unsupported
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10947 $as_echo "$hardcode_action" >&6; }
10949 if test "$hardcode_action" = relink ||
10950 test "$inherit_rpath" = yes; then
10951 # Fast installation is not supported
10952 enable_fast_install=no
10953 elif test "$shlibpath_overrides_runpath" = yes ||
10954 test "$enable_shared" = no; then
10955 # Fast installation is not necessary
10956 enable_fast_install=needless
10964 if test "x$enable_dlopen" != xyes; then
10965 enable_dlopen=unknown
10966 enable_dlopen_self=unknown
10967 enable_dlopen_self_static=unknown
10974 lt_cv_dlopen="load_add_on"
10976 lt_cv_dlopen_self=yes
10979 mingw* | pw32* | cegcc*)
10980 lt_cv_dlopen="LoadLibrary"
10985 lt_cv_dlopen="dlopen"
10990 # if libdl is installed we need to link against it
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10993 if ${ac_cv_lib_dl_dlopen+:} false; then :
10994 $as_echo_n "(cached) " >&6
10996 ac_check_lib_save_LIBS=$LIBS
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ac_cv_lib_dl_dlopen=yes
11019 ac_cv_lib_dl_dlopen=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11031 lt_cv_dlopen="dyld"
11033 lt_cv_dlopen_self=yes
11040 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11041 if test "x$ac_cv_func_shl_load" = xyes; then :
11042 lt_cv_dlopen="shl_load"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11045 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11046 if ${ac_cv_lib_dld_shl_load+:} false; then :
11047 $as_echo_n "(cached) " >&6
11049 ac_check_lib_save_LIBS=$LIBS
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11064 return shl_load ();
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 ac_cv_lib_dld_shl_load=yes
11072 ac_cv_lib_dld_shl_load=no
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11079 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11080 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11083 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11084 if test "x$ac_cv_func_dlopen" = xyes; then :
11085 lt_cv_dlopen="dlopen"
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11089 if ${ac_cv_lib_dl_dlopen+:} false; then :
11090 $as_echo_n "(cached) " >&6
11092 ac_check_lib_save_LIBS=$LIBS
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11112 if ac_fn_c_try_link "$LINENO"; then :
11113 ac_cv_lib_dl_dlopen=yes
11115 ac_cv_lib_dl_dlopen=no
11117 rm -f core conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS=$ac_check_lib_save_LIBS
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11123 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11127 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11128 if ${ac_cv_lib_svld_dlopen+:} false; then :
11129 $as_echo_n "(cached) " >&6
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lsvld $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_svld_dlopen=yes
11154 ac_cv_lib_svld_dlopen=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11161 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11162 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11166 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11167 if ${ac_cv_lib_dld_dld_link+:} false; then :
11168 $as_echo_n "(cached) " >&6
11170 ac_check_lib_save_LIBS=$LIBS
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11185 return dld_link ();
11190 if ac_fn_c_try_link "$LINENO"; then :
11191 ac_cv_lib_dld_dld_link=yes
11193 ac_cv_lib_dld_dld_link=no
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11200 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11201 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11202 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11223 if test "x$lt_cv_dlopen" != xno; then
11229 case $lt_cv_dlopen in
11231 save_CPPFLAGS="$CPPFLAGS"
11232 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11234 save_LDFLAGS="$LDFLAGS"
11235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11238 LIBS="$lt_cv_dlopen_libs $LIBS"
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11241 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11242 if ${lt_cv_dlopen_self+:} false; then :
11243 $as_echo_n "(cached) " >&6
11245 if test "$cross_compiling" = yes; then :
11246 lt_cv_dlopen_self=cross
11248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11249 lt_status=$lt_dlunknown
11250 cat > conftest.$ac_ext <<_LT_EOF
11251 #line $LINENO "configure"
11252 #include "confdefs.h"
11261 # define LT_DLGLOBAL RTLD_GLOBAL
11264 # define LT_DLGLOBAL DL_GLOBAL
11266 # define LT_DLGLOBAL 0
11270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11271 find out it does not work in some platform. */
11272 #ifndef LT_DLLAZY_OR_NOW
11274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11277 # define LT_DLLAZY_OR_NOW DL_LAZY
11280 # define LT_DLLAZY_OR_NOW RTLD_NOW
11283 # define LT_DLLAZY_OR_NOW DL_NOW
11285 # define LT_DLLAZY_OR_NOW 0
11292 /* When -fvisbility=hidden is used, assume the code has been annotated
11293 correspondingly for the symbols needed. */
11294 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11295 int fnord () __attribute__((visibility("default")));
11298 int fnord () { return 42; }
11301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11302 int status = $lt_dlunknown;
11306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11310 else puts (dlerror ());
11312 /* dlclose (self); */
11320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11321 (eval $ac_link) 2>&5
11323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11324 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11325 (./conftest; exit; ) >&5 2>/dev/null
11327 case x$lt_status in
11328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11330 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11333 # compilation failed
11334 lt_cv_dlopen_self=no
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11342 $as_echo "$lt_cv_dlopen_self" >&6; }
11344 if test "x$lt_cv_dlopen_self" = xyes; then
11345 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11347 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11348 if ${lt_cv_dlopen_self_static+:} false; then :
11349 $as_echo_n "(cached) " >&6
11351 if test "$cross_compiling" = yes; then :
11352 lt_cv_dlopen_self_static=cross
11354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11355 lt_status=$lt_dlunknown
11356 cat > conftest.$ac_ext <<_LT_EOF
11357 #line $LINENO "configure"
11358 #include "confdefs.h"
11367 # define LT_DLGLOBAL RTLD_GLOBAL
11370 # define LT_DLGLOBAL DL_GLOBAL
11372 # define LT_DLGLOBAL 0
11376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11377 find out it does not work in some platform. */
11378 #ifndef LT_DLLAZY_OR_NOW
11380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11383 # define LT_DLLAZY_OR_NOW DL_LAZY
11386 # define LT_DLLAZY_OR_NOW RTLD_NOW
11389 # define LT_DLLAZY_OR_NOW DL_NOW
11391 # define LT_DLLAZY_OR_NOW 0
11398 /* When -fvisbility=hidden is used, assume the code has been annotated
11399 correspondingly for the symbols needed. */
11400 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11401 int fnord () __attribute__((visibility("default")));
11404 int fnord () { return 42; }
11407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11408 int status = $lt_dlunknown;
11412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11416 else puts (dlerror ());
11418 /* dlclose (self); */
11426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11427 (eval $ac_link) 2>&5
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11431 (./conftest; exit; ) >&5 2>/dev/null
11433 case x$lt_status in
11434 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11435 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11436 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11439 # compilation failed
11440 lt_cv_dlopen_self_static=no
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11448 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11451 CPPFLAGS="$save_CPPFLAGS"
11452 LDFLAGS="$save_LDFLAGS"
11457 case $lt_cv_dlopen_self in
11458 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11459 *) enable_dlopen_self=unknown ;;
11462 case $lt_cv_dlopen_self_static in
11463 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11464 *) enable_dlopen_self_static=unknown ;;
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11487 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11488 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11490 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11494 # FIXME - insert some real tests, host_os isn't really good enough
11497 if test -n "$STRIP" ; then
11498 striplib="$STRIP -x"
11499 old_striplib="$STRIP -S"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 $as_echo "yes" >&6; }
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11525 # Report which library types will actually be built
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11527 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11529 $as_echo "$can_build_shared" >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11532 $as_echo_n "checking whether to build shared libraries... " >&6; }
11533 test "$can_build_shared" = "no" && enable_shared=no
11535 # On AIX, shared libraries and static libraries use the same namespace, and
11536 # are all built from PIC.
11539 test "$enable_shared" = yes && enable_static=no
11540 if test -n "$RANLIB"; then
11541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11542 postinstall_cmds='$RANLIB $lib'
11547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11548 test "$enable_shared" = yes && enable_static=no
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11553 $as_echo "$enable_shared" >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11556 $as_echo_n "checking whether to build static libraries... " >&6; }
11557 # Make sure either enable_shared or enable_static is yes.
11558 test "$enable_shared" = yes || enable_static=yes
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11560 $as_echo "$enable_static" >&6; }
11567 ac_cpp='$CPP $CPPFLAGS'
11568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588 ac_config_commands="$ac_config_commands libtool"
11593 # Only expand once:
11598 ac_cpp='$CPP $CPPFLAGS'
11599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602 if test -n "$ac_tool_prefix"; then
11603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_prog_CC+:} false; then :
11608 $as_echo_n "(cached) " >&6
11610 if test -n "$CC"; then
11611 ac_cv_prog_CC="$CC" # Let the user override the test.
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 if test -n "$CC"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11633 $as_echo "$CC" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11641 if test -z "$ac_cv_prog_CC"; then
11643 # Extract the first word of "gcc", so it can be a program name with args.
11644 set dummy gcc; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11648 $as_echo_n "(cached) " >&6
11650 if test -n "$ac_ct_CC"; then
11651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11657 test -z "$as_dir" && as_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11660 ac_cv_prog_ac_ct_CC="gcc"
11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11671 if test -n "$ac_ct_CC"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11673 $as_echo "$ac_ct_CC" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11679 if test "x$ac_ct_CC" = x; then
11682 case $cross_compiling:$ac_tool_warned in
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11686 ac_tool_warned=yes ;;
11691 CC="$ac_cv_prog_CC"
11694 if test -z "$CC"; then
11695 if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}cc; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_CC+:} false; then :
11701 $as_echo_n "(cached) " >&6
11703 if test -n "$CC"; then
11704 ac_cv_prog_CC="$CC" # Let the user override the test.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_CC="${ac_tool_prefix}cc"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 if test -n "$CC"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11726 $as_echo "$CC" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11735 if test -z "$CC"; then
11736 # Extract the first word of "cc", so it can be a program name with args.
11737 set dummy cc; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_CC+:} false; then :
11741 $as_echo_n "(cached) " >&6
11743 if test -n "$CC"; then
11744 ac_cv_prog_CC="$CC" # Let the user override the test.
11746 ac_prog_rejected=no
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11755 ac_prog_rejected=yes
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 if test $ac_prog_rejected = yes; then
11767 # We found a bogon in the path, so make sure we never use it.
11768 set dummy $ac_cv_prog_CC
11770 if test $# != 0; then
11771 # We chose a different compiler from the bogus one.
11772 # However, it has the same basename, so the bogon will be chosen
11773 # first if we set CC to just the basename; use the full file name.
11775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11781 if test -n "$CC"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11783 $as_echo "$CC" >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11791 if test -z "$CC"; then
11792 if test -n "$ac_tool_prefix"; then
11793 for ac_prog in cl.exe
11795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if ${ac_cv_prog_CC+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 if test -n "$CC"; then
11803 ac_cv_prog_CC="$CC" # Let the user override the test.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 if test -n "$CC"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11825 $as_echo "$CC" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11832 test -n "$CC" && break
11835 if test -z "$CC"; then
11837 for ac_prog in cl.exe
11839 # Extract the first word of "$ac_prog", so it can be a program name with args.
11840 set dummy $ac_prog; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11844 $as_echo_n "(cached) " >&6
11846 if test -n "$ac_ct_CC"; then
11847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_ac_ct_CC="$ac_prog"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11867 if test -n "$ac_ct_CC"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11869 $as_echo "$ac_ct_CC" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11876 test -n "$ac_ct_CC" && break
11879 if test "x$ac_ct_CC" = x; then
11882 case $cross_compiling:$ac_tool_warned in
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11886 ac_tool_warned=yes ;;
11895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11897 as_fn_error $? "no acceptable C compiler found in \$PATH
11898 See \`config.log' for more details" "$LINENO" 5; }
11900 # Provide some information about the compiler.
11901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11904 for ac_option in --version -v -V -qversion; do
11905 { { ac_try="$ac_compiler $ac_option >&5"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11911 $as_echo "$ac_try_echo"; } >&5
11912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11914 if test -s conftest.err; then
11916 ... rest of stderr output deleted ...
11917 10q' conftest.err >conftest.er1
11918 cat conftest.er1 >&5
11920 rm -f conftest.er1 conftest.err
11921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922 test $ac_status = 0; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11927 if ${ac_cv_c_compiler_gnu+:} false; then :
11928 $as_echo_n "(cached) " >&6
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945 ac_compiler_gnu=yes
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11955 if test $ac_compiler_gnu = yes; then
11960 ac_test_CFLAGS=${CFLAGS+set}
11961 ac_save_CFLAGS=$CFLAGS
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11964 if ${ac_cv_prog_cc_g+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 ac_save_c_werror_flag=$ac_c_werror_flag
11968 ac_c_werror_flag=yes
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11982 if ac_fn_c_try_compile "$LINENO"; then :
11983 ac_cv_prog_cc_g=yes
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11997 if ac_fn_c_try_compile "$LINENO"; then :
12000 ac_c_werror_flag=$ac_save_c_werror_flag
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014 ac_cv_prog_cc_g=yes
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 ac_c_werror_flag=$ac_save_c_werror_flag
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12024 $as_echo "$ac_cv_prog_cc_g" >&6; }
12025 if test "$ac_test_CFLAGS" = set; then
12026 CFLAGS=$ac_save_CFLAGS
12027 elif test $ac_cv_prog_cc_g = yes; then
12028 if test "$GCC" = yes; then
12034 if test "$GCC" = yes; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12042 if ${ac_cv_prog_cc_c89+:} false; then :
12043 $as_echo_n "(cached) " >&6
12045 ac_cv_prog_cc_c89=no
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12049 #include <stdarg.h>
12052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12053 struct buf { int x; };
12054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12055 static char *e (p, i)
12061 static char *f (char * (*g) (char **, int), char **p, ...)
12066 s = g (p, va_arg (v,int));
12071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12072 function prototypes and stuff, but not '\xHH' hex character constants.
12073 These don't provoke an error unfortunately, instead are silently treated
12074 as 'x'. The following induces an error, until -std is added to get
12075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12076 array size at least. It's necessary to write '\x00'==0 to get something
12077 that's true only with -std. */
12078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12081 inside strings and character constants. */
12083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12085 int test (int i, double x);
12086 struct s1 {int (*f) (int a);};
12087 struct s2 {int (*f) (double a);};
12088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12102 CC="$ac_save_CC $ac_arg"
12103 if ac_fn_c_try_compile "$LINENO"; then :
12104 ac_cv_prog_cc_c89=$ac_arg
12106 rm -f core conftest.err conftest.$ac_objext
12107 test "x$ac_cv_prog_cc_c89" != "xno" && break
12109 rm -f conftest.$ac_ext
12114 case "x$ac_cv_prog_cc_c89" in
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12117 $as_echo "none needed" >&6; } ;;
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12120 $as_echo "unsupported" >&6; } ;;
12122 CC="$CC $ac_cv_prog_cc_c89"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12126 if test "x$ac_cv_prog_cc_c89" != xno; then :
12131 ac_cpp='$CPP $CPPFLAGS'
12132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137 ac_cpp='$CPP $CPPFLAGS'
12138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12142 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12143 if ${am_cv_prog_cc_c_o+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12157 # Make sure it works both with $CC and with simple cc.
12158 # Following AC_PROG_CC_C_O, we do the test twice because some
12159 # compilers refuse to overwrite an existing .o file with -o,
12160 # though they will create one.
12161 am_cv_prog_cc_c_o=yes
12162 for am_i in 1 2; do
12163 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12164 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } \
12168 && test -f conftest2.$ac_objext; then
12171 am_cv_prog_cc_c_o=no
12175 rm -f core conftest*
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12179 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12180 if test "$am_cv_prog_cc_c_o" != yes; then
12181 # Losing compiler, so override with the script.
12182 # FIXME: It is wrong to rewrite CC.
12183 # But if we don't then we get into trouble of one sort or another.
12184 # A longer-term fix would be to have automake use am__CC in this case,
12185 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12186 CC="$am_aux_dir/compile $CC"
12189 ac_cpp='$CPP $CPPFLAGS'
12190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12202 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12203 if test -n "$ac_tool_prefix"; then
12204 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207 $as_echo_n "checking for $ac_word... " >&6; }
12208 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12209 $as_echo_n "(cached) " >&6
12211 case $PKG_CONFIG in
12213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12235 if test -n "$PKG_CONFIG"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12237 $as_echo "$PKG_CONFIG" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test -z "$ac_cv_path_PKG_CONFIG"; then
12246 ac_pt_PKG_CONFIG=$PKG_CONFIG
12247 # Extract the first word of "pkg-config", so it can be a program name with args.
12248 set dummy pkg-config; ac_word=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12252 $as_echo_n "(cached) " >&6
12254 case $ac_pt_PKG_CONFIG in
12256 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12278 if test -n "$ac_pt_PKG_CONFIG"; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12280 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12286 if test "x$ac_pt_PKG_CONFIG" = x; then
12289 case $cross_compiling:$ac_tool_warned in
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12293 ac_tool_warned=yes ;;
12295 PKG_CONFIG=$ac_pt_PKG_CONFIG
12298 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12302 if test -n "$PKG_CONFIG"; then
12303 _pkg_min_version=0.9.0
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12305 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12306 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12316 # Check whether --with-systemdsystemunitdir was given.
12317 if test "${with_systemdsystemunitdir+set}" = set; then :
12318 withval=$with_systemdsystemunitdir;
12320 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
12323 if test "x$with_systemdsystemunitdir" != xno; then
12324 systemdsystemunitdir=$with_systemdsystemunitdir
12327 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
12329 HAVE_SYSTEMD_FALSE='#'
12331 HAVE_SYSTEMD_TRUE='#'
12332 HAVE_SYSTEMD_FALSE=
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
12337 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
12338 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
12339 $as_echo_n "(cached) " >&6
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lgssapi_krb5 $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12352 char gss_init_sec_context ();
12356 return gss_init_sec_context ();
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
12364 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
12371 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
12372 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define HAVE_LIBGSSAPI_KRB5 1
12377 LIBS="-lgssapi_krb5 $LIBS"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
12382 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
12383 if ${ac_cv_lib_com_err_error_message+:} false; then :
12384 $as_echo_n "(cached) " >&6
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lcom_err $LIBS"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12397 char error_message ();
12401 return error_message ();
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_lib_com_err_error_message=yes
12409 ac_cv_lib_com_err_error_message=no
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
12416 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
12417 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_LIBCOM_ERR 1
12422 LIBS="-lcom_err $LIBS"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_asprintf in -ltalloc" >&5
12427 $as_echo_n "checking for talloc_asprintf in -ltalloc... " >&6; }
12428 if ${ac_cv_lib_talloc_talloc_asprintf+:} false; then :
12429 $as_echo_n "(cached) " >&6
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ltalloc $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12442 char talloc_asprintf ();
12446 return talloc_asprintf ();
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_talloc_talloc_asprintf=yes
12454 ac_cv_lib_talloc_talloc_asprintf=no
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_asprintf" >&5
12461 $as_echo "$ac_cv_lib_talloc_talloc_asprintf" >&6; }
12462 if test "x$ac_cv_lib_talloc_talloc_asprintf" = xyes; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_LIBTALLOC 1
12467 LIBS="-ltalloc $LIBS"
12470 as_fn_error $? "Please install talloc development" "$LINENO" 5
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
12474 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
12475 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
12476 $as_echo_n "(cached) " >&6
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-lsqlite3 $LIBS"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12489 char sqlite3_open ();
12493 return sqlite3_open ();
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_lib_sqlite3_sqlite3_open=yes
12501 ac_cv_lib_sqlite3_sqlite3_open=no
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
12508 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
12509 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBSQLITE3 1
12514 LIBS="-lsqlite3 $LIBS"
12517 as_fn_error $? "Please install sqlite3 development" "$LINENO" 5
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object in -ljansson" >&5
12522 $as_echo_n "checking for json_object in -ljansson... " >&6; }
12523 if ${ac_cv_lib_jansson_json_object+:} false; then :
12524 $as_echo_n "(cached) " >&6
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-ljansson $LIBS"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12537 char json_object ();
12541 return json_object ();
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_lib_jansson_json_object=yes
12549 ac_cv_lib_jansson_json_object=no
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_object" >&5
12556 $as_echo "$ac_cv_lib_jansson_json_object" >&6; }
12557 if test "x$ac_cv_lib_jansson_json_object" = xyes; then :
12558 cat >>confdefs.h <<_ACEOF
12559 #define HAVE_LIBJANSSON 1
12562 LIBS="-ljansson $LIBS"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
12567 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
12568 if ${ac_cv_lib_crypto_DH_new+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 ac_check_lib_save_LIBS=$LIBS
12572 LIBS="-lcrypto $LIBS"
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12576 /* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12591 if ac_fn_c_try_link "$LINENO"; then :
12592 ac_cv_lib_crypto_DH_new=yes
12594 ac_cv_lib_crypto_DH_new=no
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 LIBS=$ac_check_lib_save_LIBS
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
12601 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
12602 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_LIBCRYPTO 1
12607 LIBS="-lcrypto $LIBS"
12611 for ac_header in gssapi.h gssapi_ext.h jansson.h openssl/dh.h openssl/bn.h
12613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12616 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12624 ac_config_files="$ac_config_files Makefile gsscon/Makefile"
12626 cat >confcache <<\_ACEOF
12627 # This file is a shell script that caches the results of configure
12628 # tests run on this system so they can be shared between configure
12629 # scripts and configure runs, see configure's option --config-cache.
12630 # It is not useful on other systems. If it contains results you don't
12631 # want to keep, you may remove or edit it.
12633 # config.status only pays attention to the cache file if you give it
12634 # the --recheck option to rerun configure.
12636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12638 # following values.
12642 # The following way of writing the cache mishandles newlines in values,
12643 # but we know of no workaround that is simple, portable, and efficient.
12644 # So, we kill variables containing newlines.
12645 # Ultrix sh set writes to stderr and can't be redirected directly,
12646 # and sets the high bit in the cache file unless we assign to the vars.
12648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12649 eval ac_val=\$$ac_var
12653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12657 _ | IFS | as_nl) ;; #(
12658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12659 *) { eval $ac_var=; unset $ac_var;} ;;
12665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12666 *${as_nl}ac_space=\ *)
12667 # `set' does not quote correctly, so add quotes: double-quote
12668 # substitution turns \\\\ into \\, and sed turns \\ into \.
12671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12674 # `set' quotes correctly as required by POSIX, so do not add quotes.
12675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12689 if test -w "$cache_file"; then
12690 if test "x$cache_file" != "x/dev/null"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12692 $as_echo "$as_me: updating cache $cache_file" >&6;}
12693 if test ! -f "$cache_file" || test -h "$cache_file"; then
12694 cat confcache >"$cache_file"
12696 case $cache_file in #(
12698 mv -f confcache "$cache_file"$$ &&
12699 mv -f "$cache_file"$$ "$cache_file" ;; #(
12701 mv -f confcache "$cache_file" ;;
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12707 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12713 # Let make expand exec_prefix.
12714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12716 # Transform confdefs.h into DEFS.
12717 # Protect against shell expansion while executing Makefile rules.
12718 # Protect against Makefile macro expansion.
12720 # If the first sed substitution is executed (which looks for macros that
12721 # take arguments), then branch to the quote section. Otherwise,
12722 # look for a macro that doesn't take arguments.
12732 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12734 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12738 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12751 DEFS=`sed -n "$ac_script" confdefs.h`
12757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12758 # 1. Remove the extension, and $U if already installed.
12759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12762 # will be set to the directory where LIBOBJS objects are built.
12763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12766 LIBOBJS=$ac_libobjs
12768 LTLIBOBJS=$ac_ltlibobjs
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12772 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12773 if test -n "$am_sleep_pid"; then
12774 # Hide warnings about reused PIDs.
12775 wait $am_sleep_pid 2>/dev/null
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12778 $as_echo "done" >&6; }
12779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12780 as_fn_error $? "conditional \"AMDEP\" was never defined.
12781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12784 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12787 if test -n "$EXEEXT"; then
12789 am__EXEEXT_FALSE='#'
12791 am__EXEEXT_TRUE='#'
12795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12796 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12799 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
12800 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
12801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12804 : "${CONFIG_STATUS=./config.status}"
12806 ac_clean_files_save=$ac_clean_files
12807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12813 # Generated by $as_me.
12814 # Run this file to recreate the current configuration.
12815 # Compiler output produced by configure, useful for debugging
12816 # configure, is in config.log if it exists.
12819 ac_cs_recheck=false
12822 SHELL=\${CONFIG_SHELL-$SHELL}
12825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12826 ## -------------------- ##
12827 ## M4sh Initialization. ##
12828 ## -------------------- ##
12830 # Be more Bourne compatible
12831 DUALCASE=1; export DUALCASE # for MKS sh
12832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12835 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12836 # is contrary to our usage. Disable this feature.
12837 alias -g '${1+"$@"}'='"$@"'
12838 setopt NO_GLOB_SUBST
12840 case `(set -o) 2>/dev/null` in #(
12852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12856 # Prefer a ksh shell builtin over an external printf program on Solaris,
12857 # but without wasting forks for bash or zsh.
12858 if test -z "$BASH_VERSION$ZSH_VERSION" \
12859 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12860 as_echo='print -r --'
12861 as_echo_n='print -rn --'
12862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12863 as_echo='printf %s\n'
12864 as_echo_n='printf %s'
12866 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12867 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12868 as_echo_n='/usr/ucb/echo -n'
12870 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12871 as_echo_n_body='eval
12875 expr "X$arg" : "X\\(.*\\)$as_nl";
12876 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12878 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12880 export as_echo_n_body
12881 as_echo_n='sh -c $as_echo_n_body as_echo'
12883 export as_echo_body
12884 as_echo='sh -c $as_echo_body as_echo'
12887 # The user is always right.
12888 if test "${PATH_SEPARATOR+set}" != set; then
12890 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12891 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12898 # We need space, tab and new line, in precisely that order. Quoting is
12899 # there to prevent editors from complaining about space-tab.
12900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12901 # splitting by setting IFS to empty value.)
12904 # Find who we are. Look in the path if we contain no directory separator.
12907 *[\\/]* ) as_myself=$0 ;;
12908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12919 # We did not find ourselves, most probably we were run as `sh COMMAND'
12920 # in which case we are not to be found in the path.
12921 if test "x$as_myself" = x; then
12924 if test ! -f "$as_myself"; then
12925 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12929 # Unset variables that we do not need and which cause bugs (e.g. in
12930 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12931 # suppresses any "Segmentation fault" message there. '((' could
12932 # trigger a bug in pdksh 5.2.14.
12933 for as_var in BASH_ENV ENV MAIL MAILPATH
12934 do eval test x\${$as_var+set} = xset \
12935 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12951 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12952 # ----------------------------------------
12953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12955 # script with STATUS, using 1 if that was 0.
12958 as_status=$1; test $as_status -eq 0 && as_status=1
12960 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12961 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12963 $as_echo "$as_me: error: $2" >&2
12964 as_fn_exit $as_status
12968 # as_fn_set_status STATUS
12969 # -----------------------
12970 # Set $? to STATUS, without forking.
12971 as_fn_set_status ()
12974 } # as_fn_set_status
12976 # as_fn_exit STATUS
12977 # -----------------
12978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12982 as_fn_set_status $1
12988 # Portably unset VAR.
12991 { eval $1=; unset $1;}
12993 as_unset=as_fn_unset
12994 # as_fn_append VAR VALUE
12995 # ----------------------
12996 # Append the text in VALUE to the end of the definition contained in VAR. Take
12997 # advantage of any shell optimizations that allow amortized linear growth over
12998 # repeated appends, instead of the typical quadratic growth present in naive
13000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13001 eval 'as_fn_append ()
13012 # as_fn_arith ARG...
13013 # ------------------
13014 # Perform arithmetic evaluation on the ARGs, and store the result in the
13015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13016 # must be portable across $(()) and expr.
13017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13018 eval 'as_fn_arith ()
13025 as_val=`expr "$@" || test $? -eq 1`
13030 if expr a : '\(a\)' >/dev/null 2>&1 &&
13031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13038 as_basename=basename
13043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13049 as_me=`$as_basename -- "$0" ||
13050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13051 X"$0" : 'X\(//\)$' \| \
13052 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13054 sed '/^.*\/\([^/][^/]*\)\/*$/{
13068 # Avoid depending upon Character Ranges.
13069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13072 as_cr_digits='0123456789'
13073 as_cr_alnum=$as_cr_Letters$as_cr_digits
13075 ECHO_C= ECHO_N= ECHO_T=
13076 case `echo -n x` in #(((((
13078 case `echo 'xy\c'` in
13079 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13081 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13088 rm -f conf$$ conf$$.exe conf$$.file
13089 if test -d conf$$.dir; then
13090 rm -f conf$$.dir/conf$$.file
13093 mkdir conf$$.dir 2>/dev/null
13095 if (echo >conf$$.file) 2>/dev/null; then
13096 if ln -s conf$$.file conf$$ 2>/dev/null; then
13098 # ... but there are two gotchas:
13099 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13100 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13101 # In both cases, we have to default to `cp -pR'.
13102 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13104 elif ln conf$$.file conf$$ 2>/dev/null; then
13112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13113 rmdir conf$$.dir 2>/dev/null
13118 # Create "$as_dir" as a directory, including parents if necessary.
13123 -*) as_dir=./$as_dir;;
13125 test -d "$as_dir" || eval $as_mkdir_p || {
13129 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13130 *) as_qdir=$as_dir;;
13132 as_dirs="'$as_qdir' $as_dirs"
13133 as_dir=`$as_dirname -- "$as_dir" ||
13134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135 X"$as_dir" : 'X\(//\)[^/]' \| \
13136 X"$as_dir" : 'X\(//\)$' \| \
13137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13138 $as_echo X"$as_dir" |
13139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13143 /^X\(\/\/\)[^/].*/{
13156 test -d "$as_dir" && break
13158 test -z "$as_dirs" || eval "mkdir $as_dirs"
13159 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13163 if mkdir -p . 2>/dev/null; then
13164 as_mkdir_p='mkdir -p "$as_dir"'
13166 test -d ./-p && rmdir ./-p
13171 # as_fn_executable_p FILE
13172 # -----------------------
13173 # Test if FILE is an executable regular file.
13174 as_fn_executable_p ()
13176 test -f "$1" && test -x "$1"
13177 } # as_fn_executable_p
13178 as_test_x='test -x'
13179 as_executable_p=as_fn_executable_p
13181 # Sed expression to map a string onto a valid CPP name.
13182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13184 # Sed expression to map a string onto a valid variable name.
13185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13189 ## ----------------------------------- ##
13190 ## Main body of $CONFIG_STATUS script. ##
13191 ## ----------------------------------- ##
13193 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13196 # Save the log message, to keep $0 and so on meaningful, and to
13197 # report actual input values of CONFIG_FILES etc. instead of their
13198 # values after options handling.
13200 This file was extended by trust_router $as_me 1.3.1, which was
13201 generated by GNU Autoconf 2.69. Invocation command line was
13203 CONFIG_FILES = $CONFIG_FILES
13204 CONFIG_HEADERS = $CONFIG_HEADERS
13205 CONFIG_LINKS = $CONFIG_LINKS
13206 CONFIG_COMMANDS = $CONFIG_COMMANDS
13209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13214 case $ac_config_files in *"
13215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 # Files that config.status was made for.
13222 config_files="$ac_config_files"
13223 config_commands="$ac_config_commands"
13227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13229 \`$as_me' instantiates files and other configuration actions
13230 from templates according to the current configuration. Unless the files
13231 and actions are specified as TAGs, all are instantiated by default.
13233 Usage: $0 [OPTION]... [TAG]...
13235 -h, --help print this help, then exit
13236 -V, --version print version number and configuration settings, then exit
13237 --config print configuration, then exit
13238 -q, --quiet, --silent
13239 do not print progress messages
13240 -d, --debug don't remove temporary files
13241 --recheck update $as_me by reconfiguring in the same conditions
13242 --file=FILE[:TEMPLATE]
13243 instantiate the configuration file FILE
13245 Configuration files:
13248 Configuration commands:
13251 Report bugs to <bugs@project-moonshot.org>."
13254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13255 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13257 trust_router config.status 1.3.1
13258 configured by $0, generated by GNU Autoconf 2.69,
13259 with options \\"\$ac_cs_config\\"
13261 Copyright (C) 2012 Free Software Foundation, Inc.
13262 This config.status script is free software; the Free Software Foundation
13263 gives unlimited permission to copy, distribute and modify it."
13270 test -n "\$AWK" || AWK=awk
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13274 # The default lists apply if the user does not specify any file.
13280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13285 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13297 # Handling of the options.
13298 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13300 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13301 $as_echo "$ac_cs_version"; exit ;;
13302 --config | --confi | --conf | --con | --co | --c )
13303 $as_echo "$ac_cs_config"; exit ;;
13304 --debug | --debu | --deb | --de | --d | -d )
13306 --file | --fil | --fi | --f )
13309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13310 '') as_fn_error $? "missing file argument" ;;
13312 as_fn_append CONFIG_FILES " '$ac_optarg'"
13313 ac_need_defaults=false;;
13314 --he | --h | --help | --hel | -h )
13315 $as_echo "$ac_cs_usage"; exit ;;
13316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13317 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13320 # This is an error.
13321 -*) as_fn_error $? "unrecognized option: \`$1'
13322 Try \`$0 --help' for more information." ;;
13324 *) as_fn_append ac_config_targets " $1"
13325 ac_need_defaults=false ;;
13331 ac_configure_extra_args=
13333 if $ac_cs_silent; then
13335 ac_configure_extra_args="$ac_configure_extra_args --silent"
13339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 if \$ac_cs_recheck; then
13341 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13343 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13344 CONFIG_SHELL='$SHELL'
13345 export CONFIG_SHELL
13350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13355 ## Running $as_me. ##
13361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13365 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13368 # The HP-UX ksh and POSIX shell print the target directory to stdout
13369 # if CDPATH is set.
13370 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13372 sed_quote_subst='$sed_quote_subst'
13373 double_quote_subst='$double_quote_subst'
13374 delay_variable_subst='$delay_variable_subst'
13375 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13376 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13377 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13378 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13379 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13380 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13381 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13382 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13383 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13384 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13385 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13386 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13387 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13388 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13389 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13390 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13391 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13392 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13393 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13394 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13395 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13396 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13397 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13398 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13399 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13400 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13401 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13402 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13403 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13404 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13405 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13406 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13407 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13408 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13409 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13410 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13411 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13412 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13413 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13414 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13415 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13416 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13417 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13418 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13419 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13420 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13421 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13422 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13423 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13424 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13425 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13426 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13427 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13428 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13429 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13430 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13431 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"`'
13432 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13433 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13434 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13435 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13436 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13437 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13438 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13439 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13440 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13441 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13442 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13443 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13444 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13445 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13446 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13447 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13448 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13449 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13450 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13451 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13452 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13453 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13454 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13455 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13456 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13457 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13458 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13459 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13460 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13461 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13462 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13463 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13464 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13465 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13466 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13467 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13468 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13469 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13470 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13471 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13472 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13473 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13474 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13475 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13476 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13477 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13478 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13479 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13480 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13481 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13482 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13483 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13484 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13485 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13486 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13487 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13488 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13489 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13490 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13491 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13492 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13493 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13494 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13495 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13496 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13497 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13498 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13499 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13500 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13501 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13502 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13503 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13504 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13507 LTCFLAGS='$LTCFLAGS'
13508 compiler='$compiler_DEFAULT'
13510 # A function that is used when there is no print builtin or printf.
13511 func_fallback_echo ()
13513 eval 'cat <<_LTECHO_EOF
13518 # Quote evaled strings.
13533 deplibs_check_method \
13538 sharedlib_from_linklib_cmd \
13541 archiver_list_spec \
13547 lt_cv_sys_global_symbol_pipe \
13548 lt_cv_sys_global_symbol_to_cdecl \
13549 lt_cv_sys_global_symbol_to_c_name_address \
13550 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13551 nm_file_list_spec \
13552 lt_prog_compiler_no_builtin_flag \
13553 lt_prog_compiler_pic \
13554 lt_prog_compiler_wl \
13555 lt_prog_compiler_static \
13556 lt_cv_prog_compiler_c_o \
13565 export_dynamic_flag_spec \
13566 whole_archive_flag_spec \
13567 compiler_needs_object \
13569 allow_undefined_flag \
13570 no_undefined_flag \
13571 hardcode_libdir_flag_spec \
13572 hardcode_libdir_separator \
13576 variables_saved_for_relink \
13578 library_names_spec \
13580 install_override_mode \
13584 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13585 *[\\\\\\\`\\"\\\$]*)
13586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13594 # Double-quote double-evaled strings.
13595 for var in reload_cmds \
13596 old_postinstall_cmds \
13597 old_postuninstall_cmds \
13599 extract_expsyms_cmds \
13600 old_archive_from_new_cmds \
13601 old_archive_from_expsyms_cmds \
13603 archive_expsym_cmds \
13605 module_expsym_cmds \
13606 export_symbols_cmds \
13610 postuninstall_cmds \
13612 sys_lib_search_path_spec \
13613 sys_lib_dlsearch_path_spec; do
13614 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13615 *[\\\\\\\`\\"\\\$]*)
13616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13624 ac_aux_dir='$ac_aux_dir'
13625 xsi_shell='$xsi_shell'
13626 lt_shell_append='$lt_shell_append'
13628 # See if we are running on zsh, and set the options which allow our
13629 # commands through without removal of \ escapes INIT.
13630 if test -n "\${ZSH_VERSION+set}" ; then
13631 setopt NO_GLOB_SUBST
13637 TIMESTAMP='$TIMESTAMP'
13646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13648 # Handling of arguments.
13649 for ac_config_target in $ac_config_targets
13651 case $ac_config_target in
13652 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13655 "gsscon/Makefile") CONFIG_FILES="$CONFIG_FILES gsscon/Makefile" ;;
13657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13662 # If the user did not use the arguments to specify the items to instantiate,
13663 # then the envvar interface is used. Set only those that are not.
13664 # We use the long form for the default assignment because of an extremely
13665 # bizarre bug on SunOS 4.1.3.
13666 if $ac_need_defaults; then
13667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13671 # Have a temporary directory for convenience. Make it in the build tree
13672 # simply because there is no reason against having it here, and in addition,
13673 # creating and moving files from /tmp can sometimes cause problems.
13674 # Hook for its removal unless debugging.
13675 # Note that there is a small window in which the directory will not be cleaned:
13676 # after its creation but before its name has been assigned to `$tmp'.
13680 trap 'exit_status=$?
13681 : "${ac_tmp:=$tmp}"
13682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13684 trap 'as_fn_exit 1' 1 2 13 15
13686 # Create a (secure) tmp directory for tmp files.
13689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13693 tmp=./conf$$-$RANDOM
13694 (umask 077 && mkdir "$tmp")
13695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13698 # Set up the scripts for CONFIG_FILES section.
13699 # No need to generate them if there are no CONFIG_FILES.
13700 # This happens for instance with `./config.status config.h'.
13701 if test -n "$CONFIG_FILES"; then
13704 ac_cr=`echo X | tr X '\015'`
13705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13706 # But we know of no other shell where ac_cr would be empty at this
13707 # point, so we can use a bashism as a fallback.
13708 if test "x$ac_cr" = x; then
13709 eval ac_cr=\$\'\\r\'
13711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13715 ac_cs_awk_cr=$ac_cr
13718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13723 echo "cat >conf$$subs.awk <<_ACEOF" &&
13724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13726 } >conf$$subs.sh ||
13727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13730 for ac_last_try in false false false false false :; do
13731 . ./conf$$subs.sh ||
13732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13735 if test $ac_delim_n = $ac_delim_num; then
13737 elif $ac_last_try; then
13738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13743 rm -f conf$$subs.sh
13745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13746 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13750 s/^/S["/; s/!.*/"]=/
13760 s/\(.\{148\}\)..*/\1/
13762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13774 s/\(.\{148\}\)..*/\1/
13776 s/["\\]/\\&/g; s/^/"/; s/$/"/
13780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13785 ' <conf$$subs.awk | sed '
13790 ' >>$CONFIG_STATUS || ac_write_fail=1
13791 rm -f conf$$subs.awk
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13795 for (key in S) S_is_set[key] = 1
13801 nfields = split(line, field, "@")
13803 len = length(field[1])
13804 for (i = 2; i < nfields; i++) {
13806 keylen = length(key)
13807 if (S_is_set[key]) {
13809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13810 len += length(value) + length(field[++i])
13821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13826 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13827 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13832 # trailing colons and then remove the whole line if VPATH becomes empty
13833 # (actually we leave an empty line to preserve line numbers).
13834 if test "x$srcdir" = x.; then
13835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854 fi # test -n "$CONFIG_FILES"
13857 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13862 :[FHLC]) ac_mode=$ac_tag; continue;;
13864 case $ac_mode$ac_tag in
13866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13867 :[FH]-) ac_tag=-:-;;
13868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13885 -) ac_f="$ac_tmp/stdin";;
13886 *) # Look for the file first in the build tree, then in the source tree
13887 # (if the path is not absolute). The absolute path cannot be DOS-style,
13888 # because $ac_f cannot contain `:'.
13892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13897 as_fn_append ac_file_inputs " '$ac_f'"
13900 # Let's still pretend it is `configure' which instantiates (i.e., don't
13901 # use $as_me), people would be surprised to read:
13902 # /* config.h. Generated by config.status. */
13903 configure_input='Generated from '`
13904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13906 if test x"$ac_file" != x-; then
13907 configure_input="$ac_file. $configure_input"
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13909 $as_echo "$as_me: creating $ac_file" >&6;}
13911 # Neutralize special characters interpreted by sed in replacement strings.
13912 case $configure_input in #(
13913 *\&* | *\|* | *\\* )
13914 ac_sed_conf_input=`$as_echo "$configure_input" |
13915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13916 *) ac_sed_conf_input=$configure_input;;
13920 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13926 ac_dir=`$as_dirname -- "$ac_file" ||
13927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13928 X"$ac_file" : 'X\(//\)[^/]' \| \
13929 X"$ac_file" : 'X\(//\)$' \| \
13930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13931 $as_echo X"$ac_file" |
13932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13936 /^X\(\/\/\)[^/].*/{
13949 as_dir="$ac_dir"; as_fn_mkdir_p
13953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13956 # A ".." for each directory in $ac_dir_suffix.
13957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13958 case $ac_top_builddir_sub in
13959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13963 ac_abs_top_builddir=$ac_pwd
13964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13965 # for backward compatibility:
13966 ac_top_builddir=$ac_top_build_prefix
13969 .) # We are building in place.
13971 ac_top_srcdir=$ac_top_builddir_sub
13972 ac_abs_top_srcdir=$ac_pwd ;;
13973 [\\/]* | ?:[\\/]* ) # Absolute name.
13974 ac_srcdir=$srcdir$ac_dir_suffix;
13975 ac_top_srcdir=$srcdir
13976 ac_abs_top_srcdir=$srcdir ;;
13977 *) # Relative name.
13978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13979 ac_top_srcdir=$ac_top_build_prefix$srcdir
13980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13995 ac_MKDIR_P=$MKDIR_P
13997 [\\/$]* | ?:[\\/]* ) ;;
13998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003 # If the template does not know about datarootdir, expand it.
14004 # FIXME: This hack should be removed a few years after 2.60.
14005 ac_datarootdir_hack=; ac_datarootdir_seen=
14016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14017 *datarootdir*) ac_datarootdir_seen=yes;;
14018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14023 ac_datarootdir_hack='
14024 s&@datadir@&$datadir&g
14025 s&@docdir@&$docdir&g
14026 s&@infodir@&$infodir&g
14027 s&@localedir@&$localedir&g
14028 s&@mandir@&$mandir&g
14029 s&\\\${datarootdir}&$datarootdir&g' ;;
14033 # Neutralize VPATH when `$srcdir' = `.'.
14034 # Shell code in configure.ac might set extrasub.
14035 # FIXME: do we really want to maintain this feature?
14036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14037 ac_sed_extra="$ac_vpsub
14040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14043 s|@configure_input@|$ac_sed_conf_input|;t t
14044 s&@top_builddir@&$ac_top_builddir_sub&;t t
14045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14046 s&@srcdir@&$ac_srcdir&;t t
14047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14048 s&@top_srcdir@&$ac_top_srcdir&;t t
14049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14050 s&@builddir@&$ac_builddir&;t t
14051 s&@abs_builddir@&$ac_abs_builddir&;t t
14052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14053 s&@INSTALL@&$ac_INSTALL&;t t
14054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14055 $ac_datarootdir_hack
14057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14063 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14065 which seems to be undefined. Please make sure it is defined" >&5
14066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14067 which seems to be undefined. Please make sure it is defined" >&2;}
14069 rm -f "$ac_tmp/stdin"
14071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14078 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14079 $as_echo "$as_me: executing $ac_file commands" >&6;}
14084 case $ac_file$ac_mode in
14085 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14086 # Older Autoconf quotes --file arguments for eval, but not when files
14087 # are listed without --file. Let's play safe and only enable the eval
14088 # if we detect the quoting.
14089 case $CONFIG_FILES in
14090 *\'*) eval set x "$CONFIG_FILES" ;;
14091 *) set x $CONFIG_FILES ;;
14096 # Strip MF so we end up with the name of the file.
14097 mf=`echo "$mf" | sed -e 's/:.*$//'`
14098 # Check whether this is an Automake generated Makefile or not.
14099 # We used to match only the files named 'Makefile.in', but
14100 # some people rename them; so instead we look at the file content.
14101 # Grep'ing the first line is not enough: some people post-process
14102 # each Makefile.in and add a new line on top of each file to say so.
14103 # Grep'ing the whole file is not good either: AIX grep has a line
14104 # limit of 2048, but all sed's we know have understand at least 4000.
14105 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14106 dirpart=`$as_dirname -- "$mf" ||
14107 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14108 X"$mf" : 'X\(//\)[^/]' \| \
14109 X"$mf" : 'X\(//\)$' \| \
14110 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14116 /^X\(\/\/\)[^/].*/{
14132 # Extract the definition of DEPDIR, am__include, and am__quote
14133 # from the Makefile without running 'make'.
14134 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14135 test -z "$DEPDIR" && continue
14136 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14137 test -z "$am__include" && continue
14138 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14139 # Find all dependency output files, they are included files with
14140 # $(DEPDIR) in their names. We invoke sed twice because it is the
14141 # simplest approach to changing $(DEPDIR) to its actual value in the
14143 for file in `sed -n "
14144 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14145 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14146 # Make sure the directory exists.
14147 test -f "$dirpart/$file" && continue
14148 fdir=`$as_dirname -- "$file" ||
14149 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14150 X"$file" : 'X\(//\)[^/]' \| \
14151 X"$file" : 'X\(//\)$' \| \
14152 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14153 $as_echo X"$file" |
14154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14158 /^X\(\/\/\)[^/].*/{
14171 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14172 # echo "creating $dirpart/$file"
14173 echo '# dummy' > "$dirpart/$file"
14180 # See if we are running on zsh, and set the options which allow our
14181 # commands through without removal of \ escapes.
14182 if test -n "${ZSH_VERSION+set}" ; then
14183 setopt NO_GLOB_SUBST
14186 cfgfile="${ofile}T"
14187 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14190 cat <<_LT_EOF >> "$cfgfile"
14193 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14194 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14196 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14198 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14199 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14201 # Written by Gordon Matzigkeit, 1996
14203 # This file is part of GNU Libtool.
14205 # GNU Libtool is free software; you can redistribute it and/or
14206 # modify it under the terms of the GNU General Public License as
14207 # published by the Free Software Foundation; either version 2 of
14208 # the License, or (at your option) any later version.
14210 # As a special exception to the GNU General Public License,
14211 # if you distribute this file as part of a program or library that
14212 # is built using GNU Libtool, you may include this file under the
14213 # same distribution terms that you use for the rest of that program.
14215 # GNU Libtool is distributed in the hope that it will be useful,
14216 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14217 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14218 # GNU General Public License for more details.
14220 # You should have received a copy of the GNU General Public License
14221 # along with GNU Libtool; see the file COPYING. If not, a copy
14222 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14223 # obtained by writing to the Free Software Foundation, Inc.,
14224 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14227 # The names of the tagged configurations supported by this script.
14230 # ### BEGIN LIBTOOL CONFIG
14232 # Which release of libtool.m4 was used?
14233 macro_version=$macro_version
14234 macro_revision=$macro_revision
14236 # Whether or not to build shared libraries.
14237 build_libtool_libs=$enable_shared
14239 # Whether or not to build static libraries.
14240 build_old_libs=$enable_static
14242 # What type of objects to build.
14245 # Whether or not to optimize for fast installation.
14246 fast_install=$enable_fast_install
14248 # Shell to use when invoking shell scripts.
14251 # An echo program that protects backslashes.
14254 # The PATH separator for the build system.
14255 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14258 host_alias=$host_alias
14262 # The build system.
14263 build_alias=$build_alias
14267 # A sed program that does not truncate output.
14270 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14271 Xsed="\$SED -e 1s/^X//"
14273 # A grep program that handles long lines.
14279 # A literal string matcher.
14282 # A BSD- or MS-compatible name lister.
14285 # Whether we need soft or hard links.
14288 # What is the maximum length of a command?
14289 max_cmd_len=$max_cmd_len
14291 # Object file suffix (normally "o").
14294 # Executable file suffix (normally "").
14297 # whether the shell understands "unset".
14300 # turn spaces into newlines.
14303 # turn newlines into spaces.
14306 # convert \$build file names to \$host format.
14307 to_host_file_cmd=$lt_cv_to_host_file_cmd
14309 # convert \$build files to toolchain format.
14310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14312 # An object symbol dumper.
14313 OBJDUMP=$lt_OBJDUMP
14315 # Method to check whether dependent libraries are shared objects.
14316 deplibs_check_method=$lt_deplibs_check_method
14318 # Command to use when deplibs_check_method = "file_magic".
14319 file_magic_cmd=$lt_file_magic_cmd
14321 # How to find potential files when deplibs_check_method = "file_magic".
14322 file_magic_glob=$lt_file_magic_glob
14324 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14325 want_nocaseglob=$lt_want_nocaseglob
14327 # DLL creation program.
14328 DLLTOOL=$lt_DLLTOOL
14330 # Command to associate shared and link libraries.
14331 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14336 # Flags to create an archive.
14337 AR_FLAGS=$lt_AR_FLAGS
14339 # How to feed a file listing to the archiver.
14340 archiver_list_spec=$lt_archiver_list_spec
14342 # A symbol stripping program.
14345 # Commands used to install an old-style archive.
14347 old_postinstall_cmds=$lt_old_postinstall_cmds
14348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14350 # Whether to use a lock for old archive extraction.
14351 lock_old_archive_extraction=$lock_old_archive_extraction
14356 # LTCC compiler flags.
14357 LTCFLAGS=$lt_CFLAGS
14359 # Take the output of nm and produce a listing of raw symbols and C names.
14360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14362 # Transform the output of nm in a proper C declaration.
14363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14365 # Transform the output of nm in a C name address pair.
14366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14368 # Transform the output of nm in a C name address pair when lib prefix is needed.
14369 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14371 # Specify filename containing input files for \$NM.
14372 nm_file_list_spec=$lt_nm_file_list_spec
14374 # The root where to search for dependent libraries,and in which our libraries should be installed.
14375 lt_sysroot=$lt_sysroot
14377 # The name of the directory that contains temporary libtool files.
14380 # Used to examine libraries when file_magic_cmd begins with "file".
14381 MAGIC_CMD=$MAGIC_CMD
14383 # Must we lock files when doing compilation?
14384 need_locks=$lt_need_locks
14387 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14389 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14390 DSYMUTIL=$lt_DSYMUTIL
14392 # Tool to change global to local symbols on Mac OS X.
14395 # Tool to manipulate fat objects and archives on Mac OS X.
14398 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14401 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14402 OTOOL64=$lt_OTOOL64
14404 # Old archive suffix (normally "a").
14407 # Shared library suffix (normally ".so").
14408 shrext_cmds=$lt_shrext_cmds
14410 # The commands to extract the exported symbol list from a shared archive.
14411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14413 # Variables whose values should be saved in libtool wrapper scripts and
14414 # restored at link time.
14415 variables_saved_for_relink=$lt_variables_saved_for_relink
14417 # Do we need the "lib" prefix for modules?
14418 need_lib_prefix=$need_lib_prefix
14420 # Do we need a version for libraries?
14421 need_version=$need_version
14423 # Library versioning type.
14424 version_type=$version_type
14426 # Shared library runtime path variable.
14427 runpath_var=$runpath_var
14429 # Shared library path variable.
14430 shlibpath_var=$shlibpath_var
14432 # Is shlibpath searched before the hard-coded library search path?
14433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14435 # Format of library name prefix.
14436 libname_spec=$lt_libname_spec
14438 # List of archive names. First name is the real one, the rest are links.
14439 # The last name is the one that the linker finds with -lNAME
14440 library_names_spec=$lt_library_names_spec
14442 # The coded name of the library, if different from the real name.
14443 soname_spec=$lt_soname_spec
14445 # Permission mode override for installation of shared libraries.
14446 install_override_mode=$lt_install_override_mode
14448 # Command to use after installation of a shared archive.
14449 postinstall_cmds=$lt_postinstall_cmds
14451 # Command to use after uninstallation of a shared archive.
14452 postuninstall_cmds=$lt_postuninstall_cmds
14454 # Commands used to finish a libtool library installation in a directory.
14455 finish_cmds=$lt_finish_cmds
14457 # As "finish_cmds", except a single script fragment to be evaled but
14459 finish_eval=$lt_finish_eval
14461 # Whether we should hardcode library paths into libraries.
14462 hardcode_into_libs=$hardcode_into_libs
14464 # Compile-time system search path for libraries.
14465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14467 # Run-time system search path for libraries.
14468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14470 # Whether dlopen is supported.
14471 dlopen_support=$enable_dlopen
14473 # Whether dlopen of programs is supported.
14474 dlopen_self=$enable_dlopen_self
14476 # Whether dlopen of statically linked programs is supported.
14477 dlopen_self_static=$enable_dlopen_self_static
14479 # Commands to strip libraries.
14480 old_striplib=$lt_old_striplib
14481 striplib=$lt_striplib
14484 # The linker used to build libraries.
14487 # How to create reloadable object files.
14488 reload_flag=$lt_reload_flag
14489 reload_cmds=$lt_reload_cmds
14491 # Commands used to build an old-style archive.
14492 old_archive_cmds=$lt_old_archive_cmds
14494 # A language specific compiler.
14497 # Is the compiler the GNU compiler?
14500 # Compiler flag to turn off builtin functions.
14501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14503 # Additional compiler flags for building library objects.
14504 pic_flag=$lt_lt_prog_compiler_pic
14506 # How to pass a linker flag through the compiler.
14507 wl=$lt_lt_prog_compiler_wl
14509 # Compiler flag to prevent dynamic linking.
14510 link_static_flag=$lt_lt_prog_compiler_static
14512 # Does compiler simultaneously support -c and -o options?
14513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14515 # Whether or not to add -lc for building shared libraries.
14516 build_libtool_need_lc=$archive_cmds_need_lc
14518 # Whether or not to disallow shared libs when runtime libs are static.
14519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14521 # Compiler flag to allow reflexive dlopens.
14522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14524 # Compiler flag to generate shared objects directly from archives.
14525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14527 # Whether the compiler copes with passing no objects directly.
14528 compiler_needs_object=$lt_compiler_needs_object
14530 # Create an old-style archive from a shared archive.
14531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14533 # Create a temporary old-style archive to link instead of a shared archive.
14534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14536 # Commands used to build a shared archive.
14537 archive_cmds=$lt_archive_cmds
14538 archive_expsym_cmds=$lt_archive_expsym_cmds
14540 # Commands used to build a loadable module if different from building
14541 # a shared archive.
14542 module_cmds=$lt_module_cmds
14543 module_expsym_cmds=$lt_module_expsym_cmds
14545 # Whether we are building with GNU ld or not.
14546 with_gnu_ld=$lt_with_gnu_ld
14548 # Flag that allows shared libraries with undefined symbols to be built.
14549 allow_undefined_flag=$lt_allow_undefined_flag
14551 # Flag that enforces no undefined symbols.
14552 no_undefined_flag=$lt_no_undefined_flag
14554 # Flag to hardcode \$libdir into a binary during linking.
14555 # This must work even if \$libdir does not exist
14556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14558 # Whether we need a single "-rpath" flag with a separated argument.
14559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14562 # DIR into the resulting binary.
14563 hardcode_direct=$hardcode_direct
14565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14566 # DIR into the resulting binary and the resulting library dependency is
14567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14568 # library is relocated.
14569 hardcode_direct_absolute=$hardcode_direct_absolute
14571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14572 # into the resulting binary.
14573 hardcode_minus_L=$hardcode_minus_L
14575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14576 # into the resulting binary.
14577 hardcode_shlibpath_var=$hardcode_shlibpath_var
14579 # Set to "yes" if building a shared library automatically hardcodes DIR
14580 # into the library and all subsequent libraries and executables linked
14582 hardcode_automatic=$hardcode_automatic
14584 # Set to yes if linker adds runtime paths of dependent libraries
14585 # to runtime path list.
14586 inherit_rpath=$inherit_rpath
14588 # Whether libtool must link a program against all its dependency libraries.
14589 link_all_deplibs=$link_all_deplibs
14591 # Set to "yes" if exported symbols are required.
14592 always_export_symbols=$always_export_symbols
14594 # The commands to list exported symbols.
14595 export_symbols_cmds=$lt_export_symbols_cmds
14597 # Symbols that should not be listed in the preloaded symbols.
14598 exclude_expsyms=$lt_exclude_expsyms
14600 # Symbols that must always be exported.
14601 include_expsyms=$lt_include_expsyms
14603 # Commands necessary for linking programs (against libraries) with templates.
14604 prelink_cmds=$lt_prelink_cmds
14606 # Commands necessary for finishing linking programs.
14607 postlink_cmds=$lt_postlink_cmds
14609 # Specify filename containing input files.
14610 file_list_spec=$lt_file_list_spec
14612 # How to hardcode a shared library path into an executable.
14613 hardcode_action=$hardcode_action
14615 # ### END LIBTOOL CONFIG
14621 cat <<\_LT_EOF >> "$cfgfile"
14622 # AIX sometimes has problems with the GCC collect2 program. For some
14623 # reason, if we set the COLLECT_NAMES environment variable, the problems
14624 # vanish in a puff of smoke.
14625 if test "X${COLLECT_NAMES+set}" != Xset; then
14627 export COLLECT_NAMES
14634 ltmain="$ac_aux_dir/ltmain.sh"
14637 # We use sed instead of cat because bash on DJGPP gets confused if
14638 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14639 # text mode, it properly converts lines to CR/LF. This bash problem
14640 # is reportedly fixed, but why not run on old versions too?
14641 sed '$q' "$ltmain" >> "$cfgfile" \
14642 || (rm -f "$cfgfile"; exit 1)
14644 if test x"$xsi_shell" = xyes; then
14645 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14649 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14650 \ * ) func_dirname_result="${3}" ;;\
14652 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14653 && mv -f "$cfgfile.tmp" "$cfgfile" \
14654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14655 test 0 -eq $? || _lt_function_replace_fail=:
14658 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14661 \ func_basename_result="${1##*/}"\
14662 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14663 && mv -f "$cfgfile.tmp" "$cfgfile" \
14664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14665 test 0 -eq $? || _lt_function_replace_fail=:
14668 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14669 func_dirname_and_basename ()\
14672 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14673 \ * ) func_dirname_result="${3}" ;;\
14675 \ func_basename_result="${1##*/}"\
14676 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14677 && mv -f "$cfgfile.tmp" "$cfgfile" \
14678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679 test 0 -eq $? || _lt_function_replace_fail=:
14682 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14685 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14686 \ # positional parameters, so assign one to ordinary parameter first.\
14687 \ func_stripname_result=${3}\
14688 \ func_stripname_result=${func_stripname_result#"${1}"}\
14689 \ func_stripname_result=${func_stripname_result%"${2}"}\
14690 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14691 && mv -f "$cfgfile.tmp" "$cfgfile" \
14692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14693 test 0 -eq $? || _lt_function_replace_fail=:
14696 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14697 func_split_long_opt ()\
14699 \ func_split_long_opt_name=${1%%=*}\
14700 \ func_split_long_opt_arg=${1#*=}\
14701 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14702 && mv -f "$cfgfile.tmp" "$cfgfile" \
14703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14704 test 0 -eq $? || _lt_function_replace_fail=:
14707 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14708 func_split_short_opt ()\
14710 \ func_split_short_opt_arg=${1#??}\
14711 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14712 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14718 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14722 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14723 \ *) func_lo2o_result=${1} ;;\
14725 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14726 && mv -f "$cfgfile.tmp" "$cfgfile" \
14727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14728 test 0 -eq $? || _lt_function_replace_fail=:
14731 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14734 func_xform_result=${1%.*}.lo\
14735 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14736 && mv -f "$cfgfile.tmp" "$cfgfile" \
14737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14738 test 0 -eq $? || _lt_function_replace_fail=:
14741 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14744 func_arith_result=$(( $* ))\
14745 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14746 && mv -f "$cfgfile.tmp" "$cfgfile" \
14747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14748 test 0 -eq $? || _lt_function_replace_fail=:
14751 sed -e '/^func_len ()$/,/^} # func_len /c\
14754 func_len_result=${#1}\
14755 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14756 && mv -f "$cfgfile.tmp" "$cfgfile" \
14757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14758 test 0 -eq $? || _lt_function_replace_fail=:
14762 if test x"$lt_shell_append" = xyes; then
14763 sed -e '/^func_append ()$/,/^} # func_append /c\
14766 eval "${1}+=\\${2}"\
14767 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14768 && mv -f "$cfgfile.tmp" "$cfgfile" \
14769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770 test 0 -eq $? || _lt_function_replace_fail=:
14773 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14774 func_append_quoted ()\
14776 \ func_quote_for_eval "${2}"\
14777 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14778 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14784 # Save a `func_append' function call where possible by direct use of '+='
14785 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14786 && mv -f "$cfgfile.tmp" "$cfgfile" \
14787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14790 # Save a `func_append' function call even when '+=' is not available
14791 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14792 && mv -f "$cfgfile.tmp" "$cfgfile" \
14793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14794 test 0 -eq $? || _lt_function_replace_fail=:
14797 if test x"$_lt_function_replace_fail" = x":"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14799 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14803 mv -f "$cfgfile" "$ofile" ||
14804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14815 ac_clean_files=$ac_clean_files_save
14817 test $ac_write_fail = 0 ||
14818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14821 # configure is writing to config.log, and then calls config.status.
14822 # config.status does its own redirection, appending to config.log.
14823 # Unfortunately, on DOS this fails, as config.log is still kept open
14824 # by configure, so config.status won't be able to write to it; its
14825 # output is simply discarded. So we exec the FD to /dev/null,
14826 # effectively closing config.log, so it can be properly (re)opened and
14827 # appended to by config.status. When coming back to configure, we
14828 # need to make the FD available again.
14829 if test "$no_create" != yes; then
14831 ac_config_status_args=
14832 test "$silent" = yes &&
14833 ac_config_status_args="$ac_config_status_args --quiet"
14835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14838 # would make configure fail if this is the last instruction.
14839 $ac_cs_success || as_fn_exit 1
14841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}