5 # Forbidden tokens and exceptions.
9 # Actually reserved by M4sh.
11 # All the M4sugar macros start with `m4_', except `dnl' kept as is
12 # for sake of simplicity.
16 # _m4_divert_diversion should be defined:
17 @%:@ Guess values for system-dependent variables and create Makefiles.
18 @%:@ Generated by GNU Autoconf 2.61.
20 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
22 @%:@ This configure script is free software; the Free Software Foundation
23 @%:@ gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization. ##
26 ## --------------------- ##
28 # Be more Bourne compatible
29 DUALCASE=1; export DUALCASE # for MKS sh
30 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34 # is contrary to our usage. Disable this feature.
35 alias -g '${1+"$@"}'='"$@"'
38 case `(set -o) 2>/dev/null` in
39 *posix*) set -o posix ;;
48 # Avoid depending upon Character Ranges.
49 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52 as_cr_digits='0123456789'
53 as_cr_alnum=$as_cr_Letters$as_cr_digits
55 # The user is always right.
56 if test "${PATH_SEPARATOR+set}" != set; then
57 echo "#! /bin/sh" >conf$$.sh
58 echo "exit 0" >>conf$$.sh
60 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
68 # Support unset when possible.
69 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
77 # We need space, tab and new line, in precisely that order. Quoting is
78 # there to prevent editors from complaining about space-tab.
79 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
80 # splitting by setting IFS to empty value.)
85 # Find who we are. Look in the path if we contain no directory separator.
87 *[\\/]* ) as_myself=$0 ;;
88 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 test -z "$as_dir" && as_dir=.
93 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 # We did not find ourselves, most probably we were run as `sh COMMAND'
100 # in which case we are not to be found in the path.
101 if test "x$as_myself" = x; then
104 if test ! -f "$as_myself"; then
105 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
106 { (exit 1); exit 1; }
109 # Work around bugs in pre-3.0 UWIN ksh.
110 for as_var in ENV MAIL MAILPATH
111 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
123 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
124 eval $as_var=C; export $as_var
126 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
130 # Required to use basename.
131 if expr a : '\(a\)' >/dev/null 2>&1 &&
132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 # Name of the executable.
146 as_me=`$as_basename -- "$0" ||
147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
148 X"$0" : 'X\(//\)$' \| \
149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
151 sed '/^.*\/\([^/][^/]*\)\/*$/{
169 if test "x$CONFIG_SHELL" = x; then
170 if (eval ":") 2>/dev/null; then
176 if test $as_have_required = yes && (eval ":
186 as_func_ret_success () {
189 as_func_ret_failure () {
194 if as_func_success; then
198 echo as_func_success failed.
201 if as_func_failure; then
203 echo as_func_failure succeeded.
206 if as_func_ret_success; then
210 echo as_func_ret_success failed.
213 if as_func_ret_failure; then
215 echo as_func_ret_failure succeeded.
218 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
222 echo positional parameters were not saved.
225 test \$exitcode = 0) || { (exit 1); exit 1; }
230 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
231 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
232 ") 2> /dev/null; then
236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
237 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
240 test -z "$as_dir" && as_dir=.
243 for as_base in sh bash ksh sh5; do
244 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 for as_shell in $as_candidate_shells $SHELL; do
252 # Try only shells that exist, to save several forks.
253 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
254 { ("$as_shell") 2> /dev/null <<\_ASEOF
255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
259 # is contrary to our usage. Disable this feature.
260 alias -g '${1+"$@"}'='"$@"'
263 case `(set -o) 2>/dev/null` in
264 *posix*) set -o posix ;;
273 CONFIG_SHELL=$as_shell
275 if { "$as_shell" 2> /dev/null <<\_ASEOF
276 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
279 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
280 # is contrary to our usage. Disable this feature.
281 alias -g '${1+"$@"}'='"$@"'
284 case `(set -o) 2>/dev/null` in
285 *posix*) set -o posix ;;
301 as_func_ret_success () {
304 as_func_ret_failure () {
309 if as_func_success; then
313 echo as_func_success failed.
316 if as_func_failure; then
318 echo as_func_failure succeeded.
321 if as_func_ret_success; then
325 echo as_func_ret_success failed.
328 if as_func_ret_failure; then
330 echo as_func_ret_failure succeeded.
333 if ( set x; as_func_ret_success y && test x = "$1" ); then
337 echo positional parameters were not saved.
340 test $exitcode = 0) || { (exit 1); exit 1; }
345 test "x$as_lineno_1" != "x$as_lineno_2" &&
346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
357 if test "x$CONFIG_SHELL" != x; then
358 for as_var in BASH_ENV ENV
359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
362 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 if test $as_have_required = no; then
367 echo This script requires a shell more modern than all the
368 echo shells that I found on your system. Please install a
369 echo modern shell, or manually run the script under such a
370 echo shell if you do have one.
371 { (exit 1); exit 1; }
381 (eval "as_func_return () {
390 as_func_ret_success () {
393 as_func_ret_failure () {
398 if as_func_success; then
402 echo as_func_success failed.
405 if as_func_failure; then
407 echo as_func_failure succeeded.
410 if as_func_ret_success; then
414 echo as_func_ret_success failed.
417 if as_func_ret_failure; then
419 echo as_func_ret_failure succeeded.
422 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426 echo positional parameters were not saved.
429 test \$exitcode = 0") || {
430 echo No shell found that supports shell functions.
431 echo Please tell autoconf@gnu.org about your system,
432 echo including any error possibly output before this
440 test "x$as_lineno_1" != "x$as_lineno_2" &&
441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
444 # uniformly replaced by the line number. The first 'sed' inserts a
445 # line-number line after each line using $LINENO; the second 'sed'
446 # does the real work. The second script uses 'N' to pair each
447 # line-number line with the line containing $LINENO, and appends
448 # trailing '-' during substitution so that $LINENO is not a special
450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
451 # scripts with optimization help from Paolo Bonzini. Blame Lee
452 # E. McMahon (1931-1989) for sed's syntax. :-)
464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
468 chmod +x "$as_me.lineno" ||
469 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
470 { (exit 1); exit 1; }; }
472 # Don't try to exec as it changes $[0], causing all sort of problems
473 # (the dirname of $[0] is not the place where we might find the
474 # original and so on. Autoconf is especially sensitive to this).
476 # Exit status is that of the last command.
481 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 ECHO_C= ECHO_N= ECHO_T=
491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
498 if expr a : '\(a\)' >/dev/null 2>&1 &&
499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
505 rm -f conf$$ conf$$.exe conf$$.file
506 if test -d conf$$.dir; then
507 rm -f conf$$.dir/conf$$.file
513 if ln -s conf$$.file conf$$ 2>/dev/null; then
515 # ... but there are two gotchas:
516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
518 # In both cases, we have to default to `cp -p'.
519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
521 elif ln conf$$.file conf$$ 2>/dev/null; then
526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
527 rmdir conf$$.dir 2>/dev/null
529 if mkdir -p . 2>/dev/null; then
532 test -d ./-p && rmdir ./-p
536 if test -x / >/dev/null 2>&1; then
539 if ls -dL / >/dev/null 2>&1; then
546 if test -d "$1"; then
552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
553 ???[sx]*):;;*)false;;esac;fi
557 as_executable_p=$as_test_x
559 # Sed expression to map a string onto a valid CPP name.
560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562 # Sed expression to map a string onto a valid variable name.
563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 # Check that we are running under the correct shell.
569 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Remove one level of quotation (which was required for Make).
574 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
579 if test "X$1" = X--no-reexec; then
580 # Discard the --no-reexec flag, and continue.
582 elif test "X$1" = X--fallback-echo; then
583 # Avoid inline document here, it may be left over
585 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
586 # Yippee, $echo works!
589 # Restart under the correct shell.
590 exec $SHELL "$0" --no-reexec ${1+"$@"}
593 if test "X$1" = X--fallback-echo; then
594 # used as fallback echo
602 # The HP-UX ksh and POSIX shell print the target directory to stdout
604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
606 if test -z "$ECHO"; then
607 if test "X${echo_test_string+set}" != Xset; then
608 # find a string as large as possible, as long as the shell can cope with it
609 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
610 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
611 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
612 echo_test_string=`eval $cmd` &&
613 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
620 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # The Solaris, AIX, and Digital Unix default echo programs unquote
626 # backslashes. This makes it impossible to quote backslashes using
627 # echo "$something" | sed 's/\\/\\\\/g'
629 # So, first we look for a working echo in the user's PATH.
631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
632 for dir in $PATH /usr/ucb; do
634 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
635 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
644 if test "X$echo" = Xecho; then
645 # We didn't find a better echo, so look for alternatives.
646 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # This shell has a builtin print -r that does the trick.
651 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
652 test "X$CONFIG_SHELL" != X/bin/ksh; then
653 # If we have ksh, try running configure again with it.
654 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
655 export ORIGINAL_CONFIG_SHELL
656 CONFIG_SHELL=/bin/ksh
658 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
662 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
663 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
667 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
673 SHELL="$CONFIG_SHELL"
675 echo="$CONFIG_SHELL $0 --fallback-echo"
676 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 echo="$CONFIG_SHELL $0 --fallback-echo"
682 # maybe with a smaller string...
685 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
686 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
693 if test "$prev" != 'sed 50q "$0"'; then
694 echo_test_string=`eval $prev`
695 export echo_test_string
696 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
698 # Oops. We lost completely, so just stick with echo.
707 # Copy echo and quote the copy suitably for passing to libtool from
708 # the Makefile, instead of quoting the original, which is used later.
710 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
711 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
717 tagnames=${tagnames+${tagnames},}CXX
719 exec 7<&0 </dev/null 6>&1
722 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
723 # so uname gets run too.
724 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729 ac_default_prefix=/usr/local
731 ac_config_libobj_dir=.
737 SHELL=${CONFIG_SHELL-/bin/sh}
739 # Identity of this package.
746 ac_unique_file="config.m4"
747 # Factoring default headers for most tests.
748 ac_includes_default="\
750 #ifdef HAVE_SYS_TYPES_H
751 # include <sys/types.h>
753 #ifdef HAVE_SYS_STAT_H
754 # include <sys/stat.h>
760 # ifdef HAVE_STDLIB_H
765 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #ifdef HAVE_STRINGS_H
771 # include <strings.h>
773 #ifdef HAVE_INTTYPES_H
774 # include <inttypes.h>
792 program_transform_name
859 ac_precious_vars='build_alias
871 # Initialize some variables set by options.
873 ac_init_version=false
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
976 { (exit 1); exit 1; }; }
977 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
978 eval enable_$ac_feature=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 -enable-* | --enable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid package name: $ac_package" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203 eval with_$ac_package=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) { echo "$as_me: error: unrecognized option: $ac_option
1224 Try \`$0 --help' for more information." >&2
1225 { (exit 1); exit 1; }; }
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1233 { (exit 1); exit 1; }; }
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 { echo "$as_me: error: missing argument to $ac_option" >&2
1251 { (exit 1); exit 1; }; }
1254 # Be sure to have absolute directory names.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$0" ||
1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$0" : 'X\(//\)[^/]' \| \
1310 X"$0" : 'X\(//\)$' \| \
1311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures this package to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1435 if test -n "$ac_init_help"; then
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-cairo Enable phpCairo support
1443 --enable-shared=PKGS build shared libraries default=yes
1444 --enable-static=PKGS build static libraries default=yes
1445 --enable-fast-install=PKGS optimize for fast installation default=yes
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
1452 --with-php-config=PATH Path to php-config php-config
1453 --with-gnu-ld assume the C compiler uses GNU ld default=no
1454 --with-pic try to use only PIC/non-PIC objects default=use both
1455 --with-tags=TAGS include additional configurations automatic
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1467 CXXCPP C++ preprocessor
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1533 generated by GNU Autoconf 2.61
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1542 cat >config.log <<_ACEOF
1543 This file contains any messages produced by compilers while
1544 running configure, to aid debugging if configure makes a mistake.
1546 It was created by $as_me, which was
1547 generated by GNU Autoconf 2.61. Invocation command line was
1555 @%:@@%:@ --------- @%:@@%:@
1556 @%:@@%:@ Platform. @%:@@%:@
1557 @%:@@%:@ --------- @%:@@%:@
1559 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1569 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1570 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1572 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1573 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1574 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 echo "PATH: $as_dir"
1592 @%:@@%:@ ----------- @%:@@%:@
1593 @%:@@%:@ Core tests. @%:@@%:@
1594 @%:@@%:@ ----------- @%:@@%:@
1599 # Keep a trace of the command line.
1600 # Strip out --no-create and --no-recursion so they do not pile up.
1601 # Strip out --silent because we don't want to record it for future runs.
1602 # Also quote any args containing shell meta-characters.
1603 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_must_keep_next=false
1613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1618 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1624 if test $ac_must_keep_next = true; then
1625 ac_must_keep_next=false # Got value, back to normal.
1628 *=* | --config-cache | -C | -disable-* | --disable-* \
1629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631 | -with-* | --with-* | -without-* | --without-* | --x)
1632 case "$ac_configure_args0 " in
1633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 -* ) ac_must_keep_next=true ;;
1639 ac_configure_args="$ac_configure_args '$ac_arg'"
1644 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647 # When interrupted or exit'd, cleanup temporary files, and complete
1648 # config.log. We remove comments because anyway the quotes in there
1649 # would cause problems or look ugly.
1650 # WARNING: Use '\'' to represent an apostrophe within the trap.
1651 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652 trap 'exit_status=$?
1653 # Save into config.log some information that might help in debugging.
1658 @%:@@%:@ ---------------- @%:@@%:@
1659 @%:@@%:@ Cache variables. @%:@@%:@
1660 @%:@@%:@ ---------------- @%:@@%:@
1663 # The following way of writing the cache mishandles newlines in values,
1665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666 eval ac_val=\$$ac_var
1670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674 _ | IFS | as_nl) ;; #(
1675 *) $as_unset $ac_var ;;
1680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681 *${as_nl}ac_space=\ *)
1683 "s/'\''/'\''\\\\'\'''\''/g;
1684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 @%:@@%:@ ----------------- @%:@@%:@
1696 @%:@@%:@ Output variables. @%:@@%:@
1697 @%:@@%:@ ----------------- @%:@@%:@
1700 for ac_var in $ac_subst_vars
1702 eval ac_val=\$$ac_var
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 echo "$ac_var='\''$ac_val'\''"
1710 if test -n "$ac_subst_files"; then
1712 @%:@@%:@ ------------------- @%:@@%:@
1713 @%:@@%:@ File substitutions. @%:@@%:@
1714 @%:@@%:@ ------------------- @%:@@%:@
1717 for ac_var in $ac_subst_files
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 echo "$ac_var='\''$ac_val'\''"
1728 if test -s confdefs.h; then
1730 @%:@@%:@ ----------- @%:@@%:@
1731 @%:@@%:@ confdefs.h. @%:@@%:@
1732 @%:@@%:@ ----------- @%:@@%:@
1738 test "$ac_signal" != 0 &&
1739 echo "$as_me: caught signal $ac_signal"
1740 echo "$as_me: exit $exit_status"
1742 rm -f core *.core core.conftest.* &&
1743 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746 for ac_signal in 1 2 13 15; do
1747 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1752 rm -f -r conftest* confdefs.h
1754 # Predefined preprocessor variables.
1756 cat >>confdefs.h <<_ACEOF
1757 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1761 cat >>confdefs.h <<_ACEOF
1762 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 cat >>confdefs.h <<_ACEOF
1767 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 cat >>confdefs.h <<_ACEOF
1772 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1776 cat >>confdefs.h <<_ACEOF
1777 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 # Let the site file select an alternate cache file if it wants to.
1782 # Prefer explicitly selected file to automatically selected ones.
1783 if test -n "$CONFIG_SITE"; then
1784 set x "$CONFIG_SITE"
1785 elif test "x$prefix" != xNONE; then
1786 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 set x "$ac_default_prefix/share/config.site" \
1789 "$ac_default_prefix/etc/config.site"
1794 if test -r "$ac_site_file"; then
1795 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796 echo "$as_me: loading site script $ac_site_file" >&6;}
1797 sed 's/^/| /' "$ac_site_file" >&5
1802 if test -r "$cache_file"; then
1803 # Some versions of bash will fail to source /dev/null (special
1804 # files actually), so we avoid doing that.
1805 if test -f "$cache_file"; then
1806 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807 echo "$as_me: loading cache $cache_file" >&6;}
1809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810 *) . "./$cache_file";;
1814 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815 echo "$as_me: creating cache $cache_file" >&6;}
1819 # Check that the precious variables saved in the cache have kept the same
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824 eval ac_new_set=\$ac_env_${ac_var}_set
1825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826 eval ac_new_val=\$ac_env_${ac_var}_value
1827 case $ac_old_set,$ac_new_set in
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1838 if test "x$ac_old_val" != "x$ac_new_val"; then
1839 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1842 echo "$as_me: former value: $ac_old_val" >&2;}
1843 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1844 echo "$as_me: current value: $ac_new_val" >&2;}
1845 ac_cache_corrupted=:
1848 # Pass precious variables to config.status.
1849 if test "$ac_new_set" = set; then
1851 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 *) ac_arg=$ac_var=$ac_new_val ;;
1854 case " $ac_configure_args " in
1855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1856 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860 if $ac_cache_corrupted; then
1861 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865 { (exit 1); exit 1; }; }
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
1893 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
1894 if test "${ac_cv_path_GREP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 # Extract the first word of "grep ggrep" to use in msg output
1898 if test -z "$GREP"; then
1899 set dummy grep ggrep; ac_prog_name=$2
1900 if test "${ac_cv_path_GREP+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 ac_path_GREP_found=false
1904 # Loop through the user's path and test for each of PROGNAME-LIST
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1909 test -z "$as_dir" && as_dir=.
1910 for ac_prog in grep ggrep; do
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1913 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1914 # Check for GNU ac_path_GREP and select it if it is found.
1915 # Check for GNU $ac_path_GREP
1916 case `"$ac_path_GREP" --version 2>&1` in
1918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1924 cat "conftest.in" "conftest.in" >"conftest.tmp"
1925 mv "conftest.tmp" "conftest.in"
1926 cp "conftest.in" "conftest.nl"
1927 echo 'GREP' >> "conftest.nl"
1928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1930 ac_count=`expr $ac_count + 1`
1931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
1932 # Best one so far, save it but keep looking for a better one
1933 ac_cv_path_GREP="$ac_path_GREP"
1934 ac_path_GREP_max=$ac_count
1936 # 10*(2^10) chars as input seems more than enough
1937 test $ac_count -gt 10 && break
1939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1943 $ac_path_GREP_found && break 3
1953 GREP="$ac_cv_path_GREP"
1954 if test -z "$GREP"; then
1955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1957 { (exit 1); exit 1; }; }
1961 ac_cv_path_GREP=$GREP
1966 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
1967 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1968 GREP="$ac_cv_path_GREP"
1971 { echo "$as_me:$LINENO: checking for egrep" >&5
1972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
1973 if test "${ac_cv_path_EGREP+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1977 then ac_cv_path_EGREP="$GREP -E"
1979 # Extract the first word of "egrep" to use in msg output
1980 if test -z "$EGREP"; then
1981 set dummy egrep; ac_prog_name=$2
1982 if test "${ac_cv_path_EGREP+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 ac_path_EGREP_found=false
1986 # Loop through the user's path and test for each of PROGNAME-LIST
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1991 test -z "$as_dir" && as_dir=.
1992 for ac_prog in egrep; do
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1996 # Check for GNU ac_path_EGREP and select it if it is found.
1997 # Check for GNU $ac_path_EGREP
1998 case `"$ac_path_EGREP" --version 2>&1` in
2000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2003 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2006 cat "conftest.in" "conftest.in" >"conftest.tmp"
2007 mv "conftest.tmp" "conftest.in"
2008 cp "conftest.in" "conftest.nl"
2009 echo 'EGREP' >> "conftest.nl"
2010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2012 ac_count=`expr $ac_count + 1`
2013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2014 # Best one so far, save it but keep looking for a better one
2015 ac_cv_path_EGREP="$ac_path_EGREP"
2016 ac_path_EGREP_max=$ac_count
2018 # 10*(2^10) chars as input seems more than enough
2019 test $ac_count -gt 10 && break
2021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2025 $ac_path_EGREP_found && break 3
2035 EGREP="$ac_cv_path_EGREP"
2036 if test -z "$EGREP"; then
2037 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2039 { (exit 1); exit 1; }; }
2043 ac_cv_path_EGREP=$EGREP
2049 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2050 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
2051 EGREP="$ac_cv_path_EGREP"
2054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2056 if test "${lt_cv_path_SED+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 # Loop through the user's path and test for sed and gsed.
2060 # Then use that list of sed's as ones to test for truncation.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for lt_ac_prog in sed gsed; do
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2076 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2077 # along with /bin/sed that truncates output.
2078 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2079 test ! -f $lt_ac_sed && continue
2080 cat /dev/null > conftest.in
2082 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2083 # Check for GNU sed and select it if it is found.
2084 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2085 lt_cv_path_SED=$lt_ac_sed
2089 cat conftest.in conftest.in >conftest.tmp
2090 mv conftest.tmp conftest.in
2091 cp conftest.in conftest.nl
2093 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2094 cmp -s conftest.out conftest.nl || break
2095 # 10000 chars as input seems more than enough
2096 test $lt_ac_count -gt 10 && break
2097 lt_ac_count=`expr $lt_ac_count + 1`
2098 if test $lt_ac_count -gt $lt_ac_max; then
2099 lt_ac_max=$lt_ac_count
2100 lt_cv_path_SED=$lt_ac_sed
2108 { echo "$as_me:$LINENO: result: $SED" >&5
2109 echo "${ECHO_T}$SED" >&6; }
2116 PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
2122 PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
2126 test -f config.nice && mv config.nice config.nice.old
2127 rm -f config.nice.old
2128 cat >config.nice<<EOF
2131 # Created by configure
2135 for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
2137 if test -n "$val"; then
2138 echo "$var='$val' \\" >> config.nice
2142 echo "'$0' \\" >> config.nice
2143 if test `expr -- $0 : "'.*"` = 0; then
2144 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
2146 CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
2148 for arg in $ac_configure_args; do
2149 if test `expr -- $arg : "'.*"` = 0; then
2150 if test `expr -- $arg : "--.*"` = 0; then
2153 echo "'$arg' \\" >> config.nice
2154 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
2156 if test `expr -- $arg : "'--.*"` = 0; then
2159 echo "$arg \\" >> config.nice
2160 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
2163 echo '"$@"' >> config.nice
2164 chmod +x config.nice
2165 CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
2168 PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
2174 PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
2180 abs_srcdir=`(cd $srcdir && pwd)`
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2227 if test -z "$ac_cv_prog_CC"; then
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2265 if test "x$ac_ct_CC" = x; then
2268 case $cross_compiling:$ac_tool_warned in
2270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2271 whose name does not start with the host triplet. If you think this
2272 configuration is useful to you, please write to autoconf@gnu.org." >&5
2273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2274 whose name does not start with the host triplet. If you think this
2275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2276 ac_tool_warned=yes ;;
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}cc; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}cc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 if test $ac_prog_rejected = yes; then
2357 # We found a bogon in the path, so make sure we never use it.
2358 set dummy $ac_cv_prog_CC
2360 if test $@%:@ != 0; then
2361 # We chose a different compiler from the bogus one.
2362 # However, it has the same basename, so the bogon will be chosen
2363 # first if we set CC to just the basename; use the full file name.
2365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2371 if test -n "$CC"; then
2372 { echo "$as_me:$LINENO: result: $CC" >&5
2373 echo "${ECHO_T}$CC" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 for ac_prog in cl.exe
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2422 test -n "$CC" && break
2425 if test -z "$CC"; then
2427 for ac_prog in cl.exe
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CC="$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457 if test -n "$ac_ct_CC"; then
2458 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459 echo "${ECHO_T}$ac_ct_CC" >&6; }
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2466 test -n "$ac_ct_CC" && break
2469 if test "x$ac_ct_CC" = x; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2495 # Provide some information about the compiler.
2496 echo "$as_me:$LINENO: checking for C compiler version" >&5
2497 ac_compiler=`set X $ac_compile; echo $2`
2498 { (ac_try="$ac_compiler --version >&5"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compiler --version >&5") 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (ac_try="$ac_compiler -v >&5"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_compiler -v >&5") 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 { (ac_try="$ac_compiler -V >&5"
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compiler -V >&5") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 ac_clean_files_save=$ac_clean_files
2545 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2546 # Try to create an executable without -o first, disregard a.out.
2547 # It will help us diagnose broken compilers, and finding out an intuition
2549 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2550 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2551 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2553 # List of possible output files, starting from the most likely.
2554 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2555 # only as a last resort. b.out is created by i960 compilers.
2556 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2558 # The IRIX 6 linker writes into existing files which may not be
2559 # executable, retaining their permissions. Remove them first so a
2560 # subsequent execution test works.
2562 for ac_file in $ac_files
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2571 if { (ac_try="$ac_link_default"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_link_default") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; then
2581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2584 # so that the user can short-circuit this test for compilers unknown to
2586 for ac_file in $ac_files ''
2588 test -f "$ac_file" || continue
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2593 # We found the default executable, but exeext='' is most
2597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601 # We set ac_cv_exeext here because the later test for it is not
2602 # safe: cross compilers may not add the suffix if given an `-o'
2603 # argument, so we may need to know it at that point already.
2604 # Even if this section looks crufty: it has the advantage of
2611 test "$ac_cv_exeext" = no && ac_cv_exeext=
2617 { echo "$as_me:$LINENO: result: $ac_file" >&5
2618 echo "${ECHO_T}$ac_file" >&6; }
2619 if test -z "$ac_file"; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: C compiler cannot create executables
2626 See \`config.log' for more details." >&2;}
2627 { (exit 77); exit 77; }; }
2630 ac_exeext=$ac_cv_exeext
2632 # Check that the compiler produces executables we can run. If not, either
2633 # the compiler is broken, or we cross compile.
2634 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2635 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2637 # If not cross compiling, check that we can run a simple program.
2638 if test "$cross_compiling" != yes; then
2639 if { ac_try='./$ac_file'
2640 { (case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_try") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 if test "$cross_compiling" = maybe; then
2654 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2664 { echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6; }
2667 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2668 ac_clean_files=$ac_clean_files_save
2669 # Check that the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2673 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674 echo "${ECHO_T}$cross_compiling" >&6; }
2676 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2678 if { (ac_try="$ac_link"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_link") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; then
2688 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2689 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2690 # work properly (i.e., refer to `conftest.exe'), while it won't with
2692 for ac_file in conftest.exe conftest conftest.*; do
2693 test -f "$ac_file" || continue
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2696 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2709 rm -f conftest$ac_cv_exeext
2710 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2711 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2713 rm -f conftest.$ac_ext
2714 EXEEXT=$ac_cv_exeext
2716 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2717 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2718 if test "${ac_cv_objext+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 rm -f conftest.o conftest.obj
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; then
2747 for ac_file in conftest.o conftest.obj conftest.*; do
2748 test -f "$ac_file" || continue;
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2760 See \`config.log' for more details." >&5
2761 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2762 See \`config.log' for more details." >&2;}
2763 { (exit 1); exit 1; }; }
2766 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2768 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2769 echo "${ECHO_T}$ac_cv_objext" >&6; }
2770 OBJEXT=$ac_cv_objext
2772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compile") 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } && {
2809 test -z "$ac_c_werror_flag" ||
2810 test ! -s conftest.err
2811 } && test -s conftest.$ac_objext; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2826 GCC=`test $ac_compiler_gnu = yes && echo yes`
2827 ac_test_CFLAGS=${CFLAGS+set}
2828 ac_save_CFLAGS=$CFLAGS
2829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_cc_g+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 ac_save_c_werror_flag=$ac_c_werror_flag
2835 ac_c_werror_flag=yes
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2853 rm -f conftest.$ac_objext
2854 if { (ac_try="$ac_compile"
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_compile") 2>conftest.er1
2862 grep -v '^ *+' conftest.er1 >conftest.err
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } && {
2867 test -z "$ac_c_werror_flag" ||
2868 test ! -s conftest.err
2869 } && test -s conftest.$ac_objext; then
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_c_werror_flag=$ac_save_c_werror_flag
2964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2966 if test "$ac_test_CFLAGS" = set; then
2967 CFLAGS=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2975 if test "$GCC" = yes; then
2981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_c89+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_cv_prog_cc_c89=no
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3012 s = g (p, va_arg (v,int));
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
3020 as 'x'. The following induces an error, until -std is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 that's true only with -std. */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3027 inside strings and character constants. */
3029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3031 int test (int i, double x);
3032 struct s1 {int (*f) (int a);};
3033 struct s2 {int (*f) (double a);};
3034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3048 CC="$ac_save_CC $ac_arg"
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
3066 ac_cv_prog_cc_c89=$ac_arg
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3074 rm -f core conftest.err conftest.$ac_objext
3075 test "x$ac_cv_prog_cc_c89" != "xno" && break
3077 rm -f conftest.$ac_ext
3082 case "x$ac_cv_prog_cc_c89" in
3084 { echo "$as_me:$LINENO: result: none needed" >&5
3085 echo "${ECHO_T}none needed" >&6; } ;;
3087 { echo "$as_me:$LINENO: result: unsupported" >&5
3088 echo "${ECHO_T}unsupported" >&6; } ;;
3090 CC="$CC $ac_cv_prog_cc_c89"
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if test "x$CC" != xcc; then
3103 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3104 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3106 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3107 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3109 set dummy $CC; ac_cc=`echo $2 |
3110 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3111 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 # Make sure it works both with $CC and with simple cc.
3130 # We do the test twice because some compilers refuse to overwrite an
3131 # existing .o file with -o, though they will create one.
3132 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3134 if { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); };
3153 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3154 if test "x$CC" != xcc; then
3155 # Test first that cc exists at all.
3156 if { ac_try='cc -c conftest.$ac_ext >&5'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3168 if { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); };
3190 # cc exists but doesn't like -o.
3191 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3196 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3198 rm -f core conftest*
3201 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3202 { echo "$as_me:$LINENO: result: yes" >&5
3203 echo "${ECHO_T}yes" >&6; }
3205 { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3208 cat >>confdefs.h <<\_ACEOF
3209 @%:@define NO_MINUS_C_MINUS_O 1
3218 { echo "$as_me:$LINENO: checking for system library directory" >&5
3219 echo $ECHO_N "checking for system library directory... $ECHO_C" >&6; }
3221 # Check whether --with-libdir was given.
3222 if test "${with_libdir+set}" = set; then
3223 withval=$with_libdir; PHP_LIBDIR=$withval
3228 if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
3229 PHP_LIBDIR=$PHP_ENABLE_ALL
3235 ext_output=$PHP_LIBDIR
3236 { echo "$as_me:$LINENO: result: $ext_output" >&5
3237 echo "${ECHO_T}$ext_output" >&6; }
3244 { echo "$as_me:$LINENO: checking if compiler supports -R" >&5
3245 echo $ECHO_N "checking if compiler supports -R... $ECHO_C" >&6; }
3246 if test "${php_cv_cc_dashr+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 LIBS="-R /usr/$PHP_LIBDIR $LIBS"
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (ac_try="$ac_link"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_link") 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } && {
3281 test -z "$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 } && test -s conftest$ac_exeext &&
3284 $as_test_x conftest$ac_exeext; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3294 conftest$ac_exeext conftest.$ac_ext
3298 { echo "$as_me:$LINENO: result: $php_cv_cc_dashr" >&5
3299 echo "${ECHO_T}$php_cv_cc_dashr" >&6; }
3300 if test $php_cv_cc_dashr = "yes"; then
3301 ld_runpath_switch=-R
3303 { echo "$as_me:$LINENO: checking if compiler supports -Wl,-rpath," >&5
3304 echo $ECHO_N "checking if compiler supports -Wl,-rpath,... $ECHO_C" >&6; }
3305 if test "${php_cv_cc_rpath+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3326 rm -f conftest.$ac_objext conftest$ac_exeext
3327 if { (ac_try="$ac_link"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_link") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest$ac_exeext &&
3343 $as_test_x conftest$ac_exeext; then
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3353 conftest$ac_exeext conftest.$ac_ext
3357 { echo "$as_me:$LINENO: result: $php_cv_cc_rpath" >&5
3358 echo "${ECHO_T}$php_cv_cc_rpath" >&6; }
3359 if test $php_cv_cc_rpath = "yes"; then
3360 ld_runpath_switch=-Wl,-rpath,
3362 ld_runpath_switch=-L
3365 if test "$PHP_RPATH" = "no"; then
3370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3371 if test -f "$ac_dir/install-sh"; then
3373 ac_install_sh="$ac_aux_dir/install-sh -c"
3375 elif test -f "$ac_dir/install.sh"; then
3377 ac_install_sh="$ac_aux_dir/install.sh -c"
3379 elif test -f "$ac_dir/shtool"; then
3381 ac_install_sh="$ac_aux_dir/shtool install -c"
3385 if test -z "$ac_aux_dir"; then
3386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3387 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3388 { (exit 1); exit 1; }; }
3391 # These three variables are undocumented and unsupported,
3392 # and are intended to be withdrawn in a future Autoconf release.
3393 # They can cause serious problems if a builder's source tree is in a directory
3394 # whose full name contains unusual characters.
3395 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3396 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3397 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3400 # Make sure we can run config.sub.
3401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3402 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3403 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3404 { (exit 1); exit 1; }; }
3406 { echo "$as_me:$LINENO: checking build system type" >&5
3407 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3408 if test "${ac_cv_build+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 ac_build_alias=$build_alias
3412 test "x$ac_build_alias" = x &&
3413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3414 test "x$ac_build_alias" = x &&
3415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3417 { (exit 1); exit 1; }; }
3418 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3419 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3421 { (exit 1); exit 1; }; }
3424 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3425 echo "${ECHO_T}$ac_cv_build" >&6; }
3426 case $ac_cv_build in
3428 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3429 echo "$as_me: error: invalid value of canonical build" >&2;}
3430 { (exit 1); exit 1; }; };;
3433 ac_save_IFS=$IFS; IFS='-'
3439 # Remember, the first character of IFS is used to create $*,
3440 # except with old shells:
3443 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3446 { echo "$as_me:$LINENO: checking host system type" >&5
3447 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3448 if test "${ac_cv_host+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 if test "x$host_alias" = x; then
3452 ac_cv_host=$ac_cv_build
3454 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3455 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3456 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3457 { (exit 1); exit 1; }; }
3461 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3462 echo "${ECHO_T}$ac_cv_host" >&6; }
3465 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3466 echo "$as_me: error: invalid value of canonical host" >&2;}
3467 { (exit 1); exit 1; }; };;
3470 ac_save_IFS=$IFS; IFS='-'
3476 # Remember, the first character of IFS is used to create $*,
3477 # except with old shells:
3480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3483 { echo "$as_me:$LINENO: checking target system type" >&5
3484 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3485 if test "${ac_cv_target+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 if test "x$target_alias" = x; then
3489 ac_cv_target=$ac_cv_host
3491 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3492 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3493 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3494 { (exit 1); exit 1; }; }
3498 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3499 echo "${ECHO_T}$ac_cv_target" >&6; }
3500 case $ac_cv_target in
3502 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3503 echo "$as_me: error: invalid value of canonical target" >&2;}
3504 { (exit 1); exit 1; }; };;
3506 target=$ac_cv_target
3507 ac_save_IFS=$IFS; IFS='-'
3513 # Remember, the first character of IFS is used to create $*,
3514 # except with old shells:
3517 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3520 # The aliases save the names the user supplied, while $host etc.
3521 # will get canonicalized.
3522 test -n "$target_alias" &&
3523 test "$program_prefix$program_suffix$program_transform_name" = \
3525 program_prefix=${target_alias}-
3527 if test -z "$host_alias" && test -n "$host"; then
3530 if test -z "$host_alias"; then
3531 { { echo "$as_me:$LINENO: error: host_alias is not set!" >&5
3532 echo "$as_me: error: host_alias is not set!" >&2;}
3533 { (exit 1); exit 1; }; }
3539 PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
3545 PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
3549 SHLIB_SUFFIX_NAME=so
3550 SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
3553 SHLIB_SUFFIX_NAME=sl
3554 SHLIB_DL_SUFFIX_NAME=sl
3557 SHLIB_SUFFIX_NAME=dylib
3558 SHLIB_DL_SUFFIX_NAME=so
3564 php_with_php_config=php-config
3568 # Check whether --with-php-config was given.
3569 if test "${with_php_config+set}" = set; then
3570 withval=$with_php_config; PHP_PHP_CONFIG=$withval
3573 PHP_PHP_CONFIG=php-config
3575 if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
3576 PHP_PHP_CONFIG=$PHP_ENABLE_ALL
3582 ext_output=$PHP_PHP_CONFIG
3588 PHP_CONFIG=$PHP_PHP_CONFIG
3589 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
3590 phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
3591 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
3592 EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
3593 PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
3595 if test -z "$prefix"; then
3596 { { echo "$as_me:$LINENO: error: Cannot find php-config. Please use --with-php-config=PATH" >&5
3597 echo "$as_me: error: Cannot find php-config. Please use --with-php-config=PATH" >&2;}
3598 { (exit 1); exit 1; }; }
3601 php_shtool=$srcdir/build/shtool
3603 test -d include || $php_shtool mkdir include
3605 > Makefile.fragments
3607 $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
3610 { echo "$as_me:$LINENO: checking for PHP prefix" >&5
3611 echo $ECHO_N "checking for PHP prefix... $ECHO_C" >&6; }
3612 { echo "$as_me:$LINENO: result: $prefix" >&5
3613 echo "${ECHO_T}$prefix" >&6; }
3614 { echo "$as_me:$LINENO: checking for PHP includes" >&5
3615 echo $ECHO_N "checking for PHP includes... $ECHO_C" >&6; }
3616 { echo "$as_me:$LINENO: result: $INCLUDES" >&5
3617 echo "${ECHO_T}$INCLUDES" >&6; }
3618 { echo "$as_me:$LINENO: checking for PHP extension directory" >&5
3619 echo $ECHO_N "checking for PHP extension directory... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: result: $EXTENSION_DIR" >&5
3621 echo "${ECHO_T}$EXTENSION_DIR" >&6; }
3622 { echo "$as_me:$LINENO: checking for PHP installed headers prefix" >&5
3623 echo $ECHO_N "checking for PHP installed headers prefix... $ECHO_C" >&6; }
3624 { echo "$as_me:$LINENO: result: $phpincludedir" >&5
3625 echo "${ECHO_T}$phpincludedir" >&6; }
3630 php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3631 php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
3633 php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3634 php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
3639 yes) pic_setting='-prefer-pic';;
3640 no) pic_setting='-prefer-non-pic';;
3643 shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3644 shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
3646 shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3647 shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
3651 php_build_target=program
3653 OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
3654 php_build_target=shared
3656 php_c_pre=$shared_c_pre
3657 php_c_meta=$shared_c_meta
3658 php_c_post=$shared_c_post
3659 php_cxx_pre=$shared_cxx_pre
3660 php_cxx_meta=$shared_cxx_meta
3661 php_cxx_post=$shared_cxx_post
3666 # Extract the first word of "re2c", so it can be a program name with args.
3667 set dummy re2c; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_RE2C+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$RE2C"; then
3674 ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_RE2C="re2c"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 RE2C=$ac_cv_prog_RE2C
3694 if test -n "$RE2C"; then
3695 { echo "$as_me:$LINENO: result: $RE2C" >&5
3696 echo "${ECHO_T}$RE2C" >&6; }
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3703 if test -n "$RE2C"; then
3704 { echo "$as_me:$LINENO: checking for re2c version" >&5
3705 echo $ECHO_N "checking for re2c version... $ECHO_C" >&6; }
3706 if test "${php_cv_re2c_version+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 re2c_vernum=`re2c --vernum 2>/dev/null`
3711 if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1200"; then
3712 php_cv_re2c_version=invalid
3714 php_cv_re2c_version="`re2c --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
3718 { echo "$as_me:$LINENO: result: $php_cv_re2c_version" >&5
3719 echo "${ECHO_T}$php_cv_re2c_version" >&6; }
3721 case $php_cv_re2c_version in
3723 { echo "$as_me:$LINENO: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers." >&5
3724 echo "$as_me: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers." >&2;}
3729 PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
3733 for ac_prog in gawk nawk awk mawk
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3739 if test "${ac_cv_prog_AWK+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if test -n "$AWK"; then
3743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 as_dummy="/usr/xpg4/bin/:$PATH"
3747 for as_dir in $as_dummy
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_AWK="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 if test -n "$AWK"; then
3765 { echo "$as_me:$LINENO: result: $AWK" >&5
3766 echo "${ECHO_T}$AWK" >&6; }
3768 { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3773 test -n "$AWK" && break
3775 test -n "$AWK" || AWK="bork"
3779 { echo "$as_me:$LINENO: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
3780 echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
3785 { { echo "$as_me:$LINENO: error: Could not find awk; Install GNU awk" >&5
3786 echo "$as_me: error: Could not find awk; Install GNU awk" >&2;}
3787 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking if $AWK is broken" >&5
3791 echo $ECHO_N "checking if $AWK is broken... $ECHO_C" >&6; }
3792 if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
3793 { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795 { { echo "$as_me:$LINENO: error: You should install GNU awk" >&5
3796 echo "$as_me: error: You should install GNU awk" >&2;}
3797 { (exit 1); exit 1; }; }
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3805 PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
3813 { echo "$as_me:$LINENO: checking whether to enable phpCairo functions" >&5
3814 echo $ECHO_N "checking whether to enable phpCairo functions... $ECHO_C" >&6; }
3815 # Check whether --enable-cairo was given.
3816 if test "${enable_cairo+set}" = set; then
3817 enableval=$enable_cairo; PHP_CAIRO=$enableval
3822 if test "$PHP_ENABLE_ALL" && test "yes" = "yes"; then
3823 PHP_CAIRO=$PHP_ENABLE_ALL
3830 ext_output="yes, shared"
3834 PHP_CAIRO=`echo "$PHP_CAIRO"|$SED 's/^shared,//'`
3850 ext_output="yes, shared"
3852 test "$PHP_CAIRO" = "no" && PHP_CAIRO=yes
3855 { echo "$as_me:$LINENO: result: $ext_output" >&5
3856 echo "${ECHO_T}$ext_output" >&6; }
3861 if test "$PHP_CAIRO" != "no"; then
3862 export OLD_CPPFLAGS="$CPPFLAGS"
3863 export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_CAIRO"
3865 { echo "$as_me:$LINENO: checking PHP version" >&5
3866 echo $ECHO_N "checking PHP version... $ECHO_C" >&6; }
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <php_version.h>
3878 #if PHP_VERSION_ID < 50000
3879 #error this extension requires at least PHP version 5.0.0
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3903 { echo "$as_me:$LINENO: result: ok" >&5
3904 echo "${ECHO_T}ok" >&6; }
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 { { echo "$as_me:$LINENO: error: need at least PHP 5.0.0" >&5
3910 echo "$as_me: error: need at least PHP 5.0.0" >&2;}
3911 { (exit 1); exit 1; }; }
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 export CPPFLAGS="$OLD_CPPFLAGS"
3920 PHP_VAR_SUBST="$PHP_VAR_SUBST PHPCAIRO_SHARED_LIBADD"
3923 cat >>confdefs.h <<\_ACEOF
3924 @%:@define HAVE_PHPCAIRO 1
3930 ext_srcdir=$abs_srcdir
3934 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
3939 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
3940 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
3941 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
3947 b_cxx_pre=$php_cxx_pre
3948 b_c_meta=$php_c_meta
3949 b_cxx_meta=$php_cxx_meta
3950 b_c_post=$php_c_post
3951 b_cxx_post=$php_cxx_post
3956 for ac_src in Cairo.c ; do
3963 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
3966 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3967 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3968 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3969 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
3972 cat >>Makefile.objects<<EOF
3973 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
3979 EXT_STATIC="$EXT_STATIC cairo"
3980 if test "$ext_shared" != "nocli"; then
3981 EXT_CLI_STATIC="$EXT_CLI_STATIC cairo"
3984 if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
3985 PHP_CAIRO_SHARED=yes
3988 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
3989 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
3990 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
3995 b_c_pre=$shared_c_pre
3996 b_cxx_pre=$shared_cxx_pre
3997 b_c_meta=$shared_c_meta
3998 b_cxx_meta=$shared_cxx_meta
3999 b_c_post=$shared_c_post
4000 b_cxx_post=$shared_cxx_post
4005 for ac_src in Cairo.c ; do
4012 shared_objects_cairo="$shared_objects_cairo $ac_bdir$ac_obj.lo"
4015 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4016 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4017 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4018 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4021 cat >>Makefile.objects<<EOF
4022 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4030 install_modules="install-modules"
4035 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcairo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(PHPCAIRO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcairo.so '$ext_builddir'/phpcairo.so'
4039 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) -L$(top_builddir)/netware -lphp5lib $(CAIRO_SHARED_LIBADD)'
4043 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(PHPCAIRO_SHARED_LIBADD)'
4047 PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcairo.$suffix"
4049 PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_cairo"
4051 cat >>Makefile.objects<<EOF
4052 \$(phplibdir)/phpcairo.$suffix: $ext_builddir/phpcairo.$suffix
4053 \$(LIBTOOL) --mode=install cp $ext_builddir/phpcairo.$suffix \$(phplibdir)
4055 $ext_builddir/phpcairo.$suffix: \$(shared_objects_cairo) \$(PHPCAIRO_SHARED_DEPENDENCIES)
4063 install_modules="install-modules"
4068 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/cairo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(CAIRO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/cairo.so '$ext_builddir'/cairo.so'
4072 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) -L$(top_builddir)/netware -lphp5lib $(RO_SHARED_LIBADD)'
4076 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(CAIRO_SHARED_LIBADD)'
4080 PHP_MODULES="$PHP_MODULES \$(phplibdir)/cairo.$suffix"
4082 PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_cairo"
4084 cat >>Makefile.objects<<EOF
4085 \$(phplibdir)/cairo.$suffix: $ext_builddir/cairo.$suffix
4086 \$(LIBTOOL) --mode=install cp $ext_builddir/cairo.$suffix \$(phplibdir)
4088 $ext_builddir/cairo.$suffix: \$(shared_objects_cairo) \$(CAIRO_SHARED_DEPENDENCIES)
4096 cat >>confdefs.h <<_ACEOF
4097 @%:@define COMPILE_DL_CAIRO 1
4103 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
4105 if test "$PHP_SAPI" = "cgi"; then
4109 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4110 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4111 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4117 b_cxx_pre=$php_cxx_pre
4118 b_c_meta=$php_c_meta
4119 b_cxx_meta=$php_cxx_meta
4120 b_c_post=$php_c_post
4121 b_cxx_post=$php_cxx_post
4126 for ac_src in Cairo.c ; do
4133 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
4136 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4137 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4138 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4139 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4142 cat >>Makefile.objects<<EOF
4143 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4149 EXT_STATIC="$EXT_STATIC cairo"
4154 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4155 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4156 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4162 b_cxx_pre=$php_cxx_pre
4163 b_c_meta=$php_c_meta
4164 b_cxx_meta=$php_cxx_meta
4165 b_c_post=$php_c_post
4166 b_cxx_post=$php_cxx_post
4171 for ac_src in Cairo.c ; do
4178 PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
4181 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4182 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4183 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4184 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4187 cat >>Makefile.objects<<EOF
4188 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4195 EXT_CLI_STATIC="$EXT_CLI_STATIC cairo"
4199 BUILD_DIR="$BUILD_DIR $ext_builddir"
4203 if test "$ext_builddir" = "."; then
4204 PHP_PECL_EXTENSION=cairo
4206 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
4211 { echo "$as_me:$LINENO: checking for pkg-config" >&5
4212 echo $ECHO_N "checking for pkg-config... $ECHO_C" >&6; }
4213 if test ! -f "$PKG_CONFIG"; then
4214 PKG_CONFIG=`which pkg-config`
4216 if test -f "$PKG_CONFIG"; then
4217 { echo "$as_me:$LINENO: result: found" >&5
4218 echo "${ECHO_T}found" >&6; }
4219 { echo "$as_me:$LINENO: checking for cairo" >&5
4220 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
4222 if $PKG_CONFIG --exists cairo; then
4223 { echo "$as_me:$LINENO: result: found" >&5
4224 echo "${ECHO_T}found" >&6; }
4225 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs cairo`"
4226 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags cairo`"
4228 cat >>confdefs.h <<\_ACEOF
4229 @%:@define HAVE_CAIRO 1
4233 { echo "$as_me:$LINENO: result: not found" >&5
4234 echo "${ECHO_T}not found" >&6; }
4235 { { echo "$as_me:$LINENO: error: Ooops ! no cairo detected in the system" >&5
4236 echo "$as_me: error: Ooops ! no cairo detected in the system" >&2;}
4237 { (exit 1); exit 1; }; }
4240 { echo "$as_me:$LINENO: result: not found" >&5
4241 echo "${ECHO_T}not found" >&6; }
4242 { { echo "$as_me:$LINENO: error: Ooops ! no pkg-config found .... " >&5
4243 echo "$as_me: error: Ooops ! no pkg-config found .... " >&2;}
4244 { (exit 1); exit 1; }; }
4255 # Check whether --enable-shared was given.
4256 if test "${enable_shared+set}" = set; then
4257 enableval=$enable_shared; p=${PACKAGE-default}
4259 yes) enable_shared=yes ;;
4260 no) enable_shared=no ;;
4263 # Look at the argument we got. We use all the common list separators.
4264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4265 for pkg in $enableval; do
4267 if test "X$pkg" = "X$p"; then
4279 # Check whether --enable-static was given.
4280 if test "${enable_static+set}" = set; then
4281 enableval=$enable_static; p=${PACKAGE-default}
4283 yes) enable_static=yes ;;
4284 no) enable_static=no ;;
4287 # Look at the argument we got. We use all the common list separators.
4288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289 for pkg in $enableval; do
4291 if test "X$pkg" = "X$p"; then
4303 # Check whether --enable-fast-install was given.
4304 if test "${enable_fast_install+set}" = set; then
4305 enableval=$enable_fast_install; p=${PACKAGE-default}
4307 yes) enable_fast_install=yes ;;
4308 no) enable_fast_install=no ;;
4310 enable_fast_install=no
4311 # Look at the argument we got. We use all the common list separators.
4312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4313 for pkg in $enableval; do
4315 if test "X$pkg" = "X$p"; then
4316 enable_fast_install=yes
4323 enable_fast_install=yes
4328 # Check whether --with-gnu-ld was given.
4329 if test "${with_gnu_ld+set}" = set; then
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4336 if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4339 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4348 # Accept absolute paths.
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4353 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4356 test -z "$LD" && LD="$ac_prog"
4359 # If it fails, then pretend we aren't using GCC.
4363 # If it is relative, then search for the first ld in PATH.
4367 elif test "$with_gnu_ld" = yes; then
4368 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4369 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4371 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4372 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4374 if test "${lt_cv_path_LD+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4392 test "$with_gnu_ld" != yes && break
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4404 if test -n "$LD"; then
4405 { echo "$as_me:$LINENO: result: $LD" >&5
4406 echo "${ECHO_T}$LD" >&6; }
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4411 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4412 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4413 { (exit 1); exit 1; }; }
4414 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4415 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4416 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4425 lt_cv_prog_gnu_ld=no
4429 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4430 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4434 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4435 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4436 if test "${lt_cv_ld_reload_flag+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 lt_cv_ld_reload_flag='-r'
4441 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4442 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4443 reload_flag=$lt_cv_ld_reload_flag
4444 case $reload_flag in
4446 *) reload_flag=" $reload_flag" ;;
4448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4451 if test "$GCC" = yes; then
4452 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4459 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4460 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4461 if test "${lt_cv_path_NM+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test -n "$NM"; then
4465 # Let the user override the test.
4468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4471 test -z "$ac_dir" && ac_dir=.
4472 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4474 # Check to see if the nm accepts a BSD-compat flag.
4475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4476 # nm: unknown option "B" ignored
4477 # Tru64's nm complains that /dev/null is an invalid object file
4478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4479 */dev/null* | *'Invalid file or object type'*)
4480 lt_cv_path_NM="$tmp_nm -B"
4484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4486 lt_cv_path_NM="$tmp_nm -p"
4490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4491 continue # so that we can try to find one that supports BSD flags
4498 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4501 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4502 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4505 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4508 if test "$LN_S" = "ln -s"; then
4509 { echo "$as_me:$LINENO: result: yes" >&5
4510 echo "${ECHO_T}yes" >&6; }
4512 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4513 echo "${ECHO_T}no, using $LN_S" >&6; }
4516 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4517 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4518 if test "${lt_cv_deplibs_check_method+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 lt_cv_file_magic_cmd='$MAGIC_CMD'
4522 lt_cv_file_magic_test_file=
4523 lt_cv_deplibs_check_method='unknown'
4524 # Need to set the preceding variable on all platforms that support
4525 # interlibrary dependencies.
4526 # 'none' -- dependencies not supported.
4527 # `unknown' -- same as none, but documents that we really don't know.
4528 # 'pass_all' -- all dependencies passed with no checks.
4529 # 'test_compile' -- check by making test program.
4530 # 'file_magic [[regex]]' -- check by looking for files in library path
4531 # which responds to the $file_magic_cmd with a given extended regex.
4532 # If you have `file' or equivalent on your system and you're not sure
4533 # whether `pass_all' will *always* work, you probably want this one.
4537 lt_cv_deplibs_check_method=pass_all
4541 lt_cv_deplibs_check_method=pass_all
4545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4546 lt_cv_file_magic_cmd='/usr/bin/file -L'
4547 lt_cv_file_magic_test_file=/shlib/libc.so
4551 # func_win32_libid is a shell function defined in ltmain.sh
4552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4553 lt_cv_file_magic_cmd='func_win32_libid'
4557 # Base MSYS/MinGW do not provide the 'file' command needed by
4558 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4559 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4560 lt_cv_file_magic_cmd='$OBJDUMP -f'
4563 darwin* | rhapsody*)
4564 lt_cv_deplibs_check_method=pass_all
4567 freebsd* | kfreebsd*-gnu | dragonfly*)
4568 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4571 # Not sure whether the presence of OpenBSD here was a mistake.
4572 # Let's accept both of them until this is cleared up.
4573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4574 lt_cv_file_magic_cmd=/usr/bin/file
4575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4579 lt_cv_deplibs_check_method=pass_all
4584 lt_cv_deplibs_check_method=pass_all
4587 hpux10.20* | hpux11*)
4588 lt_cv_file_magic_cmd=/usr/bin/file
4591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4605 irix5* | irix6* | nonstopux*)
4607 *-32|*"-32 ") libmagic=32-bit;;
4608 *-n32|*"-n32 ") libmagic=N32;;
4609 *-64|*"-64 ") libmagic=64-bit;;
4610 *) libmagic=never-match;;
4612 lt_cv_deplibs_check_method=pass_all
4615 # This must be Linux ELF.
4617 lt_cv_deplibs_check_method=pass_all
4621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4630 lt_cv_file_magic_cmd=/usr/bin/file
4631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4635 lt_cv_deplibs_check_method=unknown
4639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646 osf3* | osf4* | osf5*)
4647 lt_cv_deplibs_check_method=pass_all
4651 lt_cv_deplibs_check_method=pass_all
4655 lt_cv_deplibs_check_method=pass_all
4658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4659 case $host_vendor in
4661 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]'
4662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4665 lt_cv_deplibs_check_method=pass_all
4668 lt_cv_file_magic_cmd='/bin/file'
4669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4672 lt_cv_file_magic_cmd='/bin/file'
4673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4674 lt_cv_file_magic_test_file=/lib/libc.so
4677 lt_cv_deplibs_check_method=pass_all
4682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4683 lt_cv_deplibs_check_method=pass_all
4688 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4689 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4690 file_magic_cmd=$lt_cv_file_magic_cmd
4691 deplibs_check_method=$lt_cv_deplibs_check_method
4692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4697 # If no C compiler was specified, use CC.
4700 # Allow CC to be a program name with arguments.
4703 #AC_ARG_ENABLE([libtool-lock],
4704 #[ --disable-libtool-lock avoid locking (might break parallel builds)])
4705 #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4707 # Some flags need to be propagated to the compiler or linker for good
4711 # Find out which ABI we are using.
4712 echo 'int i;' > conftest.$ac_ext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; then
4718 case `/usr/bin/file conftest.$ac_objext` in
4730 # Find out which ABI we are using.
4731 echo '#line __oline__ "configure"' > conftest.$ac_ext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 if test "$lt_cv_prog_gnu_ld" = yes; then
4738 case `/usr/bin/file conftest.$ac_objext` in
4740 LD="${LD-ld} -melf32bsmip"
4743 LD="${LD-ld} -melf32bmipn32"
4746 LD="${LD-ld} -melf64bmip"
4750 case `/usr/bin/file conftest.$ac_objext` in
4766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4767 # Find out which ABI we are using.
4768 echo 'int i;' > conftest.$ac_ext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4774 case `/usr/bin/file conftest.o` in
4778 LD="${LD-ld} -m elf_i386"
4780 ppc64-*linux*|powerpc64-*linux*)
4781 LD="${LD-ld} -m elf32ppclinux"
4784 LD="${LD-ld} -m elf_s390"
4787 LD="${LD-ld} -m elf32_sparc"
4794 LD="${LD-ld} -m elf_x86_64"
4796 ppc*-*linux*|powerpc*-*linux*)
4797 LD="${LD-ld} -m elf64ppc"
4800 LD="${LD-ld} -m elf64_s390"
4803 LD="${LD-ld} -m elf64_sparc"
4813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4814 SAVE_CFLAGS="$CFLAGS"
4815 CFLAGS="$CFLAGS -belf"
4816 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4818 if test "${lt_cv_cc_needs_belf+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (ac_try="$ac_link"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_link") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest$ac_exeext &&
4860 $as_test_x conftest$ac_exeext; then
4861 lt_cv_cc_needs_belf=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 lt_cv_cc_needs_belf=no
4869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4870 conftest$ac_exeext conftest.$ac_ext
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4879 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4882 CFLAGS="$SAVE_CFLAGS"
4888 need_locks="$enable_libtool_lock"
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4898 # On Suns, sometimes $CPP names a directory.
4899 if test -n "$CPP" && test -d "$CPP"; then
4902 if test -z "$CPP"; then
4903 if test "${ac_cv_prog_CPP+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 # Double quotes because CPP needs to be expanded
4907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4910 for ac_c_preproc_warn_flag in '' yes
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4925 @%:@ include <limits.h>
4927 @%:@ include <assert.h>
4931 if { (ac_try="$ac_cpp conftest.$ac_ext"
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } >/dev/null && {
4944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 # Broken: fails on valid input.
4956 rm -f conftest.err conftest.$ac_ext
4958 # OK, works on sane cases. Now check whether nonexistent headers
4959 # can be detected and how.
4960 cat >conftest.$ac_ext <<_ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 @%:@include <ac_nonexistent.h>
4968 if { (ac_try="$ac_cpp conftest.$ac_ext"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } >/dev/null && {
4981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4984 # Broken: success on invalid input.
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 # Passes both tests.
4995 rm -f conftest.err conftest.$ac_ext
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then
5012 { echo "$as_me:$LINENO: result: $CPP" >&5
5013 echo "${ECHO_T}$CPP" >&6; }
5015 for ac_c_preproc_warn_flag in '' yes
5017 # Use a header file that comes with gcc, so configuring glibc
5018 # with a fresh cross-compiler works.
5019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5020 # <limits.h> exists even on freestanding compilers.
5021 # On the NeXT, cc -E runs the code through the compiler's parser,
5022 # not just through cpp. "Syntax error" is here to catch this case.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5030 @%:@ include <limits.h>
5032 @%:@ include <assert.h>
5036 if { (ac_try="$ac_cpp conftest.$ac_ext"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null && {
5049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5061 rm -f conftest.err conftest.$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 @%:@include <ac_nonexistent.h>
5073 if { (ac_try="$ac_cpp conftest.$ac_ext"
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5089 # Broken: success on invalid input.
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Passes both tests.
5100 rm -f conftest.err conftest.$ac_ext
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.$ac_ext
5105 if $ac_preproc_ok; then
5108 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&5
5110 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5111 See \`config.log' for more details." >&2;}
5112 { (exit 1); exit 1; }; }
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5124 if test "${ac_cv_header_stdc+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_header_stdc=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_cv_header_stdc=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 if test $ac_cv_header_stdc = yes; then
5174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5175 cat >conftest.$ac_ext <<_ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185 $EGREP "memchr" >/dev/null 2>&1; then
5188 ac_cv_header_stdc=no
5194 if test $ac_cv_header_stdc = yes; then
5195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 $EGREP "free" >/dev/null 2>&1; then
5209 ac_cv_header_stdc=no
5215 if test $ac_cv_header_stdc = yes; then
5216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5217 if test "$cross_compiling" = yes; then
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5228 #if ((' ' & 0x0FF) == 0x020)
5229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5232 # define ISLOWER(c) \
5233 (('a' <= (c) && (c) <= 'i') \
5234 || ('j' <= (c) && (c) <= 'r') \
5235 || ('s' <= (c) && (c) <= 'z'))
5236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5244 for (i = 0; i < 256; i++)
5245 if (XOR (islower (i), ISLOWER (i))
5246 || toupper (i) != TOUPPER (i))
5251 rm -f conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5262 { (case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_try") 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5273 echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_header_stdc=no
5280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5288 if test $ac_cv_header_stdc = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 @%:@define STDC_HEADERS 1
5296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5306 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5307 inttypes.h stdint.h unistd.h
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5323 @%:@include <$ac_header>
5325 rm -f conftest.$ac_objext
5326 if { (ac_try="$ac_compile"
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compile") 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && {
5339 test -z "$ac_c_werror_flag" ||
5340 test ! -s conftest.err
5341 } && test -s conftest.$ac_objext; then
5342 eval "$as_ac_Header=yes"
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 eval "$as_ac_Header=no"
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_res=`eval echo '${'$as_ac_Header'}'`
5353 { echo "$as_me:$LINENO: result: $ac_res" >&5
5354 echo "${ECHO_T}$ac_res" >&6; }
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5366 for ac_header in dlfcn.h
5368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_res=`eval echo '${'$as_ac_Header'}'`
5376 { echo "$as_me:$LINENO: result: $ac_res" >&5
5377 echo "${ECHO_T}$ac_res" >&6; }
5379 # Is the header compilable?
5380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 @%:@include <$ac_header>
5391 rm -f conftest.$ac_objext
5392 if { (ac_try="$ac_compile"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_compile") 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && {
5405 test -z "$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 } && test -s conftest.$ac_objext; then
5408 ac_header_compiler=yes
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_header_compiler=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5418 echo "${ECHO_T}$ac_header_compiler" >&6; }
5420 # Is the header present?
5421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 @%:@include <$ac_header>
5431 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null && {
5444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5447 ac_header_preproc=yes
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_header_preproc=no
5455 rm -f conftest.err conftest.$ac_ext
5456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5457 echo "${ECHO_T}$ac_header_preproc" >&6; }
5459 # So? What about this header?
5460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5466 ac_header_preproc=yes
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 eval "$as_ac_Header=\$ac_header_preproc"
5491 ac_res=`eval echo '${'$as_ac_Header'}'`
5492 { echo "$as_me:$LINENO: result: $ac_res" >&5
5493 echo "${ECHO_T}$ac_res" >&6; }
5496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5497 cat >>confdefs.h <<_ACEOF
5498 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5510 (test "X$CXX" != "Xg++"))) ; then
5512 ac_cpp='$CXXCPP $CPPFLAGS'
5513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5516 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5517 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5518 if test -z "$CXXCPP"; then
5519 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 # Double quotes because CXXCPP needs to be expanded
5523 for CXXCPP in "$CXX -E" "/lib/cpp"
5526 for ac_cxx_preproc_warn_flag in '' yes
5528 # Use a header file that comes with gcc, so configuring glibc
5529 # with a fresh cross-compiler works.
5530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5531 # <limits.h> exists even on freestanding compilers.
5532 # On the NeXT, cc -E runs the code through the compiler's parser,
5533 # not just through cpp. "Syntax error" is here to catch this case.
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5541 @%:@ include <limits.h>
5543 @%:@ include <assert.h>
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null && {
5560 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5561 test ! -s conftest.err
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 # Broken: fails on valid input.
5572 rm -f conftest.err conftest.$ac_ext
5574 # OK, works on sane cases. Now check whether nonexistent headers
5575 # can be detected and how.
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 @%:@include <ac_nonexistent.h>
5584 if { (ac_try="$ac_cpp conftest.$ac_ext"
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null && {
5597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5598 test ! -s conftest.err
5600 # Broken: success on invalid input.
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 # Passes both tests.
5611 rm -f conftest.err conftest.$ac_ext
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.err conftest.$ac_ext
5616 if $ac_preproc_ok; then
5621 ac_cv_prog_CXXCPP=$CXXCPP
5624 CXXCPP=$ac_cv_prog_CXXCPP
5626 ac_cv_prog_CXXCPP=$CXXCPP
5628 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5629 echo "${ECHO_T}$CXXCPP" >&6; }
5631 for ac_cxx_preproc_warn_flag in '' yes
5633 # Use a header file that comes with gcc, so configuring glibc
5634 # with a fresh cross-compiler works.
5635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5636 # <limits.h> exists even on freestanding compilers.
5637 # On the NeXT, cc -E runs the code through the compiler's parser,
5638 # not just through cpp. "Syntax error" is here to catch this case.
5639 cat >conftest.$ac_ext <<_ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5646 @%:@ include <limits.h>
5648 @%:@ include <assert.h>
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } >/dev/null && {
5665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5666 test ! -s conftest.err
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Broken: fails on valid input.
5677 rm -f conftest.err conftest.$ac_ext
5679 # OK, works on sane cases. Now check whether nonexistent headers
5680 # can be detected and how.
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 @%:@include <ac_nonexistent.h>
5689 if { (ac_try="$ac_cpp conftest.$ac_ext"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null && {
5702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5703 test ! -s conftest.err
5705 # Broken: success on invalid input.
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 # Passes both tests.
5716 rm -f conftest.err conftest.$ac_ext
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5724 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5741 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5743 # find the maximum length of command line arguments
5744 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5745 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5746 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 # On DJGPP, this test can blow up pretty badly due to problems in libc
5755 # (any single argument exceeding 2000 bytes causes a buffer overrun
5756 # during glob expansion). Even if it were fixed, the result of this
5757 # check would be larger than it should be.
5758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5762 # Under GNU Hurd, this test is not required because there is
5763 # no limit to the length of command line arguments.
5764 # Libtool will interpret -1 as no limit whatsoever
5765 lt_cv_sys_max_cmd_len=-1;
5769 # On Win9x/ME, this test blows up -- it succeeds, but takes
5770 # about 5 minutes as the teststring grows exponentially.
5771 # Worse, since 9x/ME are not pre-emptively multitasking,
5772 # you end up with a "frozen" computer, even though with patience
5773 # the test eventually succeeds (with a max line length of 256k).
5774 # Instead, let's just punt: use the minimum linelength reported by
5775 # all of the supported platforms: 8192 (on NT/2K/XP).
5776 lt_cv_sys_max_cmd_len=8192;
5780 # On AmigaOS with pdksh, this test takes hours, literally.
5781 # So we just punt and use a minimum line length of 8192.
5782 lt_cv_sys_max_cmd_len=8192;
5785 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5786 # This has been around since 386BSD, at least. Likely further.
5787 if test -x /sbin/sysctl; then
5788 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5789 elif test -x /usr/sbin/sysctl; then
5790 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5792 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5794 # And add a safety zone
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5801 # nice to cause kernel panics so lets avoid the loop below.
5802 # First set a reasonable default.
5803 lt_cv_sys_max_cmd_len=16384
5805 if test -x /sbin/sysconfig; then
5806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5807 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5812 # If test is not a shell built-in, we'll probably end up computing a
5813 # maximum length that is only half of the actual maximum length, but
5815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5816 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5817 = "XX$teststring") >/dev/null 2>&1 &&
5818 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5819 lt_cv_sys_max_cmd_len=$new_result &&
5820 test $i != 17 # 1/2 MB should be enough
5823 teststring=$teststring$teststring
5826 # Add a significant safety factor because C++ compilers can tack on massive
5827 # amounts of additional arguments before passing them to the linker.
5828 # It appears as though 1/2 is a usable value.
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5835 if test -n $lt_cv_sys_max_cmd_len ; then
5836 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5837 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5839 { echo "$as_me:$LINENO: result: none" >&5
5840 echo "${ECHO_T}none" >&6; }
5846 # Check for command to grab the raw symbol name followed by C symbol from nm.
5847 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5848 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5849 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 # These are sane defaults that work on at least a few old systems.
5854 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5856 # Character class describing NM global symbol codes.
5857 symcode='[BCDEGRST]'
5859 # Regexp to match symbols that can be accessed directly from C.
5860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5862 # Transform an extracted symbol line into a proper C declaration
5863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5865 # Transform an extracted symbol line into symbol name and symbol address
5866 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5868 # Define system-specific variables.
5873 cygwin* | mingw* | pw32*)
5874 symcode='[ABCDGISTW]'
5876 hpux*) # Its linker distinguishes data from code symbols
5877 if test "$host_cpu" = ia64; then
5878 symcode='[ABCDEGRST]'
5880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5881 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5884 if test "$host_cpu" = ia64; then
5885 symcode='[ABCDGIRSTW]'
5886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5891 symcode='[BCDEGRST]'
5894 symcode='[BCDEGQRST]'
5904 # Handle CRLF in mingw tool chain
5908 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5912 # If we're using GNU nm, then use its standard symbol codes.
5913 case `$NM -V 2>&1` in
5914 *GNU* | *'with BFD'*)
5915 symcode='[ABCDGIRSTW]' ;;
5918 # Try without a prefix undercore, then with it.
5919 for ac_symprfx in "" "_"; do
5921 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5922 symxfrm="\\1 $ac_symprfx\\2 \\2"
5924 # Write the raw and C identifiers.
5925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927 # Check to see that the pipe works correctly.
5931 cat > conftest.$ac_ext <<EOF
5936 void nm_test_func(){}
5940 int main(){nm_test_var='a';nm_test_func();return(0);}
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; then
5948 # Now try to grab the symbols.
5950 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5951 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && test -s "$nlist"; then
5955 # Try sorting and uniquifying the output.
5956 if sort "$nlist" | uniq > "$nlist"T; then
5957 mv -f "$nlist"T "$nlist"
5962 # Make sure that we snagged all the symbols we need.
5963 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5964 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5965 cat <<EOF > conftest.$ac_ext
5971 # Now generate the symbol file.
5972 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5974 cat <<EOF >> conftest.$ac_ext
5975 #if defined (__STDC__) && __STDC__
5976 # define lt_ptr_t void *
5978 # define lt_ptr_t char *
5982 /* The mapping between symbol names and symbols. */
5987 lt_preloaded_symbols[] =
5990 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5991 cat <<\EOF >> conftest.$ac_ext
5999 # Now try linking the two files.
6000 mv conftest.$ac_objext conftstm.$ac_objext
6001 lt_save_LIBS="$LIBS"
6002 lt_save_CFLAGS="$CFLAGS"
6003 LIBS="conftstm.$ac_objext"
6004 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6012 LIBS="$lt_save_LIBS"
6013 CFLAGS="$lt_save_CFLAGS"
6015 echo "cannot find nm_test_func in $nlist" >&5
6018 echo "cannot find nm_test_var in $nlist" >&5
6021 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6024 echo "$progname: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6027 rm -f conftest* conftst*
6029 # Do not use the global_symbol_pipe unless it works.
6030 if test "$pipe_works" = yes; then
6033 lt_cv_sys_global_symbol_pipe=
6039 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6040 lt_cv_sys_global_symbol_to_cdecl=
6042 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6043 { echo "$as_me:$LINENO: result: failed" >&5
6044 echo "${ECHO_T}failed" >&6; }
6046 { echo "$as_me:$LINENO: result: ok" >&5
6047 echo "${ECHO_T}ok" >&6; }
6050 { echo "$as_me:$LINENO: checking for objdir" >&5
6051 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6052 if test "${lt_cv_objdir+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 rm -f .libs 2>/dev/null
6056 mkdir .libs 2>/dev/null
6057 if test -d .libs; then
6060 # MS-DOS does not allow filenames that begin with a dot.
6063 rmdir .libs 2>/dev/null
6065 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6066 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6067 objdir=$lt_cv_objdir
6075 # AIX sometimes has problems with the GCC collect2 program. For some
6076 # reason, if we set the COLLECT_NAMES environment variable, the problems
6077 # vanish in a puff of smoke.
6078 if test "X${COLLECT_NAMES+set}" != Xset; then
6080 export COLLECT_NAMES
6085 # Sed substitution that helps us do robust quoting. It backslashifies
6086 # metacharacters that are still active within double-quoted strings.
6087 Xsed='sed -e 1s/^X//'
6088 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6090 # Same as above, but do not quote variable references.
6091 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6093 # Sed substitution to delay expansion of an escaped shell variable in a
6094 # double_quote_subst'ed string.
6095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6097 # Sed substitution to avoid accidental globbing in evaled expressions
6098 no_glob_subst='s/\*/\\\*/g'
6104 default_ofile=libtool
6105 can_build_shared=yes
6107 # All known linkers require a `.a' archive for static linking (except MSVC,
6108 # which needs '.lib').
6110 ltmain="$ac_aux_dir/ltmain.sh"
6111 ofile="$default_ofile"
6112 with_gnu_ld="$lt_cv_prog_gnu_ld"
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}ar; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_AR+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 if test -n "$AR"; then
6123 ac_cv_prog_AR="$AR" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_AR="${ac_tool_prefix}ar"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 if test -n "$AR"; then
6144 { echo "$as_me:$LINENO: result: $AR" >&5
6145 echo "${ECHO_T}$AR" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6153 if test -z "$ac_cv_prog_AR"; then
6155 # Extract the first word of "ar", so it can be a program name with args.
6156 set dummy ar; ac_word=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_AR="ar"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183 if test -n "$ac_ct_AR"; then
6184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6185 echo "${ECHO_T}$ac_ct_AR" >&6; }
6187 { echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6; }
6191 if test "x$ac_ct_AR" = x; then
6194 case $cross_compiling:$ac_tool_warned in
6196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet. If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&5
6199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6200 whose name does not start with the host triplet. If you think this
6201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6202 ac_tool_warned=yes ;;
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_RANLIB+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$RANLIB"; then
6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 RANLIB=$ac_cv_prog_RANLIB
6239 if test -n "$RANLIB"; then
6240 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6241 echo "${ECHO_T}$RANLIB" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6249 if test -z "$ac_cv_prog_RANLIB"; then
6250 ac_ct_RANLIB=$RANLIB
6251 # Extract the first word of "ranlib", so it can be a program name with args.
6252 set dummy ranlib; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test -n "$ac_ct_RANLIB"; then
6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_RANLIB="ranlib"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6279 if test -n "$ac_ct_RANLIB"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6281 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6287 if test "x$ac_ct_RANLIB" = x; then
6290 case $cross_compiling:$ac_tool_warned in
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6300 RANLIB=$ac_ct_RANLIB
6303 RANLIB="$ac_cv_prog_RANLIB"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}strip; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_STRIP+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 if test -n "$STRIP"; then
6315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 STRIP=$ac_cv_prog_STRIP
6335 if test -n "$STRIP"; then
6336 { echo "$as_me:$LINENO: result: $STRIP" >&5
6337 echo "${ECHO_T}$STRIP" >&6; }
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6345 if test -z "$ac_cv_prog_STRIP"; then
6347 # Extract the first word of "strip", so it can be a program name with args.
6348 set dummy strip; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 if test -n "$ac_ct_STRIP"; then
6355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_STRIP="strip"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6375 if test -n "$ac_ct_STRIP"; then
6376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 if test "x$ac_ct_STRIP" = x; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6399 STRIP="$ac_cv_prog_STRIP"
6404 old_CFLAGS="$CFLAGS"
6406 # Set sane defaults for various variables
6407 test -z "$AR" && AR=ar
6408 test -z "$AR_FLAGS" && AR_FLAGS=cru
6409 test -z "$AS" && AS=as
6410 test -z "$CC" && CC=cc
6411 test -z "$LTCC" && LTCC=$CC
6412 test -z "$DLLTOOL" && DLLTOOL=dlltool
6413 test -z "$LD" && LD=ld
6414 test -z "$LN_S" && LN_S="ln -s"
6415 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6416 test -z "$NM" && NM=nm
6417 test -z "$SED" && SED=sed
6418 test -z "$OBJDUMP" && OBJDUMP=objdump
6419 test -z "$RANLIB" && RANLIB=:
6420 test -z "$STRIP" && STRIP=:
6421 test -z "$ac_objext" && ac_objext=o
6423 # Determine commands to create old-style static archives.
6424 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6425 old_postinstall_cmds='chmod 644 $oldlib'
6426 old_postuninstall_cmds=
6428 if test -n "$RANLIB"; then
6431 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6434 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6437 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6440 for cc_temp in $compiler""; do
6442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6451 # Only perform the check for file, if the check method requires it
6452 case $deplibs_check_method in
6454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6455 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6456 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6465 lt_save_MAGIC_CMD="$MAGIC_CMD"
6466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6468 for ac_dir in $ac_dummy; do
6470 test -z "$ac_dir" && ac_dir=.
6471 if test -f $ac_dir/${ac_tool_prefix}file; then
6472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6473 if test -n "$file_magic_test_file"; then
6474 case $deplibs_check_method in
6476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6479 $EGREP "$file_magic_regex" > /dev/null; then
6484 *** Warning: the command libtool uses to detect shared libraries,
6485 *** $file_magic_cmd, produces output that libtool cannot recognize.
6486 *** The result is that libtool may fail to recognize shared libraries
6487 *** as such. This will affect the creation of libtool libraries that
6488 *** depend on shared libraries, but programs linked with such libtool
6489 *** libraries will work regardless of this problem. Nevertheless, you
6490 *** may want to report the problem to your system manager and/or to
6491 *** bug-libtool@gnu.org
6501 MAGIC_CMD="$lt_save_MAGIC_CMD"
6506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507 if test -n "$MAGIC_CMD"; then
6508 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6509 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6515 if test -z "$lt_cv_path_MAGIC_CMD"; then
6516 if test -n "$ac_tool_prefix"; then
6517 { echo "$as_me:$LINENO: checking for file" >&5
6518 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6519 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6527 lt_save_MAGIC_CMD="$MAGIC_CMD"
6528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6530 for ac_dir in $ac_dummy; do
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/file; then
6534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6535 if test -n "$file_magic_test_file"; then
6536 case $deplibs_check_method in
6538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6541 $EGREP "$file_magic_regex" > /dev/null; then
6546 *** Warning: the command libtool uses to detect shared libraries,
6547 *** $file_magic_cmd, produces output that libtool cannot recognize.
6548 *** The result is that libtool may fail to recognize shared libraries
6549 *** as such. This will affect the creation of libtool libraries that
6550 *** depend on shared libraries, but programs linked with such libtool
6551 *** libraries will work regardless of this problem. Nevertheless, you
6552 *** may want to report the problem to your system manager and/or to
6553 *** bug-libtool@gnu.org
6563 MAGIC_CMD="$lt_save_MAGIC_CMD"
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if test -n "$MAGIC_CMD"; then
6570 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6571 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6573 { echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6; }
6589 # Check whether --enable-libtool-lock was given.
6590 if test "${enable_libtool_lock+set}" = set; then
6591 enableval=$enable_libtool_lock;
6594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6597 # Check whether --with-pic was given.
6598 if test "${with_pic+set}" = set; then
6599 withval=$with_pic; pic_mode="$withval"
6604 test -z "$pic_mode" && pic_mode=default
6606 # Use C for the default configuration in the libtool script
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 # Source file extension for C test sources.
6620 # Object file extension for compiled C test sources.
6624 # Code to be used in simple compile tests
6625 lt_simple_compile_test_code="int some_variable = 0;\n"
6627 # Code to be used in simple link tests
6628 lt_simple_link_test_code='int main(){return(0);}\n'
6631 # If no C compiler was specified, use CC.
6634 # Allow CC to be a program name with arguments.
6638 # save warnings/boilerplate of simple test code
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6642 _lt_compiler_boilerplate=`cat conftest.err`
6645 ac_outfile=conftest.$ac_objext
6646 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6648 _lt_linker_boilerplate=`cat conftest.err`
6653 # Check for any special shared library compilation flags.
6656 if test "$GCC" = no; then
6659 lt_prog_cc_shlib='-belf'
6663 if test -n "$lt_prog_cc_shlib"; then
6664 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6665 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6666 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6668 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6669 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6670 lt_cv_prog_cc_can_build_shared=no
6676 # Check to make sure the static flag actually works.
6678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6679 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6680 if test "${lt_prog_compiler_static_works+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 lt_prog_compiler_static_works=no
6684 save_LDFLAGS="$LDFLAGS"
6685 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6688 # The linker can only warn and ignore the option if not recognized
6689 # So say no if there are warnings
6690 if test -s conftest.err; then
6691 # Append any errors to the config.log.
6692 cat conftest.err 1>&5
6693 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6694 $SED '/^$/d' conftest.err >conftest.er2
6695 if diff conftest.exp conftest.er2 >/dev/null; then
6696 lt_prog_compiler_static_works=yes
6699 lt_prog_compiler_static_works=yes
6703 LDFLAGS="$save_LDFLAGS"
6706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6709 if test x"$lt_prog_compiler_static_works" = xyes; then
6712 lt_prog_compiler_static=
6718 ## There is no encapsulation within the following macros, do not change
6719 ## the running order or otherwise move them around unless you know exactly
6720 ## what you are doing...
6722 lt_prog_compiler_no_builtin_flag=
6724 if test "$GCC" = yes; then
6725 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6728 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6729 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6730 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 lt_cv_prog_compiler_rtti_exceptions=no
6734 ac_outfile=conftest.$ac_objext
6735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6736 lt_compiler_flag="-fno-rtti -fno-exceptions"
6737 # Insert the option either (1) after the last *FLAGS variable, or
6738 # (2) before a word containing "conftest.", or (3) at the end.
6739 # Note that $ac_compile itself does not contain backslashes and begins
6740 # with a dollar sign (not a hyphen), so the echo should work correctly.
6741 # The option is referenced via a variable to avoid confusing sed.
6742 lt_compile=`echo "$ac_compile" | $SED \
6743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6745 -e 's:$: $lt_compiler_flag:'`
6746 (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
6747 (eval "$lt_compile" 2>conftest.err)
6749 cat conftest.err >&5
6750 echo "configure:__oline__: \$? = $ac_status" >&5
6751 if (exit $ac_status) && test -s "$ac_outfile"; then
6752 # The compiler can only warn and ignore the option if not recognized
6753 # So say no if there are warnings other than the usual output.
6754 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6755 $SED '/^$/d' conftest.err >conftest.er2
6756 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6757 lt_cv_prog_compiler_rtti_exceptions=yes
6763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6764 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6766 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6774 lt_prog_compiler_wl=
6775 lt_prog_compiler_pic=
6776 lt_prog_compiler_static=
6778 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6779 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6781 if test "$GCC" = yes; then
6782 lt_prog_compiler_wl='-Wl,'
6783 lt_prog_compiler_static='-static'
6787 # All AIX code is PIC.
6788 if test "$host_cpu" = ia64; then
6789 # AIX 5 now supports IA64 processor
6790 lt_prog_compiler_static='-Bstatic'
6795 # FIXME: we need at least 68020 code to build shared libraries, but
6796 # adding the `-m68020' flag to GCC prevents building anything better,
6798 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6801 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6802 # PIC is the default for these OSes.
6805 mingw* | pw32* | os2*)
6806 # This hack is so that the source file can tell whether it is being
6807 # built for inclusion in a dll (and should export symbols for example).
6808 lt_prog_compiler_pic='-DDLL_EXPORT'
6811 darwin* | rhapsody*)
6812 # PIC is the default on this platform
6813 # Common symbols not allowed in MH_DYLIB files
6814 lt_prog_compiler_pic='-fno-common'
6818 # Just because we use GCC doesn't mean we suddenly get shared libraries
6819 # on systems that don't support them.
6820 lt_prog_compiler_can_build_shared=no
6825 if test -d /usr/nec; then
6826 lt_prog_compiler_pic=-Kconform_pic
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6838 lt_prog_compiler_pic='-fPIC'
6844 lt_prog_compiler_pic='-fPIC'
6848 # PORTME Check for flag to pass linker flags through the system compiler.
6851 lt_prog_compiler_wl='-Wl,'
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6856 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6860 # PIC is the default on this platform
6861 # Common symbols not allowed in MH_DYLIB files
6862 case $cc_basename in
6864 lt_prog_compiler_pic='-qnocommon'
6865 lt_prog_compiler_wl='-Wl,'
6870 mingw* | pw32* | os2*)
6871 # This hack is so that the source file can tell whether it is being
6872 # built for inclusion in a dll (and should export symbols for example).
6873 lt_prog_compiler_pic='-DDLL_EXPORT'
6876 hpux9* | hpux10* | hpux11*)
6877 lt_prog_compiler_wl='-Wl,'
6878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6885 lt_prog_compiler_pic='+Z'
6888 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6889 lt_prog_compiler_static='${wl}-a ${wl}archive'
6892 irix5* | irix6* | nonstopux*)
6893 lt_prog_compiler_wl='-Wl,'
6894 # PIC (with -KPIC) is the default.
6895 lt_prog_compiler_static='-non_shared'
6899 lt_prog_compiler_pic='-KPIC'
6900 lt_prog_compiler_static='-Bstatic'
6904 case $cc_basename in
6906 lt_prog_compiler_wl='-Wl,'
6907 lt_prog_compiler_pic='-KPIC'
6908 lt_prog_compiler_static='-static'
6910 pgcc* | pgf77* | pgf90* | pgf95*)
6911 # Portland Group compilers (*not* the Pentium gcc compiler,
6912 # which looks to be a dead project)
6913 lt_prog_compiler_wl='-Wl,'
6914 lt_prog_compiler_pic='-fpic'
6915 lt_prog_compiler_static='-Bstatic'
6918 lt_prog_compiler_wl='-Wl,'
6919 # All Alpha code is PIC.
6920 lt_prog_compiler_static='-non_shared'
6925 osf3* | osf4* | osf5*)
6926 lt_prog_compiler_wl='-Wl,'
6927 # All OSF/1 code is PIC.
6928 lt_prog_compiler_static='-non_shared'
6932 lt_prog_compiler_pic='-Kpic'
6933 lt_prog_compiler_static='-dn'
6937 lt_prog_compiler_pic='-KPIC'
6938 lt_prog_compiler_static='-Bstatic'
6939 case $cc_basename in
6941 lt_prog_compiler_wl='-Qoption ld ';;
6943 lt_prog_compiler_wl='-Wl,';;
6948 lt_prog_compiler_wl='-Qoption ld '
6949 lt_prog_compiler_pic='-PIC'
6950 lt_prog_compiler_static='-Bstatic'
6953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_pic='-KPIC'
6956 lt_prog_compiler_static='-Bstatic'
6960 if test -d /usr/nec ;then
6961 lt_prog_compiler_pic='-Kconform_pic'
6962 lt_prog_compiler_static='-Bstatic'
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6977 lt_prog_compiler_can_build_shared=no
6982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6983 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6986 # Check to make sure the PIC flag actually works.
6988 if test -n "$lt_prog_compiler_pic"; then
6990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6992 if test "${lt_prog_compiler_pic_works+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 lt_prog_compiler_pic_works=no
6996 ac_outfile=conftest.$ac_objext
6997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6999 # Insert the option either (1) after the last *FLAGS variable, or
7000 # (2) before a word containing "conftest.", or (3) at the end.
7001 # Note that $ac_compile itself does not contain backslashes and begins
7002 # with a dollar sign (not a hyphen), so the echo should work correctly.
7003 # The option is referenced via a variable to avoid confusing sed.
7004 lt_compile=`echo "$ac_compile" | $SED \
7005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7007 -e 's:$: $lt_compiler_flag:'`
7008 (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
7009 (eval "$lt_compile" 2>conftest.err)
7011 cat conftest.err >&5
7012 echo "configure:__oline__: \$? = $ac_status" >&5
7013 if (exit $ac_status) && test -s "$ac_outfile"; then
7014 # The compiler can only warn and ignore the option if not recognized
7015 # So say no if there are warnings other than the usual output.
7016 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7017 $SED '/^$/d' conftest.err >conftest.er2
7018 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7019 lt_prog_compiler_pic_works=yes
7025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7026 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7028 if test x"$lt_prog_compiler_pic_works" = xyes; then
7029 case $lt_prog_compiler_pic in
7031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7034 lt_prog_compiler_pic=
7035 lt_prog_compiler_can_build_shared=no
7040 # For platforms which do not support PIC, -DPIC is meaningless:
7042 lt_prog_compiler_pic=
7045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7051 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 lt_cv_prog_compiler_c_o=no
7055 $rm -r conftest 2>/dev/null
7059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7061 lt_compiler_flag="-o out/conftest2.$ac_objext"
7062 # Insert the option either (1) after the last *FLAGS variable, or
7063 # (2) before a word containing "conftest.", or (3) at the end.
7064 # Note that $ac_compile itself does not contain backslashes and begins
7065 # with a dollar sign (not a hyphen), so the echo should work correctly.
7066 lt_compile=`echo "$ac_compile" | $SED \
7067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7069 -e 's:$: $lt_compiler_flag:'`
7070 (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
7071 (eval "$lt_compile" 2>out/conftest.err)
7073 cat out/conftest.err >&5
7074 echo "configure:__oline__: \$? = $ac_status" >&5
7075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7077 # The compiler can only warn and ignore the option if not recognized
7078 # So say no if there are warnings
7079 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7080 $SED '/^$/d' out/conftest.err >out/conftest.er2
7081 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7082 lt_cv_prog_compiler_c_o=yes
7087 # SGI C++ compiler will create directory out/ii_files/ for
7088 # template instantiation
7089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7090 $rm out/* && rmdir out
7096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7100 hard_links="nottested"
7101 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7102 # do not overwrite the value of need_locks provided by the user
7103 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7109 ln conftest.a conftest.b 2>&5 || hard_links=no
7110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7111 { echo "$as_me:$LINENO: result: $hard_links" >&5
7112 echo "${ECHO_T}$hard_links" >&6; }
7113 if test "$hard_links" = no; then
7114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7126 allow_undefined_flag=
7127 enable_shared_with_static_runtimes=no
7129 archive_expsym_cmds=
7130 old_archive_From_new_cmds=
7131 old_archive_from_expsyms_cmds=
7132 export_dynamic_flag_spec=
7133 whole_archive_flag_spec=
7134 thread_safe_flag_spec=
7135 hardcode_libdir_flag_spec=
7136 hardcode_libdir_flag_spec_ld=
7137 hardcode_libdir_separator=
7140 hardcode_shlibpath_var=unsupported
7141 link_all_deplibs=unknown
7142 hardcode_automatic=no
7145 always_export_symbols=no
7146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7147 # include_expsyms should be a list of space-separated symbols to be *always*
7148 # included in the symbol list
7150 # exclude_expsyms can be an extended regexp of symbols to exclude
7151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7153 # as well as any symbol that contains `d'.
7154 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7156 # platforms (ab)use it in PIC code, but their linkers get confused if
7157 # the symbol is explicitly referenced. Since portable code cannot
7158 # rely on this symbol name, it's probably fine to never include it in
7159 # preloaded symbol tables.
7160 extract_expsyms_cmds=
7161 # Just being paranoid about ensuring that cc_basename is set.
7162 for cc_temp in $compiler""; do
7164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7170 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7173 cygwin* | mingw* | pw32*)
7174 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7175 # When not using gcc, we currently assume that we are using
7176 # Microsoft Visual C++.
7177 if test "$GCC" != yes; then
7187 if test "$with_gnu_ld" = yes; then
7188 # If archive_cmds runs LD, not CC, wlarc should be empty
7191 # Set some defaults for GNU ld with shared library support. These
7192 # are reset later if shared libraries are not supported. Putting them
7193 # here allows them to be overridden if necessary.
7194 runpath_var=LD_RUN_PATH
7195 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7196 export_dynamic_flag_spec='${wl}--export-dynamic'
7197 # ancient GNU ld didn't support --whole-archive et. al.
7198 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7199 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7201 whole_archive_flag_spec=
7203 supports_anon_versioning=no
7204 case `$LD -v 2>/dev/null` in
7205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7208 *\ 2.11.*) ;; # other 2.11 versions
7209 *) supports_anon_versioning=yes ;;
7212 # See if GNU ld supports shared libraries.
7214 aix3* | aix4* | aix5*)
7215 # On AIX/PPC, the GNU linker is very broken
7216 if test "$host_cpu" != ia64; then
7220 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7221 *** to be unable to reliably create shared libraries on AIX.
7222 *** Therefore, libtool is disabling shared libraries support. If you
7223 *** really care for shared libraries, you may want to modify your PATH
7224 *** so that a non-GNU linker is found, and then restart.
7231 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)'
7232 hardcode_libdir_flag_spec='-L$libdir'
7233 hardcode_minus_L=yes
7235 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7236 # that the semantics of dynamic libraries on AmigaOS, at least up
7237 # to version 4, is to share data among multiple programs linked
7238 # with the same dynamic library. Since this doesn't match the
7239 # behavior of shared libraries on other platforms, we can't use
7245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246 allow_undefined_flag=unsupported
7247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7248 # support --undefined. This deserves some investigation. FIXME
7249 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255 cygwin* | mingw* | pw32*)
7256 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7257 # as there is no search path for DLLs.
7258 hardcode_libdir_flag_spec='-L$libdir'
7259 allow_undefined_flag=unsupported
7260 always_export_symbols=no
7261 enable_shared_with_static_runtimes=yes
7262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7264 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7266 # If the export-symbols file already is a .def file (1st line
7267 # is EXPORTS), use it as is; otherwise, prepend...
7268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7269 cp $export_symbols $output_objdir/$soname.def;
7271 echo EXPORTS > $output_objdir/$soname.def;
7272 cat $export_symbols >> $output_objdir/$soname.def;
7274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7283 case $cc_basename,$host_cpu in
7284 pgcc*) # Portland Group C compiler
7285 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7286 tmp_addflag=' $pic_flag'
7288 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7289 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7290 tmp_addflag=' $pic_flag -Mnomain' ;;
7291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7292 tmp_addflag=' -i_dynamic' ;;
7293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7294 tmp_addflag=' -i_dynamic -nofor_main' ;;
7295 ifc* | ifort*) # Intel Fortran compiler
7296 tmp_addflag=' -nofor_main' ;;
7298 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7300 if test $supports_anon_versioning = yes; then
7301 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7303 $echo "local: *; };" >> $output_objdir/$libname.ver~
7304 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7322 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7327 *** create shared libraries on Solaris systems. Therefore, libtool
7328 *** is disabling shared libraries support. We urge you to upgrade GNU
7329 *** binutils to release 2.9.1 or newer. Another option is to modify
7330 *** your PATH or compiler configuration so that the native linker is
7331 *** used, and then restart.
7334 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var=no
7350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7359 if test "$ld_shlibs" = no; then
7361 hardcode_libdir_flag_spec=
7362 export_dynamic_flag_spec=
7363 whole_archive_flag_spec=
7366 # PORTME fill in a description of your system's linker (not GNU ld)
7369 allow_undefined_flag=unsupported
7370 always_export_symbols=yes
7371 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'
7372 # Note: this linker hardcodes the directories in LIBPATH if there
7373 # are no directories specified by -L.
7374 hardcode_minus_L=yes
7375 if test "$GCC" = yes && test -z "$link_static_flag"; then
7376 # Neither direct hardcoding nor static linking is supported with a
7378 hardcode_direct=unsupported
7383 if test "$host_cpu" = ia64; then
7384 # On IA64, the linker does run time linking by default, so we don't
7385 # have to do anything special.
7386 aix_use_runtimelinking=no
7387 exp_sym_flag='-Bexport'
7390 # If we're using GNU nm, then we don't want the "-C" option.
7391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7392 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7393 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7395 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'
7397 aix_use_runtimelinking=no
7399 # Test if we are trying to use run time linking or normal
7400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7401 # need to do runtime linking.
7402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7403 for ld_flag in $LDFLAGS; do
7404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7405 aix_use_runtimelinking=yes
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7423 hardcode_libdir_separator=':'
7424 link_all_deplibs=yes
7426 if test "$GCC" = yes; then
7427 case $host_os in aix4.[012]|aix4.[012].*)
7428 # We only want to do this on AIX 4.2 and lower, the check
7429 # below for broken collect2 doesn't work under 4.3+
7430 collect2name=`${CC} -print-prog-name=collect2`
7431 if test -f "$collect2name" && \
7432 strings "$collect2name" | grep resolve_lib_name >/dev/null
7434 # We have reworked collect2
7437 # We have old collect2
7438 hardcode_direct=unsupported
7439 # It fails to find uninstalled libraries when the uninstalled
7440 # path is not listed in the libpath. Setting hardcode_minus_L
7441 # to unsupported forces relinking
7442 hardcode_minus_L=yes
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_libdir_separator=
7447 shared_flag='-shared'
7448 if test "$aix_use_runtimelinking" = yes; then
7449 shared_flag="$shared_flag "'${wl}-G'
7453 if test "$host_cpu" = ia64; then
7454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7455 # chokes on -Wl,-G. The following line is correct:
7458 if test "$aix_use_runtimelinking" = yes; then
7459 shared_flag='${wl}-G'
7461 shared_flag='${wl}-bM:SRE'
7466 # It seems that -bexpall does not export symbols beginning with
7467 # underscore (_), so it is better to generate a list of symbols to export.
7468 always_export_symbols=yes
7469 if test "$aix_use_runtimelinking" = yes; then
7470 # Warning - without using the other runtime loading flags (-brtl),
7471 # -berok will link without error, but may produce a broken library.
7472 allow_undefined_flag='-berok'
7473 # Determine the default libpath from the value encoded in an empty executable.
7475 cat > conftest.$ac_ext <<EOF
7476 #line __oline__ "configure"
7477 #include "confdefs.h"
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7489 # Check for a 64-bit object if we didn't find anything.
7490 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&6
7498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7501 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7503 if test "$host_cpu" = ia64; then
7504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7505 allow_undefined_flag="-z nodefs"
7506 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7508 # Determine the default libpath from the value encoded in an empty executable.
7510 cat > conftest.$ac_ext <<EOF
7511 #line __oline__ "configure"
7512 #include "confdefs.h"
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517 (eval $ac_link) 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7524 # Check for a 64-bit object if we didn't find anything.
7525 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&6
7533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7536 # Warning - without using the other run time loading flags,
7537 # -berok will link without error, but may produce a broken library.
7538 no_undefined_flag=' ${wl}-bernotok'
7539 allow_undefined_flag=' ${wl}-berok'
7540 # -bexpall does not export symbols beginning with underscore (_)
7541 always_export_symbols=yes
7542 # Exported symbols can be pulled into shared objects from archives
7543 whole_archive_flag_spec=' '
7544 archive_cmds_need_lc=yes
7545 # This is similar to how AIX traditionally builds its shared libraries.
7546 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7552 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)'
7553 hardcode_libdir_flag_spec='-L$libdir'
7554 hardcode_minus_L=yes
7555 # see comment about different semantics on the GNU ld section
7560 export_dynamic_flag_spec=-rdynamic
7563 cygwin* | mingw* | pw32*)
7564 # When not using gcc, we currently assume that we are using
7565 # Microsoft Visual C++.
7566 # hardcode_libdir_flag_spec is actually meaningless, as there is
7567 # no search path for DLLs.
7568 hardcode_libdir_flag_spec=' '
7569 allow_undefined_flag=unsupported
7570 # Tell ltmain to make .lib files, not .a files.
7572 # Tell ltmain to make .dll files, not .so files.
7574 # FIXME: Setting linknames here is a bad hack.
7575 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7576 # The linker will automatically build a .lib file if we build a DLL.
7577 old_archive_From_new_cmds='true'
7578 # FIXME: Should let the user specify the lib program.
7579 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7580 fix_srcfile_path='`cygpath -w "$srcfile"`'
7581 enable_shared_with_static_runtimes=yes
7584 darwin* | rhapsody*)
7586 rhapsody* | darwin1.[012])
7587 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7590 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7591 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7593 case ${MACOSX_DEPLOYMENT_TARGET} in
7595 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7598 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7604 archive_cmds_need_lc=no
7606 hardcode_automatic=yes
7607 hardcode_shlibpath_var=unsupported
7608 whole_archive_flag_spec=''
7609 link_all_deplibs=yes
7610 if test "$GCC" = yes ; then
7611 output_verbose_link_cmd='echo'
7612 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7613 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7615 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7616 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7618 case $cc_basename in
7620 output_verbose_link_cmd='echo'
7621 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7624 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7625 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_libdir_flag_spec='-L$libdir'
7637 hardcode_shlibpath_var=no
7644 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7645 # support. Future versions do this automatically, but an explicit c++rt0.o
7646 # does not break anything, and helps significantly (at the cost of a little
7649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7650 hardcode_libdir_flag_spec='-R$libdir'
7652 hardcode_shlibpath_var=no
7655 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7659 hardcode_minus_L=yes
7660 hardcode_shlibpath_var=no
7663 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7664 freebsd* | kfreebsd*-gnu | dragonfly*)
7665 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7666 hardcode_libdir_flag_spec='-R$libdir'
7668 hardcode_shlibpath_var=no
7672 if test "$GCC" = yes; then
7673 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7675 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'
7677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7678 hardcode_libdir_separator=:
7681 # hardcode_minus_L: Not really in the search PATH,
7682 # but as the default location of the library.
7683 hardcode_minus_L=yes
7684 export_dynamic_flag_spec='${wl}-E'
7688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7700 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7707 if test "$with_gnu_ld" = no; then
7710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7711 hardcode_libdir_flag_spec_ld='+b $libdir'
7712 hardcode_libdir_separator=:
7714 hardcode_shlibpath_var=no
7717 hardcode_libdir_flag_spec='-L$libdir'
7719 hardcode_shlibpath_var=no
7721 # hardcode_minus_L: Not really in the search PATH,
7722 # but as the default location of the library.
7723 hardcode_minus_L=yes
7726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7727 hardcode_libdir_separator=:
7729 export_dynamic_flag_spec='${wl}-E'
7731 # hardcode_minus_L: Not really in the search PATH,
7732 # but as the default location of the library.
7733 hardcode_minus_L=yes
7739 irix5* | irix6* | nonstopux*)
7740 if test "$GCC" = yes; then
7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7744 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7747 hardcode_libdir_separator=:
7748 link_all_deplibs=yes
7752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7757 hardcode_libdir_flag_spec='-R$libdir'
7759 hardcode_shlibpath_var=no
7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7766 hardcode_libdir_separator=:
7767 hardcode_shlibpath_var=no
7772 hardcode_shlibpath_var=no
7773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7775 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7777 export_dynamic_flag_spec='${wl}-E'
7780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7782 hardcode_libdir_flag_spec='-R$libdir'
7785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7793 hardcode_libdir_flag_spec='-L$libdir'
7794 hardcode_minus_L=yes
7795 allow_undefined_flag=unsupported
7796 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'
7797 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7801 if test "$GCC" = yes; then
7802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7805 allow_undefined_flag=' -expect_unresolved \*'
7806 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7809 hardcode_libdir_separator=:
7812 osf4* | osf5*) # as osf3* with the addition of -msym flag
7813 if test "$GCC" = yes; then
7814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7815 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818 allow_undefined_flag=' -expect_unresolved \*'
7819 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7820 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7821 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7823 # Both c and cxx compiler support -rpath directly
7824 hardcode_libdir_flag_spec='-rpath $libdir'
7826 hardcode_libdir_separator=:
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_shlibpath_var=no
7832 export_dynamic_flag_spec='${wl}-Bexport'
7833 runpath_var=LD_RUN_PATH
7834 hardcode_runpath_var=yes
7838 no_undefined_flag=' -z text'
7839 if test "$GCC" = yes; then
7841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7850 hardcode_libdir_flag_spec='-R$libdir'
7851 hardcode_shlibpath_var=no
7853 solaris2.[0-5] | solaris2.[0-5].*) ;;
7855 # The compiler driver will combine linker options so we
7856 # cannot just pass the convience library names through
7857 # without $wl, iff we do not link with $LD.
7858 # Luckily, gcc supports the same syntax we need for Sun Studio.
7859 # Supported since Solaris 2.6 (maybe 2.5.1?)
7862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7864 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7867 link_all_deplibs=yes
7871 if test "x$host_vendor" = xsequent; then
7872 # Use $CC to link under sequent, because it throws in some extra .o
7873 # files that make .init and .fini sections work.
7874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7878 hardcode_libdir_flag_spec='-L$libdir'
7880 hardcode_minus_L=yes
7881 hardcode_shlibpath_var=no
7885 case $host_vendor in
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_direct=yes # is this really true???
7891 ## LD is ld it makes a PLAMLIB
7892 ## CC just makes a GrossModule.
7893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7894 reload_cmds='$CC -r -o $output$reload_objs'
7898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7902 runpath_var='LD_RUN_PATH'
7903 hardcode_shlibpath_var=no
7907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7908 hardcode_shlibpath_var=no
7909 export_dynamic_flag_spec='-Bexport'
7913 if test -d /usr/nec; then
7914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7915 hardcode_shlibpath_var=no
7916 runpath_var=LD_RUN_PATH
7917 hardcode_runpath_var=yes
7923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7926 hardcode_shlibpath_var=no
7927 hardcode_runpath_var=yes
7928 runpath_var=LD_RUN_PATH
7931 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7932 no_undefined_flag='${wl}-z ${wl}text'
7933 if test "$GCC" = yes; then
7934 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7936 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7938 runpath_var='LD_RUN_PATH'
7939 hardcode_shlibpath_var=no
7943 no_undefined_flag=' -z text'
7944 # $CC -shared without GNU ld will not create a library from C++
7945 # object files and a static libstdc++, better avoid it by now
7946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7949 hardcode_libdir_flag_spec=
7950 hardcode_shlibpath_var=no
7951 runpath_var='LD_RUN_PATH'
7955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7956 hardcode_libdir_flag_spec='-L$libdir'
7957 hardcode_shlibpath_var=no
7966 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7967 echo "${ECHO_T}$ld_shlibs" >&6; }
7968 test "$ld_shlibs" = no && can_build_shared=no
7970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7971 if test "$GCC" = yes; then
7972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7976 # Do we need to explicitly link libc?
7978 case "x$archive_cmds_need_lc" in
7980 # Assume -lc should be added
7981 archive_cmds_need_lc=yes
7983 if test "$enable_shared" = yes && test "$GCC" = yes; then
7984 case $archive_cmds in
7986 # FIXME: we may have to deal with multi-command sequences.
7989 # Test whether the compiler implicitly links with -lc since on some
7990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7991 # to ld, don't add -lc before -lgcc.
7992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } 2>conftest.err; then
8004 libobjs=conftest.$ac_objext
8006 wl=$lt_prog_compiler_wl
8012 lt_save_allow_undefined_flag=$allow_undefined_flag
8013 allow_undefined_flag=
8014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8015 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }
8020 archive_cmds_need_lc=no
8022 archive_cmds_need_lc=yes
8024 allow_undefined_flag=$lt_save_allow_undefined_flag
8026 cat conftest.err 1>&5
8029 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8030 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8037 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8040 libname_spec='lib$name'
8048 shlibpath_overrides_runpath=unknown
8050 dynamic_linker="$host_os ld.so"
8051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8052 if test "$GCC" = yes; then
8053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8055 # if the path contains ";" then we assume it to be the separator
8056 # otherwise default to the standard path separator (i.e. ":") - it is
8057 # assumed that no part of a normal pathname contains ";" but that should
8058 # okay in the real world where ";" in dirpaths is itself problematic.
8059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8066 need_lib_prefix=unknown
8067 hardcode_into_libs=no
8069 # when you set need_version to no, make sure it does not cause -set_version
8070 # flags to be left without arguments
8071 need_version=unknown
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8077 shlibpath_var=LIBPATH
8079 # AIX 3 has no versioning support, so we append a major version to the name.
8080 soname_spec='${libname}${release}${shared_ext}$major'
8087 hardcode_into_libs=yes
8088 if test "$host_cpu" = ia64; then
8089 # AIX 5 supports IA64
8090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8091 shlibpath_var=LD_LIBRARY_PATH
8093 # With GCC up to 2.95.x, collect2 would create an import file
8094 # for dependence libraries. The import file would start with
8095 # the line `#! .'. This would cause the generated library to
8096 # depend on `.', always an invalid library. This was fixed in
8097 # development snapshots of GCC prior to 3.0.
8099 aix4 | aix4.[01] | aix4.[01].*)
8100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8110 # soname into executable. Probably we can add versioning support to
8111 # collect2, so additional links can be useful in future.
8112 if test "$aix_use_runtimelinking" = yes; then
8113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8114 # instead of lib<name>.a to let people know that these are not
8115 # typical AIX shared libraries.
8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 # We preserve .a as extension for shared libraries through AIX4.2
8119 # and later when we are not doing run time linking.
8120 library_names_spec='${libname}${release}.a $libname.a'
8121 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LIBPATH
8128 library_names_spec='$libname.ixlibrary $libname.a'
8129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8130 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8134 library_names_spec='${libname}${shared_ext}'
8135 dynamic_linker="$host_os ld.so"
8136 shlibpath_var=LIBRARY_PATH
8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8145 shlibpath_var=LD_LIBRARY_PATH
8146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8148 # the default ld.so.conf also contains /usr/contrib/lib and
8149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8150 # libtool to hard-code these into programs
8153 cygwin* | mingw* | pw32*)
8154 version_type=windows
8159 case $GCC,$host_os in
8160 yes,cygwin* | yes,mingw* | yes,pw32*)
8161 library_names_spec='$libname.dll.a'
8162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8163 postinstall_cmds='base_file=`basename \${file}`~
8164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8165 dldir=$destdir/`dirname \$dlpath`~
8166 test -d \$dldir || mkdir -p \$dldir~
8167 $install_prog $dir/$dlname \$dldir/$dlname~
8168 chmod a+x \$dldir/$dlname'
8169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8170 dlpath=$dir/\$dldll~
8172 shlibpath_overrides_runpath=yes
8176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8181 # MinGW DLLs use traditional 'lib' prefix
8182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8185 # It is most probably a Windows format PATH printed by
8186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8187 # path with ; separators, and with drive letters. We can handle the
8188 # drive letters (cygwin fileutils understands them), so leave them,
8189 # especially as we might pass files found there to a mingw objdump,
8190 # which wouldn't understand a cygwinified path. Ahh.
8191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8197 # pw32 DLLs use 'pw' prefix rather than 'lib'
8198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8207 dynamic_linker='Win32 ld.exe'
8208 # FIXME: first we should search . and the directory the executable is in
8212 darwin* | rhapsody*)
8213 dynamic_linker="$host_os dyld"
8217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8218 soname_spec='${libname}${release}${major}$shared_ext'
8219 shlibpath_overrides_runpath=yes
8220 shlibpath_var=DYLD_LIBRARY_PATH
8221 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8223 if test "$GCC" = yes; then
8224 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 shlibpath_var=LD_LIBRARY_PATH
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=no
8252 hardcode_into_libs=yes
8253 dynamic_linker='GNU ld.so'
8256 freebsd* | dragonfly*)
8257 # DragonFly does not have aout. When/if they implement a new
8258 # versioning mechanism, adjust this.
8259 if test -x /usr/bin/objformat; then
8260 objformat=`/usr/bin/objformat`
8263 freebsd[123]*) objformat=aout ;;
8267 version_type=freebsd-$objformat
8268 case $version_type in
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8279 shlibpath_var=LD_LIBRARY_PATH
8282 shlibpath_overrides_runpath=yes
8284 freebsd3.[01]* | freebsdelf3.[01]*)
8285 shlibpath_overrides_runpath=yes
8286 hardcode_into_libs=yes
8289 shlibpath_overrides_runpath=no
8290 hardcode_into_libs=yes
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 hardcode_into_libs=yes
8305 hpux9* | hpux10* | hpux11*)
8306 # Give a soname corresponding to the major version so that dld.sl refuses to
8307 # link against other versions.
8314 hardcode_into_libs=yes
8315 dynamic_linker="$host_os dld.so"
8316 shlibpath_var=LD_LIBRARY_PATH
8317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8319 soname_spec='${libname}${release}${shared_ext}$major'
8320 if test "X$HPUX_IA64_MODE" = X32; then
8321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8329 hardcode_into_libs=yes
8330 dynamic_linker="$host_os dld.sl"
8331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334 soname_spec='${libname}${release}${shared_ext}$major'
8335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8340 dynamic_linker="$host_os dld.sl"
8341 shlibpath_var=SHLIB_PATH
8342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344 soname_spec='${libname}${release}${shared_ext}$major'
8347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8348 postinstall_cmds='chmod 555 $lib'
8351 irix5* | irix6* | nonstopux*)
8353 nonstopux*) version_type=nonstopux ;;
8355 if test "$lt_cv_prog_gnu_ld" = yes; then
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8366 irix5* | nonstopux*)
8370 case $LD in # libtool.m4 will add one of these switches to LD
8371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8372 libsuff= shlibsuff= libmagic=32-bit;;
8373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8374 libsuff=32 shlibsuff=N32 libmagic=N32;;
8375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8377 *) libsuff= shlibsuff= libmagic=never-match;;
8381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8382 shlibpath_overrides_runpath=no
8383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8385 hardcode_into_libs=yes
8388 # No shared lib support for Linux oldld, aout, or coff.
8389 linux*oldld* | linux*aout* | linux*coff*)
8393 # This must be Linux ELF.
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8401 shlibpath_var=LD_LIBRARY_PATH
8402 shlibpath_overrides_runpath=no
8403 # This implies no fast_install, which is unacceptable.
8404 # Some rework will be needed to allow for fast_install
8405 # before this can be enabled.
8406 hardcode_into_libs=yes
8408 # find out which ABI we are using
8411 x86_64*|s390x*|powerpc64*)
8412 echo '#line __oline__ "configure"' > conftest.$ac_ext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; then
8418 case `/usr/bin/file conftest.$ac_objext` in
8421 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8429 # Append ld.so.conf contents to the search path
8430 if test -f /etc/ld.so.conf; then
8431 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8432 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8435 # We used to test for /lib/ld.so.1 and disable shared libraries on
8436 # powerpc, because MkLinux only supported shared libraries with the
8437 # GNU dynamic linker. Since this was broken with cross compilers,
8438 # most powerpc-linux boxes support dynamic linking these days and
8439 # people can always --disable-shared, the test was removed, and we
8440 # assume the GNU/Linux dynamic linker is in use.
8441 dynamic_linker='GNU/Linux ld.so'
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8449 soname_spec='${libname}${release}${shared_ext}$major'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 shlibpath_overrides_runpath=no
8452 hardcode_into_libs=yes
8453 dynamic_linker='GNU ld.so'
8460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8463 dynamic_linker='NetBSD (a.out) ld.so'
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 dynamic_linker='NetBSD ld.elf_so'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 shlibpath_overrides_runpath=yes
8471 hardcode_into_libs=yes
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 shlibpath_overrides_runpath=yes
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 shlibpath_overrides_runpath=yes
8494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8496 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8497 *) need_version=no ;;
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8501 shlibpath_var=LD_LIBRARY_PATH
8502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8504 openbsd2.[89] | openbsd2.[89].*)
8505 shlibpath_overrides_runpath=no
8508 shlibpath_overrides_runpath=yes
8512 shlibpath_overrides_runpath=yes
8517 libname_spec='$name'
8520 library_names_spec='$libname${shared_ext} $libname.a'
8521 dynamic_linker='OS/2 ld.exe'
8522 shlibpath_var=LIBPATH
8525 osf3* | osf4* | osf5*)
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 shlibpath_var=LD_LIBRARY_PATH
8532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8538 soname_spec='${libname}${release}${shared_ext}$major'
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 shlibpath_var=LD_LIBRARY_PATH
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8552 # ldd complains unless libraries are executable
8553 postinstall_cmds='chmod +x $lib'
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 shlibpath_overrides_runpath=yes
8562 if test "$with_gnu_ld" = yes; then
8568 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8573 case $host_vendor in
8575 shlibpath_overrides_runpath=no
8577 export_dynamic_flag_spec='${wl}-Blargedynsym'
8578 runpath_var=LD_RUN_PATH
8586 shlibpath_overrides_runpath=no
8587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8593 if test -d /usr/nec ;then
8595 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8596 soname_spec='$libname${shared_ext}.$major'
8597 shlibpath_var=LD_LIBRARY_PATH
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 soname_spec='${libname}${release}${shared_ext}$major'
8605 shlibpath_var=LD_LIBRARY_PATH
8612 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8613 echo "${ECHO_T}$dynamic_linker" >&6; }
8614 test "$dynamic_linker" = no && can_build_shared=no
8616 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8617 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8619 if test -n "$hardcode_libdir_flag_spec" || \
8620 test -n "$runpath_var" || \
8621 test "X$hardcode_automatic" = "Xyes" ; then
8623 # We can hardcode non-existant directories.
8624 if test "$hardcode_direct" != no &&
8625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8626 # have to relink, otherwise we might link with an installed library
8627 # when we should be linking with a yet-to-be-installed one
8628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8629 test "$hardcode_minus_L" != no; then
8630 # Linking always hardcodes the temporary library directory.
8631 hardcode_action=relink
8633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8634 hardcode_action=immediate
8637 # We cannot hardcode anything, or else we can only hardcode existing
8639 hardcode_action=unsupported
8641 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8642 echo "${ECHO_T}$hardcode_action" >&6; }
8644 if test "$hardcode_action" = relink; then
8645 # Fast installation is not supported
8646 enable_fast_install=no
8647 elif test "$shlibpath_overrides_runpath" = yes ||
8648 test "$enable_shared" = no; then
8649 # Fast installation is not necessary
8650 enable_fast_install=needless
8655 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8656 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8657 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8659 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8660 { echo "$as_me:$LINENO: result: yes" >&5
8661 echo "${ECHO_T}yes" >&6; }
8663 # FIXME - insert some real tests, host_os isn't really good enough
8666 if test -n "$STRIP" ; then
8667 striplib="$STRIP -x"
8668 { echo "$as_me:$LINENO: result: yes" >&5
8669 echo "${ECHO_T}yes" >&6; }
8671 { echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6; }
8676 { echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6; }
8682 if test "x$enable_dlopen" != xyes; then
8683 enable_dlopen=unknown
8684 enable_dlopen_self=unknown
8685 enable_dlopen_self_static=unknown
8692 lt_cv_dlopen="load_add_on"
8694 lt_cv_dlopen_self=yes
8698 lt_cv_dlopen="LoadLibrary"
8703 lt_cv_dlopen="dlopen"
8708 # if libdl is installed we need to link against it
8709 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_check_lib_save_LIBS=$LIBS
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (ac_try="$ac_link"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_link") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest$ac_exeext &&
8755 $as_test_x conftest$ac_exeext; then
8756 ac_cv_lib_dl_dlopen=yes
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_cv_lib_dl_dlopen=no
8764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8770 if test $ac_cv_lib_dl_dlopen = yes; then
8771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8776 lt_cv_dlopen_self=yes
8783 { echo "$as_me:$LINENO: checking for shl_load" >&5
8784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8785 if test "${ac_cv_func_shl_load+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8796 #define shl_load innocuous_shl_load
8798 /* System header to define __stub macros and hopefully few prototypes,
8799 which can conflict with char shl_load (); below.
8800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 <limits.h> exists even on freestanding compilers. */
8804 # include <limits.h>
8806 # include <assert.h>
8811 /* Override any GCC internal prototype to avoid an error.
8812 Use char because int might match the return type of a GCC
8813 builtin and then its argument prototype would still apply. */
8818 /* The GNU C library defines this for functions which it implements
8819 to always fail with ENOSYS. Some functions are actually named
8820 something starting with __ and the normal name is an alias. */
8821 #if defined __stub_shl_load || defined __stub___shl_load
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_link") 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } && {
8847 test -z "$ac_c_werror_flag" ||
8848 test ! -s conftest.err
8849 } && test -s conftest$ac_exeext &&
8850 $as_test_x conftest$ac_exeext; then
8851 ac_cv_func_shl_load=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_func_shl_load=no
8859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
8862 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8863 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8864 if test $ac_cv_func_shl_load = yes; then
8865 lt_cv_dlopen="shl_load"
8867 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8868 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8869 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 ac_check_lib_save_LIBS=$LIBS
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 /* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (ac_try="$ac_link"
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest$ac_exeext &&
8913 $as_test_x conftest$ac_exeext; then
8914 ac_cv_lib_dld_shl_load=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_lib_dld_shl_load=no
8922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8928 if test $ac_cv_lib_dld_shl_load = yes; then
8929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8931 { echo "$as_me:$LINENO: checking for dlopen" >&5
8932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_dlopen+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8944 #define dlopen innocuous_dlopen
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char dlopen (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8952 # include <limits.h>
8954 # include <assert.h>
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined __stub_dlopen || defined __stub___dlopen
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_link") 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest$ac_exeext &&
8998 $as_test_x conftest$ac_exeext; then
8999 ac_cv_func_dlopen=yes
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_cv_func_dlopen=no
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9010 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9011 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9012 if test $ac_cv_func_dlopen = yes; then
9013 lt_cv_dlopen="dlopen"
9015 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 ac_check_lib_save_LIBS=$LIBS
9022 cat >conftest.$ac_ext <<_ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext &&
9061 $as_test_x conftest$ac_exeext; then
9062 ac_cv_lib_dl_dlopen=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_cv_lib_dl_dlopen=no
9070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9075 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9076 if test $ac_cv_lib_dl_dlopen = yes; then
9077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9079 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9080 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9081 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 ac_check_lib_save_LIBS=$LIBS
9086 cat >conftest.$ac_ext <<_ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_link") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest$ac_exeext &&
9125 $as_test_x conftest$ac_exeext; then
9126 ac_cv_lib_svld_dlopen=yes
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_svld_dlopen=no
9134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9135 conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9138 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9139 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9140 if test $ac_cv_lib_svld_dlopen = yes; then
9141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9143 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9144 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9145 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 ac_check_lib_save_LIBS=$LIBS
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (ac_try="$ac_link"
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_link") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest$ac_exeext &&
9189 $as_test_x conftest$ac_exeext; then
9190 ac_cv_lib_dld_dld_link=yes
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_lib_dld_dld_link=no
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9200 LIBS=$ac_check_lib_save_LIBS
9202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9204 if test $ac_cv_lib_dld_dld_link = yes; then
9205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9226 if test "x$lt_cv_dlopen" != xno; then
9232 case $lt_cv_dlopen in
9234 save_CPPFLAGS="$CPPFLAGS"
9235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9237 save_LDFLAGS="$LDFLAGS"
9238 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9241 LIBS="$lt_cv_dlopen_libs $LIBS"
9243 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9245 if test "${lt_cv_dlopen_self+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 if test "$cross_compiling" = yes; then :
9249 lt_cv_dlopen_self=cross
9251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9252 lt_status=$lt_dlunknown
9253 cat > conftest.$ac_ext <<EOF
9254 #line __oline__ "configure"
9255 #include "confdefs.h"
9264 # define LT_DLGLOBAL RTLD_GLOBAL
9267 # define LT_DLGLOBAL DL_GLOBAL
9269 # define LT_DLGLOBAL 0
9273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9274 find out it does not work in some platform. */
9275 #ifndef LT_DLLAZY_OR_NOW
9277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9280 # define LT_DLLAZY_OR_NOW DL_LAZY
9283 # define LT_DLLAZY_OR_NOW RTLD_NOW
9286 # define LT_DLLAZY_OR_NOW DL_NOW
9288 # define LT_DLLAZY_OR_NOW 0
9296 extern "C" void exit (int);
9299 void fnord() { int i=42;}
9302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9303 int status = $lt_dlunknown;
9307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9309 /* dlclose (self); */
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9320 (./conftest; exit; ) >&5 2>/dev/null
9323 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9324 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9325 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9328 # compilation failed
9329 lt_cv_dlopen_self=no
9336 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9339 if test "x$lt_cv_dlopen_self" = xyes; then
9340 LDFLAGS="$LDFLAGS $link_static_flag"
9341 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9343 if test "${lt_cv_dlopen_self_static+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 if test "$cross_compiling" = yes; then :
9347 lt_cv_dlopen_self_static=cross
9349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9350 lt_status=$lt_dlunknown
9351 cat > conftest.$ac_ext <<EOF
9352 #line __oline__ "configure"
9353 #include "confdefs.h"
9362 # define LT_DLGLOBAL RTLD_GLOBAL
9365 # define LT_DLGLOBAL DL_GLOBAL
9367 # define LT_DLGLOBAL 0
9371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9372 find out it does not work in some platform. */
9373 #ifndef LT_DLLAZY_OR_NOW
9375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9378 # define LT_DLLAZY_OR_NOW DL_LAZY
9381 # define LT_DLLAZY_OR_NOW RTLD_NOW
9384 # define LT_DLLAZY_OR_NOW DL_NOW
9386 # define LT_DLLAZY_OR_NOW 0
9394 extern "C" void exit (int);
9397 void fnord() { int i=42;}
9400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9401 int status = $lt_dlunknown;
9405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9407 /* dlclose (self); */
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9418 (./conftest; exit; ) >&5 2>/dev/null
9421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9423 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9426 # compilation failed
9427 lt_cv_dlopen_self_static=no
9434 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9438 CPPFLAGS="$save_CPPFLAGS"
9439 LDFLAGS="$save_LDFLAGS"
9444 case $lt_cv_dlopen_self in
9445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9446 *) enable_dlopen_self=unknown ;;
9449 case $lt_cv_dlopen_self_static in
9450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9451 *) enable_dlopen_self_static=unknown ;;
9456 # Report which librarie types wil actually be built
9457 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9459 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9460 echo "${ECHO_T}$can_build_shared" >&6; }
9462 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9464 test "$can_build_shared" = "no" && enable_shared=no
9466 # On AIX, shared libraries and static libraries use the same namespace, and
9467 # are all built from PIC.
9470 test "$enable_shared" = yes && enable_static=no
9471 if test -n "$RANLIB"; then
9472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9473 postinstall_cmds='$RANLIB $lib'
9478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9479 test "$enable_shared" = yes && enable_static=no
9483 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9484 echo "${ECHO_T}$enable_shared" >&6; }
9486 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9487 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9488 # Make sure either enable_shared or enable_static is yes.
9489 test "$enable_shared" = yes || enable_static=yes
9490 { echo "$as_me:$LINENO: result: $enable_static" >&5
9491 echo "${ECHO_T}$enable_static" >&6; }
9493 # The else clause should only fire when bootstrapping the
9494 # libtool distribution, otherwise you forgot to ship ltmain.sh
9495 # with your package, and you will get complaints that there are
9496 # no rules to generate ltmain.sh.
9497 if test -f "$ltmain"; then
9498 # See if we are running on zsh, and set the options which allow our commands through
9499 # without removal of \ escapes.
9500 if test -n "${ZSH_VERSION+set}" ; then
9501 setopt NO_GLOB_SUBST
9503 # Now quote all the things that may contain metacharacters while being
9504 # careful not to overquote the AC_SUBSTed values. We take copies of the
9505 # variables and quote the copies for generation of the libtool script.
9506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9510 deplibs_check_method reload_flag reload_cmds need_locks \
9511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9512 lt_cv_sys_global_symbol_to_c_name_address \
9513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9514 old_postinstall_cmds old_postuninstall_cmds \
9518 lt_prog_compiler_wl \
9519 lt_prog_compiler_pic \
9520 lt_prog_compiler_static \
9521 lt_prog_compiler_no_builtin_flag \
9522 export_dynamic_flag_spec \
9523 thread_safe_flag_spec \
9524 whole_archive_flag_spec \
9525 enable_shared_with_static_runtimes \
9527 old_archive_from_new_cmds \
9532 compiler_lib_search_path \
9534 archive_expsym_cmds \
9536 postuninstall_cmds \
9537 old_archive_from_expsyms_cmds \
9538 allow_undefined_flag \
9540 export_symbols_cmds \
9541 hardcode_libdir_flag_spec \
9542 hardcode_libdir_flag_spec_ld \
9543 hardcode_libdir_separator \
9544 hardcode_automatic \
9546 module_expsym_cmds \
9547 lt_cv_prog_compiler_c_o \
9552 old_archive_cmds | \
9553 old_archive_from_new_cmds | \
9555 archive_expsym_cmds | \
9557 module_expsym_cmds | \
9558 old_archive_from_expsyms_cmds | \
9559 export_symbols_cmds | \
9560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9561 postinstall_cmds | postuninstall_cmds | \
9562 old_postinstall_cmds | old_postuninstall_cmds | \
9563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9564 # Double-quote double-evaled strings.
9565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9574 *'\$0 --fallback-echo"')
9575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9580 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9582 { echo "$as_me:$LINENO: result:
9583 creating $ofile" >&5
9585 creating $ofile" >&6; }
9587 cat <<__EOF__ >> "$cfgfile"
9590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9595 # Free Software Foundation, Inc.
9597 # This file is part of GNU Libtool:
9598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9600 # This program is free software; you can redistribute it and/or modify
9601 # it under the terms of the GNU General Public License as published by
9602 # the Free Software Foundation; either version 2 of the License, or
9603 # (at your option) any later version.
9605 # This program is distributed in the hope that it will be useful, but
9606 # WITHOUT ANY WARRANTY; without even the implied warranty of
9607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9608 # General Public License for more details.
9610 # You should have received a copy of the GNU General Public License
9611 # along with this program; if not, write to the Free Software
9612 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9614 # As a special exception to the GNU General Public License, if you
9615 # distribute this file as part of a program that contains a
9616 # configuration script generated by Autoconf, you may include it under
9617 # the same distribution terms that you use for the rest of that program.
9619 # A sed program that does not truncate output.
9622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9623 Xsed="$SED -e 1s/^X//"
9625 # The HP-UX ksh and POSIX shell print the target directory to stdout
9627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9629 # The names of the tagged configurations supported by this script.
9632 # ### BEGIN LIBTOOL CONFIG
9634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9636 # Shell to use when invoking shell scripts.
9639 # Whether or not to build shared libraries.
9640 build_libtool_libs=$enable_shared
9642 # Whether or not to build static libraries.
9643 build_old_libs=$enable_static
9645 # Whether or not to add -lc for building shared libraries.
9646 build_libtool_need_lc=$archive_cmds_need_lc
9648 # Whether or not to disallow shared libs when runtime libs are static
9649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9651 # Whether or not to optimize for fast installation.
9652 fast_install=$enable_fast_install
9655 host_alias=$host_alias
9660 build_alias=$build_alias
9664 # An echo program that does not interpret backslashes.
9669 AR_FLAGS=$lt_AR_FLAGS
9674 # A language-specific compiler.
9677 # Is the compiler the GNU C compiler?
9683 # The linker used to build libraries.
9686 # Whether we need hard or soft links.
9689 # A BSD-compatible nm program.
9692 # A symbol stripping program
9695 # Used to examine libraries when file_magic_cmd begins "file"
9696 MAGIC_CMD=$MAGIC_CMD
9698 # Used on cygwin: DLL creation program.
9701 # Used on cygwin: object dumper.
9704 # Used on cygwin: assembler.
9707 # The name of the directory that contains temporary libtool files.
9710 # How to create reloadable object files.
9711 reload_flag=$lt_reload_flag
9712 reload_cmds=$lt_reload_cmds
9714 # How to pass a linker flag through the compiler.
9715 wl=$lt_lt_prog_compiler_wl
9717 # Object file suffix (normally "o").
9720 # Old archive suffix (normally "a").
9723 # Shared library suffix (normally ".so").
9724 shrext_cmds='$shrext_cmds'
9726 # Executable file suffix (normally "").
9729 # Additional compiler flags for building library objects.
9730 pic_flag=$lt_lt_prog_compiler_pic
9733 # What is the maximum length of a command?
9734 max_cmd_len=$lt_cv_sys_max_cmd_len
9736 # Does compiler simultaneously support -c and -o options?
9737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9739 # Must we lock files when doing compilation?
9740 need_locks=$lt_need_locks
9742 # Do we need the lib prefix for modules?
9743 need_lib_prefix=$need_lib_prefix
9745 # Do we need a version for libraries?
9746 need_version=$need_version
9748 # Whether dlopen is supported.
9749 dlopen_support=$enable_dlopen
9751 # Whether dlopen of programs is supported.
9752 dlopen_self=$enable_dlopen_self
9754 # Whether dlopen of statically linked programs is supported.
9755 dlopen_self_static=$enable_dlopen_self_static
9757 # Compiler flag to prevent dynamic linking.
9758 link_static_flag=$lt_lt_prog_compiler_static
9760 # Compiler flag to turn off builtin functions.
9761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9763 # Compiler flag to allow reflexive dlopens.
9764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9766 # Compiler flag to generate shared objects directly from archives.
9767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9769 # Compiler flag to generate thread-safe objects.
9770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9772 # Library versioning type.
9773 version_type=$version_type
9775 # Format of library name prefix.
9776 libname_spec=$lt_libname_spec
9778 # List of archive names. First name is the real one, the rest are links.
9779 # The last name is the one that the linker finds with -lNAME.
9780 library_names_spec=$lt_library_names_spec
9782 # The coded name of the library, if different from the real name.
9783 soname_spec=$lt_soname_spec
9785 # Commands used to build and install an old-style archive.
9787 old_archive_cmds=$lt_old_archive_cmds
9788 old_postinstall_cmds=$lt_old_postinstall_cmds
9789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9791 # Create an old-style archive from a shared archive.
9792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9794 # Create a temporary old-style archive to link instead of a shared archive.
9795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9797 # Commands used to build and install a shared archive.
9798 archive_cmds=$lt_archive_cmds
9799 archive_expsym_cmds=$lt_archive_expsym_cmds
9800 postinstall_cmds=$lt_postinstall_cmds
9801 postuninstall_cmds=$lt_postuninstall_cmds
9803 # Commands used to build a loadable module (assumed same as above if empty)
9804 module_cmds=$lt_module_cmds
9805 module_expsym_cmds=$lt_module_expsym_cmds
9807 # Commands to strip libraries.
9808 old_striplib=$lt_old_striplib
9809 striplib=$lt_striplib
9811 # Dependencies to place before the objects being linked to create a
9813 predep_objects=$lt_predep_objects
9815 # Dependencies to place after the objects being linked to create a
9817 postdep_objects=$lt_postdep_objects
9819 # Dependencies to place before the objects being linked to create a
9823 # Dependencies to place after the objects being linked to create a
9825 postdeps=$lt_postdeps
9827 # The library search path used internally by the compiler when linking
9829 compiler_lib_search_path=$lt_compiler_lib_search_path
9831 # Method to check whether dependent libraries are shared objects.
9832 deplibs_check_method=$lt_deplibs_check_method
9834 # Command to use when deplibs_check_method == file_magic.
9835 file_magic_cmd=$lt_file_magic_cmd
9837 # Flag that allows shared libraries with undefined symbols to be built.
9838 allow_undefined_flag=$lt_allow_undefined_flag
9840 # Flag that forces no undefined symbols.
9841 no_undefined_flag=$lt_no_undefined_flag
9843 # Commands used to finish a libtool library installation in a directory.
9844 finish_cmds=$lt_finish_cmds
9846 # Same as above, but a single script fragment to be evaled but not shown.
9847 finish_eval=$lt_finish_eval
9849 # Take the output of nm and produce a listing of raw symbols and C names.
9850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9852 # Transform the output of nm in a proper C declaration
9853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9855 # Transform the output of nm in a C name address pair
9856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9858 # This is the shared library runtime path variable.
9859 runpath_var=$runpath_var
9861 # This is the shared library path variable.
9862 shlibpath_var=$shlibpath_var
9864 # Is shlibpath searched before the hard-coded library search path?
9865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9867 # How to hardcode a shared library path into an executable.
9868 hardcode_action=$hardcode_action
9870 # Whether we should hardcode library paths into libraries.
9871 hardcode_into_libs=$hardcode_into_libs
9873 # Flag to hardcode \$libdir into a binary during linking.
9874 # This must work even if \$libdir does not exist.
9875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9877 # If ld is used when linking, flag to hardcode \$libdir into
9878 # a binary during linking. This must work even if \$libdir does
9880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9882 # Whether we need a single -rpath flag with a separated argument.
9883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9887 hardcode_direct=$hardcode_direct
9889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9891 hardcode_minus_L=$hardcode_minus_L
9893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9894 # the resulting binary.
9895 hardcode_shlibpath_var=$hardcode_shlibpath_var
9897 # Set to yes if building a shared library automatically hardcodes DIR into the library
9898 # and all subsequent libraries and executables linked against it.
9899 hardcode_automatic=$hardcode_automatic
9901 # Variables whose values should be saved in libtool wrapper scripts and
9902 # restored at relink time.
9903 variables_saved_for_relink="$variables_saved_for_relink"
9905 # Whether libtool must link a program against all its dependency libraries.
9906 link_all_deplibs=$link_all_deplibs
9908 # Compile-time system search path for libraries
9909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9911 # Run-time system search path for libraries
9912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9914 # Fix the shell variable \$srcfile for the compiler.
9915 fix_srcfile_path="$fix_srcfile_path"
9917 # Set to yes if exported symbols are required.
9918 always_export_symbols=$always_export_symbols
9920 # The commands to list exported symbols.
9921 export_symbols_cmds=$lt_export_symbols_cmds
9923 # The commands to extract the exported symbol list from a shared archive.
9924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9926 # Symbols that should not be listed in the preloaded symbols.
9927 exclude_expsyms=$lt_exclude_expsyms
9929 # Symbols that must always be exported.
9930 include_expsyms=$lt_include_expsyms
9932 # ### END LIBTOOL CONFIG
9939 cat <<\EOF >> "$cfgfile"
9941 # AIX sometimes has problems with the GCC collect2 program. For some
9942 # reason, if we set the COLLECT_NAMES environment variable, the problems
9943 # vanish in a puff of smoke.
9944 if test "X${COLLECT_NAMES+set}" != Xset; then
9946 export COLLECT_NAMES
9952 # We use sed instead of cat because bash on DJGPP gets confused if
9953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9954 # text mode, it properly converts lines to CR/LF. This bash problem
9955 # is reportedly fixed, but why not run on old versions too?
9956 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9958 mv -f "$cfgfile" "$ofile" || \
9959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9963 # If there is no Makefile yet, we rely on a make rule to execute
9964 # `config.status --recheck' to rerun these tests and create the
9965 # libtool script then.
9966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9967 if test -f "$ltmain_in"; then
9968 test -f Makefile && make "$ltmain"
9974 ac_cpp='$CPP $CPPFLAGS'
9975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9982 # Check whether --with-tags was given.
9983 if test "${with_tags+set}" = set; then
9984 withval=$with_tags; tagnames="$withval"
9988 if test -f "$ltmain" && test -n "$tagnames"; then
9989 if test ! -f "${ofile}"; then
9990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9994 if test -z "$LTCC"; then
9995 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9996 if test -z "$LTCC"; then
9997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10005 # Extract list of available tagged configurations in $ofile.
10006 # Note that this assumes the entire list is on one line.
10007 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10010 for tagname in $tagnames; do
10012 # Check whether tagname contains only valid characters
10013 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10015 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10016 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10017 { (exit 1); exit 1; }; }
10021 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10023 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10024 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10025 { (exit 1); exit 1; }; }
10028 # Update the list of available tags.
10029 if test -n "$tagname"; then
10030 echo appending configuration tag \"$tagname\" to $ofile
10034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10035 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10036 (test "X$CXX" != "Xg++"))) ; then
10039 ac_cpp='$CXXCPP $CPPFLAGS'
10040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10047 archive_cmds_need_lc_CXX=no
10048 allow_undefined_flag_CXX=
10049 always_export_symbols_CXX=no
10050 archive_expsym_cmds_CXX=
10051 export_dynamic_flag_spec_CXX=
10052 hardcode_direct_CXX=no
10053 hardcode_libdir_flag_spec_CXX=
10054 hardcode_libdir_flag_spec_ld_CXX=
10055 hardcode_libdir_separator_CXX=
10056 hardcode_minus_L_CXX=no
10057 hardcode_automatic_CXX=no
10059 module_expsym_cmds_CXX=
10060 link_all_deplibs_CXX=unknown
10061 old_archive_cmds_CXX=$old_archive_cmds
10062 no_undefined_flag_CXX=
10063 whole_archive_flag_spec_CXX=
10064 enable_shared_with_static_runtimes_CXX=no
10066 # Dependencies to place before and after the object being linked:
10067 predep_objects_CXX=
10068 postdep_objects_CXX=
10071 compiler_lib_search_path_CXX=
10073 # Source file extension for C++ test sources.
10076 # Object file extension for compiled C++ test sources.
10080 # Code to be used in simple compile tests
10081 lt_simple_compile_test_code="int some_variable = 0;\n"
10083 # Code to be used in simple link tests
10084 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10088 # If no C compiler was specified, use CC.
10091 # Allow CC to be a program name with arguments.
10095 # save warnings/boilerplate of simple test code
10096 ac_outfile=conftest.$ac_objext
10097 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10099 _lt_compiler_boilerplate=`cat conftest.err`
10102 ac_outfile=conftest.$ac_objext
10103 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10105 _lt_linker_boilerplate=`cat conftest.err`
10109 # Allow CC to be a program name with arguments.
10114 lt_save_with_gnu_ld=$with_gnu_ld
10115 lt_save_path_LD=$lt_cv_path_LD
10116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10117 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10119 unset lt_cv_prog_gnu_ld
10121 if test -n "${lt_cv_path_LDCXX+set}"; then
10122 lt_cv_path_LD=$lt_cv_path_LDCXX
10124 unset lt_cv_path_LD
10126 test -z "${LDCXX+set}" || LD=$LDCXX
10130 for cc_temp in $compiler""; do
10132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10141 # We don't want -fno-exception wen compiling C++ code, so set the
10142 # no_builtin_flag separately
10143 if test "$GXX" = yes; then
10144 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10146 lt_prog_compiler_no_builtin_flag_CXX=
10149 if test "$GXX" = yes; then
10150 # Set up default GNU C++ configuration
10153 # Check whether --with-gnu-ld was given.
10154 if test "${with_gnu_ld+set}" = set; then
10155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10161 if test "$GCC" = yes; then
10162 # Check if gcc -print-prog-name=ld gives a path.
10163 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10164 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10167 # gcc leaves a trailing carriage return which upsets mingw
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10173 # Accept absolute paths.
10175 re_direlt='/[^/][^/]*/\.\./'
10176 # Canonicalize the pathname of ld
10177 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10179 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10181 test -z "$LD" && LD="$ac_prog"
10184 # If it fails, then pretend we aren't using GCC.
10188 # If it is relative, then search for the first ld in PATH.
10189 with_gnu_ld=unknown
10192 elif test "$with_gnu_ld" = yes; then
10193 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10196 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10199 if test "${lt_cv_path_LD+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 if test -z "$LD"; then
10203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10204 for ac_dir in $PATH; do
10206 test -z "$ac_dir" && ac_dir=.
10207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10208 lt_cv_path_LD="$ac_dir/$ac_prog"
10209 # Check to see if the program is GNU ld. I'd rather use --version,
10210 # but apparently some variants of GNU ld only accept -v.
10211 # Break only if it was the GNU/non-GNU ld that we prefer.
10212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10213 *GNU* | *'with BFD'*)
10214 test "$with_gnu_ld" != no && break
10217 test "$with_gnu_ld" != yes && break
10224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10228 LD="$lt_cv_path_LD"
10229 if test -n "$LD"; then
10230 { echo "$as_me:$LINENO: result: $LD" >&5
10231 echo "${ECHO_T}$LD" >&6; }
10233 { echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6; }
10236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10238 { (exit 1); exit 1; }; }
10239 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10241 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10245 case `$LD -v 2>&1 </dev/null` in
10246 *GNU* | *'with BFD'*)
10247 lt_cv_prog_gnu_ld=yes
10250 lt_cv_prog_gnu_ld=no
10254 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10255 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10256 with_gnu_ld=$lt_cv_prog_gnu_ld
10260 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10261 # archiving commands below assume that GNU ld is being used.
10262 if test "$with_gnu_ld" = yes; then
10263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10269 # If archive_cmds runs LD, not CC, wlarc should be empty
10270 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10271 # investigate it a little bit more. (MM)
10274 # ancient GNU ld didn't support --whole-archive et. al.
10275 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10276 grep 'no-whole-archive' > /dev/null; then
10277 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10279 whole_archive_flag_spec_CXX=
10285 # A generic and very simple default shared library creation
10286 # command for GNU C++ for the case where it uses the native
10287 # linker, instead of GNU ld. If possible, this setting should
10288 # overridden to take advantage of the native linker features on
10289 # the platform it is being used on.
10290 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10293 # Commands to make compiler produce verbose output that lists
10294 # what "hidden" libraries, object files and flags are used when
10295 # linking a shared library.
10296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10304 # PORTME: fill in a description of your system's C++ link characteristics
10305 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10306 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10310 # FIXME: insert proper C++ library support
10314 if test "$host_cpu" = ia64; then
10315 # On IA64, the linker does run time linking by default, so we don't
10316 # have to do anything special.
10317 aix_use_runtimelinking=no
10318 exp_sym_flag='-Bexport'
10321 aix_use_runtimelinking=no
10323 # Test if we are trying to use run time linking or normal
10324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10325 # need to do runtime linking.
10326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10327 for ld_flag in $LDFLAGS; do
10330 aix_use_runtimelinking=yes
10337 exp_sym_flag='-bexport'
10338 no_entry_flag='-bnoentry'
10341 # When large executables or shared objects are built, AIX ld can
10342 # have problems creating the table of contents. If linking a library
10343 # or program results in "error TOC overflow" add -mminimal-toc to
10344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10347 archive_cmds_CXX=''
10348 hardcode_direct_CXX=yes
10349 hardcode_libdir_separator_CXX=':'
10350 link_all_deplibs_CXX=yes
10352 if test "$GXX" = yes; then
10353 case $host_os in aix4.[012]|aix4.[012].*)
10354 # We only want to do this on AIX 4.2 and lower, the check
10355 # below for broken collect2 doesn't work under 4.3+
10356 collect2name=`${CC} -print-prog-name=collect2`
10357 if test -f "$collect2name" && \
10358 strings "$collect2name" | grep resolve_lib_name >/dev/null
10360 # We have reworked collect2
10361 hardcode_direct_CXX=yes
10363 # We have old collect2
10364 hardcode_direct_CXX=unsupported
10365 # It fails to find uninstalled libraries when the uninstalled
10366 # path is not listed in the libpath. Setting hardcode_minus_L
10367 # to unsupported forces relinking
10368 hardcode_minus_L_CXX=yes
10369 hardcode_libdir_flag_spec_CXX='-L$libdir'
10370 hardcode_libdir_separator_CXX=
10373 shared_flag='-shared'
10374 if test "$aix_use_runtimelinking" = yes; then
10375 shared_flag="$shared_flag "'${wl}-G'
10379 if test "$host_cpu" = ia64; then
10380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10381 # chokes on -Wl,-G. The following line is correct:
10384 if test "$aix_use_runtimelinking" = yes; then
10385 shared_flag='${wl}-G'
10387 shared_flag='${wl}-bM:SRE'
10392 # It seems that -bexpall does not export symbols beginning with
10393 # underscore (_), so it is better to generate a list of symbols to export.
10394 always_export_symbols_CXX=yes
10395 if test "$aix_use_runtimelinking" = yes; then
10396 # Warning - without using the other runtime loading flags (-brtl),
10397 # -berok will link without error, but may produce a broken library.
10398 allow_undefined_flag_CXX='-berok'
10399 # Determine the default libpath from the value encoded in an empty executable.
10401 cat > conftest.$ac_ext <<EOF
10402 #line __oline__ "configure"
10403 #include "confdefs.h"
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10415 # Check for a 64-bit object if we didn't find anything.
10416 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&6
10424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10430 if test "$host_cpu" = ia64; then
10431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10432 allow_undefined_flag_CXX="-z nodefs"
10433 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10435 # Determine the default libpath from the value encoded in an empty executable.
10437 cat > conftest.$ac_ext <<EOF
10438 #line __oline__ "configure"
10439 #include "confdefs.h"
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10451 # Check for a 64-bit object if we didn't find anything.
10452 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&6
10460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10462 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10463 # Warning - without using the other run time loading flags,
10464 # -berok will link without error, but may produce a broken library.
10465 no_undefined_flag_CXX=' ${wl}-bernotok'
10466 allow_undefined_flag_CXX=' ${wl}-berok'
10467 # -bexpall does not export symbols beginning with underscore (_)
10468 always_export_symbols_CXX=yes
10469 # Exported symbols can be pulled into shared objects from archives
10470 whole_archive_flag_spec_CXX=' '
10471 archive_cmds_need_lc_CXX=yes
10472 # This is similar to how AIX traditionally builds its shared libraries.
10473 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10478 case $cc_basename in
10480 # FIXME: insert proper C++ library support
10487 cygwin* | mingw* | pw32*)
10488 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10489 # as there is no search path for DLLs.
10490 hardcode_libdir_flag_spec_CXX='-L$libdir'
10491 allow_undefined_flag_CXX=unsupported
10492 always_export_symbols_CXX=no
10493 enable_shared_with_static_runtimes_CXX=yes
10495 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10497 # If the export-symbols file already is a .def file (1st line
10498 # is EXPORTS), use it as is; otherwise, prepend...
10499 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10500 cp $export_symbols $output_objdir/$soname.def;
10502 echo EXPORTS > $output_objdir/$soname.def;
10503 cat $export_symbols >> $output_objdir/$soname.def;
10505 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10510 darwin* | rhapsody*)
10512 rhapsody* | darwin1.[012])
10513 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10517 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10519 case ${MACOSX_DEPLOYMENT_TARGET} in
10521 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10524 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10530 archive_cmds_need_lc_CXX=no
10531 hardcode_direct_CXX=no
10532 hardcode_automatic_CXX=yes
10533 hardcode_shlibpath_var_CXX=unsupported
10534 whole_archive_flag_spec_CXX=''
10535 link_all_deplibs_CXX=yes
10537 if test "$GXX" = yes ; then
10538 lt_int_apple_cc_single_mod=no
10539 output_verbose_link_cmd='echo'
10540 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10541 lt_int_apple_cc_single_mod=yes
10543 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10544 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10546 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10548 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10550 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10551 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10553 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10555 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10557 case $cc_basename in
10559 output_verbose_link_cmd='echo'
10560 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10561 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10563 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10564 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10574 case $cc_basename in
10576 # FIXME: insert proper C++ library support
10580 # Green Hills C++ Compiler
10581 # FIXME: insert proper C++ library support
10585 # FIXME: insert proper C++ library support
10591 # C++ shared libraries reported to be fairly broken before switch to ELF
10595 archive_cmds_need_lc_CXX=no
10597 freebsd* | kfreebsd*-gnu | dragonfly*)
10598 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_separator_CXX=:
10607 export_dynamic_flag_spec_CXX='${wl}-E'
10608 hardcode_direct_CXX=yes
10609 hardcode_minus_L_CXX=yes # Not in the search PATH,
10610 # but as the default
10611 # location of the library.
10613 case $cc_basename in
10615 # FIXME: insert proper C++ library support
10619 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10624 # There doesn't appear to be a way to prevent this compiler from
10625 # explicitly linking system object files so we need to strip them
10626 # from the output so that they don't get included in the library
10628 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10631 if test "$GXX" = yes; then
10632 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10634 # FIXME: insert proper C++ library support
10641 if test $with_gnu_ld = no; then
10644 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10645 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10646 hardcode_libdir_separator_CXX=:
10649 hardcode_libdir_flag_spec_CXX='-L$libdir'
10652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10653 hardcode_libdir_separator_CXX=:
10654 export_dynamic_flag_spec_CXX='${wl}-E'
10660 hardcode_direct_CXX=no
10661 hardcode_shlibpath_var_CXX=no
10664 hardcode_direct_CXX=no
10665 hardcode_shlibpath_var_CXX=no
10666 hardcode_minus_L_CXX=yes # Not in the search PATH,
10667 # but as the default
10668 # location of the library.
10671 hardcode_direct_CXX=yes
10672 hardcode_minus_L_CXX=yes # Not in the search PATH,
10673 # but as the default
10674 # location of the library.
10678 case $cc_basename in
10680 # FIXME: insert proper C++ library support
10686 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10689 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10692 # Commands to make compiler produce verbose output that lists
10693 # what "hidden" libraries, object files and flags are used when
10694 # linking a shared library.
10696 # There doesn't appear to be a way to prevent this compiler from
10697 # explicitly linking system object files so we need to strip them
10698 # from the output so that they don't get included in the library
10700 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10703 if test "$GXX" = yes; then
10704 if test $with_gnu_ld = no; then
10707 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10710 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10715 # FIXME: insert proper C++ library support
10722 case $cc_basename in
10725 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10727 # Archives containing C++ object files must be created using
10728 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10729 # necessary to make sure instantiated templates are included
10731 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10734 if test "$GXX" = yes; then
10735 if test "$with_gnu_ld" = no; then
10736 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10738 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10741 link_all_deplibs_CXX=yes
10744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator_CXX=:
10748 case $cc_basename in
10750 # Kuck and Associates, Inc. (KAI) C++ Compiler
10752 # KCC will only create a shared library if the output file
10753 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10754 # to its proper name (with version) after linking.
10755 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10756 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10757 # Commands to make compiler produce verbose output that lists
10758 # what "hidden" libraries, object files and flags are used when
10759 # linking a shared library.
10761 # There doesn't appear to be a way to prevent this compiler from
10762 # explicitly linking system object files so we need to strip them
10763 # from the output so that they don't get included in the library
10765 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10767 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10770 # Archives containing C++ object files must be created using
10771 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10772 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10777 # version 8.0 and above of icpc choke on multiply defined symbols
10778 # if we add $predep_objects and $postdep_objects, however 7.1 and
10779 # earlier do not add the objects themselves.
10780 case `$CC -V 2>&1` in
10782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10783 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10785 *) # Version 8.0 or newer
10788 ia64*) tmp_idyn=' -i_dynamic';;
10790 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10794 archive_cmds_need_lc_CXX=no
10795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10800 # Portland Group C++ compiler
10801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10802 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10806 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10811 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10813 runpath_var=LD_RUN_PATH
10814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10815 hardcode_libdir_separator_CXX=:
10817 # Commands to make compiler produce verbose output that lists
10818 # what "hidden" libraries, object files and flags are used when
10819 # linking a shared library.
10821 # There doesn't appear to be a way to prevent this compiler from
10822 # explicitly linking system object files so we need to strip them
10823 # from the output so that they don't get included in the library
10825 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10830 # FIXME: insert proper C++ library support
10834 # FIXME: insert proper C++ library support
10838 case $cc_basename in
10840 # FIXME: insert proper C++ library support
10844 # FIXME: insert proper C++ library support
10850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10851 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10853 hardcode_libdir_flag_spec_CXX='-R$libdir'
10854 hardcode_direct_CXX=yes
10855 hardcode_shlibpath_var_CXX=no
10857 # Workaround some broken pre-1.5 toolchains
10858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10861 # C++ shared libraries are fairly broken
10865 hardcode_direct_CXX=yes
10866 hardcode_shlibpath_var_CXX=no
10867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10871 export_dynamic_flag_spec_CXX='${wl}-E'
10872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10874 output_verbose_link_cmd='echo'
10877 case $cc_basename in
10879 # Kuck and Associates, Inc. (KAI) C++ Compiler
10881 # KCC will only create a shared library if the output file
10882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10883 # to its proper name (with version) after linking.
10884 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10887 hardcode_libdir_separator_CXX=:
10889 # Archives containing C++ object files must be created using
10890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10895 # Rational C++ 2.4.1
10896 # FIXME: insert proper C++ library support
10900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10901 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10904 hardcode_libdir_separator_CXX=:
10906 # Commands to make compiler produce verbose output that lists
10907 # what "hidden" libraries, object files and flags are used when
10908 # linking a shared library.
10910 # There doesn't appear to be a way to prevent this compiler from
10911 # explicitly linking system object files so we need to strip them
10912 # from the output so that they don't get included in the library
10914 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10919 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10922 hardcode_libdir_separator_CXX=:
10924 # Commands to make compiler produce verbose output that lists
10925 # what "hidden" libraries, object files and flags are used when
10926 # linking a shared library.
10927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10930 # FIXME: insert proper C++ library support
10937 case $cc_basename in
10939 # Kuck and Associates, Inc. (KAI) C++ Compiler
10941 # KCC will only create a shared library if the output file
10942 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10943 # to its proper name (with version) after linking.
10944 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10947 hardcode_libdir_separator_CXX=:
10949 # Archives containing C++ object files must be created using
10950 # the KAI C++ compiler.
10951 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10954 # Rational C++ 2.4.1
10955 # FIXME: insert proper C++ library support
10959 allow_undefined_flag_CXX=' -expect_unresolved \*'
10960 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10962 echo "-hidden">> $lib.exp~
10963 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10967 hardcode_libdir_separator_CXX=:
10969 # Commands to make compiler produce verbose output that lists
10970 # what "hidden" libraries, object files and flags are used when
10971 # linking a shared library.
10973 # There doesn't appear to be a way to prevent this compiler from
10974 # explicitly linking system object files so we need to strip them
10975 # from the output so that they don't get included in the library
10977 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10980 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10982 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10985 hardcode_libdir_separator_CXX=:
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10993 # FIXME: insert proper C++ library support
11000 # FIXME: insert proper C++ library support
11004 archive_cmds_need_lc_CXX=no
11005 case $cc_basename in
11007 # FIXME: insert proper C++ library support
11011 # FIXME: insert proper C++ library support
11017 case $cc_basename in
11020 # FIXME: insert proper C++ library support
11025 # FIXME: insert proper C++ library support
11029 # FIXME: insert proper C++ library support
11035 case $cc_basename in
11037 # Sun C++ 4.2, 5.x and Centerline C++
11038 archive_cmds_need_lc_CXX=yes
11039 no_undefined_flag_CXX=' -zdefs'
11040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11042 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11044 hardcode_libdir_flag_spec_CXX='-R$libdir'
11045 hardcode_shlibpath_var_CXX=no
11047 solaris2.[0-5] | solaris2.[0-5].*) ;;
11049 # The C++ compiler is used as linker so we must use $wl
11050 # flag to pass the commands to the underlying system
11051 # linker. We must also pass each convience library through
11052 # to the system linker between allextract/defaultextract.
11053 # The C++ compiler will combine linker options so we
11054 # cannot just pass the convience library names through
11056 # Supported since Solaris 2.6 (maybe 2.5.1?)
11057 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11060 link_all_deplibs_CXX=yes
11062 output_verbose_link_cmd='echo'
11064 # Archives containing C++ object files must be created using
11065 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11066 # necessary to make sure instantiated templates are included
11068 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11071 # Green Hills C++ Compiler
11072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11074 # The C++ compiler must be used to create the archive.
11075 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11078 # GNU C++ compiler with Solaris linker
11079 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11080 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11081 if $CC --version | grep -v '^2\.7' > /dev/null; then
11082 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11083 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11084 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11086 # Commands to make compiler produce verbose output that lists
11087 # what "hidden" libraries, object files and flags are used when
11088 # linking a shared library.
11089 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11091 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11093 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11094 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11095 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11097 # Commands to make compiler produce verbose output that lists
11098 # what "hidden" libraries, object files and flags are used when
11099 # linking a shared library.
11100 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11103 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11108 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11109 archive_cmds_need_lc_CXX=no
11112 case $cc_basename in
11114 # NonStop-UX NCC 3.20
11115 # FIXME: insert proper C++ library support
11119 # FIXME: insert proper C++ library support
11125 # FIXME: insert proper C++ library support
11129 # FIXME: insert proper C++ library support
11133 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11134 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11135 test "$ld_shlibs_CXX" = no && can_build_shared=no
11141 ## There is no encapsulation within the following macros, do not change
11142 ## the running order or otherwise move them around unless you know exactly
11143 ## what you are doing...
11145 cat > conftest.$ac_ext <<EOF
11149 Foo (void) { a = 0; }
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; then
11160 # Parse the compiler output and extract the necessary
11161 # objects, libraries and library flags.
11163 # Sentinel used to keep track of whether or not we are before
11164 # the conftest object file.
11165 pre_test_object_deps_done=no
11167 # The `*' in the case matches for architectures that use `case' in
11168 # $output_verbose_cmd can trigger glob expansion during the loop
11169 # eval without this substitution.
11170 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11172 for p in `eval $output_verbose_link_cmd`; do
11176 # Some compilers place space between "-{L,R}" and the path.
11177 # Remove the space.
11178 if test $p = "-L" \
11179 || test $p = "-R"; then
11186 if test "$pre_test_object_deps_done" = no; then
11189 # Internal compiler library paths should come after those
11190 # provided the user. The postdeps already come after the
11191 # user supplied libs so there is no need to process them.
11192 if test -z "$compiler_lib_search_path_CXX"; then
11193 compiler_lib_search_path_CXX="${prev}${p}"
11195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11198 # The "-l" case would never come before the object being
11199 # linked, so don't bother handling this case.
11202 if test -z "$postdeps_CXX"; then
11203 postdeps_CXX="${prev}${p}"
11205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11211 # This assumes that the test object file only shows up
11212 # once in the compiler output.
11213 if test "$p" = "conftest.$objext"; then
11214 pre_test_object_deps_done=yes
11218 if test "$pre_test_object_deps_done" = no; then
11219 if test -z "$predep_objects_CXX"; then
11220 predep_objects_CXX="$p"
11222 predep_objects_CXX="$predep_objects_CXX $p"
11225 if test -z "$postdep_objects_CXX"; then
11226 postdep_objects_CXX="$p"
11228 postdep_objects_CXX="$postdep_objects_CXX $p"
11233 *) ;; # Ignore the rest.
11241 echo "libtool.m4: error: problem compiling CXX test program"
11244 $rm -f confest.$objext
11246 # PORTME: override above test on systems where it is broken
11249 case $cc_basename in
11251 # Adding this requires a known-good setup of shared libraries for
11252 # Sun compiler versions before 5.6, else PIC objects from an old
11253 # archive will be linked into the output, leading to subtle bugs.
11254 postdeps_CXX='-lCstd -lCrun'
11260 case " $postdeps_CXX " in
11261 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11264 lt_prog_compiler_wl_CXX=
11265 lt_prog_compiler_pic_CXX=
11266 lt_prog_compiler_static_CXX=
11268 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11271 # C++ specific cases for pic, static, wl, etc.
11272 if test "$GXX" = yes; then
11273 lt_prog_compiler_wl_CXX='-Wl,'
11274 lt_prog_compiler_static_CXX='-static'
11278 # All AIX code is PIC.
11279 if test "$host_cpu" = ia64; then
11280 # AIX 5 now supports IA64 processor
11281 lt_prog_compiler_static_CXX='-Bstatic'
11285 # FIXME: we need at least 68020 code to build shared libraries, but
11286 # adding the `-m68020' flag to GCC prevents building anything better,
11288 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11291 # PIC is the default for these OSes.
11293 mingw* | os2* | pw32*)
11294 # This hack is so that the source file can tell whether it is being
11295 # built for inclusion in a dll (and should export symbols for example).
11296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11298 darwin* | rhapsody*)
11299 # PIC is the default on this platform
11300 # Common symbols not allowed in MH_DYLIB files
11301 lt_prog_compiler_pic_CXX='-fno-common'
11304 # DJGPP does not support shared libraries at all
11305 lt_prog_compiler_pic_CXX=
11308 if test -d /usr/nec; then
11309 lt_prog_compiler_pic_CXX=-Kconform_pic
11313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11314 # not for PA HP-UX.
11319 lt_prog_compiler_pic_CXX='-fPIC'
11324 lt_prog_compiler_pic_CXX='-fPIC'
11330 # All AIX code is PIC.
11331 if test "$host_cpu" = ia64; then
11332 # AIX 5 now supports IA64 processor
11333 lt_prog_compiler_static_CXX='-Bstatic'
11335 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11339 case $cc_basename in
11341 # Green Hills C++ Compiler
11342 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11347 # PIC is the default on this platform
11348 # Common symbols not allowed in MH_DYLIB files
11349 case $cc_basename in
11351 lt_prog_compiler_pic_CXX='-qnocommon'
11352 lt_prog_compiler_wl_CXX='-Wl,'
11357 case $cc_basename in
11359 lt_prog_compiler_pic_CXX='-KPIC'
11362 # Green Hills C++ Compiler
11363 lt_prog_compiler_pic_CXX='-pic'
11369 freebsd* | kfreebsd*-gnu | dragonfly*)
11370 # FreeBSD uses GNU C++
11372 hpux9* | hpux10* | hpux11*)
11373 case $cc_basename in
11375 lt_prog_compiler_wl_CXX='-Wl,'
11376 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11377 if test "$host_cpu" != ia64; then
11378 lt_prog_compiler_pic_CXX='+Z'
11382 lt_prog_compiler_wl_CXX='-Wl,'
11383 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11389 lt_prog_compiler_pic_CXX='+Z'
11397 irix5* | irix6* | nonstopux*)
11398 case $cc_basename in
11400 lt_prog_compiler_wl_CXX='-Wl,'
11401 lt_prog_compiler_static_CXX='-non_shared'
11402 # CC pic flag -KPIC is the default.
11409 case $cc_basename in
11412 lt_prog_compiler_wl_CXX='--backend -Wl,'
11413 lt_prog_compiler_pic_CXX='-fPIC'
11417 lt_prog_compiler_wl_CXX='-Wl,'
11418 lt_prog_compiler_pic_CXX='-KPIC'
11419 lt_prog_compiler_static_CXX='-static'
11422 # Portland Group C++ compiler.
11423 lt_prog_compiler_wl_CXX='-Wl,'
11424 lt_prog_compiler_pic_CXX='-fpic'
11425 lt_prog_compiler_static_CXX='-Bstatic'
11429 # Make sure the PIC flag is empty. It appears that all Alpha
11430 # Linux and Compaq Tru64 Unix objects are PIC.
11431 lt_prog_compiler_pic_CXX=
11432 lt_prog_compiler_static_CXX='-non_shared'
11443 case $cc_basename in
11445 lt_prog_compiler_pic_CXX='-W c,exportall'
11453 osf3* | osf4* | osf5*)
11454 case $cc_basename in
11456 lt_prog_compiler_wl_CXX='--backend -Wl,'
11459 # Rational C++ 2.4.1
11460 lt_prog_compiler_pic_CXX='-pic'
11463 # Digital/Compaq C++
11464 lt_prog_compiler_wl_CXX='-Wl,'
11465 # Make sure the PIC flag is empty. It appears that all Alpha
11466 # Linux and Compaq Tru64 Unix objects are PIC.
11467 lt_prog_compiler_pic_CXX=
11468 lt_prog_compiler_static_CXX='-non_shared'
11477 case $cc_basename in
11479 lt_prog_compiler_pic_CXX='-fPIC'
11486 case $cc_basename in
11488 # Sun C++ 4.2, 5.x and Centerline C++
11489 lt_prog_compiler_pic_CXX='-KPIC'
11490 lt_prog_compiler_static_CXX='-Bstatic'
11491 lt_prog_compiler_wl_CXX='-Qoption ld '
11494 # Green Hills C++ Compiler
11495 lt_prog_compiler_pic_CXX='-PIC'
11502 case $cc_basename in
11505 lt_prog_compiler_pic_CXX='-pic'
11506 lt_prog_compiler_static_CXX='-Bstatic'
11510 lt_prog_compiler_pic_CXX='-pic'
11517 case $cc_basename in
11519 # NonStop-UX NCC 3.20
11520 lt_prog_compiler_pic_CXX='-KPIC'
11531 lt_prog_compiler_can_build_shared_CXX=no
11536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11537 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11540 # Check to make sure the PIC flag actually works.
11542 if test -n "$lt_prog_compiler_pic_CXX"; then
11544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11546 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 lt_prog_compiler_pic_works_CXX=no
11550 ac_outfile=conftest.$ac_objext
11551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11552 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11553 # Insert the option either (1) after the last *FLAGS variable, or
11554 # (2) before a word containing "conftest.", or (3) at the end.
11555 # Note that $ac_compile itself does not contain backslashes and begins
11556 # with a dollar sign (not a hyphen), so the echo should work correctly.
11557 # The option is referenced via a variable to avoid confusing sed.
11558 lt_compile=`echo "$ac_compile" | $SED \
11559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11561 -e 's:$: $lt_compiler_flag:'`
11562 (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
11563 (eval "$lt_compile" 2>conftest.err)
11565 cat conftest.err >&5
11566 echo "configure:__oline__: \$? = $ac_status" >&5
11567 if (exit $ac_status) && test -s "$ac_outfile"; then
11568 # The compiler can only warn and ignore the option if not recognized
11569 # So say no if there are warnings other than the usual output.
11570 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11571 $SED '/^$/d' conftest.err >conftest.er2
11572 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11573 lt_prog_compiler_pic_works_CXX=yes
11579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11580 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11582 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11583 case $lt_prog_compiler_pic_CXX in
11585 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11588 lt_prog_compiler_pic_CXX=
11589 lt_prog_compiler_can_build_shared_CXX=no
11594 # For platforms which do not support PIC, -DPIC is meaningless:
11596 lt_prog_compiler_pic_CXX=
11599 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11603 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11605 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 lt_cv_prog_compiler_c_o_CXX=no
11609 $rm -r conftest 2>/dev/null
11613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615 lt_compiler_flag="-o out/conftest2.$ac_objext"
11616 # Insert the option either (1) after the last *FLAGS variable, or
11617 # (2) before a word containing "conftest.", or (3) at the end.
11618 # Note that $ac_compile itself does not contain backslashes and begins
11619 # with a dollar sign (not a hyphen), so the echo should work correctly.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>out/conftest.err)
11627 cat out/conftest.err >&5
11628 echo "configure:__oline__: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11631 # The compiler can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11634 $SED '/^$/d' out/conftest.err >out/conftest.er2
11635 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636 lt_cv_prog_compiler_c_o_CXX=yes
11641 # SGI C++ compiler will create directory out/ii_files/ for
11642 # template instantiation
11643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11644 $rm out/* && rmdir out
11650 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11654 hard_links="nottested"
11655 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11656 # do not overwrite the value of need_locks provided by the user
11657 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11663 ln conftest.a conftest.b 2>&5 || hard_links=no
11664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665 { echo "$as_me:$LINENO: result: $hard_links" >&5
11666 echo "${ECHO_T}$hard_links" >&6; }
11667 if test "$hard_links" = no; then
11668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11676 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11682 # If we're using GNU nm, then we don't want the "-C" option.
11683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11684 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11685 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11687 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11691 export_symbols_cmds_CXX="$ltdll_cmds"
11694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11697 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11701 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11702 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11703 test "$ld_shlibs_CXX" = no && can_build_shared=no
11705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11706 if test "$GCC" = yes; then
11707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711 # Do we need to explicitly link libc?
11713 case "x$archive_cmds_need_lc_CXX" in
11715 # Assume -lc should be added
11716 archive_cmds_need_lc_CXX=yes
11718 if test "$enable_shared" = yes && test "$GCC" = yes; then
11719 case $archive_cmds_CXX in
11721 # FIXME: we may have to deal with multi-command sequences.
11724 # Test whether the compiler implicitly links with -lc since on some
11725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11726 # to ld, don't add -lc before -lgcc.
11727 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } 2>conftest.err; then
11739 libobjs=conftest.$ac_objext
11741 wl=$lt_prog_compiler_wl_CXX
11747 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11748 allow_undefined_flag_CXX=
11749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11750 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }
11755 archive_cmds_need_lc_CXX=no
11757 archive_cmds_need_lc_CXX=yes
11759 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11761 cat conftest.err 1>&5
11764 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11765 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11772 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11774 library_names_spec=
11775 libname_spec='lib$name'
11779 postuninstall_cmds=
11783 shlibpath_overrides_runpath=unknown
11785 dynamic_linker="$host_os ld.so"
11786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11787 if test "$GCC" = yes; then
11788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11790 # if the path contains ";" then we assume it to be the separator
11791 # otherwise default to the standard path separator (i.e. ":") - it is
11792 # assumed that no part of a normal pathname contains ";" but that should
11793 # okay in the real world where ";" in dirpaths is itself problematic.
11794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11801 need_lib_prefix=unknown
11802 hardcode_into_libs=no
11804 # when you set need_version to no, make sure it does not cause -set_version
11805 # flags to be left without arguments
11806 need_version=unknown
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11812 shlibpath_var=LIBPATH
11814 # AIX 3 has no versioning support, so we append a major version to the name.
11815 soname_spec='${libname}${release}${shared_ext}$major'
11822 hardcode_into_libs=yes
11823 if test "$host_cpu" = ia64; then
11824 # AIX 5 supports IA64
11825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11826 shlibpath_var=LD_LIBRARY_PATH
11828 # With GCC up to 2.95.x, collect2 would create an import file
11829 # for dependence libraries. The import file would start with
11830 # the line `#! .'. This would cause the generated library to
11831 # depend on `.', always an invalid library. This was fixed in
11832 # development snapshots of GCC prior to 3.0.
11834 aix4 | aix4.[01] | aix4.[01].*)
11835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11840 can_build_shared=no
11844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11845 # soname into executable. Probably we can add versioning support to
11846 # collect2, so additional links can be useful in future.
11847 if test "$aix_use_runtimelinking" = yes; then
11848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11849 # instead of lib<name>.a to let people know that these are not
11850 # typical AIX shared libraries.
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 # We preserve .a as extension for shared libraries through AIX4.2
11854 # and later when we are not doing run time linking.
11855 library_names_spec='${libname}${release}.a $libname.a'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LIBPATH
11863 library_names_spec='$libname.ixlibrary $libname.a'
11864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11865 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11869 library_names_spec='${libname}${shared_ext}'
11870 dynamic_linker="$host_os ld.so"
11871 shlibpath_var=LIBRARY_PATH
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11883 # the default ld.so.conf also contains /usr/contrib/lib and
11884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11885 # libtool to hard-code these into programs
11888 cygwin* | mingw* | pw32*)
11889 version_type=windows
11894 case $GCC,$host_os in
11895 yes,cygwin* | yes,mingw* | yes,pw32*)
11896 library_names_spec='$libname.dll.a'
11897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11898 postinstall_cmds='base_file=`basename \${file}`~
11899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11900 dldir=$destdir/`dirname \$dlpath`~
11901 test -d \$dldir || mkdir -p \$dldir~
11902 $install_prog $dir/$dlname \$dldir/$dlname~
11903 chmod a+x \$dldir/$dlname'
11904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11905 dlpath=$dir/\$dldll~
11907 shlibpath_overrides_runpath=yes
11911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11916 # MinGW DLLs use traditional 'lib' prefix
11917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11920 # It is most probably a Windows format PATH printed by
11921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11922 # path with ; separators, and with drive letters. We can handle the
11923 # drive letters (cygwin fileutils understands them), so leave them,
11924 # especially as we might pass files found there to a mingw objdump,
11925 # which wouldn't understand a cygwinified path. Ahh.
11926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11932 # pw32 DLLs use 'pw' prefix rather than 'lib'
11933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11942 dynamic_linker='Win32 ld.exe'
11943 # FIXME: first we should search . and the directory the executable is in
11947 darwin* | rhapsody*)
11948 dynamic_linker="$host_os dyld"
11949 version_type=darwin
11952 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11953 soname_spec='${libname}${release}${major}$shared_ext'
11954 shlibpath_overrides_runpath=yes
11955 shlibpath_var=DYLD_LIBRARY_PATH
11956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11957 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11958 if test "$GCC" = yes; then
11959 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11961 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11986 shlibpath_overrides_runpath=no
11987 hardcode_into_libs=yes
11988 dynamic_linker='GNU ld.so'
11991 freebsd* | dragonfly*)
11992 # DragonFly does not have aout. When/if they implement a new
11993 # versioning mechanism, adjust this.
11994 if test -x /usr/bin/objformat; then
11995 objformat=`/usr/bin/objformat`
11998 freebsd[123]*) objformat=aout ;;
11999 *) objformat=elf ;;
12002 version_type=freebsd-$objformat
12003 case $version_type in
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12014 shlibpath_var=LD_LIBRARY_PATH
12017 shlibpath_overrides_runpath=yes
12019 freebsd3.[01]* | freebsdelf3.[01]*)
12020 shlibpath_overrides_runpath=yes
12021 hardcode_into_libs=yes
12024 shlibpath_overrides_runpath=no
12025 hardcode_into_libs=yes
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12035 soname_spec='${libname}${release}${shared_ext}$major'
12036 shlibpath_var=LD_LIBRARY_PATH
12037 hardcode_into_libs=yes
12040 hpux9* | hpux10* | hpux11*)
12041 # Give a soname corresponding to the major version so that dld.sl refuses to
12042 # link against other versions.
12049 hardcode_into_libs=yes
12050 dynamic_linker="$host_os dld.so"
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 if test "X$HPUX_IA64_MODE" = X32; then
12056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064 hardcode_into_libs=yes
12065 dynamic_linker="$host_os dld.sl"
12066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12075 dynamic_linker="$host_os dld.sl"
12076 shlibpath_var=SHLIB_PATH
12077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12083 postinstall_cmds='chmod 555 $lib'
12086 irix5* | irix6* | nonstopux*)
12088 nonstopux*) version_type=nonstopux ;;
12090 if test "$lt_cv_prog_gnu_ld" = yes; then
12098 soname_spec='${libname}${release}${shared_ext}$major'
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12101 irix5* | nonstopux*)
12102 libsuff= shlibsuff=
12105 case $LD in # libtool.m4 will add one of these switches to LD
12106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12107 libsuff= shlibsuff= libmagic=32-bit;;
12108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12109 libsuff=32 shlibsuff=N32 libmagic=N32;;
12110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12112 *) libsuff= shlibsuff= libmagic=never-match;;
12116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12117 shlibpath_overrides_runpath=no
12118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12120 hardcode_into_libs=yes
12123 # No shared lib support for Linux oldld, aout, or coff.
12124 linux*oldld* | linux*aout* | linux*coff*)
12128 # This must be Linux ELF.
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=no
12138 # This implies no fast_install, which is unacceptable.
12139 # Some rework will be needed to allow for fast_install
12140 # before this can be enabled.
12141 hardcode_into_libs=yes
12143 # find out which ABI we are using
12146 x86_64*|s390x*|powerpc64*)
12147 echo '#line __oline__ "configure"' > conftest.$ac_ext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; then
12153 case `/usr/bin/file conftest.$ac_objext` in
12156 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12164 # Append ld.so.conf contents to the search path
12165 if test -f /etc/ld.so.conf; then
12166 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12167 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12170 # We used to test for /lib/ld.so.1 and disable shared libraries on
12171 # powerpc, because MkLinux only supported shared libraries with the
12172 # GNU dynamic linker. Since this was broken with cross compilers,
12173 # most powerpc-linux boxes support dynamic linking these days and
12174 # people can always --disable-shared, the test was removed, and we
12175 # assume the GNU/Linux dynamic linker is in use.
12176 dynamic_linker='GNU/Linux ld.so'
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184 soname_spec='${libname}${release}${shared_ext}$major'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 hardcode_into_libs=yes
12188 dynamic_linker='GNU ld.so'
12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198 dynamic_linker='NetBSD (a.out) ld.so'
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 dynamic_linker='NetBSD ld.elf_so'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 hardcode_into_libs=yes
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=yes
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12229 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12231 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12232 *) need_version=no ;;
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12239 openbsd2.[89] | openbsd2.[89].*)
12240 shlibpath_overrides_runpath=no
12243 shlibpath_overrides_runpath=yes
12247 shlibpath_overrides_runpath=yes
12252 libname_spec='$name'
12255 library_names_spec='$libname${shared_ext} $libname.a'
12256 dynamic_linker='OS/2 ld.exe'
12257 shlibpath_var=LIBPATH
12260 osf3* | osf4* | osf5*)
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12268 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 shlibpath_var=LD_LIBRARY_PATH
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 # ldd complains unless libraries are executable
12288 postinstall_cmds='chmod +x $lib'
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 if test "$with_gnu_ld" = yes; then
12303 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 case $host_vendor in
12310 shlibpath_overrides_runpath=no
12312 export_dynamic_flag_spec='${wl}-Blargedynsym'
12313 runpath_var=LD_RUN_PATH
12321 shlibpath_overrides_runpath=no
12322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12328 if test -d /usr/nec ;then
12330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12331 soname_spec='$libname${shared_ext}.$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12347 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12348 echo "${ECHO_T}$dynamic_linker" >&6; }
12349 test "$dynamic_linker" = no && can_build_shared=no
12351 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12352 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12353 hardcode_action_CXX=
12354 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12355 test -n "$runpath_var_CXX" || \
12356 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12358 # We can hardcode non-existant directories.
12359 if test "$hardcode_direct_CXX" != no &&
12360 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12361 # have to relink, otherwise we might link with an installed library
12362 # when we should be linking with a yet-to-be-installed one
12363 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12364 test "$hardcode_minus_L_CXX" != no; then
12365 # Linking always hardcodes the temporary library directory.
12366 hardcode_action_CXX=relink
12368 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12369 hardcode_action_CXX=immediate
12372 # We cannot hardcode anything, or else we can only hardcode existing
12374 hardcode_action_CXX=unsupported
12376 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12377 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12379 if test "$hardcode_action_CXX" = relink; then
12380 # Fast installation is not supported
12381 enable_fast_install=no
12382 elif test "$shlibpath_overrides_runpath" = yes ||
12383 test "$enable_shared" = no; then
12384 # Fast installation is not necessary
12385 enable_fast_install=needless
12390 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12391 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12392 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12393 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12394 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12395 { echo "$as_me:$LINENO: result: yes" >&5
12396 echo "${ECHO_T}yes" >&6; }
12398 # FIXME - insert some real tests, host_os isn't really good enough
12401 if test -n "$STRIP" ; then
12402 striplib="$STRIP -x"
12403 { echo "$as_me:$LINENO: result: yes" >&5
12404 echo "${ECHO_T}yes" >&6; }
12406 { echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6; }
12411 { echo "$as_me:$LINENO: result: no" >&5
12412 echo "${ECHO_T}no" >&6; }
12417 if test "x$enable_dlopen" != xyes; then
12418 enable_dlopen=unknown
12419 enable_dlopen_self=unknown
12420 enable_dlopen_self_static=unknown
12427 lt_cv_dlopen="load_add_on"
12429 lt_cv_dlopen_self=yes
12433 lt_cv_dlopen="LoadLibrary"
12438 lt_cv_dlopen="dlopen"
12443 # if libdl is installed we need to link against it
12444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 ac_check_lib_save_LIBS=$LIBS
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_cxx_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest$ac_exeext &&
12490 $as_test_x conftest$ac_exeext; then
12491 ac_cv_lib_dl_dlopen=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_cv_lib_dl_dlopen=no
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12505 if test $ac_cv_lib_dl_dlopen = yes; then
12506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12509 lt_cv_dlopen="dyld"
12511 lt_cv_dlopen_self=yes
12518 { echo "$as_me:$LINENO: checking for shl_load" >&5
12519 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12520 if test "${ac_cv_func_shl_load+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12531 #define shl_load innocuous_shl_load
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char shl_load (); below.
12535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12536 <limits.h> exists even on freestanding compilers. */
12539 # include <limits.h>
12541 # include <assert.h>
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12553 /* The GNU C library defines this for functions which it implements
12554 to always fail with ENOSYS. Some functions are actually named
12555 something starting with __ and the normal name is an alias. */
12556 #if defined __stub_shl_load || defined __stub___shl_load
12563 return shl_load ();
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_link") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_cxx_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest$ac_exeext &&
12585 $as_test_x conftest$ac_exeext; then
12586 ac_cv_func_shl_load=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_cv_func_shl_load=no
12594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12595 conftest$ac_exeext conftest.$ac_ext
12597 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12599 if test $ac_cv_func_shl_load = yes; then
12600 lt_cv_dlopen="shl_load"
12602 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_check_lib_save_LIBS=$LIBS
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12626 return shl_load ();
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (ac_try="$ac_link"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_link") 2>conftest.er1
12640 grep -v '^ *+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_cxx_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest$ac_exeext &&
12648 $as_test_x conftest$ac_exeext; then
12649 ac_cv_lib_dld_shl_load=yes
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ac_cv_lib_dld_shl_load=no
12657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12663 if test $ac_cv_lib_dld_shl_load = yes; then
12664 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12666 { echo "$as_me:$LINENO: checking for dlopen" >&5
12667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12668 if test "${ac_cv_func_dlopen+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12679 #define dlopen innocuous_dlopen
12681 /* System header to define __stub macros and hopefully few prototypes,
12682 which can conflict with char dlopen (); below.
12683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 <limits.h> exists even on freestanding compilers. */
12687 # include <limits.h>
12689 # include <assert.h>
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined __stub_dlopen || defined __stub___dlopen
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_cxx_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest$ac_exeext &&
12733 $as_test_x conftest$ac_exeext; then
12734 ac_cv_func_dlopen=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_func_dlopen=no
12742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12743 conftest$ac_exeext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12747 if test $ac_cv_func_dlopen = yes; then
12748 lt_cv_dlopen="dlopen"
12750 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_check_lib_save_LIBS=$LIBS
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && {
12793 test -z "$ac_cxx_werror_flag" ||
12794 test ! -s conftest.err
12795 } && test -s conftest$ac_exeext &&
12796 $as_test_x conftest$ac_exeext; then
12797 ac_cv_lib_dl_dlopen=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_cv_lib_dl_dlopen=no
12805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12811 if test $ac_cv_lib_dl_dlopen = yes; then
12812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12814 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12815 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12816 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 ac_check_lib_save_LIBS=$LIBS
12820 LIBS="-lsvld $LIBS"
12821 cat >conftest.$ac_ext <<_ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_link") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && {
12857 test -z "$ac_cxx_werror_flag" ||
12858 test ! -s conftest.err
12859 } && test -s conftest$ac_exeext &&
12860 $as_test_x conftest$ac_exeext; then
12861 ac_cv_lib_svld_dlopen=yes
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_cv_lib_svld_dlopen=no
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LIBS=$ac_check_lib_save_LIBS
12873 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12875 if test $ac_cv_lib_svld_dlopen = yes; then
12876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12878 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12879 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12880 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_check_lib_save_LIBS=$LIBS
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12902 return dld_link ();
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && {
12921 test -z "$ac_cxx_werror_flag" ||
12922 test ! -s conftest.err
12923 } && test -s conftest$ac_exeext &&
12924 $as_test_x conftest$ac_exeext; then
12925 ac_cv_lib_dld_dld_link=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_lib_dld_dld_link=no
12933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12938 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12939 if test $ac_cv_lib_dld_dld_link = yes; then
12940 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12961 if test "x$lt_cv_dlopen" != xno; then
12967 case $lt_cv_dlopen in
12969 save_CPPFLAGS="$CPPFLAGS"
12970 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12972 save_LDFLAGS="$LDFLAGS"
12973 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12976 LIBS="$lt_cv_dlopen_libs $LIBS"
12978 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12979 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12980 if test "${lt_cv_dlopen_self+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 if test "$cross_compiling" = yes; then :
12984 lt_cv_dlopen_self=cross
12986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12987 lt_status=$lt_dlunknown
12988 cat > conftest.$ac_ext <<EOF
12989 #line __oline__ "configure"
12990 #include "confdefs.h"
12999 # define LT_DLGLOBAL RTLD_GLOBAL
13002 # define LT_DLGLOBAL DL_GLOBAL
13004 # define LT_DLGLOBAL 0
13008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13009 find out it does not work in some platform. */
13010 #ifndef LT_DLLAZY_OR_NOW
13012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13015 # define LT_DLLAZY_OR_NOW DL_LAZY
13018 # define LT_DLLAZY_OR_NOW RTLD_NOW
13021 # define LT_DLLAZY_OR_NOW DL_NOW
13023 # define LT_DLLAZY_OR_NOW 0
13031 extern "C" void exit (int);
13034 void fnord() { int i=42;}
13037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13038 int status = $lt_dlunknown;
13042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13044 /* dlclose (self); */
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13055 (./conftest; exit; ) >&5 2>/dev/null
13057 case x$lt_status in
13058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13060 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13063 # compilation failed
13064 lt_cv_dlopen_self=no
13071 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13074 if test "x$lt_cv_dlopen_self" = xyes; then
13075 LDFLAGS="$LDFLAGS $link_static_flag"
13076 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13078 if test "${lt_cv_dlopen_self_static+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 if test "$cross_compiling" = yes; then :
13082 lt_cv_dlopen_self_static=cross
13084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13085 lt_status=$lt_dlunknown
13086 cat > conftest.$ac_ext <<EOF
13087 #line __oline__ "configure"
13088 #include "confdefs.h"
13097 # define LT_DLGLOBAL RTLD_GLOBAL
13100 # define LT_DLGLOBAL DL_GLOBAL
13102 # define LT_DLGLOBAL 0
13106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13107 find out it does not work in some platform. */
13108 #ifndef LT_DLLAZY_OR_NOW
13110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13113 # define LT_DLLAZY_OR_NOW DL_LAZY
13116 # define LT_DLLAZY_OR_NOW RTLD_NOW
13119 # define LT_DLLAZY_OR_NOW DL_NOW
13121 # define LT_DLLAZY_OR_NOW 0
13129 extern "C" void exit (int);
13132 void fnord() { int i=42;}
13135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13136 int status = $lt_dlunknown;
13140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13142 /* dlclose (self); */
13148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13149 (eval $ac_link) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13153 (./conftest; exit; ) >&5 2>/dev/null
13155 case x$lt_status in
13156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13158 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13161 # compilation failed
13162 lt_cv_dlopen_self_static=no
13169 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13170 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13173 CPPFLAGS="$save_CPPFLAGS"
13174 LDFLAGS="$save_LDFLAGS"
13179 case $lt_cv_dlopen_self in
13180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13181 *) enable_dlopen_self=unknown ;;
13184 case $lt_cv_dlopen_self_static in
13185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13186 *) enable_dlopen_self_static=unknown ;;
13191 # The else clause should only fire when bootstrapping the
13192 # libtool distribution, otherwise you forgot to ship ltmain.sh
13193 # with your package, and you will get complaints that there are
13194 # no rules to generate ltmain.sh.
13195 if test -f "$ltmain"; then
13196 # See if we are running on zsh, and set the options which allow our commands through
13197 # without removal of \ escapes.
13198 if test -n "${ZSH_VERSION+set}" ; then
13199 setopt NO_GLOB_SUBST
13201 # Now quote all the things that may contain metacharacters while being
13202 # careful not to overquote the AC_SUBSTed values. We take copies of the
13203 # variables and quote the copies for generation of the libtool script.
13204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13208 deplibs_check_method reload_flag reload_cmds need_locks \
13209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13210 lt_cv_sys_global_symbol_to_c_name_address \
13211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13212 old_postinstall_cmds old_postuninstall_cmds \
13216 lt_prog_compiler_wl_CXX \
13217 lt_prog_compiler_pic_CXX \
13218 lt_prog_compiler_static_CXX \
13219 lt_prog_compiler_no_builtin_flag_CXX \
13220 export_dynamic_flag_spec_CXX \
13221 thread_safe_flag_spec_CXX \
13222 whole_archive_flag_spec_CXX \
13223 enable_shared_with_static_runtimes_CXX \
13224 old_archive_cmds_CXX \
13225 old_archive_from_new_cmds_CXX \
13226 predep_objects_CXX \
13227 postdep_objects_CXX \
13230 compiler_lib_search_path_CXX \
13232 archive_expsym_cmds_CXX \
13233 postinstall_cmds_CXX \
13234 postuninstall_cmds_CXX \
13235 old_archive_from_expsyms_cmds_CXX \
13236 allow_undefined_flag_CXX \
13237 no_undefined_flag_CXX \
13238 export_symbols_cmds_CXX \
13239 hardcode_libdir_flag_spec_CXX \
13240 hardcode_libdir_flag_spec_ld_CXX \
13241 hardcode_libdir_separator_CXX \
13242 hardcode_automatic_CXX \
13244 module_expsym_cmds_CXX \
13245 lt_cv_prog_compiler_c_o_CXX \
13246 exclude_expsyms_CXX \
13247 include_expsyms_CXX; do
13250 old_archive_cmds_CXX | \
13251 old_archive_from_new_cmds_CXX | \
13252 archive_cmds_CXX | \
13253 archive_expsym_cmds_CXX | \
13254 module_cmds_CXX | \
13255 module_expsym_cmds_CXX | \
13256 old_archive_from_expsyms_cmds_CXX | \
13257 export_symbols_cmds_CXX | \
13258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13259 postinstall_cmds | postuninstall_cmds | \
13260 old_postinstall_cmds | old_postuninstall_cmds | \
13261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13262 # Double-quote double-evaled strings.
13263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13272 *'\$0 --fallback-echo"')
13273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13279 cat <<__EOF__ >> "$cfgfile"
13280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13284 # Shell to use when invoking shell scripts.
13287 # Whether or not to build shared libraries.
13288 build_libtool_libs=$enable_shared
13290 # Whether or not to build static libraries.
13291 build_old_libs=$enable_static
13293 # Whether or not to add -lc for building shared libraries.
13294 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13296 # Whether or not to disallow shared libs when runtime libs are static
13297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13299 # Whether or not to optimize for fast installation.
13300 fast_install=$enable_fast_install
13303 host_alias=$host_alias
13307 # The build system.
13308 build_alias=$build_alias
13312 # An echo program that does not interpret backslashes.
13317 AR_FLAGS=$lt_AR_FLAGS
13322 # A language-specific compiler.
13323 CC=$lt_compiler_CXX
13325 # Is the compiler the GNU C compiler?
13331 # The linker used to build libraries.
13334 # Whether we need hard or soft links.
13337 # A BSD-compatible nm program.
13340 # A symbol stripping program
13343 # Used to examine libraries when file_magic_cmd begins "file"
13344 MAGIC_CMD=$MAGIC_CMD
13346 # Used on cygwin: DLL creation program.
13349 # Used on cygwin: object dumper.
13352 # Used on cygwin: assembler.
13355 # The name of the directory that contains temporary libtool files.
13358 # How to create reloadable object files.
13359 reload_flag=$lt_reload_flag
13360 reload_cmds=$lt_reload_cmds
13362 # How to pass a linker flag through the compiler.
13363 wl=$lt_lt_prog_compiler_wl_CXX
13365 # Object file suffix (normally "o").
13366 objext="$ac_objext"
13368 # Old archive suffix (normally "a").
13371 # Shared library suffix (normally ".so").
13372 shrext_cmds='$shrext_cmds'
13374 # Executable file suffix (normally "").
13377 # Additional compiler flags for building library objects.
13378 pic_flag=$lt_lt_prog_compiler_pic_CXX
13381 # What is the maximum length of a command?
13382 max_cmd_len=$lt_cv_sys_max_cmd_len
13384 # Does compiler simultaneously support -c and -o options?
13385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13387 # Must we lock files when doing compilation?
13388 need_locks=$lt_need_locks
13390 # Do we need the lib prefix for modules?
13391 need_lib_prefix=$need_lib_prefix
13393 # Do we need a version for libraries?
13394 need_version=$need_version
13396 # Whether dlopen is supported.
13397 dlopen_support=$enable_dlopen
13399 # Whether dlopen of programs is supported.
13400 dlopen_self=$enable_dlopen_self
13402 # Whether dlopen of statically linked programs is supported.
13403 dlopen_self_static=$enable_dlopen_self_static
13405 # Compiler flag to prevent dynamic linking.
13406 link_static_flag=$lt_lt_prog_compiler_static_CXX
13408 # Compiler flag to turn off builtin functions.
13409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13411 # Compiler flag to allow reflexive dlopens.
13412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13414 # Compiler flag to generate shared objects directly from archives.
13415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13417 # Compiler flag to generate thread-safe objects.
13418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13420 # Library versioning type.
13421 version_type=$version_type
13423 # Format of library name prefix.
13424 libname_spec=$lt_libname_spec
13426 # List of archive names. First name is the real one, the rest are links.
13427 # The last name is the one that the linker finds with -lNAME.
13428 library_names_spec=$lt_library_names_spec
13430 # The coded name of the library, if different from the real name.
13431 soname_spec=$lt_soname_spec
13433 # Commands used to build and install an old-style archive.
13435 old_archive_cmds=$lt_old_archive_cmds_CXX
13436 old_postinstall_cmds=$lt_old_postinstall_cmds
13437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13439 # Create an old-style archive from a shared archive.
13440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13442 # Create a temporary old-style archive to link instead of a shared archive.
13443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13445 # Commands used to build and install a shared archive.
13446 archive_cmds=$lt_archive_cmds_CXX
13447 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13448 postinstall_cmds=$lt_postinstall_cmds
13449 postuninstall_cmds=$lt_postuninstall_cmds
13451 # Commands used to build a loadable module (assumed same as above if empty)
13452 module_cmds=$lt_module_cmds_CXX
13453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13455 # Commands to strip libraries.
13456 old_striplib=$lt_old_striplib
13457 striplib=$lt_striplib
13459 # Dependencies to place before the objects being linked to create a
13461 predep_objects=$lt_predep_objects_CXX
13463 # Dependencies to place after the objects being linked to create a
13465 postdep_objects=$lt_postdep_objects_CXX
13467 # Dependencies to place before the objects being linked to create a
13469 predeps=$lt_predeps_CXX
13471 # Dependencies to place after the objects being linked to create a
13473 postdeps=$lt_postdeps_CXX
13475 # The library search path used internally by the compiler when linking
13476 # a shared library.
13477 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13479 # Method to check whether dependent libraries are shared objects.
13480 deplibs_check_method=$lt_deplibs_check_method
13482 # Command to use when deplibs_check_method == file_magic.
13483 file_magic_cmd=$lt_file_magic_cmd
13485 # Flag that allows shared libraries with undefined symbols to be built.
13486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13488 # Flag that forces no undefined symbols.
13489 no_undefined_flag=$lt_no_undefined_flag_CXX
13491 # Commands used to finish a libtool library installation in a directory.
13492 finish_cmds=$lt_finish_cmds
13494 # Same as above, but a single script fragment to be evaled but not shown.
13495 finish_eval=$lt_finish_eval
13497 # Take the output of nm and produce a listing of raw symbols and C names.
13498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13500 # Transform the output of nm in a proper C declaration
13501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13503 # Transform the output of nm in a C name address pair
13504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13506 # This is the shared library runtime path variable.
13507 runpath_var=$runpath_var
13509 # This is the shared library path variable.
13510 shlibpath_var=$shlibpath_var
13512 # Is shlibpath searched before the hard-coded library search path?
13513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13515 # How to hardcode a shared library path into an executable.
13516 hardcode_action=$hardcode_action_CXX
13518 # Whether we should hardcode library paths into libraries.
13519 hardcode_into_libs=$hardcode_into_libs
13521 # Flag to hardcode \$libdir into a binary during linking.
13522 # This must work even if \$libdir does not exist.
13523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13525 # If ld is used when linking, flag to hardcode \$libdir into
13526 # a binary during linking. This must work even if \$libdir does
13528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13530 # Whether we need a single -rpath flag with a separated argument.
13531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13534 # resulting binary.
13535 hardcode_direct=$hardcode_direct_CXX
13537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13538 # resulting binary.
13539 hardcode_minus_L=$hardcode_minus_L_CXX
13541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13542 # the resulting binary.
13543 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13545 # Set to yes if building a shared library automatically hardcodes DIR into the library
13546 # and all subsequent libraries and executables linked against it.
13547 hardcode_automatic=$hardcode_automatic_CXX
13549 # Variables whose values should be saved in libtool wrapper scripts and
13550 # restored at relink time.
13551 variables_saved_for_relink="$variables_saved_for_relink"
13553 # Whether libtool must link a program against all its dependency libraries.
13554 link_all_deplibs=$link_all_deplibs_CXX
13556 # Compile-time system search path for libraries
13557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13559 # Run-time system search path for libraries
13560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13562 # Fix the shell variable \$srcfile for the compiler.
13563 fix_srcfile_path="$fix_srcfile_path_CXX"
13565 # Set to yes if exported symbols are required.
13566 always_export_symbols=$always_export_symbols_CXX
13568 # The commands to list exported symbols.
13569 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13571 # The commands to extract the exported symbol list from a shared archive.
13572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13574 # Symbols that should not be listed in the preloaded symbols.
13575 exclude_expsyms=$lt_exclude_expsyms_CXX
13577 # Symbols that must always be exported.
13578 include_expsyms=$lt_include_expsyms_CXX
13580 # ### END LIBTOOL TAG CONFIG: $tagname
13586 # If there is no Makefile yet, we rely on a make rule to execute
13587 # `config.status --recheck' to rerun these tests and create the
13588 # libtool script then.
13589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13590 if test -f "$ltmain_in"; then
13591 test -f Makefile && make "$ltmain"
13597 ac_cpp='$CPP $CPPFLAGS'
13598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13606 with_gnu_ldcxx=$with_gnu_ld
13607 with_gnu_ld=$lt_save_with_gnu_ld
13608 lt_cv_path_LDCXX=$lt_cv_path_LD
13609 lt_cv_path_LD=$lt_save_path_LD
13610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13619 # if test -n "$F77" && test "X$F77" != "Xno"; then
13620 # AC_LIBTOOL_LANG_F77_CONFIG
13627 # if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
13628 # AC_LIBTOOL_LANG_GCJ_CONFIG
13635 # AC_LIBTOOL_LANG_RC_CONFIG
13639 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
13640 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
13641 { (exit 1); exit 1; }; }
13645 # Append the new tag name to the list of available tags.
13646 if test -n "$tagname" ; then
13647 available_tags="$available_tags $tagname"
13653 # Now substitute the updated list of available tags.
13654 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
13655 mv "${ofile}T" "$ofile"
13659 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
13660 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
13661 { (exit 1); exit 1; }; }
13667 # This can be used to rebuild libtool when needed
13668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13670 # Always use our own libtool.
13671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13673 # Prevent multiple expansion
13687 all_targets='$(PHP_MODULES)'
13688 install_targets="install-modules install-headers"
13689 phplibdir="`pwd`/modules"
13690 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
13691 CFLAGS_CLEAN='$(CFLAGS)'
13692 CXXFLAGS_CLEAN='$(CXXFLAGS)'
13694 test "$prefix" = "NONE" && prefix="/usr/local"
13695 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
13698 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
13701 PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
13704 PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
13708 PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
13711 PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
13714 PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
13717 PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
13720 PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
13723 PHP_VAR_SUBST="$PHP_VAR_SUBST phpincludedir"
13727 PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
13730 PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
13733 PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
13736 PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
13739 PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
13742 PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
13745 PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
13748 PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
13751 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
13754 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
13757 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
13760 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
13763 PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
13766 PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
13769 PHP_VAR_SUBST="$PHP_VAR_SUBST LDFLAGS"
13772 PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
13775 PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
13778 PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
13781 PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
13785 $php_shtool mkdir -p $BUILD_DIR
13788 cat >Makefile <<EOF
13789 srcdir = $abs_srcdir
13790 builddir = $abs_builddir
13791 top_srcdir = $abs_srcdir
13792 top_builddir = $abs_builddir
13794 for i in $PHP_VAR_SUBST; do
13795 eval echo "$i = \$$i" >> Makefile
13798 cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
13801 test -d modules || $php_shtool mkdir modules
13804 ac_config_headers="$ac_config_headers config.h"
13807 cat >confcache <<\_ACEOF
13808 # This file is a shell script that caches the results of configure
13809 # tests run on this system so they can be shared between configure
13810 # scripts and configure runs, see configure's option --config-cache.
13811 # It is not useful on other systems. If it contains results you don't
13812 # want to keep, you may remove or edit it.
13814 # config.status only pays attention to the cache file if you give it
13815 # the --recheck option to rerun configure.
13817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13819 # following values.
13823 # The following way of writing the cache mishandles newlines in values,
13824 # but we know of no workaround that is simple, portable, and efficient.
13825 # So, we kill variables containing newlines.
13826 # Ultrix sh set writes to stderr and can't be redirected directly,
13827 # and sets the high bit in the cache file unless we assign to the vars.
13829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13830 eval ac_val=\$$ac_var
13834 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13835 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13838 _ | IFS | as_nl) ;; #(
13839 *) $as_unset $ac_var ;;
13845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13846 *${as_nl}ac_space=\ *)
13847 # `set' does not quote correctly, so add quotes (double-quote
13848 # substitution turns \\\\ into \\, and sed turns \\ into \).
13851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13854 # `set' quotes correctly as required by POSIX, so do not add quotes.
13855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13869 if test -w "$cache_file"; then
13870 test "x$cache_file" != "x/dev/null" &&
13871 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13872 echo "$as_me: updating cache $cache_file" >&6;}
13873 cat confcache >$cache_file
13875 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13876 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13882 # Let make expand exec_prefix.
13883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13885 DEFS=-DHAVE_CONFIG_H
13889 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13890 # 1. Remove the extension, and $U if already installed.
13891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13892 ac_i=`echo "$ac_i" | sed "$ac_script"`
13893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13894 # will be set to the directory where LIBOBJS objects are built.
13895 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13896 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13898 LIB@&t@OBJS=$ac_libobjs
13900 LTLIBOBJS=$ac_ltlibobjs
13904 : ${CONFIG_STATUS=./config.status}
13905 ac_clean_files_save=$ac_clean_files
13906 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13907 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13908 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13909 cat >$CONFIG_STATUS <<_ACEOF
13911 # Generated by $as_me.
13912 # Run this file to recreate the current configuration.
13913 # Compiler output produced by configure, useful for debugging
13914 # configure, is in config.log if it exists.
13917 ac_cs_recheck=false
13919 SHELL=\${CONFIG_SHELL-$SHELL}
13922 cat >>$CONFIG_STATUS <<\_ACEOF
13923 ## --------------------- ##
13924 ## M4sh Initialization. ##
13925 ## --------------------- ##
13927 # Be more Bourne compatible
13928 DUALCASE=1; export DUALCASE # for MKS sh
13929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13932 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13933 # is contrary to our usage. Disable this feature.
13934 alias -g '${1+"$@"}'='"$@"'
13935 setopt NO_GLOB_SUBST
13937 case `(set -o) 2>/dev/null` in
13938 *posix*) set -o posix ;;
13947 # Avoid depending upon Character Ranges.
13948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13951 as_cr_digits='0123456789'
13952 as_cr_alnum=$as_cr_Letters$as_cr_digits
13954 # The user is always right.
13955 if test "${PATH_SEPARATOR+set}" != set; then
13956 echo "#! /bin/sh" >conf$$.sh
13957 echo "exit 0" >>conf$$.sh
13959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13967 # Support unset when possible.
13968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13976 # We need space, tab and new line, in precisely that order. Quoting is
13977 # there to prevent editors from complaining about space-tab.
13978 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13979 # splitting by setting IFS to empty value.)
13984 # Find who we are. Look in the path if we contain no directory separator.
13986 *[\\/]* ) as_myself=$0 ;;
13987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13988 for as_dir in $PATH
13991 test -z "$as_dir" && as_dir=.
13992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13998 # We did not find ourselves, most probably we were run as `sh COMMAND'
13999 # in which case we are not to be found in the path.
14000 if test "x$as_myself" = x; then
14003 if test ! -f "$as_myself"; then
14004 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14005 { (exit 1); exit 1; }
14008 # Work around bugs in pre-3.0 UWIN ksh.
14009 for as_var in ENV MAIL MAILPATH
14010 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14020 LC_TELEPHONE LC_TIME
14022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14023 eval $as_var=C; export $as_var
14025 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14029 # Required to use basename.
14030 if expr a : '\(a\)' >/dev/null 2>&1 &&
14031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14038 as_basename=basename
14044 # Name of the executable.
14045 as_me=`$as_basename -- "$0" ||
14046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14047 X"$0" : 'X\(//\)$' \| \
14048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14050 sed '/^.*\/\([^/][^/]*\)\/*$/{
14069 as_lineno_1=$LINENO
14070 as_lineno_2=$LINENO
14071 test "x$as_lineno_1" != "x$as_lineno_2" &&
14072 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14075 # uniformly replaced by the line number. The first 'sed' inserts a
14076 # line-number line after each line using $LINENO; the second 'sed'
14077 # does the real work. The second script uses 'N' to pair each
14078 # line-number line with the line containing $LINENO, and appends
14079 # trailing '-' during substitution so that $LINENO is not a special
14080 # case at line end.
14081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14082 # scripts with optimization help from Paolo Bonzini. Blame Lee
14083 # E. McMahon (1931-1989) for sed's syntax. :-)
14095 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14098 ' >$as_me.lineno &&
14099 chmod +x "$as_me.lineno" ||
14100 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14101 { (exit 1); exit 1; }; }
14103 # Don't try to exec as it changes $[0], causing all sort of problems
14104 # (the dirname of $[0] is not the place where we might find the
14105 # original and so on. Autoconf is especially sensitive to this).
14106 . "./$as_me.lineno"
14107 # Exit status is that of the last command.
14112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14118 ECHO_C= ECHO_N= ECHO_T=
14119 case `echo -n x` in
14121 case `echo 'x\c'` in
14122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14129 if expr a : '\(a\)' >/dev/null 2>&1 &&
14130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14136 rm -f conf$$ conf$$.exe conf$$.file
14137 if test -d conf$$.dir; then
14138 rm -f conf$$.dir/conf$$.file
14144 if ln -s conf$$.file conf$$ 2>/dev/null; then
14146 # ... but there are two gotchas:
14147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14149 # In both cases, we have to default to `cp -p'.
14150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14152 elif ln conf$$.file conf$$ 2>/dev/null; then
14157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14158 rmdir conf$$.dir 2>/dev/null
14160 if mkdir -p . 2>/dev/null; then
14163 test -d ./-p && rmdir ./-p
14167 if test -x / >/dev/null 2>&1; then
14168 as_test_x='test -x'
14170 if ls -dL / >/dev/null 2>&1; then
14177 if test -d "$1"; then
14183 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14184 ???[sx]*):;;*)false;;esac;fi
14188 as_executable_p=$as_test_x
14190 # Sed expression to map a string onto a valid CPP name.
14191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14193 # Sed expression to map a string onto a valid variable name.
14194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14199 # Save the log message, to keep $[0] and so on meaningful, and to
14200 # report actual input values of CONFIG_FILES etc. instead of their
14201 # values after options handling.
14203 This file was extended by $as_me, which was
14204 generated by GNU Autoconf 2.61. Invocation command line was
14206 CONFIG_FILES = $CONFIG_FILES
14207 CONFIG_HEADERS = $CONFIG_HEADERS
14208 CONFIG_LINKS = $CONFIG_LINKS
14209 CONFIG_COMMANDS = $CONFIG_COMMANDS
14212 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14217 cat >>$CONFIG_STATUS <<_ACEOF
14218 # Files that config.status was made for.
14219 config_headers="$ac_config_headers"
14223 cat >>$CONFIG_STATUS <<\_ACEOF
14225 \`$as_me' instantiates files from templates according to the
14226 current configuration.
14228 Usage: $0 [OPTIONS] [FILE]...
14230 -h, --help print this help, then exit
14231 -V, --version print version number and configuration settings, then exit
14232 -q, --quiet do not print progress messages
14233 -d, --debug don't remove temporary files
14234 --recheck update $as_me by reconfiguring in the same conditions
14235 --header=FILE[:TEMPLATE]
14236 instantiate the configuration header FILE
14238 Configuration headers:
14241 Report bugs to <bug-autoconf@gnu.org>."
14244 cat >>$CONFIG_STATUS <<_ACEOF
14247 configured by $0, generated by GNU Autoconf 2.61,
14248 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14250 Copyright (C) 2006 Free Software Foundation, Inc.
14251 This config.status script is free software; the Free Software Foundation
14252 gives unlimited permission to copy, distribute and modify it."
14258 cat >>$CONFIG_STATUS <<\_ACEOF
14259 # If no file are specified by the user, then we need to provide default
14260 # value. By we need to know if files were specified by the user.
14266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14278 # Handling of the options.
14279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14282 echo "$ac_cs_version"; exit ;;
14283 --debug | --debu | --deb | --de | --d | -d )
14285 --header | --heade | --head | --hea )
14287 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14288 ac_need_defaults=false;;
14290 # Conflict between --help and --header
14291 { echo "$as_me: error: ambiguous option: $1
14292 Try \`$0 --help' for more information." >&2
14293 { (exit 1); exit 1; }; };;
14294 --help | --hel | -h )
14295 echo "$ac_cs_usage"; exit ;;
14296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14300 # This is an error.
14301 -*) { echo "$as_me: error: unrecognized option: $1
14302 Try \`$0 --help' for more information." >&2
14303 { (exit 1); exit 1; }; } ;;
14305 *) ac_config_targets="$ac_config_targets $1"
14306 ac_need_defaults=false ;;
14312 ac_configure_extra_args=
14314 if $ac_cs_silent; then
14316 ac_configure_extra_args="$ac_configure_extra_args --silent"
14320 cat >>$CONFIG_STATUS <<_ACEOF
14321 if \$ac_cs_recheck; then
14322 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14323 CONFIG_SHELL=$SHELL
14324 export CONFIG_SHELL
14325 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14333 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
14334 @%:@@%:@ Running $as_me. @%:@@%:@
14340 cat >>$CONFIG_STATUS <<_ACEOF
14343 cat >>$CONFIG_STATUS <<\_ACEOF
14345 # Handling of arguments.
14346 for ac_config_target in $ac_config_targets
14348 case $ac_config_target in
14349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14352 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14353 { (exit 1); exit 1; }; };;
14358 # If the user did not use the arguments to specify the items to instantiate,
14359 # then the envvar interface is used. Set only those that are not.
14360 # We use the long form for the default assignment because of an extremely
14361 # bizarre bug on SunOS 4.1.3.
14362 if $ac_need_defaults; then
14363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14366 # Have a temporary directory for convenience. Make it in the build tree
14367 # simply because there is no reason against having it here, and in addition,
14368 # creating and moving files from /tmp can sometimes cause problems.
14369 # Hook for its removal unless debugging.
14370 # Note that there is a small window in which the directory will not be cleaned:
14371 # after its creation but before its name has been assigned to `$tmp'.
14375 trap 'exit_status=$?
14376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14378 trap '{ (exit 1); exit 1; }' 1 2 13 15
14380 # Create a (secure) tmp directory for tmp files.
14383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14384 test -n "$tmp" && test -d "$tmp"
14387 tmp=./conf$$-$RANDOM
14388 (umask 077 && mkdir "$tmp")
14391 echo "$me: cannot create a temporary directory in ." >&2
14392 { (exit 1); exit 1; }
14396 for ac_tag in :H $CONFIG_HEADERS
14399 :[FHLC]) ac_mode=$ac_tag; continue;;
14401 case $ac_mode$ac_tag in
14403 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14404 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14405 { (exit 1); exit 1; }; };;
14406 :[FH]-) ac_tag=-:-;;
14407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14424 -) ac_f="$tmp/stdin";;
14425 *) # Look for the file first in the build tree, then in the source tree
14426 # (if the path is not absolute). The absolute path cannot be DOS-style,
14427 # because $ac_f cannot contain `:'.
14431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14433 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14434 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14435 { (exit 1); exit 1; }; };;
14437 ac_file_inputs="$ac_file_inputs $ac_f"
14440 # Let's still pretend it is `configure' which instantiates (i.e., don't
14441 # use $as_me), people would be surprised to read:
14442 # /* config.h. Generated by config.status. */
14443 configure_input="Generated from "`IFS=:
14444 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14445 if test x"$ac_file" != x-; then
14446 configure_input="$ac_file. $configure_input"
14447 { echo "$as_me:$LINENO: creating $ac_file" >&5
14448 echo "$as_me: creating $ac_file" >&6;}
14452 *:-:* | *:-) cat >"$tmp/stdin";;
14457 ac_dir=`$as_dirname -- "$ac_file" ||
14458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14459 X"$ac_file" : 'X\(//\)[^/]' \| \
14460 X"$ac_file" : 'X\(//\)$' \| \
14461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14467 /^X\(\/\/\)[^/].*/{
14482 -*) as_dir=./$as_dir;;
14484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14489 *) as_qdir=$as_dir;;
14491 as_dirs="'$as_qdir' $as_dirs"
14492 as_dir=`$as_dirname -- "$as_dir" ||
14493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14494 X"$as_dir" : 'X\(//\)[^/]' \| \
14495 X"$as_dir" : 'X\(//\)$' \| \
14496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14502 /^X\(\/\/\)[^/].*/{
14515 test -d "$as_dir" && break
14517 test -z "$as_dirs" || eval "mkdir $as_dirs"
14518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14520 { (exit 1); exit 1; }; }; }
14524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14527 # A ".." for each directory in $ac_dir_suffix.
14528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14529 case $ac_top_builddir_sub in
14530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14534 ac_abs_top_builddir=$ac_pwd
14535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14536 # for backward compatibility:
14537 ac_top_builddir=$ac_top_build_prefix
14540 .) # We are building in place.
14542 ac_top_srcdir=$ac_top_builddir_sub
14543 ac_abs_top_srcdir=$ac_pwd ;;
14544 [\\/]* | ?:[\\/]* ) # Absolute name.
14545 ac_srcdir=$srcdir$ac_dir_suffix;
14546 ac_top_srcdir=$srcdir
14547 ac_abs_top_srcdir=$srcdir ;;
14548 *) # Relative name.
14549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14550 ac_top_srcdir=$ac_top_build_prefix$srcdir
14551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14564 # Transform confdefs.h into a sed script `conftest.defines', that
14565 # substitutes the proper values into config.h.in to produce config.h.
14566 rm -f conftest.defines conftest.tail
14567 # First, append a space to every undef/define line, to ease matching.
14568 echo 's/$/ /' >conftest.defines
14569 # Then, protect against being on the right side of a sed subst, or in
14570 # an unquoted here document, in config.status. If some macros were
14571 # called several times there might be several #defines for the same
14572 # symbol, which is useless. But do not sort them, since the last
14573 # AC_DEFINE must be honored.
14574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14577 # PARAMS is the parameter list in the macro definition--in most cases, it's
14578 # just an empty string.
14579 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14580 ac_dB='\\)[ (].*,\\1define\\2'
14588 s/^[ ]*#[ ]*define[ ][ ]*//
14593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14595 ' >>conftest.defines
14597 # Remove the space that was appended to ease matching.
14598 # Then replace #undef with comments. This is necessary, for
14599 # example, in the case of _POSIX_SOURCE, which is predefined and required
14600 # on some systems where configure will not decide to define it.
14601 # (The regexp can be short, since the line contains either #define or #undef.)
14603 s,^[ #]*u.*,/* & */,' >>conftest.defines
14605 # Break up conftest.defines:
14606 ac_max_sed_lines=50
14608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14612 ac_in='$ac_file_inputs'
14613 ac_out='"$tmp/out1"'
14614 ac_nxt='"$tmp/out2"'
14618 # Write a here document:
14619 cat >>$CONFIG_STATUS <<_ACEOF
14620 # First, check the format of the line:
14621 cat >"\$tmp/defines.sed" <<\\CEOF
14622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14632 grep . conftest.tail >/dev/null || break
14633 rm -f conftest.defines
14634 mv conftest.tail conftest.defines
14636 rm -f conftest.defines conftest.tail
14638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14639 cat >>$CONFIG_STATUS <<\_ACEOF
14640 if test x"$ac_file" != x-; then
14641 echo "/* $configure_input */" >"$tmp/config.h"
14642 cat "$ac_result" >>"$tmp/config.h"
14643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14645 echo "$as_me: $ac_file is unchanged" >&6;}
14648 mv "$tmp/config.h" $ac_file
14651 echo "/* $configure_input */"
14663 { (exit 0); exit 0; }
14665 chmod +x $CONFIG_STATUS
14666 ac_clean_files=$ac_clean_files_save
14669 # configure is writing to config.log, and then calls config.status.
14670 # config.status does its own redirection, appending to config.log.
14671 # Unfortunately, on DOS this fails, as config.log is still kept open
14672 # by configure, so config.status won't be able to write to it; its
14673 # output is simply discarded. So we exec the FD to /dev/null,
14674 # effectively closing config.log, so it can be properly (re)opened and
14675 # appended to by config.status. When coming back to configure, we
14676 # need to make the FD available again.
14677 if test "$no_create" != yes; then
14679 ac_config_status_args=
14680 test "$silent" = yes &&
14681 ac_config_status_args="$ac_config_status_args --quiet"
14683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14686 # would make configure fail if this is the last instruction.
14687 $ac_cs_success || { (exit 1); exit 1; }