2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 1.0.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='mod_chxj'
728 PACKAGE_TARNAME='mod_chxj'
729 PACKAGE_VERSION='1.0.0'
730 PACKAGE_STRING='mod_chxj 1.0.0'
733 ac_unique_file="src/mod_chxj.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
833 INSTALL_STRIP_PROGRAM
890 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name=s,x,x,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014 eval enable_$ac_feature=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1197 -site=* | --site=* | --sit=*)
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1224 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269 { (exit 1); exit 1; }; }
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 { echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1290 # Be sure to have absolute directory names.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302 { (exit 1); exit 1; }; }
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used." >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 { echo "$as_me: error: Working directory cannot be determined" >&2
1333 { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 { echo "$as_me: error: pwd does not report name of working directory" >&2
1336 { (exit 1); exit 1; }; }
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$0" : 'X\(//\)[^/]' \| \
1346 X"$0" : 'X\(//\)$' \| \
1347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376 { (exit 1); exit 1; }; }
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381 { (exit 1); exit 1; }; }
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures mod_chxj 1.0.0 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of mod_chxj 1.0.0:";;
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --disable-dependency-tracking speeds up one-time build
1486 --enable-dependency-tracking do not reject slow dependency extractors
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1493 source by the automatic operation.
1494 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1502 --with-tags[=TAGS] include additional configurations [automatic]
1503 --with-apache-header=ARG The directory with the header file of apache2.x is specified.
1504 --with-apxs=ARG Path of apxs program file.
1505 --with-apr-config=ARG Path of apr-config program file.
1506 --with-apu-config=ARG Path of apu-config program file.
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1517 CXX C++ compiler command
1518 CXXFLAGS C++ compiler flags
1519 CXXCPP C++ preprocessor
1520 F77 Fortran 77 compiler command
1521 FFLAGS Fortran 77 compiler flags
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 mod_chxj configure 1.0.0
1587 generated by GNU Autoconf 2.61
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by mod_chxj $as_me 1.0.0, which was
1601 generated by GNU Autoconf 2.61. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1957 if test -f "$ac_dir/install-sh"; then
1959 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 elif test -f "$ac_dir/install.sh"; then
1963 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 elif test -f "$ac_dir/shtool"; then
1967 ac_install_sh="$ac_aux_dir/shtool install -c"
1971 if test -z "$ac_aux_dir"; then
1972 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1974 { (exit 1); exit 1; }; }
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986 # Make sure we can run config.sub.
1987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1988 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1989 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1990 { (exit 1); exit 1; }; }
1992 { echo "$as_me:$LINENO: checking build system type" >&5
1993 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1994 if test "${ac_cv_build+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 ac_build_alias=$build_alias
1998 test "x$ac_build_alias" = x &&
1999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2000 test "x$ac_build_alias" = x &&
2001 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2002 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2003 { (exit 1); exit 1; }; }
2004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2005 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2007 { (exit 1); exit 1; }; }
2010 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2011 echo "${ECHO_T}$ac_cv_build" >&6; }
2012 case $ac_cv_build in
2014 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2015 echo "$as_me: error: invalid value of canonical build" >&2;}
2016 { (exit 1); exit 1; }; };;
2019 ac_save_IFS=$IFS; IFS='-'
2025 # Remember, the first character of IFS is used to create $*,
2026 # except with old shells:
2029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2032 { echo "$as_me:$LINENO: checking host system type" >&5
2033 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2034 if test "${ac_cv_host+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test "x$host_alias" = x; then
2038 ac_cv_host=$ac_cv_build
2040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2041 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2042 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2047 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2048 echo "${ECHO_T}$ac_cv_host" >&6; }
2051 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2052 echo "$as_me: error: invalid value of canonical host" >&2;}
2053 { (exit 1); exit 1; }; };;
2056 ac_save_IFS=$IFS; IFS='-'
2062 # Remember, the first character of IFS is used to create $*,
2063 # except with old shells:
2066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2069 { echo "$as_me:$LINENO: checking target system type" >&5
2070 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_target+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test "x$target_alias" = x; then
2075 ac_cv_target=$ac_cv_host
2077 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2078 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2079 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2080 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2085 echo "${ECHO_T}$ac_cv_target" >&6; }
2086 case $ac_cv_target in
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2089 echo "$as_me: error: invalid value of canonical target" >&2;}
2090 { (exit 1); exit 1; }; };;
2092 target=$ac_cv_target
2093 ac_save_IFS=$IFS; IFS='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2106 # The aliases save the names the user supplied, while $host etc.
2107 # will get canonicalized.
2108 test -n "$target_alias" &&
2109 test "$program_prefix$program_suffix$program_transform_name" = \
2111 program_prefix=${target_alias}-
2112 am__api_version='1.10'
2114 # Find a good install program. We prefer a C program (faster),
2115 # so one script is as good as another. But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2121 # AmigaOS /C/install, which installs bootblocks on floppy discs
2122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125 # OS/2's system install, which has a completely different semantic
2126 # ./install, which can be erroneously created by make from ./install.sh.
2127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 # Account for people who put trailing slashes in PATH elements.
2140 ./ | .// | /cC/* | \
2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2173 if test "${ac_cv_path_install+set}" = set; then
2174 INSTALL=$ac_cv_path_install
2176 # As a last resort, use the slow shell script. Don't cache a
2177 # value for INSTALL within a source directory, because that will
2178 # break other packages using the cache if that directory is
2179 # removed, or if the value is a relative name.
2180 INSTALL=$ac_install_sh
2183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 echo "${ECHO_T}$INSTALL" >&6; }
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments. Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2205 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206 if test "$*" = "X"; then
2208 set X `ls -t $srcdir/configure conftest.file`
2211 if test "$*" != "X $srcdir/configure conftest.file" \
2212 && test "$*" != "X conftest.file $srcdir/configure"; then
2214 # If neither matched, then we have a broken ls. This can happen
2215 # if, for instance, CONFIG_SHELL is bash and it inherits a
2216 # broken ls alias from the environment. This has actually
2217 # happened. Such a system could not be considered "sane".
2218 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2219 alias in your environment" >&5
2220 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2221 alias in your environment" >&2;}
2222 { (exit 1); exit 1; }; }
2225 test "$2" = conftest.file
2231 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $. echo might interpret backslashes.
2245 # By default was `s,x,x', remove it if useless.
2246 cat <<\_ACEOF >conftest.sed
2247 s/[\\$]/&&/g;s/;s,x,x,$//
2249 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2255 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256 # Use eval to expand $SHELL
2257 if eval "$MISSING --run true"; then
2258 am_missing_run="$MISSING --run "
2261 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2266 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2267 if test -z "$MKDIR_P"; then
2268 if test "${ac_cv_path_mkdir+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2275 test -z "$as_dir" && as_dir=.
2276 for ac_prog in mkdir gmkdir; do
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2279 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2280 'mkdir (GNU coreutils) '* | \
2281 'mkdir (coreutils) '* | \
2282 'mkdir (fileutils) '4.1*)
2283 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2293 if test "${ac_cv_path_mkdir+set}" = set; then
2294 MKDIR_P="$ac_cv_path_mkdir -p"
2296 # As a last resort, use the slow shell script. Don't cache a
2297 # value for MKDIR_P within a source directory, because that will
2298 # break other packages using the cache if that directory is
2299 # removed, or if the value is a relative name.
2300 test -d ./--version && rmdir ./--version
2301 MKDIR_P="$ac_install_sh -d"
2304 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2305 echo "${ECHO_T}$MKDIR_P" >&6; }
2309 [\\/$]* | ?:[\\/]*) ;;
2310 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2313 for ac_prog in gawk mawk nawk awk
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_AWK+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$AWK"; then
2323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_AWK="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$AWK"; then
2344 { echo "$as_me:$LINENO: result: $AWK" >&5
2345 echo "${ECHO_T}$AWK" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2352 test -n "$AWK" && break
2355 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2356 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2357 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.make <<\_ACEOF
2364 @echo '@@@%%%=$(MAKE)=@@@%%%'
2366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2369 eval ac_cv_prog_make_${ac_make}_set=yes;;
2371 eval ac_cv_prog_make_${ac_make}_set=no;;
2375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2376 { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 SET_MAKE="MAKE=${MAKE-make}"
2385 rm -rf .tst 2>/dev/null
2386 mkdir .tst 2>/dev/null
2387 if test -d .tst; then
2392 rmdir .tst 2>/dev/null
2394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2396 # is not polluted with repeated "-I."
2397 am__isrc=' -I$(srcdir)'
2398 # test to see if srcdir already configured
2399 if test -f $srcdir/config.status; then
2400 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2401 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2402 { (exit 1); exit 1; }; }
2406 # test whether we have cygpath
2407 if test -z "$CYGPATH_W"; then
2408 if (cygpath --version) >/dev/null 2>/dev/null; then
2409 CYGPATH_W='cygpath -w'
2416 # Define the identity of the package.
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE "$PACKAGE"
2426 cat >>confdefs.h <<_ACEOF
2427 #define VERSION "$VERSION"
2430 # Some tools Automake needs.
2432 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2438 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2441 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2446 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2448 # Installed binaries are usually stripped using `strip' when the user
2449 # run `make install-strip'. However `strip' might not be the right
2450 # tool to use in cross-compilation environments, therefore Automake
2451 # will honor the `STRIP' environment variable to overrule this program.
2452 if test "$cross_compiling" != no; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}strip; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_STRIP+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$STRIP"; then
2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483 { echo "$as_me:$LINENO: result: $STRIP" >&5
2484 echo "${ECHO_T}$STRIP" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2492 if test -z "$ac_cv_prog_STRIP"; then
2494 # Extract the first word of "strip", so it can be a program name with args.
2495 set dummy strip; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$ac_ct_STRIP"; then
2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_ac_ct_STRIP="strip"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2522 if test -n "$ac_ct_STRIP"; then
2523 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2524 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2530 if test "x$ac_ct_STRIP" = x; then
2533 case $cross_compiling:$ac_tool_warned in
2535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&5
2538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2541 ac_tool_warned=yes ;;
2546 STRIP="$ac_cv_prog_STRIP"
2550 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2552 # We need awk for the "check" target. The system "awk" is bad on
2554 # Always define AMTAR for backward compatibility.
2556 AMTAR=${AMTAR-"${am_missing_run}tar"}
2558 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564 ac_config_headers="$ac_config_headers include/config.h"
2568 # Checks for programs.
2569 DEPDIR="${am__leading_dot}deps"
2571 ac_config_commands="$ac_config_commands depfiles"
2574 am_make=${MAKE-make}
2575 cat > confinc << 'END'
2580 # If we don't find an include directive, just comment out the code.
2581 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2582 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2586 # First try GNU make style include.
2587 echo "include confinc" > confmf
2588 # We grep out `Entering directory' and `Leaving directory'
2589 # messages which can occur if `w' ends up in MAKEFLAGS.
2590 # In particular we don't look at `^make:' because GNU make might
2591 # be invoked under some other name (usually "gmake"), in which
2592 # case it prints its new name instead of `make'.
2593 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2598 # Now try BSD make style include.
2599 if test "$am__include" = "#"; then
2600 echo '.include "confinc"' > confmf
2601 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2602 am__include=.include
2609 { echo "$as_me:$LINENO: result: $_am_result" >&5
2610 echo "${ECHO_T}$_am_result" >&6; }
2611 rm -f confinc confmf
2613 # Check whether --enable-dependency-tracking was given.
2614 if test "${enable_dependency_tracking+set}" = set; then
2615 enableval=$enable_dependency_tracking;
2618 if test "x$enable_dependency_tracking" != xno; then
2619 am_depcomp="$ac_aux_dir/depcomp"
2622 if test "x$enable_dependency_tracking" != xno; then
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2675 if test -z "$ac_cv_prog_CC"; then
2677 # Extract the first word of "gcc", so it can be a program name with args.
2678 set dummy gcc; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$ac_ct_CC"; then
2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_CC="gcc"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705 if test -n "$ac_ct_CC"; then
2706 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2707 echo "${ECHO_T}$ac_ct_CC" >&6; }
2709 { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2713 if test "x$ac_ct_CC" = x; then
2716 case $cross_compiling:$ac_tool_warned in
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2732 if test -z "$CC"; then
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}cc; ac_word=$2
2736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_CC="${ac_tool_prefix}cc"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 { echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6; }
2766 { echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6; }
2773 if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc; ac_word=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793 ac_prog_rejected=yes
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test $ac_prog_rejected = yes; then
2805 # We found a bogon in the path, so make sure we never use it.
2806 set dummy $ac_cv_prog_CC
2808 if test $# != 0; then
2809 # We chose a different compiler from the bogus one.
2810 # However, it has the same basename, so the bogon will be chosen
2811 # first if we set CC to just the basename; use the full file name.
2813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819 if test -n "$CC"; then
2820 { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 for ac_prog in cl.exe
2833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test -n "$CC"; then
2862 { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2870 test -n "$CC" && break
2873 if test -z "$CC"; then
2875 for ac_prog in cl.exe
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="$ac_prog"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6; }
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2914 test -n "$ac_ct_CC" && break
2917 if test "x$ac_ct_CC" = x; then
2920 case $cross_compiling:$ac_tool_warned in
2922 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2923 whose name does not start with the host triplet. If you think this
2924 configuration is useful to you, please write to autoconf@gnu.org." >&5
2925 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2926 whose name does not start with the host triplet. If you think this
2927 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2928 ac_tool_warned=yes ;;
2937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2938 See \`config.log' for more details." >&5
2939 echo "$as_me: error: no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details." >&2;}
2941 { (exit 1); exit 1; }; }
2943 # Provide some information about the compiler.
2944 echo "$as_me:$LINENO: checking for C compiler version" >&5
2945 ac_compiler=`set X $ac_compile; echo $2`
2946 { (ac_try="$ac_compiler --version >&5"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compiler --version >&5") 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }
2956 { (ac_try="$ac_compiler -v >&5"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compiler -v >&5") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (ac_try="$ac_compiler -V >&5"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compiler -V >&5") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2992 ac_clean_files_save=$ac_clean_files
2993 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2994 # Try to create an executable without -o first, disregard a.out.
2995 # It will help us diagnose broken compilers, and finding out an intuition
2997 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2998 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2999 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3001 # List of possible output files, starting from the most likely.
3002 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3003 # only as a last resort. b.out is created by i960 compilers.
3004 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3006 # The IRIX 6 linker writes into existing files which may not be
3007 # executable, retaining their permissions. Remove them first so a
3008 # subsequent execution test works.
3010 for ac_file in $ac_files
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3014 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3019 if { (ac_try="$ac_link_default"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_link_default") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; then
3029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3034 for ac_file in $ac_files ''
3036 test -f "$ac_file" || continue
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3041 # We found the default executable, but exeext='' is most
3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 # We set ac_cv_exeext here because the later test for it is not
3050 # safe: cross compilers may not add the suffix if given an `-o'
3051 # argument, so we may need to know it at that point already.
3052 # Even if this section looks crufty: it has the advantage of
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3065 { echo "$as_me:$LINENO: result: $ac_file" >&5
3066 echo "${ECHO_T}$ac_file" >&6; }
3067 if test -z "$ac_file"; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: C compiler cannot create executables
3074 See \`config.log' for more details." >&2;}
3075 { (exit 77); exit 77; }; }
3078 ac_exeext=$ac_cv_exeext
3080 # Check that the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3085 # If not cross compiling, check that we can run a simple program.
3086 if test "$cross_compiling" != yes; then
3087 if { ac_try='./$ac_file'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 if test "$cross_compiling" = maybe; then
3102 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3103 If you meant to cross compile, use \`--host'.
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 { echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6; }
3115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3116 ac_clean_files=$ac_clean_files_save
3117 # Check that the compiler produces executables we can run. If not, either
3118 # the compiler is broken, or we cross compile.
3119 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3121 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3122 echo "${ECHO_T}$cross_compiling" >&6; }
3124 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3126 if { (ac_try="$ac_link"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_link") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; then
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details." >&2;}
3154 { (exit 1); exit 1; }; }
3157 rm -f conftest$ac_cv_exeext
3158 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3159 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3161 rm -f conftest.$ac_ext
3162 EXEEXT=$ac_cv_exeext
3164 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3166 if test "${ac_cv_objext+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3184 rm -f conftest.o conftest.obj
3185 if { (ac_try="$ac_compile"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; then
3195 for ac_file in conftest.o conftest.obj conftest.*; do
3196 test -f "$ac_file" || continue;
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3217 echo "${ECHO_T}$ac_cv_objext" >&6; }
3218 OBJEXT=$ac_cv_objext
3220 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3221 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3222 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3274 GCC=`test $ac_compiler_gnu = yes && echo yes`
3275 ac_test_CFLAGS=${CFLAGS+set}
3276 ac_save_CFLAGS=$CFLAGS
3277 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3278 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3279 if test "${ac_cv_prog_cc_g+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_save_c_werror_flag=$ac_c_werror_flag
3283 ac_c_werror_flag=yes
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3301 rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3378 rm -f conftest.$ac_objext
3379 if { (ac_try="$ac_compile"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compile") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3412 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3423 if test "$GCC" = yes; then
3429 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3430 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3431 if test "${ac_cv_prog_cc_c89+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 ac_cv_prog_cc_c89=no
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3460 s = g (p, va_arg (v,int));
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std. */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475 inside strings and character constants. */
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 CC="$ac_save_CC $ac_arg"
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cc_c89=$ac_arg
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 rm -f conftest.$ac_ext
3530 case "x$ac_cv_prog_cc_c89" in
3532 { echo "$as_me:$LINENO: result: none needed" >&5
3533 echo "${ECHO_T}none needed" >&6; } ;;
3535 { echo "$as_me:$LINENO: result: unsupported" >&5
3536 echo "${ECHO_T}unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3540 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 depcc="$CC" am_compiler_list=
3552 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3554 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558 # We make a subdir and do the tests there. Otherwise we can end up
3559 # making bogus files that we don't know about and never remove. For
3560 # instance it was reported that on HP-UX the gcc test will end up
3561 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # Copy depcomp to subdir because otherwise we won't find it if we're
3565 # using a relative directory.
3566 cp "$am_depcomp" conftest.dir
3568 # We will build objects and dependencies in a subdirectory because
3569 # it helps to detect inapplicable dependency modes. For instance
3570 # both Tru64's cc and ICC support -MD to output dependencies as a
3571 # side effect of compilation, but ICC will put the dependencies in
3572 # the current directory while Tru64 will put them in the object
3576 am_cv_CC_dependencies_compiler_type=none
3577 if test "$am_compiler_list" = ""; then
3578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580 for depmode in $am_compiler_list; do
3581 # Setup a source with many dependencies, because some compilers
3582 # like to wrap large dependency lists on column 80 (with \), and
3583 # we should not choose a depcomp mode which is confused by this.
3585 # We need to recreate these files for each test, as the compiler may
3586 # overwrite some of them when testing with obscure command lines.
3587 # This happens at least with the AIX C compiler.
3589 for i in 1 2 3 4 5 6; do
3590 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3592 # Solaris 8's {/usr,}/bin/sh.
3593 touch sub/conftst$i.h
3595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3599 # after this tag, mechanisms are not by side-effect, so they'll
3600 # only be used when explicitly requested
3601 if test "x$enable_dependency_tracking" = xyes; then
3609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3610 # mode. It turns out that the SunPro C++ compiler does not properly
3611 # handle `-M -o', and we need to detect this.
3612 if depmode=$depmode \
3613 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3615 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3616 >/dev/null 2>conftest.err &&
3617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3619 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3621 # icc doesn't choke on unknown options, it will just issue warnings
3622 # or remarks (even with -Werror). So we grep stderr for any message
3623 # that says an option was ignored or not supported.
3624 # When given -MP, icc 7.0 and 7.1 complain thusly:
3625 # icc: Command line warning: ignoring option '-M'; no argument required
3626 # The diagnosis changed in icc 8.0:
3627 # icc: Command line remark: option '-MP' not supported
3628 if (grep 'ignoring option' conftest.err ||
3629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3630 am_cv_CC_dependencies_compiler_type=$depmode
3639 am_cv_CC_dependencies_compiler_type=none
3643 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3644 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3648 test "x$enable_dependency_tracking" != xno \
3649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3651 am__fastdepCC_FALSE='#'
3653 am__fastdepCC_TRUE='#'
3654 am__fastdepCC_FALSE=
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3664 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3669 if test -z "$CPP"; then
3670 if test "${ac_cv_prog_CPP+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3692 # include <limits.h>
3694 # include <assert.h>
3698 if { (ac_try="$ac_cpp conftest.$ac_ext"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null && {
3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 # Broken: fails on valid input.
3723 rm -f conftest.err conftest.$ac_ext
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3735 if { (ac_try="$ac_cpp conftest.$ac_ext"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3743 grep -v '^ *+' conftest.er1 >conftest.err
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } >/dev/null && {
3748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3751 # Broken: success on invalid input.
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 # Passes both tests.
3762 rm -f conftest.err conftest.$ac_ext
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.$ac_ext
3767 if $ac_preproc_ok; then
3779 { echo "$as_me:$LINENO: result: $CPP" >&5
3780 echo "${ECHO_T}$CPP" >&6; }
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 # include <limits.h>
3799 # include <assert.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 # Broken: success on invalid input.
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3867 rm -f conftest.err conftest.$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." >&2;}
3879 { (exit 1); exit 1; }; }
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893 if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3898 if test "${ac_cv_prog_CC+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test -n "$CC"; then
3923 { echo "$as_me:$LINENO: result: $CC" >&5
3924 echo "${ECHO_T}$CC" >&6; }
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3932 if test -z "$ac_cv_prog_CC"; then
3934 # Extract the first word of "gcc", so it can be a program name with args.
3935 set dummy gcc; ac_word=$2
3936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 if test -n "$ac_ct_CC"; then
3942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_ac_ct_CC="gcc"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962 if test -n "$ac_ct_CC"; then
3963 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3964 echo "${ECHO_T}$ac_ct_CC" >&6; }
3966 { echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6; }
3970 if test "x$ac_ct_CC" = x; then
3973 case $cross_compiling:$ac_tool_warned in
3975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3976 whose name does not start with the host triplet. If you think this
3977 configuration is useful to you, please write to autoconf@gnu.org." >&5
3978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet. If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3981 ac_tool_warned=yes ;;
3989 if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3995 if test "${ac_cv_prog_CC+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$CC"; then
3999 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_CC="${ac_tool_prefix}cc"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 if test -n "$CC"; then
4020 { echo "$as_me:$LINENO: result: $CC" >&5
4021 echo "${ECHO_T}$CC" >&6; }
4023 { echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6; }
4030 if test -z "$CC"; then
4031 # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050 ac_prog_rejected=yes
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 if test $ac_prog_rejected = yes; then
4062 # We found a bogon in the path, so make sure we never use it.
4063 set dummy $ac_cv_prog_CC
4065 if test $# != 0; then
4066 # We chose a different compiler from the bogus one.
4067 # However, it has the same basename, so the bogon will be chosen
4068 # first if we set CC to just the basename; use the full file name.
4070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4076 if test -n "$CC"; then
4077 { echo "$as_me:$LINENO: result: $CC" >&5
4078 echo "${ECHO_T}$CC" >&6; }
4080 { echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6; }
4086 if test -z "$CC"; then
4087 if test -n "$ac_tool_prefix"; then
4088 for ac_prog in cl.exe
4090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4094 if test "${ac_cv_prog_CC+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 if test -n "$CC"; then
4119 { echo "$as_me:$LINENO: result: $CC" >&5
4120 echo "${ECHO_T}$CC" >&6; }
4122 { echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6; }
4127 test -n "$CC" && break
4130 if test -z "$CC"; then
4132 for ac_prog in cl.exe
4134 # Extract the first word of "$ac_prog", so it can be a program name with args.
4135 set dummy $ac_prog; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_ac_ct_CC="$ac_prog"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4164 echo "${ECHO_T}$ac_ct_CC" >&6; }
4166 { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4171 test -n "$ac_ct_CC" && break
4174 if test "x$ac_ct_CC" = x; then
4177 case $cross_compiling:$ac_tool_warned in
4179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4180 whose name does not start with the host triplet. If you think this
4181 configuration is useful to you, please write to autoconf@gnu.org." >&5
4182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet. If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4185 ac_tool_warned=yes ;;
4194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." >&5
4196 echo "$as_me: error: no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." >&2;}
4198 { (exit 1); exit 1; }; }
4200 # Provide some information about the compiler.
4201 echo "$as_me:$LINENO: checking for C compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (ac_try="$ac_compiler --version >&5"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compiler --version >&5") 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213 { (ac_try="$ac_compiler -v >&5"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compiler -v >&5") 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }
4223 { (ac_try="$ac_compiler -V >&5"
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_compiler -V >&5") 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }
4234 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4235 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4236 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4286 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4288 GCC=`test $ac_compiler_gnu = yes && echo yes`
4289 ac_test_CFLAGS=${CFLAGS+set}
4290 ac_save_CFLAGS=$CFLAGS
4291 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4292 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_cc_g+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_save_c_werror_flag=$ac_c_werror_flag
4297 ac_c_werror_flag=yes
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_compile") 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && {
4329 test -z "$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 } && test -s conftest.$ac_objext; then
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_c_werror_flag=$ac_save_c_werror_flag
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest.$ac_objext; then
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4426 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4428 if test "$ac_test_CFLAGS" = set; then
4429 CFLAGS=$ac_save_CFLAGS
4430 elif test $ac_cv_prog_cc_g = yes; then
4431 if test "$GCC" = yes; then
4437 if test "$GCC" = yes; then
4443 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4444 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4445 if test "${ac_cv_prog_cc_c89+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_prog_cc_c89=no
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 #include <sys/types.h>
4459 #include <sys/stat.h>
4460 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4461 struct buf { int x; };
4462 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4463 static char *e (p, i)
4469 static char *f (char * (*g) (char **, int), char **p, ...)
4474 s = g (p, va_arg (v,int));
4479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4480 function prototypes and stuff, but not '\xHH' hex character constants.
4481 These don't provoke an error unfortunately, instead are silently treated
4482 as 'x'. The following induces an error, until -std is added to get
4483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4484 array size at least. It's necessary to write '\x00'==0 to get something
4485 that's true only with -std. */
4486 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4488 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4489 inside strings and character constants. */
4491 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4493 int test (int i, double x);
4494 struct s1 {int (*f) (int a);};
4495 struct s2 {int (*f) (double a);};
4496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4507 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4510 CC="$ac_save_CC $ac_arg"
4511 rm -f conftest.$ac_objext
4512 if { (ac_try="$ac_compile"
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518 (eval "$ac_compile") 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && {
4525 test -z "$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4527 } && test -s conftest.$ac_objext; then
4528 ac_cv_prog_cc_c89=$ac_arg
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4536 rm -f core conftest.err conftest.$ac_objext
4537 test "x$ac_cv_prog_cc_c89" != "xno" && break
4539 rm -f conftest.$ac_ext
4544 case "x$ac_cv_prog_cc_c89" in
4546 { echo "$as_me:$LINENO: result: none needed" >&5
4547 echo "${ECHO_T}none needed" >&6; } ;;
4549 { echo "$as_me:$LINENO: result: unsupported" >&5
4550 echo "${ECHO_T}unsupported" >&6; } ;;
4552 CC="$CC $ac_cv_prog_cc_c89"
4553 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4554 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4559 ac_cpp='$CPP $CPPFLAGS'
4560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564 depcc="$CC" am_compiler_list=
4566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4572 # We make a subdir and do the tests there. Otherwise we can end up
4573 # making bogus files that we don't know about and never remove. For
4574 # instance it was reported that on HP-UX the gcc test will end up
4575 # making a dummy file named `D' -- because `-MD' means `put the output
4578 # Copy depcomp to subdir because otherwise we won't find it if we're
4579 # using a relative directory.
4580 cp "$am_depcomp" conftest.dir
4582 # We will build objects and dependencies in a subdirectory because
4583 # it helps to detect inapplicable dependency modes. For instance
4584 # both Tru64's cc and ICC support -MD to output dependencies as a
4585 # side effect of compilation, but ICC will put the dependencies in
4586 # the current directory while Tru64 will put them in the object
4590 am_cv_CC_dependencies_compiler_type=none
4591 if test "$am_compiler_list" = ""; then
4592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594 for depmode in $am_compiler_list; do
4595 # Setup a source with many dependencies, because some compilers
4596 # like to wrap large dependency lists on column 80 (with \), and
4597 # we should not choose a depcomp mode which is confused by this.
4599 # We need to recreate these files for each test, as the compiler may
4600 # overwrite some of them when testing with obscure command lines.
4601 # This happens at least with the AIX C compiler.
4603 for i in 1 2 3 4 5 6; do
4604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4606 # Solaris 8's {/usr,}/bin/sh.
4607 touch sub/conftst$i.h
4609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4613 # after this tag, mechanisms are not by side-effect, so they'll
4614 # only be used when explicitly requested
4615 if test "x$enable_dependency_tracking" = xyes; then
4623 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4624 # mode. It turns out that the SunPro C++ compiler does not properly
4625 # handle `-M -o', and we need to detect this.
4626 if depmode=$depmode \
4627 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4629 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4630 >/dev/null 2>conftest.err &&
4631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4635 # icc doesn't choke on unknown options, it will just issue warnings
4636 # or remarks (even with -Werror). So we grep stderr for any message
4637 # that says an option was ignored or not supported.
4638 # When given -MP, icc 7.0 and 7.1 complain thusly:
4639 # icc: Command line warning: ignoring option '-M'; no argument required
4640 # The diagnosis changed in icc 8.0:
4641 # icc: Command line remark: option '-MP' not supported
4642 if (grep 'ignoring option' conftest.err ||
4643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4644 am_cv_CC_dependencies_compiler_type=$depmode
4653 am_cv_CC_dependencies_compiler_type=none
4657 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4662 test "x$enable_dependency_tracking" != xno \
4663 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4665 am__fastdepCC_FALSE='#'
4667 am__fastdepCC_TRUE='#'
4668 am__fastdepCC_FALSE=
4672 # Find a good install program. We prefer a C program (faster),
4673 # so one script is as good as another. But avoid the broken or
4674 # incompatible versions:
4675 # SysV /etc/install, /usr/sbin/install
4676 # SunOS /usr/etc/install
4677 # IRIX /sbin/install
4679 # AmigaOS /C/install, which installs bootblocks on floppy discs
4680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4683 # OS/2's system install, which has a completely different semantic
4684 # ./install, which can be erroneously created by make from ./install.sh.
4685 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4687 if test -z "$INSTALL"; then
4688 if test "${ac_cv_path_install+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 # Account for people who put trailing slashes in PATH elements.
4698 ./ | .// | /cC/* | \
4699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4703 # OSF1 and SCO ODT 3.0 have their own names for install.
4704 # Don't use installbsd from OSF since it installs stuff as root
4706 for ac_prog in ginstall scoinst install; do
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4709 if test $ac_prog = install &&
4710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4711 # AIX install. It has an incompatible calling convention.
4713 elif test $ac_prog = install &&
4714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715 # program-specific install script used by HP pwplus--don't use.
4718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4731 if test "${ac_cv_path_install+set}" = set; then
4732 INSTALL=$ac_cv_path_install
4734 # As a last resort, use the slow shell script. Don't cache a
4735 # value for INSTALL within a source directory, because that will
4736 # break other packages using the cache if that directory is
4737 # removed, or if the value is a relative name.
4738 INSTALL=$ac_install_sh
4741 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4742 echo "${ECHO_T}$INSTALL" >&6; }
4744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4745 # It thinks the first close brace ends the variable substitution.
4746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4752 # Check whether --enable-shared was given.
4753 if test "${enable_shared+set}" = set; then
4754 enableval=$enable_shared; p=${PACKAGE-default}
4756 yes) enable_shared=yes ;;
4757 no) enable_shared=no ;;
4760 # Look at the argument we got. We use all the common list separators.
4761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4762 for pkg in $enableval; do
4764 if test "X$pkg" = "X$p"; then
4776 # Check whether --enable-static was given.
4777 if test "${enable_static+set}" = set; then
4778 enableval=$enable_static; p=${PACKAGE-default}
4780 yes) enable_static=yes ;;
4781 no) enable_static=no ;;
4784 # Look at the argument we got. We use all the common list separators.
4785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4786 for pkg in $enableval; do
4788 if test "X$pkg" = "X$p"; then
4800 # Check whether --enable-fast-install was given.
4801 if test "${enable_fast_install+set}" = set; then
4802 enableval=$enable_fast_install; p=${PACKAGE-default}
4804 yes) enable_fast_install=yes ;;
4805 no) enable_fast_install=no ;;
4807 enable_fast_install=no
4808 # Look at the argument we got. We use all the common list separators.
4809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4810 for pkg in $enableval; do
4812 if test "X$pkg" = "X$p"; then
4813 enable_fast_install=yes
4820 enable_fast_install=yes
4824 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4825 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4826 if test "${lt_cv_path_SED+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 # Loop through the user's path and test for sed and gsed.
4830 # Then use that list of sed's as ones to test for truncation.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for lt_ac_prog in sed gsed; do
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4839 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4846 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4847 # along with /bin/sed that truncates output.
4848 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4849 test ! -f $lt_ac_sed && continue
4850 cat /dev/null > conftest.in
4852 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4853 # Check for GNU sed and select it if it is found.
4854 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4855 lt_cv_path_SED=$lt_ac_sed
4859 cat conftest.in conftest.in >conftest.tmp
4860 mv conftest.tmp conftest.in
4861 cp conftest.in conftest.nl
4863 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4864 cmp -s conftest.out conftest.nl || break
4865 # 10000 chars as input seems more than enough
4866 test $lt_ac_count -gt 10 && break
4867 lt_ac_count=`expr $lt_ac_count + 1`
4868 if test $lt_ac_count -gt $lt_ac_max; then
4869 lt_ac_max=$lt_ac_count
4870 lt_cv_path_SED=$lt_ac_sed
4878 { echo "$as_me:$LINENO: result: $SED" >&5
4879 echo "${ECHO_T}$SED" >&6; }
4881 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4882 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GREP+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 # Extract the first word of "grep ggrep" to use in msg output
4887 if test -z "$GREP"; then
4888 set dummy grep ggrep; ac_prog_name=$2
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 ac_path_GREP_found=false
4893 # Loop through the user's path and test for each of PROGNAME-LIST
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4898 test -z "$as_dir" && as_dir=.
4899 for ac_prog in grep ggrep; do
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4902 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4903 # Check for GNU ac_path_GREP and select it if it is found.
4904 # Check for GNU $ac_path_GREP
4905 case `"$ac_path_GREP" --version 2>&1` in
4907 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4910 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4913 cat "conftest.in" "conftest.in" >"conftest.tmp"
4914 mv "conftest.tmp" "conftest.in"
4915 cp "conftest.in" "conftest.nl"
4916 echo 'GREP' >> "conftest.nl"
4917 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919 ac_count=`expr $ac_count + 1`
4920 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4921 # Best one so far, save it but keep looking for a better one
4922 ac_cv_path_GREP="$ac_path_GREP"
4923 ac_path_GREP_max=$ac_count
4925 # 10*(2^10) chars as input seems more than enough
4926 test $ac_count -gt 10 && break
4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932 $ac_path_GREP_found && break 3
4942 GREP="$ac_cv_path_GREP"
4943 if test -z "$GREP"; then
4944 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4945 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4946 { (exit 1); exit 1; }; }
4950 ac_cv_path_GREP=$GREP
4955 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4956 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4957 GREP="$ac_cv_path_GREP"
4960 { echo "$as_me:$LINENO: checking for egrep" >&5
4961 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_EGREP+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4966 then ac_cv_path_EGREP="$GREP -E"
4968 # Extract the first word of "egrep" to use in msg output
4969 if test -z "$EGREP"; then
4970 set dummy egrep; ac_prog_name=$2
4971 if test "${ac_cv_path_EGREP+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 ac_path_EGREP_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980 test -z "$as_dir" && as_dir=.
4981 for ac_prog in egrep; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4984 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4985 # Check for GNU ac_path_EGREP and select it if it is found.
4986 # Check for GNU $ac_path_EGREP
4987 case `"$ac_path_EGREP" --version 2>&1` in
4989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4992 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4995 cat "conftest.in" "conftest.in" >"conftest.tmp"
4996 mv "conftest.tmp" "conftest.in"
4997 cp "conftest.in" "conftest.nl"
4998 echo 'EGREP' >> "conftest.nl"
4999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5001 ac_count=`expr $ac_count + 1`
5002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5003 # Best one so far, save it but keep looking for a better one
5004 ac_cv_path_EGREP="$ac_path_EGREP"
5005 ac_path_EGREP_max=$ac_count
5007 # 10*(2^10) chars as input seems more than enough
5008 test $ac_count -gt 10 && break
5010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 $ac_path_EGREP_found && break 3
5024 EGREP="$ac_cv_path_EGREP"
5025 if test -z "$EGREP"; then
5026 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5027 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5028 { (exit 1); exit 1; }; }
5032 ac_cv_path_EGREP=$EGREP
5038 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5039 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5040 EGREP="$ac_cv_path_EGREP"
5044 # Check whether --with-gnu-ld was given.
5045 if test "${with_gnu_ld+set}" = set; then
5046 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5052 if test "$GCC" = yes; then
5053 # Check if gcc -print-prog-name=ld gives a path.
5054 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5055 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5058 # gcc leaves a trailing carriage return which upsets mingw
5059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5064 # Accept absolute paths.
5066 re_direlt='/[^/][^/]*/\.\./'
5067 # Canonicalize the pathname of ld
5068 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5069 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5070 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5072 test -z "$LD" && LD="$ac_prog"
5075 # If it fails, then pretend we aren't using GCC.
5079 # If it is relative, then search for the first ld in PATH.
5083 elif test "$with_gnu_ld" = yes; then
5084 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5085 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5087 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5088 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5090 if test "${lt_cv_path_LD+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 if test -z "$LD"; then
5094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5095 for ac_dir in $PATH; do
5097 test -z "$ac_dir" && ac_dir=.
5098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5099 lt_cv_path_LD="$ac_dir/$ac_prog"
5100 # Check to see if the program is GNU ld. I'd rather use --version,
5101 # but apparently some variants of GNU ld only accept -v.
5102 # Break only if it was the GNU/non-GNU ld that we prefer.
5103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5104 *GNU* | *'with BFD'*)
5105 test "$with_gnu_ld" != no && break
5108 test "$with_gnu_ld" != yes && break
5115 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5120 if test -n "$LD"; then
5121 { echo "$as_me:$LINENO: result: $LD" >&5
5122 echo "${ECHO_T}$LD" >&6; }
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5127 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5128 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5129 { (exit 1); exit 1; }; }
5130 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5131 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5132 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5136 case `$LD -v 2>&1 </dev/null` in
5137 *GNU* | *'with BFD'*)
5138 lt_cv_prog_gnu_ld=yes
5141 lt_cv_prog_gnu_ld=no
5145 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5146 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5147 with_gnu_ld=$lt_cv_prog_gnu_ld
5150 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5151 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5152 if test "${lt_cv_ld_reload_flag+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 lt_cv_ld_reload_flag='-r'
5157 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5158 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5159 reload_flag=$lt_cv_ld_reload_flag
5160 case $reload_flag in
5162 *) reload_flag=" $reload_flag" ;;
5164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5167 if test "$GCC" = yes; then
5168 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5175 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5177 if test "${lt_cv_path_NM+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 if test -n "$NM"; then
5181 # Let the user override the test.
5184 lt_nm_to_check="${ac_tool_prefix}nm"
5185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5186 lt_nm_to_check="$lt_nm_to_check nm"
5188 for lt_tmp_nm in $lt_nm_to_check; do
5189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5192 test -z "$ac_dir" && ac_dir=.
5193 tmp_nm="$ac_dir/$lt_tmp_nm"
5194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5195 # Check to see if the nm accepts a BSD-compat flag.
5196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5197 # nm: unknown option "B" ignored
5198 # Tru64's nm complains that /dev/null is an invalid object file
5199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5200 */dev/null* | *'Invalid file or object type'*)
5201 lt_cv_path_NM="$tmp_nm -B"
5205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5207 lt_cv_path_NM="$tmp_nm -p"
5211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5212 continue # so that we can try to find one that supports BSD flags
5221 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5225 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5228 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5229 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5231 if test "$LN_S" = "ln -s"; then
5232 { echo "$as_me:$LINENO: result: yes" >&5
5233 echo "${ECHO_T}yes" >&6; }
5235 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5236 echo "${ECHO_T}no, using $LN_S" >&6; }
5239 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5240 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5241 if test "${lt_cv_deplibs_check_method+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 lt_cv_file_magic_cmd='$MAGIC_CMD'
5245 lt_cv_file_magic_test_file=
5246 lt_cv_deplibs_check_method='unknown'
5247 # Need to set the preceding variable on all platforms that support
5248 # interlibrary dependencies.
5249 # 'none' -- dependencies not supported.
5250 # `unknown' -- same as none, but documents that we really don't know.
5251 # 'pass_all' -- all dependencies passed with no checks.
5252 # 'test_compile' -- check by making test program.
5253 # 'file_magic [[regex]]' -- check by looking for files in library path
5254 # which responds to the $file_magic_cmd with a given extended regex.
5255 # If you have `file' or equivalent on your system and you're not sure
5256 # whether `pass_all' will *always* work, you probably want this one.
5260 lt_cv_deplibs_check_method=pass_all
5264 lt_cv_deplibs_check_method=pass_all
5268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5269 lt_cv_file_magic_cmd='/usr/bin/file -L'
5270 lt_cv_file_magic_test_file=/shlib/libc.so
5274 # func_win32_libid is a shell function defined in ltmain.sh
5275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5276 lt_cv_file_magic_cmd='func_win32_libid'
5280 # Base MSYS/MinGW do not provide the 'file' command needed by
5281 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5282 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5283 lt_cv_file_magic_cmd='$OBJDUMP -f'
5286 darwin* | rhapsody*)
5287 lt_cv_deplibs_check_method=pass_all
5290 freebsd* | dragonfly*)
5291 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5294 # Not sure whether the presence of OpenBSD here was a mistake.
5295 # Let's accept both of them until this is cleared up.
5296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5297 lt_cv_file_magic_cmd=/usr/bin/file
5298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5302 lt_cv_deplibs_check_method=pass_all
5307 lt_cv_deplibs_check_method=pass_all
5310 hpux10.20* | hpux11*)
5311 lt_cv_file_magic_cmd=/usr/bin/file
5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5318 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]'
5319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5333 irix5* | irix6* | nonstopux*)
5335 *-32|*"-32 ") libmagic=32-bit;;
5336 *-n32|*"-n32 ") libmagic=N32;;
5337 *-64|*"-64 ") libmagic=64-bit;;
5338 *) libmagic=never-match;;
5340 lt_cv_deplibs_check_method=pass_all
5343 # This must be Linux ELF.
5344 linux* | k*bsd*-gnu)
5345 lt_cv_deplibs_check_method=pass_all
5348 netbsd* | netbsdelf*-gnu)
5349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358 lt_cv_file_magic_cmd=/usr/bin/file
5359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5363 lt_cv_deplibs_check_method=unknown
5367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374 osf3* | osf4* | osf5*)
5375 lt_cv_deplibs_check_method=pass_all
5379 lt_cv_deplibs_check_method=pass_all
5383 case $host_vendor in
5385 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]'
5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5389 lt_cv_deplibs_check_method=pass_all
5392 lt_cv_file_magic_cmd='/bin/file'
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5396 lt_cv_file_magic_cmd='/bin/file'
5397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5398 lt_cv_file_magic_test_file=/lib/libc.so
5401 lt_cv_deplibs_check_method=pass_all
5404 lt_cv_deplibs_check_method=pass_all
5409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5410 lt_cv_deplibs_check_method=pass_all
5415 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5416 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5417 file_magic_cmd=$lt_cv_file_magic_cmd
5418 deplibs_check_method=$lt_cv_deplibs_check_method
5419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5424 # If no C compiler was specified, use CC.
5427 # If no C compiler flags were specified, use CFLAGS.
5428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5430 # Allow CC to be a program name with arguments.
5434 # Check whether --enable-libtool-lock was given.
5435 if test "${enable_libtool_lock+set}" = set; then
5436 enableval=$enable_libtool_lock;
5439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5441 # Some flags need to be propagated to the compiler or linker for good
5445 # Find out which ABI we are using.
5446 echo 'int i;' > conftest.$ac_ext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448 (eval $ac_compile) 2>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; then
5452 case `/usr/bin/file conftest.$ac_objext` in
5464 # Find out which ABI we are using.
5465 echo '#line 5465 "configure"' > conftest.$ac_ext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; then
5471 if test "$lt_cv_prog_gnu_ld" = yes; then
5472 case `/usr/bin/file conftest.$ac_objext` in
5474 LD="${LD-ld} -melf32bsmip"
5477 LD="${LD-ld} -melf32bmipn32"
5480 LD="${LD-ld} -melf64bmip"
5484 case `/usr/bin/file conftest.$ac_objext` in
5500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5501 # Find out which ABI we are using.
5502 echo 'int i;' > conftest.$ac_ext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; then
5508 case `/usr/bin/file conftest.o` in
5512 LD="${LD-ld} -m elf_i386"
5514 ppc64-*linux*|powerpc64-*linux*)
5515 LD="${LD-ld} -m elf32ppclinux"
5518 LD="${LD-ld} -m elf_s390"
5521 LD="${LD-ld} -m elf32_sparc"
5528 LD="${LD-ld} -m elf_x86_64"
5530 ppc*-*linux*|powerpc*-*linux*)
5531 LD="${LD-ld} -m elf64ppc"
5534 LD="${LD-ld} -m elf64_s390"
5537 LD="${LD-ld} -m elf64_sparc"
5547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5548 SAVE_CFLAGS="$CFLAGS"
5549 CFLAGS="$CFLAGS -belf"
5550 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5552 if test "${lt_cv_cc_needs_belf+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_link") 2>conftest.er1
5585 grep -v '^ *+' conftest.er1 >conftest.err
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest$ac_exeext &&
5593 $as_test_x conftest$ac_exeext; then
5594 lt_cv_cc_needs_belf=yes
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 lt_cv_cc_needs_belf=no
5602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5603 conftest$ac_exeext conftest.$ac_ext
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5615 CFLAGS="$SAVE_CFLAGS"
5619 # Find out which ABI we are using.
5620 echo 'int i;' > conftest.$ac_ext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 case `/usr/bin/file conftest.o` in
5628 case $lt_cv_prog_gnu_ld in
5629 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5630 *) LD="${LD-ld} -64" ;;
5641 need_locks="$enable_libtool_lock"
5645 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5647 if test "${ac_cv_header_stdc+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5686 ac_cv_header_stdc=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_cv_header_stdc=no
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 if test $ac_cv_header_stdc = yes; then
5697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev/null 2>&1; then
5711 ac_cv_header_stdc=no
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat >conftest.$ac_ext <<_ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "free" >/dev/null 2>&1; then
5732 ac_cv_header_stdc=no
5738 if test $ac_cv_header_stdc = yes; then
5739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740 if test "$cross_compiling" = yes; then
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5751 #if ((' ' & 0x0FF) == 0x020)
5752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5755 # define ISLOWER(c) \
5756 (('a' <= (c) && (c) <= 'i') \
5757 || ('j' <= (c) && (c) <= 'r') \
5758 || ('s' <= (c) && (c) <= 'z'))
5759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5767 for (i = 0; i < 256; i++)
5768 if (XOR (islower (i), ISLOWER (i))
5769 || toupper (i) != TOUPPER (i))
5774 rm -f conftest$ac_exeext
5775 if { (ac_try="$ac_link"
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_link") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5785 { (case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_try") 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5796 echo "$as_me: program exited with status $ac_status" >&5
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_cv_header_stdc=no
5803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5809 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5810 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5811 if test $ac_cv_header_stdc = yes; then
5813 cat >>confdefs.h <<\_ACEOF
5814 #define STDC_HEADERS 1
5819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5830 inttypes.h stdint.h unistd.h
5832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5846 #include <$ac_header>
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 eval "$as_ac_Header=yes"
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889 for ac_header in dlfcn.h
5891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 ac_res=`eval echo '${'$as_ac_Header'}'`
5899 { echo "$as_me:$LINENO: result: $ac_res" >&5
5900 echo "${ECHO_T}$ac_res" >&6; }
5902 # Is the header compilable?
5903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5912 #include <$ac_header>
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && {
5928 test -z "$ac_c_werror_flag" ||
5929 test ! -s conftest.err
5930 } && test -s conftest.$ac_objext; then
5931 ac_header_compiler=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_header_compiler=no
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 echo "${ECHO_T}$ac_header_compiler" >&6; }
5943 # Is the header present?
5944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <$ac_header>
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } >/dev/null && {
5967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5970 ac_header_preproc=yes
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_header_preproc=no
5978 rm -f conftest.err conftest.$ac_ext
5979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5980 echo "${ECHO_T}$ac_header_preproc" >&6; }
5982 # So? What about this header?
5983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5989 ac_header_preproc=yes
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 eval "$as_ac_Header=\$ac_header_preproc"
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015 { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6029 ac_cpp='$CXXCPP $CPPFLAGS'
6030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6033 if test -z "$CXX"; then
6034 if test -n "$CCC"; then
6037 if test -n "$ac_tool_prefix"; then
6038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_CXX+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$CXX"; then
6048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 if test -n "$CXX"; then
6069 { echo "$as_me:$LINENO: result: $CXX" >&5
6070 echo "${ECHO_T}$CXX" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6077 test -n "$CXX" && break
6080 if test -z "$CXX"; then
6082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6084 # Extract the first word of "$ac_prog", so it can be a program name with args.
6085 set dummy $ac_prog; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 if test -n "$ac_ct_CXX"; then
6092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_CXX="$ac_prog"
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6112 if test -n "$ac_ct_CXX"; then
6113 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6114 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6121 test -n "$ac_ct_CXX" && break
6124 if test "x$ac_ct_CXX" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet. If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&5
6132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6135 ac_tool_warned=yes ;;
6143 # Provide some information about the compiler.
6144 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6145 ac_compiler=`set X $ac_compile; echo $2`
6146 { (ac_try="$ac_compiler --version >&5"
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compiler --version >&5") 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }
6156 { (ac_try="$ac_compiler -v >&5"
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162 (eval "$ac_compiler -v >&5") 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }
6166 { (ac_try="$ac_compiler -V >&5"
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compiler -V >&5") 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }
6177 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6178 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_cxx_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6229 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6230 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6231 GXX=`test $ac_compiler_gnu = yes && echo yes`
6232 ac_test_CXXFLAGS=${CXXFLAGS+set}
6233 ac_save_CXXFLAGS=$CXXFLAGS
6234 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6235 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_cxx_g+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6240 ac_cxx_werror_flag=yes
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_cxx_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_cv_prog_cxx_g=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_cxx_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_cxx_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 ac_cv_prog_cxx_g=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6370 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6371 if test "$ac_test_CXXFLAGS" = set; then
6372 CXXFLAGS=$ac_save_CXXFLAGS
6373 elif test $ac_cv_prog_cxx_g = yes; then
6374 if test "$GXX" = yes; then
6380 if test "$GXX" = yes; then
6387 ac_cpp='$CXXCPP $CPPFLAGS'
6388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6392 depcc="$CXX" am_compiler_list=
6394 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6396 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6400 # We make a subdir and do the tests there. Otherwise we can end up
6401 # making bogus files that we don't know about and never remove. For
6402 # instance it was reported that on HP-UX the gcc test will end up
6403 # making a dummy file named `D' -- because `-MD' means `put the output
6406 # Copy depcomp to subdir because otherwise we won't find it if we're
6407 # using a relative directory.
6408 cp "$am_depcomp" conftest.dir
6410 # We will build objects and dependencies in a subdirectory because
6411 # it helps to detect inapplicable dependency modes. For instance
6412 # both Tru64's cc and ICC support -MD to output dependencies as a
6413 # side effect of compilation, but ICC will put the dependencies in
6414 # the current directory while Tru64 will put them in the object
6418 am_cv_CXX_dependencies_compiler_type=none
6419 if test "$am_compiler_list" = ""; then
6420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 for depmode in $am_compiler_list; do
6423 # Setup a source with many dependencies, because some compilers
6424 # like to wrap large dependency lists on column 80 (with \), and
6425 # we should not choose a depcomp mode which is confused by this.
6427 # We need to recreate these files for each test, as the compiler may
6428 # overwrite some of them when testing with obscure command lines.
6429 # This happens at least with the AIX C compiler.
6431 for i in 1 2 3 4 5 6; do
6432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6434 # Solaris 8's {/usr,}/bin/sh.
6435 touch sub/conftst$i.h
6437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6441 # after this tag, mechanisms are not by side-effect, so they'll
6442 # only be used when explicitly requested
6443 if test "x$enable_dependency_tracking" = xyes; then
6451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6452 # mode. It turns out that the SunPro C++ compiler does not properly
6453 # handle `-M -o', and we need to detect this.
6454 if depmode=$depmode \
6455 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6457 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6458 >/dev/null 2>conftest.err &&
6459 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6460 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6461 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6462 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6463 # icc doesn't choke on unknown options, it will just issue warnings
6464 # or remarks (even with -Werror). So we grep stderr for any message
6465 # that says an option was ignored or not supported.
6466 # When given -MP, icc 7.0 and 7.1 complain thusly:
6467 # icc: Command line warning: ignoring option '-M'; no argument required
6468 # The diagnosis changed in icc 8.0:
6469 # icc: Command line remark: option '-MP' not supported
6470 if (grep 'ignoring option' conftest.err ||
6471 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6472 am_cv_CXX_dependencies_compiler_type=$depmode
6481 am_cv_CXX_dependencies_compiler_type=none
6485 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6486 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6487 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6490 test "x$enable_dependency_tracking" != xno \
6491 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6492 am__fastdepCXX_TRUE=
6493 am__fastdepCXX_FALSE='#'
6495 am__fastdepCXX_TRUE='#'
6496 am__fastdepCXX_FALSE=
6502 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6503 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6504 (test "X$CXX" != "Xg++"))) ; then
6506 ac_cpp='$CXXCPP $CPPFLAGS'
6507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6510 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6511 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6512 if test -z "$CXXCPP"; then
6513 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 # Double quotes because CXXCPP needs to be expanded
6517 for CXXCPP in "$CXX -E" "/lib/cpp"
6520 for ac_cxx_preproc_warn_flag in '' yes
6522 # Use a header file that comes with gcc, so configuring glibc
6523 # with a fresh cross-compiler works.
6524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525 # <limits.h> exists even on freestanding compilers.
6526 # On the NeXT, cc -E runs the code through the compiler's parser,
6527 # not just through cpp. "Syntax error" is here to catch this case.
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6535 # include <limits.h>
6537 # include <assert.h>
6541 if { (ac_try="$ac_cpp conftest.$ac_ext"
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } >/dev/null && {
6554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6555 test ! -s conftest.err
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 # Broken: fails on valid input.
6566 rm -f conftest.err conftest.$ac_ext
6568 # OK, works on sane cases. Now check whether nonexistent headers
6569 # can be detected and how.
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <ac_nonexistent.h>
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6592 test ! -s conftest.err
6594 # Broken: success on invalid input.
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 # Passes both tests.
6605 rm -f conftest.err conftest.$ac_ext
6608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609 rm -f conftest.err conftest.$ac_ext
6610 if $ac_preproc_ok; then
6615 ac_cv_prog_CXXCPP=$CXXCPP
6618 CXXCPP=$ac_cv_prog_CXXCPP
6620 ac_cv_prog_CXXCPP=$CXXCPP
6622 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6623 echo "${ECHO_T}$CXXCPP" >&6; }
6625 for ac_cxx_preproc_warn_flag in '' yes
6627 # Use a header file that comes with gcc, so configuring glibc
6628 # with a fresh cross-compiler works.
6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630 # <limits.h> exists even on freestanding compilers.
6631 # On the NeXT, cc -E runs the code through the compiler's parser,
6632 # not just through cpp. "Syntax error" is here to catch this case.
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6640 # include <limits.h>
6642 # include <assert.h>
6646 if { (ac_try="$ac_cpp conftest.$ac_ext"
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } >/dev/null && {
6659 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6660 test ! -s conftest.err
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 # Broken: fails on valid input.
6671 rm -f conftest.err conftest.$ac_ext
6673 # OK, works on sane cases. Now check whether nonexistent headers
6674 # can be detected and how.
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <ac_nonexistent.h>
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null && {
6696 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6697 test ! -s conftest.err
6699 # Broken: success on invalid input.
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 # Passes both tests.
6710 rm -f conftest.err conftest.$ac_ext
6713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6714 rm -f conftest.err conftest.$ac_ext
6715 if $ac_preproc_ok; then
6718 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6719 See \`config.log' for more details." >&5
6720 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6721 See \`config.log' for more details." >&2;}
6722 { (exit 1); exit 1; }; }
6726 ac_cpp='$CXXCPP $CPPFLAGS'
6727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6738 if test -n "$ac_tool_prefix"; then
6739 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_F77+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 if test -n "$F77"; then
6749 ac_cv_prog_F77="$F77" # Let the user override the test.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 if test -n "$F77"; then
6770 { echo "$as_me:$LINENO: result: $F77" >&5
6771 echo "${ECHO_T}$F77" >&6; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6778 test -n "$F77" && break
6781 if test -z "$F77"; then
6783 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6785 # Extract the first word of "$ac_prog", so it can be a program name with args.
6786 set dummy $ac_prog; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 if test -n "$ac_ct_F77"; then
6793 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_F77="$ac_prog"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6813 if test -n "$ac_ct_F77"; then
6814 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6815 echo "${ECHO_T}$ac_ct_F77" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 test -n "$ac_ct_F77" && break
6825 if test "x$ac_ct_F77" = x; then
6828 case $cross_compiling:$ac_tool_warned in
6830 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&5
6833 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet. If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6836 ac_tool_warned=yes ;;
6843 # Provide some information about the compiler.
6844 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6845 ac_compiler=`set X $ac_compile; echo $2`
6846 { (ac_try="$ac_compiler --version >&5"
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compiler --version >&5") 2>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }
6856 { (ac_try="$ac_compiler -v >&5"
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compiler -v >&5") 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }
6866 { (ac_try="$ac_compiler -V >&5"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compiler -V >&5") 2>&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }
6878 # If we don't use `.F' as extension, the preprocessor is not run on the
6879 # input file. (Note that this only needs to work for GNU compilers.)
6882 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6883 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6884 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 cat >conftest.$ac_ext <<_ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_f77_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6924 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6927 ac_test_FFLAGS=${FFLAGS+set}
6928 ac_save_FFLAGS=$FFLAGS
6930 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6931 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_f77_g+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_f77_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ac_cv_prog_f77_g=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6970 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6971 if test "$ac_test_FFLAGS" = set; then
6972 FFLAGS=$ac_save_FFLAGS
6973 elif test $ac_cv_prog_f77_g = yes; then
6974 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6980 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6987 G77=`test $ac_compiler_gnu = yes && echo yes`
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6998 # find the maximum length of command line arguments
6999 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7000 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7001 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 # On DJGPP, this test can blow up pretty badly due to problems in libc
7010 # (any single argument exceeding 2000 bytes causes a buffer overrun
7011 # during glob expansion). Even if it were fixed, the result of this
7012 # check would be larger than it should be.
7013 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7017 # Under GNU Hurd, this test is not required because there is
7018 # no limit to the length of command line arguments.
7019 # Libtool will interpret -1 as no limit whatsoever
7020 lt_cv_sys_max_cmd_len=-1;
7024 # On Win9x/ME, this test blows up -- it succeeds, but takes
7025 # about 5 minutes as the teststring grows exponentially.
7026 # Worse, since 9x/ME are not pre-emptively multitasking,
7027 # you end up with a "frozen" computer, even though with patience
7028 # the test eventually succeeds (with a max line length of 256k).
7029 # Instead, let's just punt: use the minimum linelength reported by
7030 # all of the supported platforms: 8192 (on NT/2K/XP).
7031 lt_cv_sys_max_cmd_len=8192;
7035 # On AmigaOS with pdksh, this test takes hours, literally.
7036 # So we just punt and use a minimum line length of 8192.
7037 lt_cv_sys_max_cmd_len=8192;
7040 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7041 # This has been around since 386BSD, at least. Likely further.
7042 if test -x /sbin/sysctl; then
7043 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7044 elif test -x /usr/sbin/sysctl; then
7045 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7047 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7049 # And add a safety zone
7050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7056 lt_cv_sys_max_cmd_len=196608
7060 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7061 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7062 # nice to cause kernel panics so lets avoid the loop below.
7063 # First set a reasonable default.
7064 lt_cv_sys_max_cmd_len=16384
7066 if test -x /sbin/sysconfig; then
7067 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7068 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7073 lt_cv_sys_max_cmd_len=102400
7075 sysv5* | sco5v6* | sysv4.2uw2*)
7076 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7077 if test -n "$kargmax"; then
7078 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7080 lt_cv_sys_max_cmd_len=32768
7084 # If test is not a shell built-in, we'll probably end up computing a
7085 # maximum length that is only half of the actual maximum length, but
7087 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7088 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7089 = "XX$teststring") >/dev/null 2>&1 &&
7090 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7091 lt_cv_sys_max_cmd_len=$new_result &&
7092 test $i != 17 # 1/2 MB should be enough
7095 teststring=$teststring$teststring
7098 # Add a significant safety factor because C++ compilers can tack on massive
7099 # amounts of additional arguments before passing them to the linker.
7100 # It appears as though 1/2 is a usable value.
7101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7107 if test -n $lt_cv_sys_max_cmd_len ; then
7108 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7109 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7111 { echo "$as_me:$LINENO: result: none" >&5
7112 echo "${ECHO_T}none" >&6; }
7118 # Check for command to grab the raw symbol name followed by C symbol from nm.
7119 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7120 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7121 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 # These are sane defaults that work on at least a few old systems.
7126 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7128 # Character class describing NM global symbol codes.
7129 symcode='[BCDEGRST]'
7131 # Regexp to match symbols that can be accessed directly from C.
7132 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7134 # Transform an extracted symbol line into a proper C declaration
7135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7137 # Transform an extracted symbol line into symbol name and symbol address
7138 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'"
7140 # Define system-specific variables.
7145 cygwin* | mingw* | pw32*)
7146 symcode='[ABCDGISTW]'
7148 hpux*) # Its linker distinguishes data from code symbols
7149 if test "$host_cpu" = ia64; then
7150 symcode='[ABCDEGRST]'
7152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7153 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'"
7155 linux* | k*bsd*-gnu)
7156 if test "$host_cpu" = ia64; then
7157 symcode='[ABCDGIRSTW]'
7158 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7159 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'"
7163 symcode='[BCDEGRST]'
7166 symcode='[BCDEGQRST]'
7177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7185 # Handle CRLF in mingw tool chain
7189 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7193 # If we're using GNU nm, then use its standard symbol codes.
7194 case `$NM -V 2>&1` in
7195 *GNU* | *'with BFD'*)
7196 symcode='[ABCDGIRSTW]' ;;
7199 # Try without a prefix undercore, then with it.
7200 for ac_symprfx in "" "_"; do
7202 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7203 symxfrm="\\1 $ac_symprfx\\2 \\2"
7205 # Write the raw and C identifiers.
7206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7208 # Check to see that the pipe works correctly.
7212 cat > conftest.$ac_ext <<EOF
7217 void nm_test_func(){}
7221 int main(){nm_test_var='a';nm_test_func();return(0);}
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; then
7229 # Now try to grab the symbols.
7231 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7232 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && test -s "$nlist"; then
7236 # Try sorting and uniquifying the output.
7237 if sort "$nlist" | uniq > "$nlist"T; then
7238 mv -f "$nlist"T "$nlist"
7243 # Make sure that we snagged all the symbols we need.
7244 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7245 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7246 cat <<EOF > conftest.$ac_ext
7252 # Now generate the symbol file.
7253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7255 cat <<EOF >> conftest.$ac_ext
7256 #if defined (__STDC__) && __STDC__
7257 # define lt_ptr_t void *
7259 # define lt_ptr_t char *
7263 /* The mapping between symbol names and symbols. */
7268 lt_preloaded_symbols[] =
7271 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7272 cat <<\EOF >> conftest.$ac_ext
7280 # Now try linking the two files.
7281 mv conftest.$ac_objext conftstm.$ac_objext
7282 lt_save_LIBS="$LIBS"
7283 lt_save_CFLAGS="$CFLAGS"
7284 LIBS="conftstm.$ac_objext"
7285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7287 (eval $ac_link) 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7293 LIBS="$lt_save_LIBS"
7294 CFLAGS="$lt_save_CFLAGS"
7296 echo "cannot find nm_test_func in $nlist" >&5
7299 echo "cannot find nm_test_var in $nlist" >&5
7302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7305 echo "$progname: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 rm -f conftest* conftst*
7310 # Do not use the global_symbol_pipe unless it works.
7311 if test "$pipe_works" = yes; then
7314 lt_cv_sys_global_symbol_pipe=
7320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7321 lt_cv_sys_global_symbol_to_cdecl=
7323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7324 { echo "$as_me:$LINENO: result: failed" >&5
7325 echo "${ECHO_T}failed" >&6; }
7327 { echo "$as_me:$LINENO: result: ok" >&5
7328 echo "${ECHO_T}ok" >&6; }
7331 { echo "$as_me:$LINENO: checking for objdir" >&5
7332 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7333 if test "${lt_cv_objdir+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 rm -f .libs 2>/dev/null
7337 mkdir .libs 2>/dev/null
7338 if test -d .libs; then
7341 # MS-DOS does not allow filenames that begin with a dot.
7344 rmdir .libs 2>/dev/null
7346 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7347 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7348 objdir=$lt_cv_objdir
7356 # AIX sometimes has problems with the GCC collect2 program. For some
7357 # reason, if we set the COLLECT_NAMES environment variable, the problems
7358 # vanish in a puff of smoke.
7359 if test "X${COLLECT_NAMES+set}" != Xset; then
7361 export COLLECT_NAMES
7366 # Sed substitution that helps us do robust quoting. It backslashifies
7367 # metacharacters that are still active within double-quoted strings.
7368 Xsed='sed -e 1s/^X//'
7369 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7371 # Same as above, but do not quote variable references.
7372 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7374 # Sed substitution to delay expansion of an escaped shell variable in a
7375 # double_quote_subst'ed string.
7376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7378 # Sed substitution to avoid accidental globbing in evaled expressions
7379 no_glob_subst='s/\*/\\\*/g'
7385 default_ofile=libtool
7386 can_build_shared=yes
7388 # All known linkers require a `.a' archive for static linking (except MSVC,
7389 # which needs '.lib').
7391 ltmain="$ac_aux_dir/ltmain.sh"
7392 ofile="$default_ofile"
7393 with_gnu_ld="$lt_cv_prog_gnu_ld"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}ar; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_AR+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 if test -n "$AR"; then
7404 ac_cv_prog_AR="$AR" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_AR="${ac_tool_prefix}ar"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 if test -n "$AR"; then
7425 { echo "$as_me:$LINENO: result: $AR" >&5
7426 echo "${ECHO_T}$AR" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7434 if test -z "$ac_cv_prog_AR"; then
7436 # Extract the first word of "ar", so it can be a program name with args.
7437 set dummy ar; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 if test -n "$ac_ct_AR"; then
7444 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_prog_ac_ct_AR="ar"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7464 if test -n "$ac_ct_AR"; then
7465 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7466 echo "${ECHO_T}$ac_ct_AR" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7472 if test "x$ac_ct_AR" = x; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7478 whose name does not start with the host triplet. If you think this
7479 configuration is useful to you, please write to autoconf@gnu.org." >&5
7480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7481 whose name does not start with the host triplet. If you think this
7482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7483 ac_tool_warned=yes ;;
7491 if test -n "$ac_tool_prefix"; then
7492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_RANLIB+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 if test -n "$RANLIB"; then
7500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 RANLIB=$ac_cv_prog_RANLIB
7520 if test -n "$RANLIB"; then
7521 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7522 echo "${ECHO_T}$RANLIB" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7530 if test -z "$ac_cv_prog_RANLIB"; then
7531 ac_ct_RANLIB=$RANLIB
7532 # Extract the first word of "ranlib", so it can be a program name with args.
7533 set dummy ranlib; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 if test -n "$ac_ct_RANLIB"; then
7540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_prog_ac_ct_RANLIB="ranlib"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7560 if test -n "$ac_ct_RANLIB"; then
7561 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7562 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7564 { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7568 if test "x$ac_ct_RANLIB" = x; then
7571 case $cross_compiling:$ac_tool_warned in
7573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7574 whose name does not start with the host triplet. If you think this
7575 configuration is useful to you, please write to autoconf@gnu.org." >&5
7576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7577 whose name does not start with the host triplet. If you think this
7578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7579 ac_tool_warned=yes ;;
7581 RANLIB=$ac_ct_RANLIB
7584 RANLIB="$ac_cv_prog_RANLIB"
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}strip; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_STRIP+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 if test -n "$STRIP"; then
7596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 STRIP=$ac_cv_prog_STRIP
7616 if test -n "$STRIP"; then
7617 { echo "$as_me:$LINENO: result: $STRIP" >&5
7618 echo "${ECHO_T}$STRIP" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7626 if test -z "$ac_cv_prog_STRIP"; then
7628 # Extract the first word of "strip", so it can be a program name with args.
7629 set dummy strip; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 if test -n "$ac_ct_STRIP"; then
7636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_ac_ct_STRIP="strip"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7656 if test -n "$ac_ct_STRIP"; then
7657 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7658 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7664 if test "x$ac_ct_STRIP" = x; then
7667 case $cross_compiling:$ac_tool_warned in
7669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7670 whose name does not start with the host triplet. If you think this
7671 configuration is useful to you, please write to autoconf@gnu.org." >&5
7672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7673 whose name does not start with the host triplet. If you think this
7674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7675 ac_tool_warned=yes ;;
7680 STRIP="$ac_cv_prog_STRIP"
7685 old_CFLAGS="$CFLAGS"
7687 # Set sane defaults for various variables
7688 test -z "$AR" && AR=ar
7689 test -z "$AR_FLAGS" && AR_FLAGS=cru
7690 test -z "$AS" && AS=as
7691 test -z "$CC" && CC=cc
7692 test -z "$LTCC" && LTCC=$CC
7693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7694 test -z "$DLLTOOL" && DLLTOOL=dlltool
7695 test -z "$LD" && LD=ld
7696 test -z "$LN_S" && LN_S="ln -s"
7697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7698 test -z "$NM" && NM=nm
7699 test -z "$SED" && SED=sed
7700 test -z "$OBJDUMP" && OBJDUMP=objdump
7701 test -z "$RANLIB" && RANLIB=:
7702 test -z "$STRIP" && STRIP=:
7703 test -z "$ac_objext" && ac_objext=o
7705 # Determine commands to create old-style static archives.
7706 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7707 old_postinstall_cmds='chmod 644 $oldlib'
7708 old_postuninstall_cmds=
7710 if test -n "$RANLIB"; then
7713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7719 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7722 for cc_temp in $compiler""; do
7724 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7725 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7730 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7733 # Only perform the check for file, if the check method requires it
7734 case $deplibs_check_method in
7736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7737 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747 lt_save_MAGIC_CMD="$MAGIC_CMD"
7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750 for ac_dir in $ac_dummy; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/${ac_tool_prefix}file; then
7754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7755 if test -n "$file_magic_test_file"; then
7756 case $deplibs_check_method in
7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761 $EGREP "$file_magic_regex" > /dev/null; then
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such. This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem. Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7783 MAGIC_CMD="$lt_save_MAGIC_CMD"
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7791 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7797 if test -z "$lt_cv_path_MAGIC_CMD"; then
7798 if test -n "$ac_tool_prefix"; then
7799 { echo "$as_me:$LINENO: checking for file" >&5
7800 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7809 lt_save_MAGIC_CMD="$MAGIC_CMD"
7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7812 for ac_dir in $ac_dummy; do
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/file; then
7816 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7817 if test -n "$file_magic_test_file"; then
7818 case $deplibs_check_method in
7820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7823 $EGREP "$file_magic_regex" > /dev/null; then
7828 *** Warning: the command libtool uses to detect shared libraries,
7829 *** $file_magic_cmd, produces output that libtool cannot recognize.
7830 *** The result is that libtool may fail to recognize shared libraries
7831 *** as such. This will affect the creation of libtool libraries that
7832 *** depend on shared libraries, but programs linked with such libtool
7833 *** libraries will work regardless of this problem. Nevertheless, you
7834 *** may want to report the problem to your system manager and/or to
7835 *** bug-libtool@gnu.org
7845 MAGIC_CMD="$lt_save_MAGIC_CMD"
7850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851 if test -n "$MAGIC_CMD"; then
7852 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7853 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7871 # Check whether --enable-libtool-lock was given.
7872 if test "${enable_libtool_lock+set}" = set; then
7873 enableval=$enable_libtool_lock;
7876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7879 # Check whether --with-pic was given.
7880 if test "${with_pic+set}" = set; then
7881 withval=$with_pic; pic_mode="$withval"
7886 test -z "$pic_mode" && pic_mode=default
7888 # Use C for the default configuration in the libtool script
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 # Source file extension for C test sources.
7901 # Object file extension for compiled C test sources.
7905 # Code to be used in simple compile tests
7906 lt_simple_compile_test_code="int some_variable = 0;\n"
7908 # Code to be used in simple link tests
7909 lt_simple_link_test_code='int main(){return(0);}\n'
7912 # If no C compiler was specified, use CC.
7915 # If no C compiler flags were specified, use CFLAGS.
7916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7918 # Allow CC to be a program name with arguments.
7922 # save warnings/boilerplate of simple test code
7923 ac_outfile=conftest.$ac_objext
7924 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7926 _lt_compiler_boilerplate=`cat conftest.err`
7929 ac_outfile=conftest.$ac_objext
7930 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_linker_boilerplate=`cat conftest.err`
7937 lt_prog_compiler_no_builtin_flag=
7939 if test "$GCC" = yes; then
7940 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7943 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7944 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 lt_cv_prog_compiler_rtti_exceptions=no
7949 ac_outfile=conftest.$ac_objext
7950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7951 lt_compiler_flag="-fno-rtti -fno-exceptions"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 # The option is referenced via a variable to avoid confusing sed.
7957 lt_compile=`echo "$ac_compile" | $SED \
7958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960 -e 's:$: $lt_compiler_flag:'`
7961 (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7962 (eval "$lt_compile" 2>conftest.err)
7964 cat conftest.err >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 if (exit $ac_status) && test -s "$ac_outfile"; then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings other than the usual output.
7969 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_rtti_exceptions=yes
7978 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7979 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7982 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7989 lt_prog_compiler_wl=
7990 lt_prog_compiler_pic=
7991 lt_prog_compiler_static=
7993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7996 if test "$GCC" = yes; then
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_static='-static'
8002 # All AIX code is PIC.
8003 if test "$host_cpu" = ia64; then
8004 # AIX 5 now supports IA64 processor
8005 lt_prog_compiler_static='-Bstatic'
8010 # FIXME: we need at least 68020 code to build shared libraries, but
8011 # adding the `-m68020' flag to GCC prevents building anything better,
8013 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8016 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8017 # PIC is the default for these OSes.
8020 mingw* | pw32* | os2*)
8021 # This hack is so that the source file can tell whether it is being
8022 # built for inclusion in a dll (and should export symbols for example).
8023 lt_prog_compiler_pic='-DDLL_EXPORT'
8026 darwin* | rhapsody*)
8027 # PIC is the default on this platform
8028 # Common symbols not allowed in MH_DYLIB files
8029 lt_prog_compiler_pic='-fno-common'
8033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8034 # Instead, we relocate shared libraries at runtime.
8038 # Just because we use GCC doesn't mean we suddenly get shared libraries
8039 # on systems that don't support them.
8040 lt_prog_compiler_can_build_shared=no
8045 if test -d /usr/nec; then
8046 lt_prog_compiler_pic=-Kconform_pic
8051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8058 lt_prog_compiler_pic='-fPIC'
8064 lt_prog_compiler_pic='-fPIC'
8068 # PORTME Check for flag to pass linker flags through the system compiler.
8071 lt_prog_compiler_wl='-Wl,'
8072 if test "$host_cpu" = ia64; then
8073 # AIX 5 now supports IA64 processor
8074 lt_prog_compiler_static='-Bstatic'
8076 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8080 # PIC is the default on this platform
8081 # Common symbols not allowed in MH_DYLIB files
8082 case $cc_basename in
8084 lt_prog_compiler_pic='-qnocommon'
8085 lt_prog_compiler_wl='-Wl,'
8090 mingw* | pw32* | os2*)
8091 # This hack is so that the source file can tell whether it is being
8092 # built for inclusion in a dll (and should export symbols for example).
8093 lt_prog_compiler_pic='-DDLL_EXPORT'
8096 hpux9* | hpux10* | hpux11*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8105 lt_prog_compiler_pic='+Z'
8108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8109 lt_prog_compiler_static='${wl}-a ${wl}archive'
8112 irix5* | irix6* | nonstopux*)
8113 lt_prog_compiler_wl='-Wl,'
8114 # PIC (with -KPIC) is the default.
8115 lt_prog_compiler_static='-non_shared'
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8123 linux* | k*bsd*-gnu)
8124 case $cc_basename in
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_pic='-KPIC'
8128 lt_prog_compiler_static='-static'
8130 pgcc* | pgf77* | pgf90* | pgf95*)
8131 # Portland Group compilers (*not* the Pentium gcc compiler,
8132 # which looks to be a dead project)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-fpic'
8135 lt_prog_compiler_static='-Bstatic'
8138 lt_prog_compiler_wl='-Wl,'
8139 # All Alpha code is PIC.
8140 lt_prog_compiler_static='-non_shared'
8145 osf3* | osf4* | osf5*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All OSF/1 code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 case $cc_basename in
8156 lt_prog_compiler_wl='-Qoption ld ';;
8158 lt_prog_compiler_wl='-Wl,';;
8163 lt_prog_compiler_wl='-Qoption ld '
8164 lt_prog_compiler_pic='-PIC'
8165 lt_prog_compiler_static='-Bstatic'
8168 sysv4 | sysv4.2uw2* | sysv4.3*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8175 if test -d /usr/nec ;then
8176 lt_prog_compiler_pic='-Kconform_pic'
8177 lt_prog_compiler_static='-Bstatic'
8181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_can_build_shared=no
8193 lt_prog_compiler_pic='-pic'
8194 lt_prog_compiler_static='-Bstatic'
8198 lt_prog_compiler_can_build_shared=no
8203 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8204 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8207 # Check to make sure the PIC flag actually works.
8209 if test -n "$lt_prog_compiler_pic"; then
8211 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8212 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8213 if test "${lt_prog_compiler_pic_works+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 lt_prog_compiler_pic_works=no
8217 ac_outfile=conftest.$ac_objext
8218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8219 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8220 # Insert the option either (1) after the last *FLAGS variable, or
8221 # (2) before a word containing "conftest.", or (3) at the end.
8222 # Note that $ac_compile itself does not contain backslashes and begins
8223 # with a dollar sign (not a hyphen), so the echo should work correctly.
8224 # The option is referenced via a variable to avoid confusing sed.
8225 lt_compile=`echo "$ac_compile" | $SED \
8226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228 -e 's:$: $lt_compiler_flag:'`
8229 (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8230 (eval "$lt_compile" 2>conftest.err)
8232 cat conftest.err >&5
8233 echo "$as_me:8233: \$? = $ac_status" >&5
8234 if (exit $ac_status) && test -s "$ac_outfile"; then
8235 # The compiler can only warn and ignore the option if not recognized
8236 # So say no if there are warnings other than the usual output.
8237 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8240 lt_prog_compiler_pic_works=yes
8246 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8247 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8249 if test x"$lt_prog_compiler_pic_works" = xyes; then
8250 case $lt_prog_compiler_pic in
8252 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8255 lt_prog_compiler_pic=
8256 lt_prog_compiler_can_build_shared=no
8261 # For platforms which do not support PIC, -DPIC is meaningless:
8263 lt_prog_compiler_pic=
8266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8271 # Check to make sure the static flag actually works.
8273 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8274 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8275 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8276 if test "${lt_prog_compiler_static_works+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 lt_prog_compiler_static_works=no
8280 save_LDFLAGS="$LDFLAGS"
8281 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8282 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8284 # The linker can only warn and ignore the option if not recognized
8285 # So say no if there are warnings
8286 if test -s conftest.err; then
8287 # Append any errors to the config.log.
8288 cat conftest.err 1>&5
8289 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291 if diff conftest.exp conftest.er2 >/dev/null; then
8292 lt_prog_compiler_static_works=yes
8295 lt_prog_compiler_static_works=yes
8299 LDFLAGS="$save_LDFLAGS"
8302 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8303 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8305 if test x"$lt_prog_compiler_static_works" = xyes; then
8308 lt_prog_compiler_static=
8312 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 lt_cv_prog_compiler_c_o=no
8318 $rm -r conftest 2>/dev/null
8322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8324 lt_compiler_flag="-o out/conftest2.$ac_objext"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>out/conftest.err)
8336 cat out/conftest.err >&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings
8342 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_c_o=yes
8350 # SGI C++ compiler will create directory out/ii_files/ for
8351 # template instantiation
8352 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8353 $rm out/* && rmdir out
8359 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8363 hard_links="nottested"
8364 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8365 # do not overwrite the value of need_locks provided by the user
8366 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8367 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8372 ln conftest.a conftest.b 2>&5 || hard_links=no
8373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8374 { echo "$as_me:$LINENO: result: $hard_links" >&5
8375 echo "${ECHO_T}$hard_links" >&6; }
8376 if test "$hard_links" = no; then
8377 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8378 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8385 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8386 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8389 allow_undefined_flag=
8390 enable_shared_with_static_runtimes=no
8392 archive_expsym_cmds=
8393 old_archive_From_new_cmds=
8394 old_archive_from_expsyms_cmds=
8395 export_dynamic_flag_spec=
8396 whole_archive_flag_spec=
8397 thread_safe_flag_spec=
8398 hardcode_libdir_flag_spec=
8399 hardcode_libdir_flag_spec_ld=
8400 hardcode_libdir_separator=
8403 hardcode_shlibpath_var=unsupported
8404 link_all_deplibs=unknown
8405 hardcode_automatic=no
8408 always_export_symbols=no
8409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8410 # include_expsyms should be a list of space-separated symbols to be *always*
8411 # included in the symbol list
8413 # exclude_expsyms can be an extended regexp of symbols to exclude
8414 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8416 # as well as any symbol that contains `d'.
8417 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8419 # platforms (ab)use it in PIC code, but their linkers get confused if
8420 # the symbol is explicitly referenced. Since portable code cannot
8421 # rely on this symbol name, it's probably fine to never include it in
8422 # preloaded symbol tables.
8423 extract_expsyms_cmds=
8424 # Just being paranoid about ensuring that cc_basename is set.
8425 for cc_temp in $compiler""; do
8427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8433 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8436 cygwin* | mingw* | pw32*)
8437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8438 # When not using gcc, we currently assume that we are using
8439 # Microsoft Visual C++.
8440 if test "$GCC" != yes; then
8445 # we just hope/assume this is gcc and not c89 (= MSVC++)
8454 if test "$with_gnu_ld" = yes; then
8455 # If archive_cmds runs LD, not CC, wlarc should be empty
8458 # Set some defaults for GNU ld with shared library support. These
8459 # are reset later if shared libraries are not supported. Putting them
8460 # here allows them to be overridden if necessary.
8461 runpath_var=LD_RUN_PATH
8462 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8463 export_dynamic_flag_spec='${wl}--export-dynamic'
8464 # ancient GNU ld didn't support --whole-archive et. al.
8465 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8468 whole_archive_flag_spec=
8470 supports_anon_versioning=no
8471 case `$LD -v 2>/dev/null` in
8472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8475 *\ 2.11.*) ;; # other 2.11 versions
8476 *) supports_anon_versioning=yes ;;
8479 # See if GNU ld supports shared libraries.
8481 aix3* | aix4* | aix5*)
8482 # On AIX/PPC, the GNU linker is very broken
8483 if test "$host_cpu" != ia64; then
8487 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8488 *** to be unable to reliably create shared libraries on AIX.
8489 *** Therefore, libtool is disabling shared libraries support. If you
8490 *** really care for shared libraries, you may want to modify your PATH
8491 *** so that a non-GNU linker is found, and then restart.
8498 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)'
8499 hardcode_libdir_flag_spec='-L$libdir'
8500 hardcode_minus_L=yes
8502 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8503 # that the semantics of dynamic libraries on AmigaOS, at least up
8504 # to version 4, is to share data among multiple programs linked
8505 # with the same dynamic library. Since this doesn't match the
8506 # behavior of shared libraries on other platforms, we can't use
8512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8513 allow_undefined_flag=unsupported
8514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8515 # support --undefined. This deserves some investigation. FIXME
8516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 cygwin* | mingw* | pw32*)
8523 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8524 # as there is no search path for DLLs.
8525 hardcode_libdir_flag_spec='-L$libdir'
8526 allow_undefined_flag=unsupported
8527 always_export_symbols=no
8528 enable_shared_with_static_runtimes=yes
8529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8531 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8533 # If the export-symbols file already is a .def file (1st line
8534 # is EXPORTS), use it as is; otherwise, prepend...
8535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8536 cp $export_symbols $output_objdir/$soname.def;
8538 echo EXPORTS > $output_objdir/$soname.def;
8539 cat $export_symbols >> $output_objdir/$soname.def;
8541 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8549 hardcode_shlibpath_var=no
8550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8551 export_dynamic_flag_spec='${wl}-E'
8552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8553 # Instead, shared libraries are loaded at an image base (0x10000000 by
8554 # default) and relocated if they conflict, which is a slow very memory
8555 # consuming and fragmenting process. To avoid this, we pick a random,
8556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8559 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8562 linux* | k*bsd*-gnu)
8563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8565 case $cc_basename,$host_cpu in
8566 pgcc*) # Portland Group C compiler
8567 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'
8568 tmp_addflag=' $pic_flag'
8570 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8571 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'
8572 tmp_addflag=' $pic_flag -Mnomain' ;;
8573 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8574 tmp_addflag=' -i_dynamic' ;;
8575 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8576 tmp_addflag=' -i_dynamic -nofor_main' ;;
8577 ifc* | ifort*) # Intel Fortran compiler
8578 tmp_addflag=' -nofor_main' ;;
8580 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 if test $supports_anon_versioning = yes; then
8583 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8585 $echo "local: *; };" >> $output_objdir/$libname.ver~
8586 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8594 netbsd* | netbsdelf*-gnu)
8595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8596 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8610 *** create shared libraries on Solaris systems. Therefore, libtool
8611 *** is disabling shared libraries support. We urge you to upgrade GNU
8612 *** binutils to release 2.9.1 or newer. Another option is to modify
8613 *** your PATH or compiler configuration so that the native linker is
8614 *** used, and then restart.
8617 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8626 case `$LD -v 2>&1` in
8627 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8632 *** reliably create shared libraries on SCO systems. Therefore, libtool
8633 *** is disabling shared libraries support. We urge you to upgrade GNU
8634 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8635 *** your PATH or compiler configuration so that the native linker is
8636 *** used, and then restart.
8641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8642 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_shlibpath_var=no
8660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 if test "$ld_shlibs" = no; then
8671 hardcode_libdir_flag_spec=
8672 export_dynamic_flag_spec=
8673 whole_archive_flag_spec=
8676 # PORTME fill in a description of your system's linker (not GNU ld)
8679 allow_undefined_flag=unsupported
8680 always_export_symbols=yes
8681 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'
8682 # Note: this linker hardcodes the directories in LIBPATH if there
8683 # are no directories specified by -L.
8684 hardcode_minus_L=yes
8685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8686 # Neither direct hardcoding nor static linking is supported with a
8688 hardcode_direct=unsupported
8693 if test "$host_cpu" = ia64; then
8694 # On IA64, the linker does run time linking by default, so we don't
8695 # have to do anything special.
8696 aix_use_runtimelinking=no
8697 exp_sym_flag='-Bexport'
8700 # If we're using GNU nm, then we don't want the "-C" option.
8701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8702 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8703 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'
8705 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'
8707 aix_use_runtimelinking=no
8709 # Test if we are trying to use run time linking or normal
8710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8711 # need to do runtime linking.
8712 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8713 for ld_flag in $LDFLAGS; do
8714 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8715 aix_use_runtimelinking=yes
8722 exp_sym_flag='-bexport'
8723 no_entry_flag='-bnoentry'
8726 # When large executables or shared objects are built, AIX ld can
8727 # have problems creating the table of contents. If linking a library
8728 # or program results in "error TOC overflow" add -mminimal-toc to
8729 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8730 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8734 hardcode_libdir_separator=':'
8735 link_all_deplibs=yes
8737 if test "$GCC" = yes; then
8738 case $host_os in aix4.[012]|aix4.[012].*)
8739 # We only want to do this on AIX 4.2 and lower, the check
8740 # below for broken collect2 doesn't work under 4.3+
8741 collect2name=`${CC} -print-prog-name=collect2`
8742 if test -f "$collect2name" && \
8743 strings "$collect2name" | grep resolve_lib_name >/dev/null
8745 # We have reworked collect2
8748 # We have old collect2
8749 hardcode_direct=unsupported
8750 # It fails to find uninstalled libraries when the uninstalled
8751 # path is not listed in the libpath. Setting hardcode_minus_L
8752 # to unsupported forces relinking
8753 hardcode_minus_L=yes
8754 hardcode_libdir_flag_spec='-L$libdir'
8755 hardcode_libdir_separator=
8759 shared_flag='-shared'
8760 if test "$aix_use_runtimelinking" = yes; then
8761 shared_flag="$shared_flag "'${wl}-G'
8765 if test "$host_cpu" = ia64; then
8766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767 # chokes on -Wl,-G. The following line is correct:
8770 if test "$aix_use_runtimelinking" = yes; then
8771 shared_flag='${wl}-G'
8773 shared_flag='${wl}-bM:SRE'
8778 # It seems that -bexpall does not export symbols beginning with
8779 # underscore (_), so it is better to generate a list of symbols to export.
8780 always_export_symbols=yes
8781 if test "$aix_use_runtimelinking" = yes; then
8782 # Warning - without using the other runtime loading flags (-brtl),
8783 # -berok will link without error, but may produce a broken library.
8784 allow_undefined_flag='-berok'
8785 # Determine the default libpath from the value encoded in an empty executable.
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (ac_try="$ac_link"
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_link") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1 >conftest.err
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest$ac_exeext &&
8818 $as_test_x conftest$ac_exeext; then
8820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8822 # Check for a 64-bit object if we didn't find anything.
8823 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; }
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8833 conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8839 if test "$host_cpu" = ia64; then
8840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841 allow_undefined_flag="-z nodefs"
8842 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8844 # Determine the default libpath from the value encoded in an empty executable.
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_link") 2>conftest.er1
8869 grep -v '^ *+' conftest.er1 >conftest.err
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 } && test -s conftest$ac_exeext &&
8877 $as_test_x conftest$ac_exeext; then
8879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8881 # Check for a 64-bit object if we didn't find anything.
8882 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; }
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8892 conftest$ac_exeext conftest.$ac_ext
8893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896 # Warning - without using the other run time loading flags,
8897 # -berok will link without error, but may produce a broken library.
8898 no_undefined_flag=' ${wl}-bernotok'
8899 allow_undefined_flag=' ${wl}-berok'
8900 # Exported symbols can be pulled into shared objects from archives
8901 whole_archive_flag_spec='$convenience'
8902 archive_cmds_need_lc=yes
8903 # This is similar to how AIX traditionally builds its shared libraries.
8904 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8910 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)'
8911 hardcode_libdir_flag_spec='-L$libdir'
8912 hardcode_minus_L=yes
8913 # see comment about different semantics on the GNU ld section
8918 export_dynamic_flag_spec=-rdynamic
8921 cygwin* | mingw* | pw32*)
8922 # When not using gcc, we currently assume that we are using
8923 # Microsoft Visual C++.
8924 # hardcode_libdir_flag_spec is actually meaningless, as there is
8925 # no search path for DLLs.
8926 hardcode_libdir_flag_spec=' '
8927 allow_undefined_flag=unsupported
8928 # Tell ltmain to make .lib files, not .a files.
8930 # Tell ltmain to make .dll files, not .so files.
8932 # FIXME: Setting linknames here is a bad hack.
8933 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8934 # The linker will automatically build a .lib file if we build a DLL.
8935 old_archive_From_new_cmds='true'
8936 # FIXME: Should let the user specify the lib program.
8937 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8938 fix_srcfile_path='`cygpath -w "$srcfile"`'
8939 enable_shared_with_static_runtimes=yes
8942 darwin* | rhapsody*)
8944 rhapsody* | darwin1.[012])
8945 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8948 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8951 case ${MACOSX_DEPLOYMENT_TARGET} in
8953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8956 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8962 archive_cmds_need_lc=no
8964 hardcode_automatic=yes
8965 hardcode_shlibpath_var=unsupported
8966 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 if test "$GCC" = yes ; then
8969 output_verbose_link_cmd='echo'
8970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8973 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}'
8974 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}'
8976 case $cc_basename in
8978 output_verbose_link_cmd='echo'
8979 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8982 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}'
8983 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}'
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_shlibpath_var=no
9002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9003 # support. Future versions do this automatically, but an explicit c++rt0.o
9004 # does not break anything, and helps significantly (at the cost of a little
9007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9008 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_shlibpath_var=no
9013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_minus_L=yes
9018 hardcode_shlibpath_var=no
9021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9022 freebsd* | dragonfly*)
9023 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9024 hardcode_libdir_flag_spec='-R$libdir'
9026 hardcode_shlibpath_var=no
9030 if test "$GCC" = yes; then
9031 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'
9033 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'
9035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036 hardcode_libdir_separator=:
9039 # hardcode_minus_L: Not really in the search PATH,
9040 # but as the default location of the library.
9041 hardcode_minus_L=yes
9042 export_dynamic_flag_spec='${wl}-E'
9046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9047 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9051 if test "$with_gnu_ld" = no; then
9052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9053 hardcode_libdir_separator=:
9056 export_dynamic_flag_spec='${wl}-E'
9058 # hardcode_minus_L: Not really in the search PATH,
9059 # but as the default location of the library.
9060 hardcode_minus_L=yes
9065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9090 if test "$with_gnu_ld" = no; then
9091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092 hardcode_libdir_separator=:
9096 hardcode_libdir_flag_spec_ld='+b $libdir'
9098 hardcode_shlibpath_var=no
9102 export_dynamic_flag_spec='${wl}-E'
9104 # hardcode_minus_L: Not really in the search PATH,
9105 # but as the default location of the library.
9106 hardcode_minus_L=yes
9112 irix5* | irix6* | nonstopux*)
9113 if test "$GCC" = yes; then
9114 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'
9116 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'
9117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 hardcode_libdir_separator=:
9121 link_all_deplibs=yes
9124 netbsd* | netbsdelf*-gnu)
9125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9128 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9130 hardcode_libdir_flag_spec='-R$libdir'
9132 hardcode_shlibpath_var=no
9136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139 hardcode_libdir_separator=:
9140 hardcode_shlibpath_var=no
9145 hardcode_shlibpath_var=no
9146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150 export_dynamic_flag_spec='${wl}-E'
9153 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155 hardcode_libdir_flag_spec='-R$libdir'
9158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_minus_L=yes
9168 allow_undefined_flag=unsupported
9169 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'
9170 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9174 if test "$GCC" = yes; then
9175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9176 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'
9178 allow_undefined_flag=' -expect_unresolved \*'
9179 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'
9181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182 hardcode_libdir_separator=:
9185 osf4* | osf5*) # as osf3* with the addition of -msym flag
9186 if test "$GCC" = yes; then
9187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9188 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'
9189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 allow_undefined_flag=' -expect_unresolved \*'
9192 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'
9193 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9194 $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'
9196 # Both c and cxx compiler support -rpath directly
9197 hardcode_libdir_flag_spec='-rpath $libdir'
9199 hardcode_libdir_separator=:
9203 no_undefined_flag=' -z text'
9204 if test "$GCC" = yes; then
9206 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9208 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9215 hardcode_libdir_flag_spec='-R$libdir'
9216 hardcode_shlibpath_var=no
9218 solaris2.[0-5] | solaris2.[0-5].*) ;;
9220 # The compiler driver will combine linker options so we
9221 # cannot just pass the convience library names through
9222 # without $wl, iff we do not link with $LD.
9223 # Luckily, gcc supports the same syntax we need for Sun Studio.
9224 # Supported since Solaris 2.6 (maybe 2.5.1?)
9227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9229 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' ;;
9232 link_all_deplibs=yes
9236 if test "x$host_vendor" = xsequent; then
9237 # Use $CC to link under sequent, because it throws in some extra .o
9238 # files that make .init and .fini sections work.
9239 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9243 hardcode_libdir_flag_spec='-L$libdir'
9245 hardcode_minus_L=yes
9246 hardcode_shlibpath_var=no
9250 case $host_vendor in
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_direct=yes # is this really true???
9256 ## LD is ld it makes a PLAMLIB
9257 ## CC just makes a GrossModule.
9258 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9259 reload_cmds='$CC -r -o $output$reload_objs'
9263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9267 runpath_var='LD_RUN_PATH'
9268 hardcode_shlibpath_var=no
9272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_shlibpath_var=no
9274 export_dynamic_flag_spec='-Bexport'
9278 if test -d /usr/nec; then
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_shlibpath_var=no
9281 runpath_var=LD_RUN_PATH
9282 hardcode_runpath_var=yes
9287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9288 no_undefined_flag='${wl}-z,text'
9289 archive_cmds_need_lc=no
9290 hardcode_shlibpath_var=no
9291 runpath_var='LD_RUN_PATH'
9293 if test "$GCC" = yes; then
9294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302 sysv5* | sco3.2v5* | sco5v6*)
9303 # Note: We can NOT use -z defs as we might desire, because we do not
9304 # link with -lc, and that would cause any symbols used from libc to
9305 # always be unresolved, which means just about no library would
9306 # ever link correctly. If we're not using GNU ld we use -z text
9307 # though, which does catch some bad symbols but isn't as heavy-handed
9309 no_undefined_flag='${wl}-z,text'
9310 allow_undefined_flag='${wl}-z,nodefs'
9311 archive_cmds_need_lc=no
9312 hardcode_shlibpath_var=no
9313 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9314 hardcode_libdir_separator=':'
9315 link_all_deplibs=yes
9316 export_dynamic_flag_spec='${wl}-Bexport'
9317 runpath_var='LD_RUN_PATH'
9319 if test "$GCC" = yes; then
9320 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9323 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_shlibpath_var=no
9340 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9341 echo "${ECHO_T}$ld_shlibs" >&6; }
9342 test "$ld_shlibs" = no && can_build_shared=no
9345 # Do we need to explicitly link libc?
9347 case "x$archive_cmds_need_lc" in
9349 # Assume -lc should be added
9350 archive_cmds_need_lc=yes
9352 if test "$enable_shared" = yes && test "$GCC" = yes; then
9353 case $archive_cmds in
9355 # FIXME: we may have to deal with multi-command sequences.
9358 # Test whether the compiler implicitly links with -lc since on some
9359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9360 # to ld, don't add -lc before -lgcc.
9361 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } 2>conftest.err; then
9373 libobjs=conftest.$ac_objext
9375 wl=$lt_prog_compiler_wl
9376 pic_flag=$lt_prog_compiler_pic
9382 lt_save_allow_undefined_flag=$allow_undefined_flag
9383 allow_undefined_flag=
9384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9385 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }
9390 archive_cmds_need_lc=no
9392 archive_cmds_need_lc=yes
9394 allow_undefined_flag=$lt_save_allow_undefined_flag
9396 cat conftest.err 1>&5
9399 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9400 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9407 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9410 libname_spec='lib$name'
9418 shlibpath_overrides_runpath=unknown
9420 dynamic_linker="$host_os ld.so"
9421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9422 if test "$GCC" = yes; then
9423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9424 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9425 # if the path contains ";" then we assume it to be the separator
9426 # otherwise default to the standard path separator (i.e. ":") - it is
9427 # assumed that no part of a normal pathname contains ";" but that should
9428 # okay in the real world where ";" in dirpaths is itself problematic.
9429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9436 need_lib_prefix=unknown
9437 hardcode_into_libs=no
9439 # when you set need_version to no, make sure it does not cause -set_version
9440 # flags to be left without arguments
9441 need_version=unknown
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9447 shlibpath_var=LIBPATH
9449 # AIX 3 has no versioning support, so we append a major version to the name.
9450 soname_spec='${libname}${release}${shared_ext}$major'
9457 hardcode_into_libs=yes
9458 if test "$host_cpu" = ia64; then
9459 # AIX 5 supports IA64
9460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9463 # With GCC up to 2.95.x, collect2 would create an import file
9464 # for dependence libraries. The import file would start with
9465 # the line `#! .'. This would cause the generated library to
9466 # depend on `.', always an invalid library. This was fixed in
9467 # development snapshots of GCC prior to 3.0.
9469 aix4 | aix4.[01] | aix4.[01].*)
9470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9480 # soname into executable. Probably we can add versioning support to
9481 # collect2, so additional links can be useful in future.
9482 if test "$aix_use_runtimelinking" = yes; then
9483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9484 # instead of lib<name>.a to let people know that these are not
9485 # typical AIX shared libraries.
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 # We preserve .a as extension for shared libraries through AIX4.2
9489 # and later when we are not doing run time linking.
9490 library_names_spec='${libname}${release}.a $libname.a'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LIBPATH
9498 library_names_spec='$libname.ixlibrary $libname.a'
9499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9500 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'
9504 library_names_spec='${libname}${shared_ext}'
9505 dynamic_linker="$host_os ld.so"
9506 shlibpath_var=LIBRARY_PATH
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9518 # the default ld.so.conf also contains /usr/contrib/lib and
9519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9520 # libtool to hard-code these into programs
9523 cygwin* | mingw* | pw32*)
9524 version_type=windows
9529 case $GCC,$host_os in
9530 yes,cygwin* | yes,mingw* | yes,pw32*)
9531 library_names_spec='$libname.dll.a'
9532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9533 postinstall_cmds='base_file=`basename \${file}`~
9534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9535 dldir=$destdir/`dirname \$dlpath`~
9536 test -d \$dldir || mkdir -p \$dldir~
9537 $install_prog $dir/$dlname \$dldir/$dlname~
9538 chmod a+x \$dldir/$dlname'
9539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9540 dlpath=$dir/\$dldll~
9542 shlibpath_overrides_runpath=yes
9546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9551 # MinGW DLLs use traditional 'lib' prefix
9552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9555 # It is most probably a Windows format PATH printed by
9556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9557 # path with ; separators, and with drive letters. We can handle the
9558 # drive letters (cygwin fileutils understands them), so leave them,
9559 # especially as we might pass files found there to a mingw objdump,
9560 # which wouldn't understand a cygwinified path. Ahh.
9561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9567 # pw32 DLLs use 'pw' prefix rather than 'lib'
9568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9577 dynamic_linker='Win32 ld.exe'
9578 # FIXME: first we should search . and the directory the executable is in
9582 darwin* | rhapsody*)
9583 dynamic_linker="$host_os dyld"
9587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9588 soname_spec='${libname}${release}${major}$shared_ext'
9589 shlibpath_overrides_runpath=yes
9590 shlibpath_var=DYLD_LIBRARY_PATH
9591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9592 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9593 if test "$GCC" = yes; then
9594 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"`
9596 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9614 freebsd* | dragonfly*)
9615 # DragonFly does not have aout. When/if they implement a new
9616 # versioning mechanism, adjust this.
9617 if test -x /usr/bin/objformat; then
9618 objformat=`/usr/bin/objformat`
9621 freebsd[123]*) objformat=aout ;;
9625 version_type=freebsd-$objformat
9626 case $version_type in
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9637 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes
9642 freebsd3.[01]* | freebsdelf3.[01]*)
9643 shlibpath_overrides_runpath=yes
9644 hardcode_into_libs=yes
9646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9648 shlibpath_overrides_runpath=no
9649 hardcode_into_libs=yes
9651 freebsd*) # from 4.6 on
9652 shlibpath_overrides_runpath=yes
9653 hardcode_into_libs=yes
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 hardcode_into_libs=yes
9668 hpux9* | hpux10* | hpux11*)
9669 # Give a soname corresponding to the major version so that dld.sl refuses to
9670 # link against other versions.
9677 hardcode_into_libs=yes
9678 dynamic_linker="$host_os dld.so"
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 if test "X$HPUX_IA64_MODE" = X32; then
9684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9692 hardcode_into_libs=yes
9693 dynamic_linker="$host_os dld.sl"
9694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9703 dynamic_linker="$host_os dld.sl"
9704 shlibpath_var=SHLIB_PATH
9705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9711 postinstall_cmds='chmod 555 $lib'
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 shlibpath_overrides_runpath=no
9723 hardcode_into_libs=yes
9726 irix5* | irix6* | nonstopux*)
9728 nonstopux*) version_type=nonstopux ;;
9730 if test "$lt_cv_prog_gnu_ld" = yes; then
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 irix5* | nonstopux*)
9745 case $LD in # libtool.m4 will add one of these switches to LD
9746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9747 libsuff= shlibsuff= libmagic=32-bit;;
9748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9749 libsuff=32 shlibsuff=N32 libmagic=N32;;
9750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9752 *) libsuff= shlibsuff= libmagic=never-match;;
9756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9757 shlibpath_overrides_runpath=no
9758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9760 hardcode_into_libs=yes
9763 # No shared lib support for Linux oldld, aout, or coff.
9764 linux*oldld* | linux*aout* | linux*coff*)
9768 # This must be Linux ELF.
9769 linux* | k*bsd*-gnu)
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 shlibpath_overrides_runpath=no
9778 # This implies no fast_install, which is unacceptable.
9779 # Some rework will be needed to allow for fast_install
9780 # before this can be enabled.
9781 hardcode_into_libs=yes
9783 # Append ld.so.conf contents to the search path
9784 if test -f /etc/ld.so.conf; then
9785 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9786 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9789 # We used to test for /lib/ld.so.1 and disable shared libraries on
9790 # powerpc, because MkLinux only supported shared libraries with the
9791 # GNU dynamic linker. Since this was broken with cross compilers,
9792 # most powerpc-linux boxes support dynamic linking these days and
9793 # people can always --disable-shared, the test was removed, and we
9794 # assume the GNU/Linux dynamic linker is in use.
9795 dynamic_linker='GNU/Linux ld.so'
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=no
9806 hardcode_into_libs=yes
9807 dynamic_linker='NetBSD ld.elf_so'
9814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9817 dynamic_linker='NetBSD (a.out) ld.so'
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 dynamic_linker='NetBSD ld.elf_so'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=yes
9825 hardcode_into_libs=yes
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 shlibpath_var=LD_LIBRARY_PATH
9832 shlibpath_overrides_runpath=yes
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 shlibpath_overrides_runpath=yes
9847 sys_lib_dlsearch_path_spec="/usr/lib"
9849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9852 *) need_version=no ;;
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9859 openbsd2.[89] | openbsd2.[89].*)
9860 shlibpath_overrides_runpath=no
9863 shlibpath_overrides_runpath=yes
9867 shlibpath_overrides_runpath=yes
9872 libname_spec='$name'
9875 library_names_spec='$libname${shared_ext} $libname.a'
9876 dynamic_linker='OS/2 ld.exe'
9877 shlibpath_var=LIBPATH
9880 osf3* | osf4* | osf5*)
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 shlibpath_var=LD_LIBRARY_PATH
9887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 shlibpath_overrides_runpath=yes
9899 hardcode_into_libs=yes
9900 # ldd complains unless libraries are executable
9901 postinstall_cmds='chmod +x $lib'
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=yes
9910 if test "$with_gnu_ld" = yes; then
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919 soname_spec='${libname}${release}${shared_ext}$major'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 case $host_vendor in
9923 shlibpath_overrides_runpath=no
9925 export_dynamic_flag_spec='${wl}-Blargedynsym'
9926 runpath_var=LD_RUN_PATH
9934 shlibpath_overrides_runpath=no
9935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9941 if test -d /usr/nec ;then
9943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9944 soname_spec='$libname${shared_ext}.$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9950 version_type=freebsd-elf
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 hardcode_into_libs=yes
9957 if test "$with_gnu_ld" = yes; then
9958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9959 shlibpath_overrides_runpath=no
9961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9962 shlibpath_overrides_runpath=yes
9965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9969 sys_lib_dlsearch_path_spec='/usr/lib'
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9983 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9984 echo "${ECHO_T}$dynamic_linker" >&6; }
9985 test "$dynamic_linker" = no && can_build_shared=no
9987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9988 if test "$GCC" = yes; then
9989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9992 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9995 if test -n "$hardcode_libdir_flag_spec" || \
9996 test -n "$runpath_var" || \
9997 test "X$hardcode_automatic" = "Xyes" ; then
9999 # We can hardcode non-existant directories.
10000 if test "$hardcode_direct" != no &&
10001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10002 # have to relink, otherwise we might link with an installed library
10003 # when we should be linking with a yet-to-be-installed one
10004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10005 test "$hardcode_minus_L" != no; then
10006 # Linking always hardcodes the temporary library directory.
10007 hardcode_action=relink
10009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10010 hardcode_action=immediate
10013 # We cannot hardcode anything, or else we can only hardcode existing
10015 hardcode_action=unsupported
10017 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10018 echo "${ECHO_T}$hardcode_action" >&6; }
10020 if test "$hardcode_action" = relink; then
10021 # Fast installation is not supported
10022 enable_fast_install=no
10023 elif test "$shlibpath_overrides_runpath" = yes ||
10024 test "$enable_shared" = no; then
10025 # Fast installation is not necessary
10026 enable_fast_install=needless
10031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10036 { echo "$as_me:$LINENO: result: yes" >&5
10037 echo "${ECHO_T}yes" >&6; }
10039 # FIXME - insert some real tests, host_os isn't really good enough
10042 if test -n "$STRIP" ; then
10043 striplib="$STRIP -x"
10044 { echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6; }
10047 { echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6; }
10052 { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10058 if test "x$enable_dlopen" != xyes; then
10059 enable_dlopen=unknown
10060 enable_dlopen_self=unknown
10061 enable_dlopen_self_static=unknown
10068 lt_cv_dlopen="load_add_on"
10070 lt_cv_dlopen_self=yes
10074 lt_cv_dlopen="LoadLibrary"
10079 lt_cv_dlopen="dlopen"
10084 # if libdl is installed we need to link against it
10085 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 ac_check_lib_save_LIBS=$LIBS
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_dl_dlopen=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_dl_dlopen=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10146 if test $ac_cv_lib_dl_dlopen = yes; then
10147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10150 lt_cv_dlopen="dyld"
10152 lt_cv_dlopen_self=yes
10159 { echo "$as_me:$LINENO: checking for shl_load" >&5
10160 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10161 if test "${ac_cv_func_shl_load+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 cat >conftest.$ac_ext <<_ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10172 #define shl_load innocuous_shl_load
10174 /* System header to define __stub macros and hopefully few prototypes,
10175 which can conflict with char shl_load (); below.
10176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10177 <limits.h> exists even on freestanding compilers. */
10180 # include <limits.h>
10182 # include <assert.h>
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10194 /* The GNU C library defines this for functions which it implements
10195 to always fail with ENOSYS. Some functions are actually named
10196 something starting with __ and the normal name is an alias. */
10197 #if defined __stub_shl_load || defined __stub___shl_load
10204 return shl_load ();
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext &&
10226 $as_test_x conftest$ac_exeext; then
10227 ac_cv_func_shl_load=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_cv_func_shl_load=no
10235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10236 conftest$ac_exeext conftest.$ac_ext
10238 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10239 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10240 if test $ac_cv_func_shl_load = yes; then
10241 lt_cv_dlopen="shl_load"
10243 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10244 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10245 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 ac_check_lib_save_LIBS=$LIBS
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10267 return shl_load ();
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext &&
10289 $as_test_x conftest$ac_exeext; then
10290 ac_cv_lib_dld_shl_load=yes
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_lib_dld_shl_load=no
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10303 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10304 if test $ac_cv_lib_dld_shl_load = yes; then
10305 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10307 { echo "$as_me:$LINENO: checking for dlopen" >&5
10308 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10309 if test "${ac_cv_func_dlopen+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10320 #define dlopen innocuous_dlopen
10322 /* System header to define __stub macros and hopefully few prototypes,
10323 which can conflict with char dlopen (); below.
10324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325 <limits.h> exists even on freestanding compilers. */
10328 # include <limits.h>
10330 # include <assert.h>
10335 /* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
10342 /* The GNU C library defines this for functions which it implements
10343 to always fail with ENOSYS. Some functions are actually named
10344 something starting with __ and the normal name is an alias. */
10345 #if defined __stub_dlopen || defined __stub___dlopen
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_link") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest$ac_exeext &&
10374 $as_test_x conftest$ac_exeext; then
10375 ac_cv_func_dlopen=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_func_dlopen=no
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384 conftest$ac_exeext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10387 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10388 if test $ac_cv_func_dlopen = yes; then
10389 lt_cv_dlopen="dlopen"
10391 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10392 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 ac_check_lib_save_LIBS=$LIBS
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10429 grep -v '^ *+' conftest.er1 >conftest.err
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
10438 ac_cv_lib_dl_dlopen=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_lib_dl_dlopen=no
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452 if test $ac_cv_lib_dl_dlopen = yes; then
10453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10455 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lsvld $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10469 /* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 ac_cv_lib_svld_dlopen=yes
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_lib_svld_dlopen=no
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10516 if test $ac_cv_lib_svld_dlopen = yes; then
10517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10519 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10520 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_check_lib_save_LIBS=$LIBS
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10543 return dld_link ();
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10557 grep -v '^ *+' conftest.er1 >conftest.err
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 ac_cv_lib_dld_dld_link=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_lib_dld_dld_link=no
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10579 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10580 if test $ac_cv_lib_dld_dld_link = yes; then
10581 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10602 if test "x$lt_cv_dlopen" != xno; then
10608 case $lt_cv_dlopen in
10610 save_CPPFLAGS="$CPPFLAGS"
10611 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10613 save_LDFLAGS="$LDFLAGS"
10614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10617 LIBS="$lt_cv_dlopen_libs $LIBS"
10619 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10620 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10621 if test "${lt_cv_dlopen_self+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 if test "$cross_compiling" = yes; then :
10625 lt_cv_dlopen_self=cross
10627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628 lt_status=$lt_dlunknown
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10630 "configure"
10631 #include "confdefs.h"
10640 # define LT_DLGLOBAL RTLD_GLOBAL
10643 # define LT_DLGLOBAL DL_GLOBAL
10645 # define LT_DLGLOBAL 0
10649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650 find out it does not work in some platform. */
10651 #ifndef LT_DLLAZY_OR_NOW
10653 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10656 # define LT_DLLAZY_OR_NOW DL_LAZY
10659 # define LT_DLLAZY_OR_NOW RTLD_NOW
10662 # define LT_DLLAZY_OR_NOW DL_NOW
10664 # define LT_DLLAZY_OR_NOW 0
10672 extern "C" void exit (int);
10675 void fnord() { int i=42;}
10678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10679 int status = $lt_dlunknown;
10683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10684 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10685 /* dlclose (self); */
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 (eval $ac_link) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10698 (./conftest; exit; ) >&5 2>/dev/null
10700 case x$lt_status in
10701 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10702 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10703 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10706 # compilation failed
10707 lt_cv_dlopen_self=no
10714 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10715 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10717 if test "x$lt_cv_dlopen_self" = xyes; then
10718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10719 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10720 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10721 if test "${lt_cv_dlopen_self_static+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 if test "$cross_compiling" = yes; then :
10725 lt_cv_dlopen_self_static=cross
10727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10728 lt_status=$lt_dlunknown
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10730 "configure"
10731 #include "confdefs.h"
10740 # define LT_DLGLOBAL RTLD_GLOBAL
10743 # define LT_DLGLOBAL DL_GLOBAL
10745 # define LT_DLGLOBAL 0
10749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10750 find out it does not work in some platform. */
10751 #ifndef LT_DLLAZY_OR_NOW
10753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10756 # define LT_DLLAZY_OR_NOW DL_LAZY
10759 # define LT_DLLAZY_OR_NOW RTLD_NOW
10762 # define LT_DLLAZY_OR_NOW DL_NOW
10764 # define LT_DLLAZY_OR_NOW 0
10772 extern "C" void exit (int);
10775 void fnord() { int i=42;}
10778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779 int status = $lt_dlunknown;
10783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10784 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10785 /* dlclose (self); */
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10798 (./conftest; exit; ) >&5 2>/dev/null
10800 case x$lt_status in
10801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10803 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10806 # compilation failed
10807 lt_cv_dlopen_self_static=no
10814 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10818 CPPFLAGS="$save_CPPFLAGS"
10819 LDFLAGS="$save_LDFLAGS"
10824 case $lt_cv_dlopen_self in
10825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10826 *) enable_dlopen_self=unknown ;;
10829 case $lt_cv_dlopen_self_static in
10830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10831 *) enable_dlopen_self_static=unknown ;;
10836 # Report which library types will actually be built
10837 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10838 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10839 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10840 echo "${ECHO_T}$can_build_shared" >&6; }
10842 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10843 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10844 test "$can_build_shared" = "no" && enable_shared=no
10846 # On AIX, shared libraries and static libraries use the same namespace, and
10847 # are all built from PIC.
10850 test "$enable_shared" = yes && enable_static=no
10851 if test -n "$RANLIB"; then
10852 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10853 postinstall_cmds='$RANLIB $lib'
10858 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10859 test "$enable_shared" = yes && enable_static=no
10863 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10864 echo "${ECHO_T}$enable_shared" >&6; }
10866 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10867 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10868 # Make sure either enable_shared or enable_static is yes.
10869 test "$enable_shared" = yes || enable_static=yes
10870 { echo "$as_me:$LINENO: result: $enable_static" >&5
10871 echo "${ECHO_T}$enable_static" >&6; }
10873 # The else clause should only fire when bootstrapping the
10874 # libtool distribution, otherwise you forgot to ship ltmain.sh
10875 # with your package, and you will get complaints that there are
10876 # no rules to generate ltmain.sh.
10877 if test -f "$ltmain"; then
10878 # See if we are running on zsh, and set the options which allow our commands through
10879 # without removal of \ escapes.
10880 if test -n "${ZSH_VERSION+set}" ; then
10881 setopt NO_GLOB_SUBST
10883 # Now quote all the things that may contain metacharacters while being
10884 # careful not to overquote the AC_SUBSTed values. We take copies of the
10885 # variables and quote the copies for generation of the libtool script.
10886 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10888 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10889 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10890 deplibs_check_method reload_flag reload_cmds need_locks \
10891 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10892 lt_cv_sys_global_symbol_to_c_name_address \
10893 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10894 old_postinstall_cmds old_postuninstall_cmds \
10898 lt_prog_compiler_wl \
10899 lt_prog_compiler_pic \
10900 lt_prog_compiler_static \
10901 lt_prog_compiler_no_builtin_flag \
10902 export_dynamic_flag_spec \
10903 thread_safe_flag_spec \
10904 whole_archive_flag_spec \
10905 enable_shared_with_static_runtimes \
10907 old_archive_from_new_cmds \
10912 compiler_lib_search_path \
10914 archive_expsym_cmds \
10916 postuninstall_cmds \
10917 old_archive_from_expsyms_cmds \
10918 allow_undefined_flag \
10919 no_undefined_flag \
10920 export_symbols_cmds \
10921 hardcode_libdir_flag_spec \
10922 hardcode_libdir_flag_spec_ld \
10923 hardcode_libdir_separator \
10924 hardcode_automatic \
10926 module_expsym_cmds \
10927 lt_cv_prog_compiler_c_o \
10929 include_expsyms; do
10932 old_archive_cmds | \
10933 old_archive_from_new_cmds | \
10935 archive_expsym_cmds | \
10937 module_expsym_cmds | \
10938 old_archive_from_expsyms_cmds | \
10939 export_symbols_cmds | \
10940 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10941 postinstall_cmds | postuninstall_cmds | \
10942 old_postinstall_cmds | old_postuninstall_cmds | \
10943 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10944 # Double-quote double-evaled strings.
10945 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10948 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10954 *'\$0 --fallback-echo"')
10955 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10959 cfgfile="${ofile}T"
10960 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10962 { echo "$as_me:$LINENO: creating $ofile" >&5
10963 echo "$as_me: creating $ofile" >&6;}
10965 cat <<__EOF__ >> "$cfgfile"
10968 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10969 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10972 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10973 # Free Software Foundation, Inc.
10975 # This file is part of GNU Libtool:
10976 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10978 # This program is free software; you can redistribute it and/or modify
10979 # it under the terms of the GNU General Public License as published by
10980 # the Free Software Foundation; either version 2 of the License, or
10981 # (at your option) any later version.
10983 # This program is distributed in the hope that it will be useful, but
10984 # WITHOUT ANY WARRANTY; without even the implied warranty of
10985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10986 # General Public License for more details.
10988 # You should have received a copy of the GNU General Public License
10989 # along with this program; if not, write to the Free Software
10990 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10992 # As a special exception to the GNU General Public License, if you
10993 # distribute this file as part of a program that contains a
10994 # configuration script generated by Autoconf, you may include it under
10995 # the same distribution terms that you use for the rest of that program.
10997 # A sed program that does not truncate output.
11000 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11001 Xsed="$SED -e 1s/^X//"
11003 # The HP-UX ksh and POSIX shell print the target directory to stdout
11004 # if CDPATH is set.
11005 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11007 # The names of the tagged configurations supported by this script.
11010 # ### BEGIN LIBTOOL CONFIG
11012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11014 # Shell to use when invoking shell scripts.
11017 # Whether or not to build shared libraries.
11018 build_libtool_libs=$enable_shared
11020 # Whether or not to build static libraries.
11021 build_old_libs=$enable_static
11023 # Whether or not to add -lc for building shared libraries.
11024 build_libtool_need_lc=$archive_cmds_need_lc
11026 # Whether or not to disallow shared libs when runtime libs are static
11027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11029 # Whether or not to optimize for fast installation.
11030 fast_install=$enable_fast_install
11033 host_alias=$host_alias
11037 # The build system.
11038 build_alias=$build_alias
11042 # An echo program that does not interpret backslashes.
11047 AR_FLAGS=$lt_AR_FLAGS
11052 # LTCC compiler flags.
11053 LTCFLAGS=$lt_LTCFLAGS
11055 # A language-specific compiler.
11058 # Is the compiler the GNU C compiler?
11064 # The linker used to build libraries.
11067 # Whether we need hard or soft links.
11070 # A BSD-compatible nm program.
11073 # A symbol stripping program
11076 # Used to examine libraries when file_magic_cmd begins "file"
11077 MAGIC_CMD=$MAGIC_CMD
11079 # Used on cygwin: DLL creation program.
11082 # Used on cygwin: object dumper.
11085 # Used on cygwin: assembler.
11088 # The name of the directory that contains temporary libtool files.
11091 # How to create reloadable object files.
11092 reload_flag=$lt_reload_flag
11093 reload_cmds=$lt_reload_cmds
11095 # How to pass a linker flag through the compiler.
11096 wl=$lt_lt_prog_compiler_wl
11098 # Object file suffix (normally "o").
11099 objext="$ac_objext"
11101 # Old archive suffix (normally "a").
11104 # Shared library suffix (normally ".so").
11105 shrext_cmds='$shrext_cmds'
11107 # Executable file suffix (normally "").
11110 # Additional compiler flags for building library objects.
11111 pic_flag=$lt_lt_prog_compiler_pic
11114 # What is the maximum length of a command?
11115 max_cmd_len=$lt_cv_sys_max_cmd_len
11117 # Does compiler simultaneously support -c and -o options?
11118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11120 # Must we lock files when doing compilation?
11121 need_locks=$lt_need_locks
11123 # Do we need the lib prefix for modules?
11124 need_lib_prefix=$need_lib_prefix
11126 # Do we need a version for libraries?
11127 need_version=$need_version
11129 # Whether dlopen is supported.
11130 dlopen_support=$enable_dlopen
11132 # Whether dlopen of programs is supported.
11133 dlopen_self=$enable_dlopen_self
11135 # Whether dlopen of statically linked programs is supported.
11136 dlopen_self_static=$enable_dlopen_self_static
11138 # Compiler flag to prevent dynamic linking.
11139 link_static_flag=$lt_lt_prog_compiler_static
11141 # Compiler flag to turn off builtin functions.
11142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11144 # Compiler flag to allow reflexive dlopens.
11145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11147 # Compiler flag to generate shared objects directly from archives.
11148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11150 # Compiler flag to generate thread-safe objects.
11151 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11153 # Library versioning type.
11154 version_type=$version_type
11156 # Format of library name prefix.
11157 libname_spec=$lt_libname_spec
11159 # List of archive names. First name is the real one, the rest are links.
11160 # The last name is the one that the linker finds with -lNAME.
11161 library_names_spec=$lt_library_names_spec
11163 # The coded name of the library, if different from the real name.
11164 soname_spec=$lt_soname_spec
11166 # Commands used to build and install an old-style archive.
11168 old_archive_cmds=$lt_old_archive_cmds
11169 old_postinstall_cmds=$lt_old_postinstall_cmds
11170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11172 # Create an old-style archive from a shared archive.
11173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11175 # Create a temporary old-style archive to link instead of a shared archive.
11176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11178 # Commands used to build and install a shared archive.
11179 archive_cmds=$lt_archive_cmds
11180 archive_expsym_cmds=$lt_archive_expsym_cmds
11181 postinstall_cmds=$lt_postinstall_cmds
11182 postuninstall_cmds=$lt_postuninstall_cmds
11184 # Commands used to build a loadable module (assumed same as above if empty)
11185 module_cmds=$lt_module_cmds
11186 module_expsym_cmds=$lt_module_expsym_cmds
11188 # Commands to strip libraries.
11189 old_striplib=$lt_old_striplib
11190 striplib=$lt_striplib
11192 # Dependencies to place before the objects being linked to create a
11194 predep_objects=$lt_predep_objects
11196 # Dependencies to place after the objects being linked to create a
11198 postdep_objects=$lt_postdep_objects
11200 # Dependencies to place before the objects being linked to create a
11202 predeps=$lt_predeps
11204 # Dependencies to place after the objects being linked to create a
11206 postdeps=$lt_postdeps
11208 # The library search path used internally by the compiler when linking
11209 # a shared library.
11210 compiler_lib_search_path=$lt_compiler_lib_search_path
11212 # Method to check whether dependent libraries are shared objects.
11213 deplibs_check_method=$lt_deplibs_check_method
11215 # Command to use when deplibs_check_method == file_magic.
11216 file_magic_cmd=$lt_file_magic_cmd
11218 # Flag that allows shared libraries with undefined symbols to be built.
11219 allow_undefined_flag=$lt_allow_undefined_flag
11221 # Flag that forces no undefined symbols.
11222 no_undefined_flag=$lt_no_undefined_flag
11224 # Commands used to finish a libtool library installation in a directory.
11225 finish_cmds=$lt_finish_cmds
11227 # Same as above, but a single script fragment to be evaled but not shown.
11228 finish_eval=$lt_finish_eval
11230 # Take the output of nm and produce a listing of raw symbols and C names.
11231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11233 # Transform the output of nm in a proper C declaration
11234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11236 # Transform the output of nm in a C name address pair
11237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11239 # This is the shared library runtime path variable.
11240 runpath_var=$runpath_var
11242 # This is the shared library path variable.
11243 shlibpath_var=$shlibpath_var
11245 # Is shlibpath searched before the hard-coded library search path?
11246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11248 # How to hardcode a shared library path into an executable.
11249 hardcode_action=$hardcode_action
11251 # Whether we should hardcode library paths into libraries.
11252 hardcode_into_libs=$hardcode_into_libs
11254 # Flag to hardcode \$libdir into a binary during linking.
11255 # This must work even if \$libdir does not exist.
11256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11258 # If ld is used when linking, flag to hardcode \$libdir into
11259 # a binary during linking. This must work even if \$libdir does
11261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11263 # Whether we need a single -rpath flag with a separated argument.
11264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11267 # resulting binary.
11268 hardcode_direct=$hardcode_direct
11270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11271 # resulting binary.
11272 hardcode_minus_L=$hardcode_minus_L
11274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11275 # the resulting binary.
11276 hardcode_shlibpath_var=$hardcode_shlibpath_var
11278 # Set to yes if building a shared library automatically hardcodes DIR into the library
11279 # and all subsequent libraries and executables linked against it.
11280 hardcode_automatic=$hardcode_automatic
11282 # Variables whose values should be saved in libtool wrapper scripts and
11283 # restored at relink time.
11284 variables_saved_for_relink="$variables_saved_for_relink"
11286 # Whether libtool must link a program against all its dependency libraries.
11287 link_all_deplibs=$link_all_deplibs
11289 # Compile-time system search path for libraries
11290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11292 # Run-time system search path for libraries
11293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11295 # Fix the shell variable \$srcfile for the compiler.
11296 fix_srcfile_path="$fix_srcfile_path"
11298 # Set to yes if exported symbols are required.
11299 always_export_symbols=$always_export_symbols
11301 # The commands to list exported symbols.
11302 export_symbols_cmds=$lt_export_symbols_cmds
11304 # The commands to extract the exported symbol list from a shared archive.
11305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11307 # Symbols that should not be listed in the preloaded symbols.
11308 exclude_expsyms=$lt_exclude_expsyms
11310 # Symbols that must always be exported.
11311 include_expsyms=$lt_include_expsyms
11313 # ### END LIBTOOL CONFIG
11320 cat <<\EOF >> "$cfgfile"
11322 # AIX sometimes has problems with the GCC collect2 program. For some
11323 # reason, if we set the COLLECT_NAMES environment variable, the problems
11324 # vanish in a puff of smoke.
11325 if test "X${COLLECT_NAMES+set}" != Xset; then
11327 export COLLECT_NAMES
11333 # We use sed instead of cat because bash on DJGPP gets confused if
11334 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11335 # text mode, it properly converts lines to CR/LF. This bash problem
11336 # is reportedly fixed, but why not run on old versions too?
11337 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11339 mv -f "$cfgfile" "$ofile" || \
11340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11344 # If there is no Makefile yet, we rely on a make rule to execute
11345 # `config.status --recheck' to rerun these tests and create the
11346 # libtool script then.
11347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11348 if test -f "$ltmain_in"; then
11349 test -f Makefile && make "$ltmain"
11355 ac_cpp='$CPP $CPPFLAGS'
11356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11363 # Check whether --with-tags was given.
11364 if test "${with_tags+set}" = set; then
11365 withval=$with_tags; tagnames="$withval"
11369 if test -f "$ltmain" && test -n "$tagnames"; then
11370 if test ! -f "${ofile}"; then
11371 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11372 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11375 if test -z "$LTCC"; then
11376 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11377 if test -z "$LTCC"; then
11378 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11379 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11382 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11385 if test -z "$LTCFLAGS"; then
11386 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11389 # Extract list of available tagged configurations in $ofile.
11390 # Note that this assumes the entire list is on one line.
11391 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11394 for tagname in $tagnames; do
11396 # Check whether tagname contains only valid characters
11397 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11399 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11400 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11401 { (exit 1); exit 1; }; }
11405 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11407 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11408 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11409 { (exit 1); exit 1; }; }
11412 # Update the list of available tags.
11413 if test -n "$tagname"; then
11414 echo appending configuration tag \"$tagname\" to $ofile
11418 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11419 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11420 (test "X$CXX" != "Xg++"))) ; then
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11430 archive_cmds_need_lc_CXX=no
11431 allow_undefined_flag_CXX=
11432 always_export_symbols_CXX=no
11433 archive_expsym_cmds_CXX=
11434 export_dynamic_flag_spec_CXX=
11435 hardcode_direct_CXX=no
11436 hardcode_libdir_flag_spec_CXX=
11437 hardcode_libdir_flag_spec_ld_CXX=
11438 hardcode_libdir_separator_CXX=
11439 hardcode_minus_L_CXX=no
11440 hardcode_shlibpath_var_CXX=unsupported
11441 hardcode_automatic_CXX=no
11443 module_expsym_cmds_CXX=
11444 link_all_deplibs_CXX=unknown
11445 old_archive_cmds_CXX=$old_archive_cmds
11446 no_undefined_flag_CXX=
11447 whole_archive_flag_spec_CXX=
11448 enable_shared_with_static_runtimes_CXX=no
11450 # Dependencies to place before and after the object being linked:
11451 predep_objects_CXX=
11452 postdep_objects_CXX=
11455 compiler_lib_search_path_CXX=
11457 # Source file extension for C++ test sources.
11460 # Object file extension for compiled C++ test sources.
11464 # Code to be used in simple compile tests
11465 lt_simple_compile_test_code="int some_variable = 0;\n"
11467 # Code to be used in simple link tests
11468 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11472 # If no C compiler was specified, use CC.
11475 # If no C compiler flags were specified, use CFLAGS.
11476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11478 # Allow CC to be a program name with arguments.
11482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
11484 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486 _lt_compiler_boilerplate=`cat conftest.err`
11489 ac_outfile=conftest.$ac_objext
11490 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_linker_boilerplate=`cat conftest.err`
11496 # Allow CC to be a program name with arguments.
11501 lt_save_with_gnu_ld=$with_gnu_ld
11502 lt_save_path_LD=$lt_cv_path_LD
11503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11506 $as_unset lt_cv_prog_gnu_ld
11508 if test -n "${lt_cv_path_LDCXX+set}"; then
11509 lt_cv_path_LD=$lt_cv_path_LDCXX
11511 $as_unset lt_cv_path_LD
11513 test -z "${LDCXX+set}" || LD=$LDCXX
11517 for cc_temp in $compiler""; do
11519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11525 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11528 # We don't want -fno-exception wen compiling C++ code, so set the
11529 # no_builtin_flag separately
11530 if test "$GXX" = yes; then
11531 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11533 lt_prog_compiler_no_builtin_flag_CXX=
11536 if test "$GXX" = yes; then
11537 # Set up default GNU C++ configuration
11540 # Check whether --with-gnu-ld was given.
11541 if test "${with_gnu_ld+set}" = set; then
11542 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11548 if test "$GCC" = yes; then
11549 # Check if gcc -print-prog-name=ld gives a path.
11550 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11551 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11554 # gcc leaves a trailing carriage return which upsets mingw
11555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11560 # Accept absolute paths.
11562 re_direlt='/[^/][^/]*/\.\./'
11563 # Canonicalize the pathname of ld
11564 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11566 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11568 test -z "$LD" && LD="$ac_prog"
11571 # If it fails, then pretend we aren't using GCC.
11575 # If it is relative, then search for the first ld in PATH.
11576 with_gnu_ld=unknown
11579 elif test "$with_gnu_ld" = yes; then
11580 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11583 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11586 if test "${lt_cv_path_LD+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 if test -z "$LD"; then
11590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11591 for ac_dir in $PATH; do
11593 test -z "$ac_dir" && ac_dir=.
11594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11595 lt_cv_path_LD="$ac_dir/$ac_prog"
11596 # Check to see if the program is GNU ld. I'd rather use --version,
11597 # but apparently some variants of GNU ld only accept -v.
11598 # Break only if it was the GNU/non-GNU ld that we prefer.
11599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11600 *GNU* | *'with BFD'*)
11601 test "$with_gnu_ld" != no && break
11604 test "$with_gnu_ld" != yes && break
11611 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11615 LD="$lt_cv_path_LD"
11616 if test -n "$LD"; then
11617 { echo "$as_me:$LINENO: result: $LD" >&5
11618 echo "${ECHO_T}$LD" >&6; }
11620 { echo "$as_me:$LINENO: result: no" >&5
11621 echo "${ECHO_T}no" >&6; }
11623 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11624 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11625 { (exit 1); exit 1; }; }
11626 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11627 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11628 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11632 case `$LD -v 2>&1 </dev/null` in
11633 *GNU* | *'with BFD'*)
11634 lt_cv_prog_gnu_ld=yes
11637 lt_cv_prog_gnu_ld=no
11641 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11643 with_gnu_ld=$lt_cv_prog_gnu_ld
11647 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11648 # archiving commands below assume that GNU ld is being used.
11649 if test "$with_gnu_ld" = yes; then
11650 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11651 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'
11653 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11656 # If archive_cmds runs LD, not CC, wlarc should be empty
11657 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11658 # investigate it a little bit more. (MM)
11661 # ancient GNU ld didn't support --whole-archive et. al.
11662 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11663 grep 'no-whole-archive' > /dev/null; then
11664 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11666 whole_archive_flag_spec_CXX=
11672 # A generic and very simple default shared library creation
11673 # command for GNU C++ for the case where it uses the native
11674 # linker, instead of GNU ld. If possible, this setting should
11675 # overridden to take advantage of the native linker features on
11676 # the platform it is being used on.
11677 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11680 # Commands to make compiler produce verbose output that lists
11681 # what "hidden" libraries, object files and flags are used when
11682 # linking a shared library.
11683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11691 # PORTME: fill in a description of your system's C++ link characteristics
11692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11697 # FIXME: insert proper C++ library support
11701 if test "$host_cpu" = ia64; then
11702 # On IA64, the linker does run time linking by default, so we don't
11703 # have to do anything special.
11704 aix_use_runtimelinking=no
11705 exp_sym_flag='-Bexport'
11708 aix_use_runtimelinking=no
11710 # Test if we are trying to use run time linking or normal
11711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11712 # need to do runtime linking.
11713 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11714 for ld_flag in $LDFLAGS; do
11717 aix_use_runtimelinking=yes
11725 exp_sym_flag='-bexport'
11726 no_entry_flag='-bnoentry'
11729 # When large executables or shared objects are built, AIX ld can
11730 # have problems creating the table of contents. If linking a library
11731 # or program results in "error TOC overflow" add -mminimal-toc to
11732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11735 archive_cmds_CXX=''
11736 hardcode_direct_CXX=yes
11737 hardcode_libdir_separator_CXX=':'
11738 link_all_deplibs_CXX=yes
11740 if test "$GXX" = yes; then
11741 case $host_os in aix4.[012]|aix4.[012].*)
11742 # We only want to do this on AIX 4.2 and lower, the check
11743 # below for broken collect2 doesn't work under 4.3+
11744 collect2name=`${CC} -print-prog-name=collect2`
11745 if test -f "$collect2name" && \
11746 strings "$collect2name" | grep resolve_lib_name >/dev/null
11748 # We have reworked collect2
11749 hardcode_direct_CXX=yes
11751 # We have old collect2
11752 hardcode_direct_CXX=unsupported
11753 # It fails to find uninstalled libraries when the uninstalled
11754 # path is not listed in the libpath. Setting hardcode_minus_L
11755 # to unsupported forces relinking
11756 hardcode_minus_L_CXX=yes
11757 hardcode_libdir_flag_spec_CXX='-L$libdir'
11758 hardcode_libdir_separator_CXX=
11762 shared_flag='-shared'
11763 if test "$aix_use_runtimelinking" = yes; then
11764 shared_flag="$shared_flag "'${wl}-G'
11768 if test "$host_cpu" = ia64; then
11769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11770 # chokes on -Wl,-G. The following line is correct:
11773 if test "$aix_use_runtimelinking" = yes; then
11774 shared_flag='${wl}-G'
11776 shared_flag='${wl}-bM:SRE'
11781 # It seems that -bexpall does not export symbols beginning with
11782 # underscore (_), so it is better to generate a list of symbols to export.
11783 always_export_symbols_CXX=yes
11784 if test "$aix_use_runtimelinking" = yes; then
11785 # Warning - without using the other runtime loading flags (-brtl),
11786 # -berok will link without error, but may produce a broken library.
11787 allow_undefined_flag_CXX='-berok'
11788 # Determine the default libpath from the value encoded in an empty executable.
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (ac_try="$ac_link"
11806 case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_link") 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_cxx_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest$ac_exeext &&
11821 $as_test_x conftest$ac_exeext; then
11823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11825 # Check for a 64-bit object if we didn't find anything.
11826 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; }
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836 conftest$ac_exeext conftest.$ac_ext
11837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11839 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11841 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11843 if test "$host_cpu" = ia64; then
11844 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11845 allow_undefined_flag_CXX="-z nodefs"
11846 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11848 # Determine the default libpath from the value encoded in an empty executable.
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_cxx_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
11883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11885 # Check for a 64-bit object if we didn't find anything.
11886 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; }
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11896 conftest$ac_exeext conftest.$ac_ext
11897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11899 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11900 # Warning - without using the other run time loading flags,
11901 # -berok will link without error, but may produce a broken library.
11902 no_undefined_flag_CXX=' ${wl}-bernotok'
11903 allow_undefined_flag_CXX=' ${wl}-berok'
11904 # Exported symbols can be pulled into shared objects from archives
11905 whole_archive_flag_spec_CXX='$convenience'
11906 archive_cmds_need_lc_CXX=yes
11907 # This is similar to how AIX traditionally builds its shared libraries.
11908 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11915 allow_undefined_flag_CXX=unsupported
11916 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11917 # support --undefined. This deserves some investigation. FIXME
11918 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925 case $cc_basename in
11927 # FIXME: insert proper C++ library support
11933 cygwin* | mingw* | pw32*)
11934 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11935 # as there is no search path for DLLs.
11936 hardcode_libdir_flag_spec_CXX='-L$libdir'
11937 allow_undefined_flag_CXX=unsupported
11938 always_export_symbols_CXX=no
11939 enable_shared_with_static_runtimes_CXX=yes
11941 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11942 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11943 # If the export-symbols file already is a .def file (1st line
11944 # is EXPORTS), use it as is; otherwise, prepend...
11945 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11946 cp $export_symbols $output_objdir/$soname.def;
11948 echo EXPORTS > $output_objdir/$soname.def;
11949 cat $export_symbols >> $output_objdir/$soname.def;
11951 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11956 darwin* | rhapsody*)
11958 rhapsody* | darwin1.[012])
11959 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11962 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11963 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11965 case ${MACOSX_DEPLOYMENT_TARGET} in
11967 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11970 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11976 archive_cmds_need_lc_CXX=no
11977 hardcode_direct_CXX=no
11978 hardcode_automatic_CXX=yes
11979 hardcode_shlibpath_var_CXX=unsupported
11980 whole_archive_flag_spec_CXX=''
11981 link_all_deplibs_CXX=yes
11983 if test "$GXX" = yes ; then
11984 lt_int_apple_cc_single_mod=no
11985 output_verbose_link_cmd='echo'
11986 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11987 lt_int_apple_cc_single_mod=yes
11989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11990 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11992 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'
11994 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11996 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11997 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}'
11999 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}'
12001 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}'
12003 case $cc_basename in
12005 output_verbose_link_cmd='echo'
12006 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'
12007 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12009 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}'
12010 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}'
12020 case $cc_basename in
12022 # FIXME: insert proper C++ library support
12026 # Green Hills C++ Compiler
12027 # FIXME: insert proper C++ library support
12031 # FIXME: insert proper C++ library support
12037 # C++ shared libraries reported to be fairly broken before switch to ELF
12041 archive_cmds_need_lc_CXX=no
12043 freebsd* | dragonfly*)
12044 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12051 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12052 hardcode_libdir_separator_CXX=:
12053 export_dynamic_flag_spec_CXX='${wl}-E'
12054 hardcode_direct_CXX=yes
12055 hardcode_minus_L_CXX=yes # Not in the search PATH,
12056 # but as the default
12057 # location of the library.
12059 case $cc_basename in
12061 # FIXME: insert proper C++ library support
12065 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'
12066 # Commands to make compiler produce verbose output that lists
12067 # what "hidden" libraries, object files and flags are used when
12068 # linking a shared library.
12070 # There doesn't appear to be a way to prevent this compiler from
12071 # explicitly linking system object files so we need to strip them
12072 # from the output so that they don't get included in the library
12074 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'
12077 if test "$GXX" = yes; then
12078 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'
12080 # FIXME: insert proper C++ library support
12087 if test $with_gnu_ld = no; then
12088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12089 hardcode_libdir_separator_CXX=:
12093 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12096 export_dynamic_flag_spec_CXX='${wl}-E'
12102 hardcode_direct_CXX=no
12103 hardcode_shlibpath_var_CXX=no
12106 hardcode_direct_CXX=yes
12107 hardcode_minus_L_CXX=yes # Not in the search PATH,
12108 # but as the default
12109 # location of the library.
12113 case $cc_basename in
12115 # FIXME: insert proper C++ library support
12121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12124 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12130 # Commands to make compiler produce verbose output that lists
12131 # what "hidden" libraries, object files and flags are used when
12132 # linking a shared library.
12134 # There doesn't appear to be a way to prevent this compiler from
12135 # explicitly linking system object files so we need to strip them
12136 # from the output so that they don't get included in the library
12138 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'
12141 if test "$GXX" = yes; then
12142 if test $with_gnu_ld = no; then
12145 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12148 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12151 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'
12156 # FIXME: insert proper C++ library support
12163 hardcode_direct_CXX=no
12164 hardcode_shlibpath_var_CXX=no
12165 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12166 export_dynamic_flag_spec_CXX='${wl}-E'
12167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12168 # Instead, shared libraries are loaded at an image base (0x10000000 by
12169 # default) and relocated if they conflict, which is a slow very memory
12170 # consuming and fragmenting process. To avoid this, we pick a random,
12171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12173 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12174 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12177 case $cc_basename in
12180 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'
12182 # Archives containing C++ object files must be created using
12183 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12184 # necessary to make sure instantiated templates are included
12186 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12189 if test "$GXX" = yes; then
12190 if test "$with_gnu_ld" = no; then
12191 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'
12193 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'
12196 link_all_deplibs_CXX=yes
12199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12200 hardcode_libdir_separator_CXX=:
12202 linux* | k*bsd*-gnu)
12203 case $cc_basename in
12205 # Kuck and Associates, Inc. (KAI) C++ Compiler
12207 # KCC will only create a shared library if the output file
12208 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12209 # to its proper name (with version) after linking.
12210 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'
12211 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'
12212 # Commands to make compiler produce verbose output that lists
12213 # what "hidden" libraries, object files and flags are used when
12214 # linking a shared library.
12216 # There doesn't appear to be a way to prevent this compiler from
12217 # explicitly linking system object files so we need to strip them
12218 # from the output so that they don't get included in the library
12220 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'
12222 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12223 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12225 # Archives containing C++ object files must be created using
12226 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12227 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12232 # version 8.0 and above of icpc choke on multiply defined symbols
12233 # if we add $predep_objects and $postdep_objects, however 7.1 and
12234 # earlier do not add the objects themselves.
12235 case `$CC -V 2>&1` in
12237 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238 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'
12240 *) # Version 8.0 or newer
12243 ia64*) tmp_idyn=' -i_dynamic';;
12245 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 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'
12249 archive_cmds_need_lc_CXX=no
12250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12255 # Portland Group C++ compiler
12256 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12257 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'
12259 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12260 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12261 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'
12265 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 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'
12268 runpath_var=LD_RUN_PATH
12269 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12270 hardcode_libdir_separator_CXX=:
12272 # Commands to make compiler produce verbose output that lists
12273 # what "hidden" libraries, object files and flags are used when
12274 # linking a shared library.
12276 # There doesn't appear to be a way to prevent this compiler from
12277 # explicitly linking system object files so we need to strip them
12278 # from the output so that they don't get included in the library
12280 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'
12285 # FIXME: insert proper C++ library support
12289 # FIXME: insert proper C++ library support
12293 case $cc_basename in
12295 # FIXME: insert proper C++ library support
12299 # FIXME: insert proper C++ library support
12304 netbsd* | netbsdelf*-gnu)
12305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12306 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12308 hardcode_libdir_flag_spec_CXX='-R$libdir'
12309 hardcode_direct_CXX=yes
12310 hardcode_shlibpath_var_CXX=no
12312 # Workaround some broken pre-1.5 toolchains
12313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12316 # C++ shared libraries are fairly broken
12320 hardcode_direct_CXX=yes
12321 hardcode_shlibpath_var_CXX=no
12322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12326 export_dynamic_flag_spec_CXX='${wl}-E'
12327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12329 output_verbose_link_cmd='echo'
12332 case $cc_basename in
12334 # Kuck and Associates, Inc. (KAI) C++ Compiler
12336 # KCC will only create a shared library if the output file
12337 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12338 # to its proper name (with version) after linking.
12339 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'
12341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12342 hardcode_libdir_separator_CXX=:
12344 # Archives containing C++ object files must be created using
12345 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12346 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12350 # Rational C++ 2.4.1
12351 # FIXME: insert proper C++ library support
12355 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12356 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'
12358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12359 hardcode_libdir_separator_CXX=:
12361 # Commands to make compiler produce verbose output that lists
12362 # what "hidden" libraries, object files and flags are used when
12363 # linking a shared library.
12365 # There doesn't appear to be a way to prevent this compiler from
12366 # explicitly linking system object files so we need to strip them
12367 # from the output so that they don't get included in the library
12369 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'
12372 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374 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'
12376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377 hardcode_libdir_separator_CXX=:
12379 # Commands to make compiler produce verbose output that lists
12380 # what "hidden" libraries, object files and flags are used when
12381 # linking a shared library.
12382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12385 # FIXME: insert proper C++ library support
12392 case $cc_basename in
12394 # Kuck and Associates, Inc. (KAI) C++ Compiler
12396 # KCC will only create a shared library if the output file
12397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12398 # to its proper name (with version) after linking.
12399 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'
12401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12402 hardcode_libdir_separator_CXX=:
12404 # Archives containing C++ object files must be created using
12405 # the KAI C++ compiler.
12406 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12409 # Rational C++ 2.4.1
12410 # FIXME: insert proper C++ library support
12414 allow_undefined_flag_CXX=' -expect_unresolved \*'
12415 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'
12416 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12417 echo "-hidden">> $lib.exp~
12418 $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~
12421 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12422 hardcode_libdir_separator_CXX=:
12424 # Commands to make compiler produce verbose output that lists
12425 # what "hidden" libraries, object files and flags are used when
12426 # linking a shared library.
12428 # There doesn't appear to be a way to prevent this compiler from
12429 # explicitly linking system object files so we need to strip them
12430 # from the output so that they don't get included in the library
12432 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'
12435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12437 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'
12439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12440 hardcode_libdir_separator_CXX=:
12442 # Commands to make compiler produce verbose output that lists
12443 # what "hidden" libraries, object files and flags are used when
12444 # linking a shared library.
12445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12448 # FIXME: insert proper C++ library support
12455 # FIXME: insert proper C++ library support
12459 case $cc_basename in
12462 # FIXME: insert proper C++ library support
12467 # FIXME: insert proper C++ library support
12471 # FIXME: insert proper C++ library support
12477 case $cc_basename in
12479 # Sun C++ 4.2, 5.x and Centerline C++
12480 archive_cmds_need_lc_CXX=yes
12481 no_undefined_flag_CXX=' -zdefs'
12482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12484 $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'
12486 hardcode_libdir_flag_spec_CXX='-R$libdir'
12487 hardcode_shlibpath_var_CXX=no
12489 solaris2.[0-5] | solaris2.[0-5].*) ;;
12491 # The C++ compiler is used as linker so we must use $wl
12492 # flag to pass the commands to the underlying system
12493 # linker. We must also pass each convience library through
12494 # to the system linker between allextract/defaultextract.
12495 # The C++ compiler will combine linker options so we
12496 # cannot just pass the convience library names through
12498 # Supported since Solaris 2.6 (maybe 2.5.1?)
12499 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'
12502 link_all_deplibs_CXX=yes
12504 output_verbose_link_cmd='echo'
12506 # Archives containing C++ object files must be created using
12507 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12508 # necessary to make sure instantiated templates are included
12510 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12513 # Green Hills C++ Compiler
12514 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12516 # The C++ compiler must be used to create the archive.
12517 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12520 # GNU C++ compiler with Solaris linker
12521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12522 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12523 if $CC --version | grep -v '^2\.7' > /dev/null; then
12524 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12525 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12526 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12528 # Commands to make compiler produce verbose output that lists
12529 # what "hidden" libraries, object files and flags are used when
12530 # linking a shared library.
12531 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12533 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12535 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12537 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12539 # Commands to make compiler produce verbose output that lists
12540 # what "hidden" libraries, object files and flags are used when
12541 # linking a shared library.
12542 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12545 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12551 no_undefined_flag_CXX='${wl}-z,text'
12552 archive_cmds_need_lc_CXX=no
12553 hardcode_shlibpath_var_CXX=no
12554 runpath_var='LD_RUN_PATH'
12556 case $cc_basename in
12558 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12559 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12563 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 sysv5* | sco3.2v5* | sco5v6*)
12568 # Note: We can NOT use -z defs as we might desire, because we do not
12569 # link with -lc, and that would cause any symbols used from libc to
12570 # always be unresolved, which means just about no library would
12571 # ever link correctly. If we're not using GNU ld we use -z text
12572 # though, which does catch some bad symbols but isn't as heavy-handed
12574 # For security reasons, it is highly recommended that you always
12575 # use absolute paths for naming shared libraries, and exclude the
12576 # DT_RUNPATH tag from executables and libraries. But doing so
12577 # requires that you compile everything twice, which is a pain.
12578 # So that behaviour is only enabled if SCOABSPATH is set to a
12579 # non-empty value in the environment. Most likely only useful for
12580 # creating official distributions of packages.
12581 # This is a hack until libtool officially supports absolute path
12582 # names for shared libraries.
12583 no_undefined_flag_CXX='${wl}-z,text'
12584 allow_undefined_flag_CXX='${wl}-z,nodefs'
12585 archive_cmds_need_lc_CXX=no
12586 hardcode_shlibpath_var_CXX=no
12587 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12588 hardcode_libdir_separator_CXX=':'
12589 link_all_deplibs_CXX=yes
12590 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12591 runpath_var='LD_RUN_PATH'
12593 case $cc_basename in
12595 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12596 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12600 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12605 case $cc_basename in
12607 # NonStop-UX NCC 3.20
12608 # FIXME: insert proper C++ library support
12612 # FIXME: insert proper C++ library support
12618 # FIXME: insert proper C++ library support
12622 # FIXME: insert proper C++ library support
12626 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12634 cat > conftest.$ac_ext <<EOF
12638 Foo (void) { a = 0; }
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; then
12649 # Parse the compiler output and extract the necessary
12650 # objects, libraries and library flags.
12652 # Sentinel used to keep track of whether or not we are before
12653 # the conftest object file.
12654 pre_test_object_deps_done=no
12656 # The `*' in the case matches for architectures that use `case' in
12657 # $output_verbose_cmd can trigger glob expansion during the loop
12658 # eval without this substitution.
12659 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12661 for p in `eval $output_verbose_link_cmd`; do
12665 # Some compilers place space between "-{L,R}" and the path.
12666 # Remove the space.
12667 if test $p = "-L" \
12668 || test $p = "-R"; then
12675 if test "$pre_test_object_deps_done" = no; then
12678 # Internal compiler library paths should come after those
12679 # provided the user. The postdeps already come after the
12680 # user supplied libs so there is no need to process them.
12681 if test -z "$compiler_lib_search_path_CXX"; then
12682 compiler_lib_search_path_CXX="${prev}${p}"
12684 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12687 # The "-l" case would never come before the object being
12688 # linked, so don't bother handling this case.
12691 if test -z "$postdeps_CXX"; then
12692 postdeps_CXX="${prev}${p}"
12694 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12700 # This assumes that the test object file only shows up
12701 # once in the compiler output.
12702 if test "$p" = "conftest.$objext"; then
12703 pre_test_object_deps_done=yes
12707 if test "$pre_test_object_deps_done" = no; then
12708 if test -z "$predep_objects_CXX"; then
12709 predep_objects_CXX="$p"
12711 predep_objects_CXX="$predep_objects_CXX $p"
12714 if test -z "$postdep_objects_CXX"; then
12715 postdep_objects_CXX="$p"
12717 postdep_objects_CXX="$postdep_objects_CXX $p"
12722 *) ;; # Ignore the rest.
12730 echo "libtool.m4: error: problem compiling CXX test program"
12733 $rm -f confest.$objext
12735 # PORTME: override above test on systems where it is broken
12738 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12739 # hack all around it, let's just trust "g++" to DTRT.
12740 predep_objects_CXX=
12741 postdep_objects_CXX=
12746 case $cc_basename in
12748 # Adding this requires a known-good setup of shared libraries for
12749 # Sun compiler versions before 5.6, else PIC objects from an old
12750 # archive will be linked into the output, leading to subtle bugs.
12751 postdeps_CXX='-lCstd -lCrun'
12758 case " $postdeps_CXX " in
12759 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12762 lt_prog_compiler_wl_CXX=
12763 lt_prog_compiler_pic_CXX=
12764 lt_prog_compiler_static_CXX=
12766 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12769 # C++ specific cases for pic, static, wl, etc.
12770 if test "$GXX" = yes; then
12771 lt_prog_compiler_wl_CXX='-Wl,'
12772 lt_prog_compiler_static_CXX='-static'
12776 # All AIX code is PIC.
12777 if test "$host_cpu" = ia64; then
12778 # AIX 5 now supports IA64 processor
12779 lt_prog_compiler_static_CXX='-Bstatic'
12783 # FIXME: we need at least 68020 code to build shared libraries, but
12784 # adding the `-m68020' flag to GCC prevents building anything better,
12786 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12788 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12789 # PIC is the default for these OSes.
12791 mingw* | os2* | pw32*)
12792 # This hack is so that the source file can tell whether it is being
12793 # built for inclusion in a dll (and should export symbols for example).
12794 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12796 darwin* | rhapsody*)
12797 # PIC is the default on this platform
12798 # Common symbols not allowed in MH_DYLIB files
12799 lt_prog_compiler_pic_CXX='-fno-common'
12802 # DJGPP does not support shared libraries at all
12803 lt_prog_compiler_pic_CXX=
12806 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12807 # Instead, we relocate shared libraries at runtime.
12810 if test -d /usr/nec; then
12811 lt_prog_compiler_pic_CXX=-Kconform_pic
12815 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12816 # not for PA HP-UX.
12821 lt_prog_compiler_pic_CXX='-fPIC'
12826 lt_prog_compiler_pic_CXX='-fPIC'
12832 # All AIX code is PIC.
12833 if test "$host_cpu" = ia64; then
12834 # AIX 5 now supports IA64 processor
12835 lt_prog_compiler_static_CXX='-Bstatic'
12837 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12841 case $cc_basename in
12843 # Green Hills C++ Compiler
12844 # _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"
12849 # PIC is the default on this platform
12850 # Common symbols not allowed in MH_DYLIB files
12851 case $cc_basename in
12853 lt_prog_compiler_pic_CXX='-qnocommon'
12854 lt_prog_compiler_wl_CXX='-Wl,'
12859 case $cc_basename in
12861 lt_prog_compiler_pic_CXX='-KPIC'
12864 # Green Hills C++ Compiler
12865 lt_prog_compiler_pic_CXX='-pic'
12871 freebsd* | dragonfly*)
12872 # FreeBSD uses GNU C++
12874 hpux9* | hpux10* | hpux11*)
12875 case $cc_basename in
12877 lt_prog_compiler_wl_CXX='-Wl,'
12878 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12879 if test "$host_cpu" != ia64; then
12880 lt_prog_compiler_pic_CXX='+Z'
12884 lt_prog_compiler_wl_CXX='-Wl,'
12885 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12891 lt_prog_compiler_pic_CXX='+Z'
12900 # This is c89, which is MS Visual C++ (no shared libs)
12901 # Anyone wants to do a port?
12903 irix5* | irix6* | nonstopux*)
12904 case $cc_basename in
12906 lt_prog_compiler_wl_CXX='-Wl,'
12907 lt_prog_compiler_static_CXX='-non_shared'
12908 # CC pic flag -KPIC is the default.
12914 linux* | k*bsd*-gnu)
12915 case $cc_basename in
12918 lt_prog_compiler_wl_CXX='--backend -Wl,'
12919 lt_prog_compiler_pic_CXX='-fPIC'
12923 lt_prog_compiler_wl_CXX='-Wl,'
12924 lt_prog_compiler_pic_CXX='-KPIC'
12925 lt_prog_compiler_static_CXX='-static'
12928 # Portland Group C++ compiler.
12929 lt_prog_compiler_wl_CXX='-Wl,'
12930 lt_prog_compiler_pic_CXX='-fpic'
12931 lt_prog_compiler_static_CXX='-Bstatic'
12935 # Make sure the PIC flag is empty. It appears that all Alpha
12936 # Linux and Compaq Tru64 Unix objects are PIC.
12937 lt_prog_compiler_pic_CXX=
12938 lt_prog_compiler_static_CXX='-non_shared'
12949 case $cc_basename in
12951 lt_prog_compiler_pic_CXX='-W c,exportall'
12957 netbsd* | netbsdelf*-gnu)
12959 osf3* | osf4* | osf5*)
12960 case $cc_basename in
12962 lt_prog_compiler_wl_CXX='--backend -Wl,'
12965 # Rational C++ 2.4.1
12966 lt_prog_compiler_pic_CXX='-pic'
12969 # Digital/Compaq C++
12970 lt_prog_compiler_wl_CXX='-Wl,'
12971 # Make sure the PIC flag is empty. It appears that all Alpha
12972 # Linux and Compaq Tru64 Unix objects are PIC.
12973 lt_prog_compiler_pic_CXX=
12974 lt_prog_compiler_static_CXX='-non_shared'
12983 case $cc_basename in
12985 # Sun C++ 4.2, 5.x and Centerline C++
12986 lt_prog_compiler_pic_CXX='-KPIC'
12987 lt_prog_compiler_static_CXX='-Bstatic'
12988 lt_prog_compiler_wl_CXX='-Qoption ld '
12991 # Green Hills C++ Compiler
12992 lt_prog_compiler_pic_CXX='-PIC'
12999 case $cc_basename in
13002 lt_prog_compiler_pic_CXX='-pic'
13003 lt_prog_compiler_static_CXX='-Bstatic'
13007 lt_prog_compiler_pic_CXX='-pic'
13014 case $cc_basename in
13016 # NonStop-UX NCC 3.20
13017 lt_prog_compiler_pic_CXX='-KPIC'
13023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13024 case $cc_basename in
13026 lt_prog_compiler_wl_CXX='-Wl,'
13027 lt_prog_compiler_pic_CXX='-KPIC'
13028 lt_prog_compiler_static_CXX='-Bstatic'
13035 lt_prog_compiler_can_build_shared_CXX=no
13040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13041 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13044 # Check to make sure the PIC flag actually works.
13046 if test -n "$lt_prog_compiler_pic_CXX"; then
13048 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13050 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 lt_prog_compiler_pic_works_CXX=no
13054 ac_outfile=conftest.$ac_objext
13055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13057 # Insert the option either (1) after the last *FLAGS variable, or
13058 # (2) before a word containing "conftest.", or (3) at the end.
13059 # Note that $ac_compile itself does not contain backslashes and begins
13060 # with a dollar sign (not a hyphen), so the echo should work correctly.
13061 # The option is referenced via a variable to avoid confusing sed.
13062 lt_compile=`echo "$ac_compile" | $SED \
13063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13065 -e 's:$: $lt_compiler_flag:'`
13066 (eval echo "\"\$as_me:13066: $lt_compile\"" >&5)
13067 (eval "$lt_compile" 2>conftest.err)
13069 cat conftest.err >&5
13070 echo "$as_me:13070: \$? = $ac_status" >&5
13071 if (exit $ac_status) && test -s "$ac_outfile"; then
13072 # The compiler can only warn and ignore the option if not recognized
13073 # So say no if there are warnings other than the usual output.
13074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13077 lt_prog_compiler_pic_works_CXX=yes
13083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13084 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13086 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13087 case $lt_prog_compiler_pic_CXX in
13089 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13092 lt_prog_compiler_pic_CXX=
13093 lt_prog_compiler_can_build_shared_CXX=no
13098 # For platforms which do not support PIC, -DPIC is meaningless:
13100 lt_prog_compiler_pic_CXX=
13103 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13108 # Check to make sure the static flag actually works.
13110 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13111 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13113 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 lt_prog_compiler_static_works_CXX=no
13117 save_LDFLAGS="$LDFLAGS"
13118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13119 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13121 # The linker can only warn and ignore the option if not recognized
13122 # So say no if there are warnings
13123 if test -s conftest.err; then
13124 # Append any errors to the config.log.
13125 cat conftest.err 1>&5
13126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128 if diff conftest.exp conftest.er2 >/dev/null; then
13129 lt_prog_compiler_static_works_CXX=yes
13132 lt_prog_compiler_static_works_CXX=yes
13136 LDFLAGS="$save_LDFLAGS"
13139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13140 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13142 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13145 lt_prog_compiler_static_CXX=
13149 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 lt_cv_prog_compiler_c_o_CXX=no
13155 $rm -r conftest 2>/dev/null
13159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13161 lt_compiler_flag="-o out/conftest2.$ac_objext"
13162 # Insert the option either (1) after the last *FLAGS variable, or
13163 # (2) before a word containing "conftest.", or (3) at the end.
13164 # Note that $ac_compile itself does not contain backslashes and begins
13165 # with a dollar sign (not a hyphen), so the echo should work correctly.
13166 lt_compile=`echo "$ac_compile" | $SED \
13167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13169 -e 's:$: $lt_compiler_flag:'`
13170 (eval echo "\"\$as_me:13170: $lt_compile\"" >&5)
13171 (eval "$lt_compile" 2>out/conftest.err)
13173 cat out/conftest.err >&5
13174 echo "$as_me:13174: \$? = $ac_status" >&5
13175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13177 # The compiler can only warn and ignore the option if not recognized
13178 # So say no if there are warnings
13179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13182 lt_cv_prog_compiler_c_o_CXX=yes
13187 # SGI C++ compiler will create directory out/ii_files/ for
13188 # template instantiation
13189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13190 $rm out/* && rmdir out
13196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13200 hard_links="nottested"
13201 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13202 # do not overwrite the value of need_locks provided by the user
13203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13209 ln conftest.a conftest.b 2>&5 || hard_links=no
13210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13211 { echo "$as_me:$LINENO: result: $hard_links" >&5
13212 echo "${ECHO_T}$hard_links" >&6; }
13213 if test "$hard_links" = no; then
13214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13225 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13228 # If we're using GNU nm, then we don't want the "-C" option.
13229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13230 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13231 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'
13233 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'
13237 export_symbols_cmds_CXX="$ltdll_cmds"
13240 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'
13242 linux* | k*bsd*-gnu)
13243 link_all_deplibs_CXX=no
13246 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13250 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13251 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13252 test "$ld_shlibs_CXX" = no && can_build_shared=no
13255 # Do we need to explicitly link libc?
13257 case "x$archive_cmds_need_lc_CXX" in
13259 # Assume -lc should be added
13260 archive_cmds_need_lc_CXX=yes
13262 if test "$enable_shared" = yes && test "$GCC" = yes; then
13263 case $archive_cmds_CXX in
13265 # FIXME: we may have to deal with multi-command sequences.
13268 # Test whether the compiler implicitly links with -lc since on some
13269 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13270 # to ld, don't add -lc before -lgcc.
13271 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13272 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } 2>conftest.err; then
13283 libobjs=conftest.$ac_objext
13285 wl=$lt_prog_compiler_wl_CXX
13286 pic_flag=$lt_prog_compiler_pic_CXX
13292 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13293 allow_undefined_flag_CXX=
13294 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13295 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }
13300 archive_cmds_need_lc_CXX=no
13302 archive_cmds_need_lc_CXX=yes
13304 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13306 cat conftest.err 1>&5
13309 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13310 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13317 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13318 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13319 library_names_spec=
13320 libname_spec='lib$name'
13324 postuninstall_cmds=
13328 shlibpath_overrides_runpath=unknown
13330 dynamic_linker="$host_os ld.so"
13331 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13332 if test "$GCC" = yes; then
13333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13334 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13335 # if the path contains ";" then we assume it to be the separator
13336 # otherwise default to the standard path separator (i.e. ":") - it is
13337 # assumed that no part of a normal pathname contains ";" but that should
13338 # okay in the real world where ";" in dirpaths is itself problematic.
13339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13346 need_lib_prefix=unknown
13347 hardcode_into_libs=no
13349 # when you set need_version to no, make sure it does not cause -set_version
13350 # flags to be left without arguments
13351 need_version=unknown
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13357 shlibpath_var=LIBPATH
13359 # AIX 3 has no versioning support, so we append a major version to the name.
13360 soname_spec='${libname}${release}${shared_ext}$major'
13367 hardcode_into_libs=yes
13368 if test "$host_cpu" = ia64; then
13369 # AIX 5 supports IA64
13370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13371 shlibpath_var=LD_LIBRARY_PATH
13373 # With GCC up to 2.95.x, collect2 would create an import file
13374 # for dependence libraries. The import file would start with
13375 # the line `#! .'. This would cause the generated library to
13376 # depend on `.', always an invalid library. This was fixed in
13377 # development snapshots of GCC prior to 3.0.
13379 aix4 | aix4.[01] | aix4.[01].*)
13380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13385 can_build_shared=no
13389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13390 # soname into executable. Probably we can add versioning support to
13391 # collect2, so additional links can be useful in future.
13392 if test "$aix_use_runtimelinking" = yes; then
13393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13394 # instead of lib<name>.a to let people know that these are not
13395 # typical AIX shared libraries.
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 # We preserve .a as extension for shared libraries through AIX4.2
13399 # and later when we are not doing run time linking.
13400 library_names_spec='${libname}${release}.a $libname.a'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LIBPATH
13408 library_names_spec='$libname.ixlibrary $libname.a'
13409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13410 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'
13414 library_names_spec='${libname}${shared_ext}'
13415 dynamic_linker="$host_os ld.so"
13416 shlibpath_var=LIBRARY_PATH
13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13428 # the default ld.so.conf also contains /usr/contrib/lib and
13429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13430 # libtool to hard-code these into programs
13433 cygwin* | mingw* | pw32*)
13434 version_type=windows
13439 case $GCC,$host_os in
13440 yes,cygwin* | yes,mingw* | yes,pw32*)
13441 library_names_spec='$libname.dll.a'
13442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13443 postinstall_cmds='base_file=`basename \${file}`~
13444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13445 dldir=$destdir/`dirname \$dlpath`~
13446 test -d \$dldir || mkdir -p \$dldir~
13447 $install_prog $dir/$dlname \$dldir/$dlname~
13448 chmod a+x \$dldir/$dlname'
13449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13450 dlpath=$dir/\$dldll~
13452 shlibpath_overrides_runpath=yes
13456 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13458 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13461 # MinGW DLLs use traditional 'lib' prefix
13462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13464 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13465 # It is most probably a Windows format PATH printed by
13466 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13467 # path with ; separators, and with drive letters. We can handle the
13468 # drive letters (cygwin fileutils understands them), so leave them,
13469 # especially as we might pass files found there to a mingw objdump,
13470 # which wouldn't understand a cygwinified path. Ahh.
13471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13477 # pw32 DLLs use 'pw' prefix rather than 'lib'
13478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13487 dynamic_linker='Win32 ld.exe'
13488 # FIXME: first we should search . and the directory the executable is in
13492 darwin* | rhapsody*)
13493 dynamic_linker="$host_os dyld"
13494 version_type=darwin
13497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13498 soname_spec='${libname}${release}${major}$shared_ext'
13499 shlibpath_overrides_runpath=yes
13500 shlibpath_var=DYLD_LIBRARY_PATH
13501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13502 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13503 if test "$GCC" = yes; then
13504 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"`
13506 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13516 soname_spec='${libname}${release}${shared_ext}$major'
13517 shlibpath_var=LD_LIBRARY_PATH
13524 freebsd* | dragonfly*)
13525 # DragonFly does not have aout. When/if they implement a new
13526 # versioning mechanism, adjust this.
13527 if test -x /usr/bin/objformat; then
13528 objformat=`/usr/bin/objformat`
13531 freebsd[123]*) objformat=aout ;;
13532 *) objformat=elf ;;
13535 version_type=freebsd-$objformat
13536 case $version_type in
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13547 shlibpath_var=LD_LIBRARY_PATH
13550 shlibpath_overrides_runpath=yes
13552 freebsd3.[01]* | freebsdelf3.[01]*)
13553 shlibpath_overrides_runpath=yes
13554 hardcode_into_libs=yes
13556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13558 shlibpath_overrides_runpath=no
13559 hardcode_into_libs=yes
13561 freebsd*) # from 4.6 on
13562 shlibpath_overrides_runpath=yes
13563 hardcode_into_libs=yes
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 hardcode_into_libs=yes
13578 hpux9* | hpux10* | hpux11*)
13579 # Give a soname corresponding to the major version so that dld.sl refuses to
13580 # link against other versions.
13587 hardcode_into_libs=yes
13588 dynamic_linker="$host_os dld.so"
13589 shlibpath_var=LD_LIBRARY_PATH
13590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 soname_spec='${libname}${release}${shared_ext}$major'
13593 if test "X$HPUX_IA64_MODE" = X32; then
13594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13602 hardcode_into_libs=yes
13603 dynamic_linker="$host_os dld.sl"
13604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13613 dynamic_linker="$host_os dld.sl"
13614 shlibpath_var=SHLIB_PATH
13615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13620 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13621 postinstall_cmds='chmod 555 $lib'
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=no
13633 hardcode_into_libs=yes
13636 irix5* | irix6* | nonstopux*)
13638 nonstopux*) version_type=nonstopux ;;
13640 if test "$lt_cv_prog_gnu_ld" = yes; then
13648 soname_spec='${libname}${release}${shared_ext}$major'
13649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13651 irix5* | nonstopux*)
13652 libsuff= shlibsuff=
13655 case $LD in # libtool.m4 will add one of these switches to LD
13656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13657 libsuff= shlibsuff= libmagic=32-bit;;
13658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13659 libsuff=32 shlibsuff=N32 libmagic=N32;;
13660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13662 *) libsuff= shlibsuff= libmagic=never-match;;
13666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13667 shlibpath_overrides_runpath=no
13668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13670 hardcode_into_libs=yes
13673 # No shared lib support for Linux oldld, aout, or coff.
13674 linux*oldld* | linux*aout* | linux*coff*)
13678 # This must be Linux ELF.
13679 linux* | k*bsd*-gnu)
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 shlibpath_overrides_runpath=no
13688 # This implies no fast_install, which is unacceptable.
13689 # Some rework will be needed to allow for fast_install
13690 # before this can be enabled.
13691 hardcode_into_libs=yes
13693 # Append ld.so.conf contents to the search path
13694 if test -f /etc/ld.so.conf; then
13695 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13699 # We used to test for /lib/ld.so.1 and disable shared libraries on
13700 # powerpc, because MkLinux only supported shared libraries with the
13701 # GNU dynamic linker. Since this was broken with cross compilers,
13702 # most powerpc-linux boxes support dynamic linking these days and
13703 # people can always --disable-shared, the test was removed, and we
13704 # assume the GNU/Linux dynamic linker is in use.
13705 dynamic_linker='GNU/Linux ld.so'
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=no
13716 hardcode_into_libs=yes
13717 dynamic_linker='NetBSD ld.elf_so'
13724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13727 dynamic_linker='NetBSD (a.out) ld.so'
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 dynamic_linker='NetBSD ld.elf_so'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 shlibpath_overrides_runpath=yes
13735 hardcode_into_libs=yes
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741 shlibpath_var=LD_LIBRARY_PATH
13742 shlibpath_overrides_runpath=yes
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes
13757 sys_lib_dlsearch_path_spec="/usr/lib"
13759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13762 *) need_version=no ;;
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13766 shlibpath_var=LD_LIBRARY_PATH
13767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13769 openbsd2.[89] | openbsd2.[89].*)
13770 shlibpath_overrides_runpath=no
13773 shlibpath_overrides_runpath=yes
13777 shlibpath_overrides_runpath=yes
13782 libname_spec='$name'
13785 library_names_spec='$libname${shared_ext} $libname.a'
13786 dynamic_linker='OS/2 ld.exe'
13787 shlibpath_var=LIBPATH
13790 osf3* | osf4* | osf5*)
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796 shlibpath_var=LD_LIBRARY_PATH
13797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 shlibpath_overrides_runpath=yes
13809 hardcode_into_libs=yes
13810 # ldd complains unless libraries are executable
13811 postinstall_cmds='chmod +x $lib'
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13820 if test "$with_gnu_ld" = yes; then
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 case $host_vendor in
13833 shlibpath_overrides_runpath=no
13835 export_dynamic_flag_spec='${wl}-Blargedynsym'
13836 runpath_var=LD_RUN_PATH
13844 shlibpath_overrides_runpath=no
13845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13851 if test -d /usr/nec ;then
13853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854 soname_spec='$libname${shared_ext}.$major'
13855 shlibpath_var=LD_LIBRARY_PATH
13859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13860 version_type=freebsd-elf
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13864 soname_spec='${libname}${release}${shared_ext}$major'
13865 shlibpath_var=LD_LIBRARY_PATH
13866 hardcode_into_libs=yes
13867 if test "$with_gnu_ld" = yes; then
13868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13869 shlibpath_overrides_runpath=no
13871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13872 shlibpath_overrides_runpath=yes
13875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13879 sys_lib_dlsearch_path_spec='/usr/lib'
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 soname_spec='${libname}${release}${shared_ext}$major'
13886 shlibpath_var=LD_LIBRARY_PATH
13893 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13894 echo "${ECHO_T}$dynamic_linker" >&6; }
13895 test "$dynamic_linker" = no && can_build_shared=no
13897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13898 if test "$GCC" = yes; then
13899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13902 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13903 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13904 hardcode_action_CXX=
13905 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13906 test -n "$runpath_var_CXX" || \
13907 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13909 # We can hardcode non-existant directories.
13910 if test "$hardcode_direct_CXX" != no &&
13911 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13912 # have to relink, otherwise we might link with an installed library
13913 # when we should be linking with a yet-to-be-installed one
13914 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13915 test "$hardcode_minus_L_CXX" != no; then
13916 # Linking always hardcodes the temporary library directory.
13917 hardcode_action_CXX=relink
13919 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13920 hardcode_action_CXX=immediate
13923 # We cannot hardcode anything, or else we can only hardcode existing
13925 hardcode_action_CXX=unsupported
13927 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13928 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13930 if test "$hardcode_action_CXX" = relink; then
13931 # Fast installation is not supported
13932 enable_fast_install=no
13933 elif test "$shlibpath_overrides_runpath" = yes ||
13934 test "$enable_shared" = no; then
13935 # Fast installation is not necessary
13936 enable_fast_install=needless
13940 # The else clause should only fire when bootstrapping the
13941 # libtool distribution, otherwise you forgot to ship ltmain.sh
13942 # with your package, and you will get complaints that there are
13943 # no rules to generate ltmain.sh.
13944 if test -f "$ltmain"; then
13945 # See if we are running on zsh, and set the options which allow our commands through
13946 # without removal of \ escapes.
13947 if test -n "${ZSH_VERSION+set}" ; then
13948 setopt NO_GLOB_SUBST
13950 # Now quote all the things that may contain metacharacters while being
13951 # careful not to overquote the AC_SUBSTed values. We take copies of the
13952 # variables and quote the copies for generation of the libtool script.
13953 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13955 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13956 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13957 deplibs_check_method reload_flag reload_cmds need_locks \
13958 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13959 lt_cv_sys_global_symbol_to_c_name_address \
13960 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13961 old_postinstall_cmds old_postuninstall_cmds \
13965 lt_prog_compiler_wl_CXX \
13966 lt_prog_compiler_pic_CXX \
13967 lt_prog_compiler_static_CXX \
13968 lt_prog_compiler_no_builtin_flag_CXX \
13969 export_dynamic_flag_spec_CXX \
13970 thread_safe_flag_spec_CXX \
13971 whole_archive_flag_spec_CXX \
13972 enable_shared_with_static_runtimes_CXX \
13973 old_archive_cmds_CXX \
13974 old_archive_from_new_cmds_CXX \
13975 predep_objects_CXX \
13976 postdep_objects_CXX \
13979 compiler_lib_search_path_CXX \
13981 archive_expsym_cmds_CXX \
13982 postinstall_cmds_CXX \
13983 postuninstall_cmds_CXX \
13984 old_archive_from_expsyms_cmds_CXX \
13985 allow_undefined_flag_CXX \
13986 no_undefined_flag_CXX \
13987 export_symbols_cmds_CXX \
13988 hardcode_libdir_flag_spec_CXX \
13989 hardcode_libdir_flag_spec_ld_CXX \
13990 hardcode_libdir_separator_CXX \
13991 hardcode_automatic_CXX \
13993 module_expsym_cmds_CXX \
13994 lt_cv_prog_compiler_c_o_CXX \
13995 exclude_expsyms_CXX \
13996 include_expsyms_CXX; do
13999 old_archive_cmds_CXX | \
14000 old_archive_from_new_cmds_CXX | \
14001 archive_cmds_CXX | \
14002 archive_expsym_cmds_CXX | \
14003 module_cmds_CXX | \
14004 module_expsym_cmds_CXX | \
14005 old_archive_from_expsyms_cmds_CXX | \
14006 export_symbols_cmds_CXX | \
14007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14008 postinstall_cmds | postuninstall_cmds | \
14009 old_postinstall_cmds | old_postuninstall_cmds | \
14010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14011 # Double-quote double-evaled strings.
14012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14021 *'\$0 --fallback-echo"')
14022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14028 cat <<__EOF__ >> "$cfgfile"
14029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14033 # Shell to use when invoking shell scripts.
14036 # Whether or not to build shared libraries.
14037 build_libtool_libs=$enable_shared
14039 # Whether or not to build static libraries.
14040 build_old_libs=$enable_static
14042 # Whether or not to add -lc for building shared libraries.
14043 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14045 # Whether or not to disallow shared libs when runtime libs are static
14046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14048 # Whether or not to optimize for fast installation.
14049 fast_install=$enable_fast_install
14052 host_alias=$host_alias
14056 # The build system.
14057 build_alias=$build_alias
14061 # An echo program that does not interpret backslashes.
14066 AR_FLAGS=$lt_AR_FLAGS
14071 # LTCC compiler flags.
14072 LTCFLAGS=$lt_LTCFLAGS
14074 # A language-specific compiler.
14075 CC=$lt_compiler_CXX
14077 # Is the compiler the GNU C compiler?
14083 # The linker used to build libraries.
14086 # Whether we need hard or soft links.
14089 # A BSD-compatible nm program.
14092 # A symbol stripping program
14095 # Used to examine libraries when file_magic_cmd begins "file"
14096 MAGIC_CMD=$MAGIC_CMD
14098 # Used on cygwin: DLL creation program.
14101 # Used on cygwin: object dumper.
14104 # Used on cygwin: assembler.
14107 # The name of the directory that contains temporary libtool files.
14110 # How to create reloadable object files.
14111 reload_flag=$lt_reload_flag
14112 reload_cmds=$lt_reload_cmds
14114 # How to pass a linker flag through the compiler.
14115 wl=$lt_lt_prog_compiler_wl_CXX
14117 # Object file suffix (normally "o").
14118 objext="$ac_objext"
14120 # Old archive suffix (normally "a").
14123 # Shared library suffix (normally ".so").
14124 shrext_cmds='$shrext_cmds'
14126 # Executable file suffix (normally "").
14129 # Additional compiler flags for building library objects.
14130 pic_flag=$lt_lt_prog_compiler_pic_CXX
14133 # What is the maximum length of a command?
14134 max_cmd_len=$lt_cv_sys_max_cmd_len
14136 # Does compiler simultaneously support -c and -o options?
14137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14139 # Must we lock files when doing compilation?
14140 need_locks=$lt_need_locks
14142 # Do we need the lib prefix for modules?
14143 need_lib_prefix=$need_lib_prefix
14145 # Do we need a version for libraries?
14146 need_version=$need_version
14148 # Whether dlopen is supported.
14149 dlopen_support=$enable_dlopen
14151 # Whether dlopen of programs is supported.
14152 dlopen_self=$enable_dlopen_self
14154 # Whether dlopen of statically linked programs is supported.
14155 dlopen_self_static=$enable_dlopen_self_static
14157 # Compiler flag to prevent dynamic linking.
14158 link_static_flag=$lt_lt_prog_compiler_static_CXX
14160 # Compiler flag to turn off builtin functions.
14161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14163 # Compiler flag to allow reflexive dlopens.
14164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14166 # Compiler flag to generate shared objects directly from archives.
14167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14169 # Compiler flag to generate thread-safe objects.
14170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14172 # Library versioning type.
14173 version_type=$version_type
14175 # Format of library name prefix.
14176 libname_spec=$lt_libname_spec
14178 # List of archive names. First name is the real one, the rest are links.
14179 # The last name is the one that the linker finds with -lNAME.
14180 library_names_spec=$lt_library_names_spec
14182 # The coded name of the library, if different from the real name.
14183 soname_spec=$lt_soname_spec
14185 # Commands used to build and install an old-style archive.
14187 old_archive_cmds=$lt_old_archive_cmds_CXX
14188 old_postinstall_cmds=$lt_old_postinstall_cmds
14189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14191 # Create an old-style archive from a shared archive.
14192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14194 # Create a temporary old-style archive to link instead of a shared archive.
14195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14197 # Commands used to build and install a shared archive.
14198 archive_cmds=$lt_archive_cmds_CXX
14199 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14200 postinstall_cmds=$lt_postinstall_cmds
14201 postuninstall_cmds=$lt_postuninstall_cmds
14203 # Commands used to build a loadable module (assumed same as above if empty)
14204 module_cmds=$lt_module_cmds_CXX
14205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14207 # Commands to strip libraries.
14208 old_striplib=$lt_old_striplib
14209 striplib=$lt_striplib
14211 # Dependencies to place before the objects being linked to create a
14213 predep_objects=$lt_predep_objects_CXX
14215 # Dependencies to place after the objects being linked to create a
14217 postdep_objects=$lt_postdep_objects_CXX
14219 # Dependencies to place before the objects being linked to create a
14221 predeps=$lt_predeps_CXX
14223 # Dependencies to place after the objects being linked to create a
14225 postdeps=$lt_postdeps_CXX
14227 # The library search path used internally by the compiler when linking
14228 # a shared library.
14229 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14231 # Method to check whether dependent libraries are shared objects.
14232 deplibs_check_method=$lt_deplibs_check_method
14234 # Command to use when deplibs_check_method == file_magic.
14235 file_magic_cmd=$lt_file_magic_cmd
14237 # Flag that allows shared libraries with undefined symbols to be built.
14238 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14240 # Flag that forces no undefined symbols.
14241 no_undefined_flag=$lt_no_undefined_flag_CXX
14243 # Commands used to finish a libtool library installation in a directory.
14244 finish_cmds=$lt_finish_cmds
14246 # Same as above, but a single script fragment to be evaled but not shown.
14247 finish_eval=$lt_finish_eval
14249 # Take the output of nm and produce a listing of raw symbols and C names.
14250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14252 # Transform the output of nm in a proper C declaration
14253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14255 # Transform the output of nm in a C name address pair
14256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14258 # This is the shared library runtime path variable.
14259 runpath_var=$runpath_var
14261 # This is the shared library path variable.
14262 shlibpath_var=$shlibpath_var
14264 # Is shlibpath searched before the hard-coded library search path?
14265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14267 # How to hardcode a shared library path into an executable.
14268 hardcode_action=$hardcode_action_CXX
14270 # Whether we should hardcode library paths into libraries.
14271 hardcode_into_libs=$hardcode_into_libs
14273 # Flag to hardcode \$libdir into a binary during linking.
14274 # This must work even if \$libdir does not exist.
14275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14277 # If ld is used when linking, flag to hardcode \$libdir into
14278 # a binary during linking. This must work even if \$libdir does
14280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14282 # Whether we need a single -rpath flag with a separated argument.
14283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14286 # resulting binary.
14287 hardcode_direct=$hardcode_direct_CXX
14289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14290 # resulting binary.
14291 hardcode_minus_L=$hardcode_minus_L_CXX
14293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14294 # the resulting binary.
14295 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14297 # Set to yes if building a shared library automatically hardcodes DIR into the library
14298 # and all subsequent libraries and executables linked against it.
14299 hardcode_automatic=$hardcode_automatic_CXX
14301 # Variables whose values should be saved in libtool wrapper scripts and
14302 # restored at relink time.
14303 variables_saved_for_relink="$variables_saved_for_relink"
14305 # Whether libtool must link a program against all its dependency libraries.
14306 link_all_deplibs=$link_all_deplibs_CXX
14308 # Compile-time system search path for libraries
14309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14311 # Run-time system search path for libraries
14312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14314 # Fix the shell variable \$srcfile for the compiler.
14315 fix_srcfile_path="$fix_srcfile_path_CXX"
14317 # Set to yes if exported symbols are required.
14318 always_export_symbols=$always_export_symbols_CXX
14320 # The commands to list exported symbols.
14321 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14323 # The commands to extract the exported symbol list from a shared archive.
14324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14326 # Symbols that should not be listed in the preloaded symbols.
14327 exclude_expsyms=$lt_exclude_expsyms_CXX
14329 # Symbols that must always be exported.
14330 include_expsyms=$lt_include_expsyms_CXX
14332 # ### END LIBTOOL TAG CONFIG: $tagname
14338 # If there is no Makefile yet, we rely on a make rule to execute
14339 # `config.status --recheck' to rerun these tests and create the
14340 # libtool script then.
14341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14342 if test -f "$ltmain_in"; then
14343 test -f Makefile && make "$ltmain"
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14358 with_gnu_ldcxx=$with_gnu_ld
14359 with_gnu_ld=$lt_save_with_gnu_ld
14360 lt_cv_path_LDCXX=$lt_cv_path_LD
14361 lt_cv_path_LD=$lt_save_path_LD
14362 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14363 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14371 if test -n "$F77" && test "X$F77" != "Xno"; then
14374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14379 archive_cmds_need_lc_F77=no
14380 allow_undefined_flag_F77=
14381 always_export_symbols_F77=no
14382 archive_expsym_cmds_F77=
14383 export_dynamic_flag_spec_F77=
14384 hardcode_direct_F77=no
14385 hardcode_libdir_flag_spec_F77=
14386 hardcode_libdir_flag_spec_ld_F77=
14387 hardcode_libdir_separator_F77=
14388 hardcode_minus_L_F77=no
14389 hardcode_automatic_F77=no
14391 module_expsym_cmds_F77=
14392 link_all_deplibs_F77=unknown
14393 old_archive_cmds_F77=$old_archive_cmds
14394 no_undefined_flag_F77=
14395 whole_archive_flag_spec_F77=
14396 enable_shared_with_static_runtimes_F77=no
14398 # Source file extension for f77 test sources.
14401 # Object file extension for compiled f77 test sources.
14405 # Code to be used in simple compile tests
14406 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14408 # Code to be used in simple link tests
14409 lt_simple_link_test_code=" program t\n end\n"
14411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14413 # If no C compiler was specified, use CC.
14416 # If no C compiler flags were specified, use CFLAGS.
14417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14419 # Allow CC to be a program name with arguments.
14423 # save warnings/boilerplate of simple test code
14424 ac_outfile=conftest.$ac_objext
14425 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14427 _lt_compiler_boilerplate=`cat conftest.err`
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14433 _lt_linker_boilerplate=`cat conftest.err`
14437 # Allow CC to be a program name with arguments.
14442 for cc_temp in $compiler""; do
14444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14450 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14453 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14454 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14455 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14456 echo "${ECHO_T}$can_build_shared" >&6; }
14458 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14459 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14460 test "$can_build_shared" = "no" && enable_shared=no
14462 # On AIX, shared libraries and static libraries use the same namespace, and
14463 # are all built from PIC.
14466 test "$enable_shared" = yes && enable_static=no
14467 if test -n "$RANLIB"; then
14468 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14469 postinstall_cmds='$RANLIB $lib'
14473 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14474 test "$enable_shared" = yes && enable_static=no
14478 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14479 echo "${ECHO_T}$enable_shared" >&6; }
14481 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14482 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14483 # Make sure either enable_shared or enable_static is yes.
14484 test "$enable_shared" = yes || enable_static=yes
14485 { echo "$as_me:$LINENO: result: $enable_static" >&5
14486 echo "${ECHO_T}$enable_static" >&6; }
14491 lt_prog_compiler_wl_F77=
14492 lt_prog_compiler_pic_F77=
14493 lt_prog_compiler_static_F77=
14495 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14498 if test "$GCC" = yes; then
14499 lt_prog_compiler_wl_F77='-Wl,'
14500 lt_prog_compiler_static_F77='-static'
14504 # All AIX code is PIC.
14505 if test "$host_cpu" = ia64; then
14506 # AIX 5 now supports IA64 processor
14507 lt_prog_compiler_static_F77='-Bstatic'
14512 # FIXME: we need at least 68020 code to build shared libraries, but
14513 # adding the `-m68020' flag to GCC prevents building anything better,
14515 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14518 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14519 # PIC is the default for these OSes.
14522 mingw* | pw32* | os2*)
14523 # This hack is so that the source file can tell whether it is being
14524 # built for inclusion in a dll (and should export symbols for example).
14525 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14528 darwin* | rhapsody*)
14529 # PIC is the default on this platform
14530 # Common symbols not allowed in MH_DYLIB files
14531 lt_prog_compiler_pic_F77='-fno-common'
14535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14536 # Instead, we relocate shared libraries at runtime.
14540 # Just because we use GCC doesn't mean we suddenly get shared libraries
14541 # on systems that don't support them.
14542 lt_prog_compiler_can_build_shared_F77=no
14547 if test -d /usr/nec; then
14548 lt_prog_compiler_pic_F77=-Kconform_pic
14553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14554 # not for PA HP-UX.
14560 lt_prog_compiler_pic_F77='-fPIC'
14566 lt_prog_compiler_pic_F77='-fPIC'
14570 # PORTME Check for flag to pass linker flags through the system compiler.
14573 lt_prog_compiler_wl_F77='-Wl,'
14574 if test "$host_cpu" = ia64; then
14575 # AIX 5 now supports IA64 processor
14576 lt_prog_compiler_static_F77='-Bstatic'
14578 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14582 # PIC is the default on this platform
14583 # Common symbols not allowed in MH_DYLIB files
14584 case $cc_basename in
14586 lt_prog_compiler_pic_F77='-qnocommon'
14587 lt_prog_compiler_wl_F77='-Wl,'
14592 mingw* | pw32* | os2*)
14593 # This hack is so that the source file can tell whether it is being
14594 # built for inclusion in a dll (and should export symbols for example).
14595 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14598 hpux9* | hpux10* | hpux11*)
14599 lt_prog_compiler_wl_F77='-Wl,'
14600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14601 # not for PA HP-UX.
14607 lt_prog_compiler_pic_F77='+Z'
14610 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14611 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14614 irix5* | irix6* | nonstopux*)
14615 lt_prog_compiler_wl_F77='-Wl,'
14616 # PIC (with -KPIC) is the default.
14617 lt_prog_compiler_static_F77='-non_shared'
14621 lt_prog_compiler_pic_F77='-KPIC'
14622 lt_prog_compiler_static_F77='-Bstatic'
14625 linux* | k*bsd*-gnu)
14626 case $cc_basename in
14628 lt_prog_compiler_wl_F77='-Wl,'
14629 lt_prog_compiler_pic_F77='-KPIC'
14630 lt_prog_compiler_static_F77='-static'
14632 pgcc* | pgf77* | pgf90* | pgf95*)
14633 # Portland Group compilers (*not* the Pentium gcc compiler,
14634 # which looks to be a dead project)
14635 lt_prog_compiler_wl_F77='-Wl,'
14636 lt_prog_compiler_pic_F77='-fpic'
14637 lt_prog_compiler_static_F77='-Bstatic'
14640 lt_prog_compiler_wl_F77='-Wl,'
14641 # All Alpha code is PIC.
14642 lt_prog_compiler_static_F77='-non_shared'
14647 osf3* | osf4* | osf5*)
14648 lt_prog_compiler_wl_F77='-Wl,'
14649 # All OSF/1 code is PIC.
14650 lt_prog_compiler_static_F77='-non_shared'
14654 lt_prog_compiler_pic_F77='-KPIC'
14655 lt_prog_compiler_static_F77='-Bstatic'
14656 case $cc_basename in
14657 f77* | f90* | f95*)
14658 lt_prog_compiler_wl_F77='-Qoption ld ';;
14660 lt_prog_compiler_wl_F77='-Wl,';;
14665 lt_prog_compiler_wl_F77='-Qoption ld '
14666 lt_prog_compiler_pic_F77='-PIC'
14667 lt_prog_compiler_static_F77='-Bstatic'
14670 sysv4 | sysv4.2uw2* | sysv4.3*)
14671 lt_prog_compiler_wl_F77='-Wl,'
14672 lt_prog_compiler_pic_F77='-KPIC'
14673 lt_prog_compiler_static_F77='-Bstatic'
14677 if test -d /usr/nec ;then
14678 lt_prog_compiler_pic_F77='-Kconform_pic'
14679 lt_prog_compiler_static_F77='-Bstatic'
14683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14684 lt_prog_compiler_wl_F77='-Wl,'
14685 lt_prog_compiler_pic_F77='-KPIC'
14686 lt_prog_compiler_static_F77='-Bstatic'
14690 lt_prog_compiler_wl_F77='-Wl,'
14691 lt_prog_compiler_can_build_shared_F77=no
14695 lt_prog_compiler_pic_F77='-pic'
14696 lt_prog_compiler_static_F77='-Bstatic'
14700 lt_prog_compiler_can_build_shared_F77=no
14705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14706 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14709 # Check to make sure the PIC flag actually works.
14711 if test -n "$lt_prog_compiler_pic_F77"; then
14713 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14715 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 lt_prog_compiler_pic_works_F77=no
14719 ac_outfile=conftest.$ac_objext
14720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14722 # Insert the option either (1) after the last *FLAGS variable, or
14723 # (2) before a word containing "conftest.", or (3) at the end.
14724 # Note that $ac_compile itself does not contain backslashes and begins
14725 # with a dollar sign (not a hyphen), so the echo should work correctly.
14726 # The option is referenced via a variable to avoid confusing sed.
14727 lt_compile=`echo "$ac_compile" | $SED \
14728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14730 -e 's:$: $lt_compiler_flag:'`
14731 (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
14732 (eval "$lt_compile" 2>conftest.err)
14734 cat conftest.err >&5
14735 echo "$as_me:14735: \$? = $ac_status" >&5
14736 if (exit $ac_status) && test -s "$ac_outfile"; then
14737 # The compiler can only warn and ignore the option if not recognized
14738 # So say no if there are warnings other than the usual output.
14739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14742 lt_prog_compiler_pic_works_F77=yes
14748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14749 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14751 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14752 case $lt_prog_compiler_pic_F77 in
14754 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14757 lt_prog_compiler_pic_F77=
14758 lt_prog_compiler_can_build_shared_F77=no
14763 # For platforms which do not support PIC, -DPIC is meaningless:
14765 lt_prog_compiler_pic_F77=
14768 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14773 # Check to make sure the static flag actually works.
14775 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14776 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14777 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14778 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 lt_prog_compiler_static_works_F77=no
14782 save_LDFLAGS="$LDFLAGS"
14783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14784 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14786 # The linker can only warn and ignore the option if not recognized
14787 # So say no if there are warnings
14788 if test -s conftest.err; then
14789 # Append any errors to the config.log.
14790 cat conftest.err 1>&5
14791 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14793 if diff conftest.exp conftest.er2 >/dev/null; then
14794 lt_prog_compiler_static_works_F77=yes
14797 lt_prog_compiler_static_works_F77=yes
14801 LDFLAGS="$save_LDFLAGS"
14804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14805 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14807 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14810 lt_prog_compiler_static_F77=
14814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14816 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 lt_cv_prog_compiler_c_o_F77=no
14820 $rm -r conftest 2>/dev/null
14824 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14826 lt_compiler_flag="-o out/conftest2.$ac_objext"
14827 # Insert the option either (1) after the last *FLAGS variable, or
14828 # (2) before a word containing "conftest.", or (3) at the end.
14829 # Note that $ac_compile itself does not contain backslashes and begins
14830 # with a dollar sign (not a hyphen), so the echo should work correctly.
14831 lt_compile=`echo "$ac_compile" | $SED \
14832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834 -e 's:$: $lt_compiler_flag:'`
14835 (eval echo "\"\$as_me:14835: $lt_compile\"" >&5)
14836 (eval "$lt_compile" 2>out/conftest.err)
14838 cat out/conftest.err >&5
14839 echo "$as_me:14839: \$? = $ac_status" >&5
14840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14842 # The compiler can only warn and ignore the option if not recognized
14843 # So say no if there are warnings
14844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_c_o_F77=yes
14852 # SGI C++ compiler will create directory out/ii_files/ for
14853 # template instantiation
14854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14855 $rm out/* && rmdir out
14861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14865 hard_links="nottested"
14866 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14867 # do not overwrite the value of need_locks provided by the user
14868 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14874 ln conftest.a conftest.b 2>&5 || hard_links=no
14875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14876 { echo "$as_me:$LINENO: result: $hard_links" >&5
14877 echo "${ECHO_T}$hard_links" >&6; }
14878 if test "$hard_links" = no; then
14879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14891 allow_undefined_flag_F77=
14892 enable_shared_with_static_runtimes_F77=no
14894 archive_expsym_cmds_F77=
14895 old_archive_From_new_cmds_F77=
14896 old_archive_from_expsyms_cmds_F77=
14897 export_dynamic_flag_spec_F77=
14898 whole_archive_flag_spec_F77=
14899 thread_safe_flag_spec_F77=
14900 hardcode_libdir_flag_spec_F77=
14901 hardcode_libdir_flag_spec_ld_F77=
14902 hardcode_libdir_separator_F77=
14903 hardcode_direct_F77=no
14904 hardcode_minus_L_F77=no
14905 hardcode_shlibpath_var_F77=unsupported
14906 link_all_deplibs_F77=unknown
14907 hardcode_automatic_F77=no
14909 module_expsym_cmds_F77=
14910 always_export_symbols_F77=no
14911 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14912 # include_expsyms should be a list of space-separated symbols to be *always*
14913 # included in the symbol list
14914 include_expsyms_F77=
14915 # exclude_expsyms can be an extended regexp of symbols to exclude
14916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14918 # as well as any symbol that contains `d'.
14919 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14921 # platforms (ab)use it in PIC code, but their linkers get confused if
14922 # the symbol is explicitly referenced. Since portable code cannot
14923 # rely on this symbol name, it's probably fine to never include it in
14924 # preloaded symbol tables.
14925 extract_expsyms_cmds=
14926 # Just being paranoid about ensuring that cc_basename is set.
14927 for cc_temp in $compiler""; do
14929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14938 cygwin* | mingw* | pw32*)
14939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14940 # When not using gcc, we currently assume that we are using
14941 # Microsoft Visual C++.
14942 if test "$GCC" != yes; then
14947 # we just hope/assume this is gcc and not c89 (= MSVC++)
14956 if test "$with_gnu_ld" = yes; then
14957 # If archive_cmds runs LD, not CC, wlarc should be empty
14960 # Set some defaults for GNU ld with shared library support. These
14961 # are reset later if shared libraries are not supported. Putting them
14962 # here allows them to be overridden if necessary.
14963 runpath_var=LD_RUN_PATH
14964 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14965 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14966 # ancient GNU ld didn't support --whole-archive et. al.
14967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14968 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14970 whole_archive_flag_spec_F77=
14972 supports_anon_versioning=no
14973 case `$LD -v 2>/dev/null` in
14974 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14977 *\ 2.11.*) ;; # other 2.11 versions
14978 *) supports_anon_versioning=yes ;;
14981 # See if GNU ld supports shared libraries.
14983 aix3* | aix4* | aix5*)
14984 # On AIX/PPC, the GNU linker is very broken
14985 if test "$host_cpu" != ia64; then
14989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14990 *** to be unable to reliably create shared libraries on AIX.
14991 *** Therefore, libtool is disabling shared libraries support. If you
14992 *** really care for shared libraries, you may want to modify your PATH
14993 *** so that a non-GNU linker is found, and then restart.
15000 archive_cmds_F77='$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)'
15001 hardcode_libdir_flag_spec_F77='-L$libdir'
15002 hardcode_minus_L_F77=yes
15004 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15005 # that the semantics of dynamic libraries on AmigaOS, at least up
15006 # to version 4, is to share data among multiple programs linked
15007 # with the same dynamic library. Since this doesn't match the
15008 # behavior of shared libraries on other platforms, we can't use
15014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015 allow_undefined_flag_F77=unsupported
15016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15017 # support --undefined. This deserves some investigation. FIXME
15018 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15024 cygwin* | mingw* | pw32*)
15025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15026 # as there is no search path for DLLs.
15027 hardcode_libdir_flag_spec_F77='-L$libdir'
15028 allow_undefined_flag_F77=unsupported
15029 always_export_symbols_F77=no
15030 enable_shared_with_static_runtimes_F77=yes
15031 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15035 # If the export-symbols file already is a .def file (1st line
15036 # is EXPORTS), use it as is; otherwise, prepend...
15037 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15038 cp $export_symbols $output_objdir/$soname.def;
15040 echo EXPORTS > $output_objdir/$soname.def;
15041 cat $export_symbols >> $output_objdir/$soname.def;
15043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050 hardcode_direct_F77=no
15051 hardcode_shlibpath_var_F77=no
15052 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15053 export_dynamic_flag_spec_F77='${wl}-E'
15054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15055 # Instead, shared libraries are loaded at an image base (0x10000000 by
15056 # default) and relocated if they conflict, which is a slow very memory
15057 # consuming and fragmenting process. To avoid this, we pick a random,
15058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15060 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15061 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15064 linux* | k*bsd*-gnu)
15065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15067 case $cc_basename,$host_cpu in
15068 pgcc*) # Portland Group C compiler
15069 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15070 tmp_addflag=' $pic_flag'
15072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15073 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15074 tmp_addflag=' $pic_flag -Mnomain' ;;
15075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15076 tmp_addflag=' -i_dynamic' ;;
15077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15078 tmp_addflag=' -i_dynamic -nofor_main' ;;
15079 ifc* | ifort*) # Intel Fortran compiler
15080 tmp_addflag=' -nofor_main' ;;
15082 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084 if test $supports_anon_versioning = yes; then
15085 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15087 $echo "local: *; };" >> $output_objdir/$libname.ver~
15088 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15090 link_all_deplibs_F77=no
15096 netbsd* | netbsdelf*-gnu)
15097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15098 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15101 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15107 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15112 *** create shared libraries on Solaris systems. Therefore, libtool
15113 *** is disabling shared libraries support. We urge you to upgrade GNU
15114 *** binutils to release 2.9.1 or newer. Another option is to modify
15115 *** your PATH or compiler configuration so that the native linker is
15116 *** used, and then restart.
15119 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15128 case `$LD -v 2>&1` in
15129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15134 *** reliably create shared libraries on SCO systems. Therefore, libtool
15135 *** is disabling shared libraries support. We urge you to upgrade GNU
15136 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15144 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15146 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15155 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15157 hardcode_direct_F77=yes
15158 hardcode_shlibpath_var_F77=no
15162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15163 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15171 if test "$ld_shlibs_F77" = no; then
15173 hardcode_libdir_flag_spec_F77=
15174 export_dynamic_flag_spec_F77=
15175 whole_archive_flag_spec_F77=
15178 # PORTME fill in a description of your system's linker (not GNU ld)
15181 allow_undefined_flag_F77=unsupported
15182 always_export_symbols_F77=yes
15183 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15184 # Note: this linker hardcodes the directories in LIBPATH if there
15185 # are no directories specified by -L.
15186 hardcode_minus_L_F77=yes
15187 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15188 # Neither direct hardcoding nor static linking is supported with a
15190 hardcode_direct_F77=unsupported
15195 if test "$host_cpu" = ia64; then
15196 # On IA64, the linker does run time linking by default, so we don't
15197 # have to do anything special.
15198 aix_use_runtimelinking=no
15199 exp_sym_flag='-Bexport'
15202 # If we're using GNU nm, then we don't want the "-C" option.
15203 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15204 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15205 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15207 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15209 aix_use_runtimelinking=no
15211 # Test if we are trying to use run time linking or normal
15212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15213 # need to do runtime linking.
15214 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15215 for ld_flag in $LDFLAGS; do
15216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15217 aix_use_runtimelinking=yes
15224 exp_sym_flag='-bexport'
15225 no_entry_flag='-bnoentry'
15228 # When large executables or shared objects are built, AIX ld can
15229 # have problems creating the table of contents. If linking a library
15230 # or program results in "error TOC overflow" add -mminimal-toc to
15231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15234 archive_cmds_F77=''
15235 hardcode_direct_F77=yes
15236 hardcode_libdir_separator_F77=':'
15237 link_all_deplibs_F77=yes
15239 if test "$GCC" = yes; then
15240 case $host_os in aix4.[012]|aix4.[012].*)
15241 # We only want to do this on AIX 4.2 and lower, the check
15242 # below for broken collect2 doesn't work under 4.3+
15243 collect2name=`${CC} -print-prog-name=collect2`
15244 if test -f "$collect2name" && \
15245 strings "$collect2name" | grep resolve_lib_name >/dev/null
15247 # We have reworked collect2
15248 hardcode_direct_F77=yes
15250 # We have old collect2
15251 hardcode_direct_F77=unsupported
15252 # It fails to find uninstalled libraries when the uninstalled
15253 # path is not listed in the libpath. Setting hardcode_minus_L
15254 # to unsupported forces relinking
15255 hardcode_minus_L_F77=yes
15256 hardcode_libdir_flag_spec_F77='-L$libdir'
15257 hardcode_libdir_separator_F77=
15261 shared_flag='-shared'
15262 if test "$aix_use_runtimelinking" = yes; then
15263 shared_flag="$shared_flag "'${wl}-G'
15267 if test "$host_cpu" = ia64; then
15268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15269 # chokes on -Wl,-G. The following line is correct:
15272 if test "$aix_use_runtimelinking" = yes; then
15273 shared_flag='${wl}-G'
15275 shared_flag='${wl}-bM:SRE'
15280 # It seems that -bexpall does not export symbols beginning with
15281 # underscore (_), so it is better to generate a list of symbols to export.
15282 always_export_symbols_F77=yes
15283 if test "$aix_use_runtimelinking" = yes; then
15284 # Warning - without using the other runtime loading flags (-brtl),
15285 # -berok will link without error, but may produce a broken library.
15286 allow_undefined_flag_F77='-berok'
15287 # Determine the default libpath from the value encoded in an empty executable.
15288 cat >conftest.$ac_ext <<_ACEOF
15293 rm -f conftest.$ac_objext conftest$ac_exeext
15294 if { (ac_try="$ac_link"
15295 case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_link") 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } && {
15307 test -z "$ac_f77_werror_flag" ||
15308 test ! -s conftest.err
15309 } && test -s conftest$ac_exeext &&
15310 $as_test_x conftest$ac_exeext; then
15312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15314 # Check for a 64-bit object if we didn't find anything.
15315 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; }
15318 echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15325 conftest$ac_exeext conftest.$ac_ext
15326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15328 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15329 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15331 if test "$host_cpu" = ia64; then
15332 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15333 allow_undefined_flag_F77="-z nodefs"
15334 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15336 # Determine the default libpath from the value encoded in an empty executable.
15337 cat >conftest.$ac_ext <<_ACEOF
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (ac_try="$ac_link"
15344 case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_link") 2>conftest.er1
15351 grep -v '^ *+' conftest.er1 >conftest.err
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && {
15356 test -z "$ac_f77_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest$ac_exeext &&
15359 $as_test_x conftest$ac_exeext; then
15361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15363 # Check for a 64-bit object if we didn't find anything.
15364 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; }
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15374 conftest$ac_exeext conftest.$ac_ext
15375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15377 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15378 # Warning - without using the other run time loading flags,
15379 # -berok will link without error, but may produce a broken library.
15380 no_undefined_flag_F77=' ${wl}-bernotok'
15381 allow_undefined_flag_F77=' ${wl}-berok'
15382 # Exported symbols can be pulled into shared objects from archives
15383 whole_archive_flag_spec_F77='$convenience'
15384 archive_cmds_need_lc_F77=yes
15385 # This is similar to how AIX traditionally builds its shared libraries.
15386 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15392 archive_cmds_F77='$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)'
15393 hardcode_libdir_flag_spec_F77='-L$libdir'
15394 hardcode_minus_L_F77=yes
15395 # see comment about different semantics on the GNU ld section
15400 export_dynamic_flag_spec_F77=-rdynamic
15403 cygwin* | mingw* | pw32*)
15404 # When not using gcc, we currently assume that we are using
15405 # Microsoft Visual C++.
15406 # hardcode_libdir_flag_spec is actually meaningless, as there is
15407 # no search path for DLLs.
15408 hardcode_libdir_flag_spec_F77=' '
15409 allow_undefined_flag_F77=unsupported
15410 # Tell ltmain to make .lib files, not .a files.
15412 # Tell ltmain to make .dll files, not .so files.
15414 # FIXME: Setting linknames here is a bad hack.
15415 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15416 # The linker will automatically build a .lib file if we build a DLL.
15417 old_archive_From_new_cmds_F77='true'
15418 # FIXME: Should let the user specify the lib program.
15419 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15420 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15421 enable_shared_with_static_runtimes_F77=yes
15424 darwin* | rhapsody*)
15426 rhapsody* | darwin1.[012])
15427 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15431 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15433 case ${MACOSX_DEPLOYMENT_TARGET} in
15435 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15438 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15444 archive_cmds_need_lc_F77=no
15445 hardcode_direct_F77=no
15446 hardcode_automatic_F77=yes
15447 hardcode_shlibpath_var_F77=unsupported
15448 whole_archive_flag_spec_F77=''
15449 link_all_deplibs_F77=yes
15450 if test "$GCC" = yes ; then
15451 output_verbose_link_cmd='echo'
15452 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15453 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15455 archive_expsym_cmds_F77='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}'
15456 module_expsym_cmds_F77='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}'
15458 case $cc_basename in
15460 output_verbose_link_cmd='echo'
15461 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15462 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15464 archive_expsym_cmds_F77='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}'
15465 module_expsym_cmds_F77='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}'
15475 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec_F77='-L$libdir'
15477 hardcode_shlibpath_var_F77=no
15484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15485 # support. Future versions do this automatically, but an explicit c++rt0.o
15486 # does not break anything, and helps significantly (at the cost of a little
15489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15490 hardcode_libdir_flag_spec_F77='-R$libdir'
15491 hardcode_direct_F77=yes
15492 hardcode_shlibpath_var_F77=no
15495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15497 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_direct_F77=yes
15499 hardcode_minus_L_F77=yes
15500 hardcode_shlibpath_var_F77=no
15503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15504 freebsd* | dragonfly*)
15505 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15506 hardcode_libdir_flag_spec_F77='-R$libdir'
15507 hardcode_direct_F77=yes
15508 hardcode_shlibpath_var_F77=no
15512 if test "$GCC" = yes; then
15513 archive_cmds_F77='$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'
15515 archive_cmds_F77='$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'
15517 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15518 hardcode_libdir_separator_F77=:
15519 hardcode_direct_F77=yes
15521 # hardcode_minus_L: Not really in the search PATH,
15522 # but as the default location of the library.
15523 hardcode_minus_L_F77=yes
15524 export_dynamic_flag_spec_F77='${wl}-E'
15528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15529 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15533 if test "$with_gnu_ld" = no; then
15534 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15535 hardcode_libdir_separator_F77=:
15537 hardcode_direct_F77=yes
15538 export_dynamic_flag_spec_F77='${wl}-E'
15540 # hardcode_minus_L: Not really in the search PATH,
15541 # but as the default location of the library.
15542 hardcode_minus_L_F77=yes
15547 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15550 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15553 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15568 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15572 if test "$with_gnu_ld" = no; then
15573 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15574 hardcode_libdir_separator_F77=:
15578 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15579 hardcode_direct_F77=no
15580 hardcode_shlibpath_var_F77=no
15583 hardcode_direct_F77=yes
15584 export_dynamic_flag_spec_F77='${wl}-E'
15586 # hardcode_minus_L: Not really in the search PATH,
15587 # but as the default location of the library.
15588 hardcode_minus_L_F77=yes
15594 irix5* | irix6* | nonstopux*)
15595 if test "$GCC" = yes; then
15596 archive_cmds_F77='$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'
15598 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15599 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15601 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15602 hardcode_libdir_separator_F77=:
15603 link_all_deplibs_F77=yes
15606 netbsd* | netbsdelf*-gnu)
15607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15610 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15612 hardcode_libdir_flag_spec_F77='-R$libdir'
15613 hardcode_direct_F77=yes
15614 hardcode_shlibpath_var_F77=no
15618 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_direct_F77=yes
15620 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15621 hardcode_libdir_separator_F77=:
15622 hardcode_shlibpath_var_F77=no
15626 hardcode_direct_F77=yes
15627 hardcode_shlibpath_var_F77=no
15628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15631 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15632 export_dynamic_flag_spec_F77='${wl}-E'
15635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637 hardcode_libdir_flag_spec_F77='-R$libdir'
15640 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15648 hardcode_libdir_flag_spec_F77='-L$libdir'
15649 hardcode_minus_L_F77=yes
15650 allow_undefined_flag_F77=unsupported
15651 archive_cmds_F77='$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'
15652 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15656 if test "$GCC" = yes; then
15657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15658 archive_cmds_F77='$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'
15660 allow_undefined_flag_F77=' -expect_unresolved \*'
15661 archive_cmds_F77='$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'
15663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15664 hardcode_libdir_separator_F77=:
15667 osf4* | osf5*) # as osf3* with the addition of -msym flag
15668 if test "$GCC" = yes; then
15669 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15670 archive_cmds_F77='$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'
15671 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15673 allow_undefined_flag_F77=' -expect_unresolved \*'
15674 archive_cmds_F77='$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'
15675 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15676 $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'
15678 # Both c and cxx compiler support -rpath directly
15679 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15681 hardcode_libdir_separator_F77=:
15685 no_undefined_flag_F77=' -z text'
15686 if test "$GCC" = yes; then
15688 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15690 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15693 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15697 hardcode_libdir_flag_spec_F77='-R$libdir'
15698 hardcode_shlibpath_var_F77=no
15700 solaris2.[0-5] | solaris2.[0-5].*) ;;
15702 # The compiler driver will combine linker options so we
15703 # cannot just pass the convience library names through
15704 # without $wl, iff we do not link with $LD.
15705 # Luckily, gcc supports the same syntax we need for Sun Studio.
15706 # Supported since Solaris 2.6 (maybe 2.5.1?)
15709 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15711 whole_archive_flag_spec_F77='${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' ;;
15714 link_all_deplibs_F77=yes
15718 if test "x$host_vendor" = xsequent; then
15719 # Use $CC to link under sequent, because it throws in some extra .o
15720 # files that make .init and .fini sections work.
15721 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_libdir_flag_spec_F77='-L$libdir'
15726 hardcode_direct_F77=yes
15727 hardcode_minus_L_F77=yes
15728 hardcode_shlibpath_var_F77=no
15732 case $host_vendor in
15734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_direct_F77=yes # is this really true???
15738 ## LD is ld it makes a PLAMLIB
15739 ## CC just makes a GrossModule.
15740 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15741 reload_cmds_F77='$CC -r -o $output$reload_objs'
15742 hardcode_direct_F77=no
15745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15749 runpath_var='LD_RUN_PATH'
15750 hardcode_shlibpath_var_F77=no
15754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15755 hardcode_shlibpath_var_F77=no
15756 export_dynamic_flag_spec_F77='-Bexport'
15760 if test -d /usr/nec; then
15761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762 hardcode_shlibpath_var_F77=no
15763 runpath_var=LD_RUN_PATH
15764 hardcode_runpath_var=yes
15769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15770 no_undefined_flag_F77='${wl}-z,text'
15771 archive_cmds_need_lc_F77=no
15772 hardcode_shlibpath_var_F77=no
15773 runpath_var='LD_RUN_PATH'
15775 if test "$GCC" = yes; then
15776 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15780 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15784 sysv5* | sco3.2v5* | sco5v6*)
15785 # Note: We can NOT use -z defs as we might desire, because we do not
15786 # link with -lc, and that would cause any symbols used from libc to
15787 # always be unresolved, which means just about no library would
15788 # ever link correctly. If we're not using GNU ld we use -z text
15789 # though, which does catch some bad symbols but isn't as heavy-handed
15791 no_undefined_flag_F77='${wl}-z,text'
15792 allow_undefined_flag_F77='${wl}-z,nodefs'
15793 archive_cmds_need_lc_F77=no
15794 hardcode_shlibpath_var_F77=no
15795 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15796 hardcode_libdir_separator_F77=':'
15797 link_all_deplibs_F77=yes
15798 export_dynamic_flag_spec_F77='${wl}-Bexport'
15799 runpath_var='LD_RUN_PATH'
15801 if test "$GCC" = yes; then
15802 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15806 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_libdir_flag_spec_F77='-L$libdir'
15813 hardcode_shlibpath_var_F77=no
15822 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15823 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15824 test "$ld_shlibs_F77" = no && can_build_shared=no
15827 # Do we need to explicitly link libc?
15829 case "x$archive_cmds_need_lc_F77" in
15831 # Assume -lc should be added
15832 archive_cmds_need_lc_F77=yes
15834 if test "$enable_shared" = yes && test "$GCC" = yes; then
15835 case $archive_cmds_F77 in
15837 # FIXME: we may have to deal with multi-command sequences.
15840 # Test whether the compiler implicitly links with -lc since on some
15841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15842 # to ld, don't add -lc before -lgcc.
15843 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15844 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } 2>conftest.err; then
15855 libobjs=conftest.$ac_objext
15857 wl=$lt_prog_compiler_wl_F77
15858 pic_flag=$lt_prog_compiler_pic_F77
15864 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15865 allow_undefined_flag_F77=
15866 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15867 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }
15872 archive_cmds_need_lc_F77=no
15874 archive_cmds_need_lc_F77=yes
15876 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15878 cat conftest.err 1>&5
15881 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15882 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15889 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15890 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15891 library_names_spec=
15892 libname_spec='lib$name'
15896 postuninstall_cmds=
15900 shlibpath_overrides_runpath=unknown
15902 dynamic_linker="$host_os ld.so"
15903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15904 if test "$GCC" = yes; then
15905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15906 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15907 # if the path contains ";" then we assume it to be the separator
15908 # otherwise default to the standard path separator (i.e. ":") - it is
15909 # assumed that no part of a normal pathname contains ";" but that should
15910 # okay in the real world where ";" in dirpaths is itself problematic.
15911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15916 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15918 need_lib_prefix=unknown
15919 hardcode_into_libs=no
15921 # when you set need_version to no, make sure it does not cause -set_version
15922 # flags to be left without arguments
15923 need_version=unknown
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15929 shlibpath_var=LIBPATH
15931 # AIX 3 has no versioning support, so we append a major version to the name.
15932 soname_spec='${libname}${release}${shared_ext}$major'
15939 hardcode_into_libs=yes
15940 if test "$host_cpu" = ia64; then
15941 # AIX 5 supports IA64
15942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15943 shlibpath_var=LD_LIBRARY_PATH
15945 # With GCC up to 2.95.x, collect2 would create an import file
15946 # for dependence libraries. The import file would start with
15947 # the line `#! .'. This would cause the generated library to
15948 # depend on `.', always an invalid library. This was fixed in
15949 # development snapshots of GCC prior to 3.0.
15951 aix4 | aix4.[01] | aix4.[01].*)
15952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15954 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15957 can_build_shared=no
15961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15962 # soname into executable. Probably we can add versioning support to
15963 # collect2, so additional links can be useful in future.
15964 if test "$aix_use_runtimelinking" = yes; then
15965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15966 # instead of lib<name>.a to let people know that these are not
15967 # typical AIX shared libraries.
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 # We preserve .a as extension for shared libraries through AIX4.2
15971 # and later when we are not doing run time linking.
15972 library_names_spec='${libname}${release}.a $libname.a'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15975 shlibpath_var=LIBPATH
15980 library_names_spec='$libname.ixlibrary $libname.a'
15981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15982 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'
15986 library_names_spec='${libname}${shared_ext}'
15987 dynamic_linker="$host_os ld.so"
15988 shlibpath_var=LIBRARY_PATH
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16000 # the default ld.so.conf also contains /usr/contrib/lib and
16001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16002 # libtool to hard-code these into programs
16005 cygwin* | mingw* | pw32*)
16006 version_type=windows
16011 case $GCC,$host_os in
16012 yes,cygwin* | yes,mingw* | yes,pw32*)
16013 library_names_spec='$libname.dll.a'
16014 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16015 postinstall_cmds='base_file=`basename \${file}`~
16016 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16017 dldir=$destdir/`dirname \$dlpath`~
16018 test -d \$dldir || mkdir -p \$dldir~
16019 $install_prog $dir/$dlname \$dldir/$dlname~
16020 chmod a+x \$dldir/$dlname'
16021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16022 dlpath=$dir/\$dldll~
16024 shlibpath_overrides_runpath=yes
16028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16033 # MinGW DLLs use traditional 'lib' prefix
16034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16036 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16037 # It is most probably a Windows format PATH printed by
16038 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16039 # path with ; separators, and with drive letters. We can handle the
16040 # drive letters (cygwin fileutils understands them), so leave them,
16041 # especially as we might pass files found there to a mingw objdump,
16042 # which wouldn't understand a cygwinified path. Ahh.
16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16049 # pw32 DLLs use 'pw' prefix rather than 'lib'
16050 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16059 dynamic_linker='Win32 ld.exe'
16060 # FIXME: first we should search . and the directory the executable is in
16064 darwin* | rhapsody*)
16065 dynamic_linker="$host_os dyld"
16066 version_type=darwin
16069 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16070 soname_spec='${libname}${release}${major}$shared_ext'
16071 shlibpath_overrides_runpath=yes
16072 shlibpath_var=DYLD_LIBRARY_PATH
16073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16074 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16075 if test "$GCC" = yes; then
16076 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"`
16078 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16096 freebsd* | dragonfly*)
16097 # DragonFly does not have aout. When/if they implement a new
16098 # versioning mechanism, adjust this.
16099 if test -x /usr/bin/objformat; then
16100 objformat=`/usr/bin/objformat`
16103 freebsd[123]*) objformat=aout ;;
16104 *) objformat=elf ;;
16107 version_type=freebsd-$objformat
16108 case $version_type in
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16119 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=yes
16124 freebsd3.[01]* | freebsdelf3.[01]*)
16125 shlibpath_overrides_runpath=yes
16126 hardcode_into_libs=yes
16128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16130 shlibpath_overrides_runpath=no
16131 hardcode_into_libs=yes
16133 freebsd*) # from 4.6 on
16134 shlibpath_overrides_runpath=yes
16135 hardcode_into_libs=yes
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 shlibpath_var=LD_LIBRARY_PATH
16147 hardcode_into_libs=yes
16150 hpux9* | hpux10* | hpux11*)
16151 # Give a soname corresponding to the major version so that dld.sl refuses to
16152 # link against other versions.
16159 hardcode_into_libs=yes
16160 dynamic_linker="$host_os dld.so"
16161 shlibpath_var=LD_LIBRARY_PATH
16162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 if test "X$HPUX_IA64_MODE" = X32; then
16166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16174 hardcode_into_libs=yes
16175 dynamic_linker="$host_os dld.sl"
16176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16185 dynamic_linker="$host_os dld.sl"
16186 shlibpath_var=SHLIB_PATH
16187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16193 postinstall_cmds='chmod 555 $lib'
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=no
16205 hardcode_into_libs=yes
16208 irix5* | irix6* | nonstopux*)
16210 nonstopux*) version_type=nonstopux ;;
16212 if test "$lt_cv_prog_gnu_ld" = yes; then
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16223 irix5* | nonstopux*)
16224 libsuff= shlibsuff=
16227 case $LD in # libtool.m4 will add one of these switches to LD
16228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16229 libsuff= shlibsuff= libmagic=32-bit;;
16230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16231 libsuff=32 shlibsuff=N32 libmagic=N32;;
16232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16234 *) libsuff= shlibsuff= libmagic=never-match;;
16238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16239 shlibpath_overrides_runpath=no
16240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16242 hardcode_into_libs=yes
16245 # No shared lib support for Linux oldld, aout, or coff.
16246 linux*oldld* | linux*aout* | linux*coff*)
16250 # This must be Linux ELF.
16251 linux* | k*bsd*-gnu)
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=no
16260 # This implies no fast_install, which is unacceptable.
16261 # Some rework will be needed to allow for fast_install
16262 # before this can be enabled.
16263 hardcode_into_libs=yes
16265 # Append ld.so.conf contents to the search path
16266 if test -f /etc/ld.so.conf; then
16267 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16271 # We used to test for /lib/ld.so.1 and disable shared libraries on
16272 # powerpc, because MkLinux only supported shared libraries with the
16273 # GNU dynamic linker. Since this was broken with cross compilers,
16274 # most powerpc-linux boxes support dynamic linking these days and
16275 # people can always --disable-shared, the test was removed, and we
16276 # assume the GNU/Linux dynamic linker is in use.
16277 dynamic_linker='GNU/Linux ld.so'
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 shlibpath_overrides_runpath=no
16288 hardcode_into_libs=yes
16289 dynamic_linker='NetBSD ld.elf_so'
16296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16299 dynamic_linker='NetBSD (a.out) ld.so'
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 dynamic_linker='NetBSD ld.elf_so'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16307 hardcode_into_libs=yes
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16329 sys_lib_dlsearch_path_spec="/usr/lib"
16331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16334 *) need_version=no ;;
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16341 openbsd2.[89] | openbsd2.[89].*)
16342 shlibpath_overrides_runpath=no
16345 shlibpath_overrides_runpath=yes
16349 shlibpath_overrides_runpath=yes
16354 libname_spec='$name'
16357 library_names_spec='$libname${shared_ext} $libname.a'
16358 dynamic_linker='OS/2 ld.exe'
16359 shlibpath_var=LIBPATH
16362 osf3* | osf4* | osf5*)
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=yes
16381 hardcode_into_libs=yes
16382 # ldd complains unless libraries are executable
16383 postinstall_cmds='chmod +x $lib'
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=yes
16392 if test "$with_gnu_ld" = yes; then
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 case $host_vendor in
16405 shlibpath_overrides_runpath=no
16407 export_dynamic_flag_spec='${wl}-Blargedynsym'
16408 runpath_var=LD_RUN_PATH
16416 shlibpath_overrides_runpath=no
16417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16423 if test -d /usr/nec ;then
16425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16426 soname_spec='$libname${shared_ext}.$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16432 version_type=freebsd-elf
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 hardcode_into_libs=yes
16439 if test "$with_gnu_ld" = yes; then
16440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16441 shlibpath_overrides_runpath=no
16443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16444 shlibpath_overrides_runpath=yes
16447 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16451 sys_lib_dlsearch_path_spec='/usr/lib'
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457 soname_spec='${libname}${release}${shared_ext}$major'
16458 shlibpath_var=LD_LIBRARY_PATH
16465 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16466 echo "${ECHO_T}$dynamic_linker" >&6; }
16467 test "$dynamic_linker" = no && can_build_shared=no
16469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16470 if test "$GCC" = yes; then
16471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16474 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16476 hardcode_action_F77=
16477 if test -n "$hardcode_libdir_flag_spec_F77" || \
16478 test -n "$runpath_var_F77" || \
16479 test "X$hardcode_automatic_F77" = "Xyes" ; then
16481 # We can hardcode non-existant directories.
16482 if test "$hardcode_direct_F77" != no &&
16483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16484 # have to relink, otherwise we might link with an installed library
16485 # when we should be linking with a yet-to-be-installed one
16486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16487 test "$hardcode_minus_L_F77" != no; then
16488 # Linking always hardcodes the temporary library directory.
16489 hardcode_action_F77=relink
16491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16492 hardcode_action_F77=immediate
16495 # We cannot hardcode anything, or else we can only hardcode existing
16497 hardcode_action_F77=unsupported
16499 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16500 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16502 if test "$hardcode_action_F77" = relink; then
16503 # Fast installation is not supported
16504 enable_fast_install=no
16505 elif test "$shlibpath_overrides_runpath" = yes ||
16506 test "$enable_shared" = no; then
16507 # Fast installation is not necessary
16508 enable_fast_install=needless
16512 # The else clause should only fire when bootstrapping the
16513 # libtool distribution, otherwise you forgot to ship ltmain.sh
16514 # with your package, and you will get complaints that there are
16515 # no rules to generate ltmain.sh.
16516 if test -f "$ltmain"; then
16517 # See if we are running on zsh, and set the options which allow our commands through
16518 # without removal of \ escapes.
16519 if test -n "${ZSH_VERSION+set}" ; then
16520 setopt NO_GLOB_SUBST
16522 # Now quote all the things that may contain metacharacters while being
16523 # careful not to overquote the AC_SUBSTed values. We take copies of the
16524 # variables and quote the copies for generation of the libtool script.
16525 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16527 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16528 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16529 deplibs_check_method reload_flag reload_cmds need_locks \
16530 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16531 lt_cv_sys_global_symbol_to_c_name_address \
16532 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16533 old_postinstall_cmds old_postuninstall_cmds \
16537 lt_prog_compiler_wl_F77 \
16538 lt_prog_compiler_pic_F77 \
16539 lt_prog_compiler_static_F77 \
16540 lt_prog_compiler_no_builtin_flag_F77 \
16541 export_dynamic_flag_spec_F77 \
16542 thread_safe_flag_spec_F77 \
16543 whole_archive_flag_spec_F77 \
16544 enable_shared_with_static_runtimes_F77 \
16545 old_archive_cmds_F77 \
16546 old_archive_from_new_cmds_F77 \
16547 predep_objects_F77 \
16548 postdep_objects_F77 \
16551 compiler_lib_search_path_F77 \
16553 archive_expsym_cmds_F77 \
16554 postinstall_cmds_F77 \
16555 postuninstall_cmds_F77 \
16556 old_archive_from_expsyms_cmds_F77 \
16557 allow_undefined_flag_F77 \
16558 no_undefined_flag_F77 \
16559 export_symbols_cmds_F77 \
16560 hardcode_libdir_flag_spec_F77 \
16561 hardcode_libdir_flag_spec_ld_F77 \
16562 hardcode_libdir_separator_F77 \
16563 hardcode_automatic_F77 \
16565 module_expsym_cmds_F77 \
16566 lt_cv_prog_compiler_c_o_F77 \
16567 exclude_expsyms_F77 \
16568 include_expsyms_F77; do
16571 old_archive_cmds_F77 | \
16572 old_archive_from_new_cmds_F77 | \
16573 archive_cmds_F77 | \
16574 archive_expsym_cmds_F77 | \
16575 module_cmds_F77 | \
16576 module_expsym_cmds_F77 | \
16577 old_archive_from_expsyms_cmds_F77 | \
16578 export_symbols_cmds_F77 | \
16579 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16580 postinstall_cmds | postuninstall_cmds | \
16581 old_postinstall_cmds | old_postuninstall_cmds | \
16582 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16583 # Double-quote double-evaled strings.
16584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16587 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16593 *'\$0 --fallback-echo"')
16594 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16600 cat <<__EOF__ >> "$cfgfile"
16601 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605 # Shell to use when invoking shell scripts.
16608 # Whether or not to build shared libraries.
16609 build_libtool_libs=$enable_shared
16611 # Whether or not to build static libraries.
16612 build_old_libs=$enable_static
16614 # Whether or not to add -lc for building shared libraries.
16615 build_libtool_need_lc=$archive_cmds_need_lc_F77
16617 # Whether or not to disallow shared libs when runtime libs are static
16618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16620 # Whether or not to optimize for fast installation.
16621 fast_install=$enable_fast_install
16624 host_alias=$host_alias
16628 # The build system.
16629 build_alias=$build_alias
16633 # An echo program that does not interpret backslashes.
16638 AR_FLAGS=$lt_AR_FLAGS
16643 # LTCC compiler flags.
16644 LTCFLAGS=$lt_LTCFLAGS
16646 # A language-specific compiler.
16647 CC=$lt_compiler_F77
16649 # Is the compiler the GNU C compiler?
16655 # The linker used to build libraries.
16658 # Whether we need hard or soft links.
16661 # A BSD-compatible nm program.
16664 # A symbol stripping program
16667 # Used to examine libraries when file_magic_cmd begins "file"
16668 MAGIC_CMD=$MAGIC_CMD
16670 # Used on cygwin: DLL creation program.
16673 # Used on cygwin: object dumper.
16676 # Used on cygwin: assembler.
16679 # The name of the directory that contains temporary libtool files.
16682 # How to create reloadable object files.
16683 reload_flag=$lt_reload_flag
16684 reload_cmds=$lt_reload_cmds
16686 # How to pass a linker flag through the compiler.
16687 wl=$lt_lt_prog_compiler_wl_F77
16689 # Object file suffix (normally "o").
16690 objext="$ac_objext"
16692 # Old archive suffix (normally "a").
16695 # Shared library suffix (normally ".so").
16696 shrext_cmds='$shrext_cmds'
16698 # Executable file suffix (normally "").
16701 # Additional compiler flags for building library objects.
16702 pic_flag=$lt_lt_prog_compiler_pic_F77
16705 # What is the maximum length of a command?
16706 max_cmd_len=$lt_cv_sys_max_cmd_len
16708 # Does compiler simultaneously support -c and -o options?
16709 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16711 # Must we lock files when doing compilation?
16712 need_locks=$lt_need_locks
16714 # Do we need the lib prefix for modules?
16715 need_lib_prefix=$need_lib_prefix
16717 # Do we need a version for libraries?
16718 need_version=$need_version
16720 # Whether dlopen is supported.
16721 dlopen_support=$enable_dlopen
16723 # Whether dlopen of programs is supported.
16724 dlopen_self=$enable_dlopen_self
16726 # Whether dlopen of statically linked programs is supported.
16727 dlopen_self_static=$enable_dlopen_self_static
16729 # Compiler flag to prevent dynamic linking.
16730 link_static_flag=$lt_lt_prog_compiler_static_F77
16732 # Compiler flag to turn off builtin functions.
16733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16735 # Compiler flag to allow reflexive dlopens.
16736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16738 # Compiler flag to generate shared objects directly from archives.
16739 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16741 # Compiler flag to generate thread-safe objects.
16742 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16744 # Library versioning type.
16745 version_type=$version_type
16747 # Format of library name prefix.
16748 libname_spec=$lt_libname_spec
16750 # List of archive names. First name is the real one, the rest are links.
16751 # The last name is the one that the linker finds with -lNAME.
16752 library_names_spec=$lt_library_names_spec
16754 # The coded name of the library, if different from the real name.
16755 soname_spec=$lt_soname_spec
16757 # Commands used to build and install an old-style archive.
16759 old_archive_cmds=$lt_old_archive_cmds_F77
16760 old_postinstall_cmds=$lt_old_postinstall_cmds
16761 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16763 # Create an old-style archive from a shared archive.
16764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16766 # Create a temporary old-style archive to link instead of a shared archive.
16767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16769 # Commands used to build and install a shared archive.
16770 archive_cmds=$lt_archive_cmds_F77
16771 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16772 postinstall_cmds=$lt_postinstall_cmds
16773 postuninstall_cmds=$lt_postuninstall_cmds
16775 # Commands used to build a loadable module (assumed same as above if empty)
16776 module_cmds=$lt_module_cmds_F77
16777 module_expsym_cmds=$lt_module_expsym_cmds_F77
16779 # Commands to strip libraries.
16780 old_striplib=$lt_old_striplib
16781 striplib=$lt_striplib
16783 # Dependencies to place before the objects being linked to create a
16785 predep_objects=$lt_predep_objects_F77
16787 # Dependencies to place after the objects being linked to create a
16789 postdep_objects=$lt_postdep_objects_F77
16791 # Dependencies to place before the objects being linked to create a
16793 predeps=$lt_predeps_F77
16795 # Dependencies to place after the objects being linked to create a
16797 postdeps=$lt_postdeps_F77
16799 # The library search path used internally by the compiler when linking
16800 # a shared library.
16801 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16803 # Method to check whether dependent libraries are shared objects.
16804 deplibs_check_method=$lt_deplibs_check_method
16806 # Command to use when deplibs_check_method == file_magic.
16807 file_magic_cmd=$lt_file_magic_cmd
16809 # Flag that allows shared libraries with undefined symbols to be built.
16810 allow_undefined_flag=$lt_allow_undefined_flag_F77
16812 # Flag that forces no undefined symbols.
16813 no_undefined_flag=$lt_no_undefined_flag_F77
16815 # Commands used to finish a libtool library installation in a directory.
16816 finish_cmds=$lt_finish_cmds
16818 # Same as above, but a single script fragment to be evaled but not shown.
16819 finish_eval=$lt_finish_eval
16821 # Take the output of nm and produce a listing of raw symbols and C names.
16822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16824 # Transform the output of nm in a proper C declaration
16825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16827 # Transform the output of nm in a C name address pair
16828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16830 # This is the shared library runtime path variable.
16831 runpath_var=$runpath_var
16833 # This is the shared library path variable.
16834 shlibpath_var=$shlibpath_var
16836 # Is shlibpath searched before the hard-coded library search path?
16837 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16839 # How to hardcode a shared library path into an executable.
16840 hardcode_action=$hardcode_action_F77
16842 # Whether we should hardcode library paths into libraries.
16843 hardcode_into_libs=$hardcode_into_libs
16845 # Flag to hardcode \$libdir into a binary during linking.
16846 # This must work even if \$libdir does not exist.
16847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16849 # If ld is used when linking, flag to hardcode \$libdir into
16850 # a binary during linking. This must work even if \$libdir does
16852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16854 # Whether we need a single -rpath flag with a separated argument.
16855 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16857 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16858 # resulting binary.
16859 hardcode_direct=$hardcode_direct_F77
16861 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16862 # resulting binary.
16863 hardcode_minus_L=$hardcode_minus_L_F77
16865 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16866 # the resulting binary.
16867 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16869 # Set to yes if building a shared library automatically hardcodes DIR into the library
16870 # and all subsequent libraries and executables linked against it.
16871 hardcode_automatic=$hardcode_automatic_F77
16873 # Variables whose values should be saved in libtool wrapper scripts and
16874 # restored at relink time.
16875 variables_saved_for_relink="$variables_saved_for_relink"
16877 # Whether libtool must link a program against all its dependency libraries.
16878 link_all_deplibs=$link_all_deplibs_F77
16880 # Compile-time system search path for libraries
16881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16883 # Run-time system search path for libraries
16884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16886 # Fix the shell variable \$srcfile for the compiler.
16887 fix_srcfile_path="$fix_srcfile_path_F77"
16889 # Set to yes if exported symbols are required.
16890 always_export_symbols=$always_export_symbols_F77
16892 # The commands to list exported symbols.
16893 export_symbols_cmds=$lt_export_symbols_cmds_F77
16895 # The commands to extract the exported symbol list from a shared archive.
16896 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16898 # Symbols that should not be listed in the preloaded symbols.
16899 exclude_expsyms=$lt_exclude_expsyms_F77
16901 # Symbols that must always be exported.
16902 include_expsyms=$lt_include_expsyms_F77
16904 # ### END LIBTOOL TAG CONFIG: $tagname
16910 # If there is no Makefile yet, we rely on a make rule to execute
16911 # `config.status --recheck' to rerun these tests and create the
16912 # libtool script then.
16913 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16914 if test -f "$ltmain_in"; then
16915 test -f Makefile && make "$ltmain"
16921 ac_cpp='$CPP $CPPFLAGS'
16922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16934 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16937 # Source file extension for Java test sources.
16940 # Object file extension for compiled Java test sources.
16944 # Code to be used in simple compile tests
16945 lt_simple_compile_test_code="class foo {}\n"
16947 # Code to be used in simple link tests
16948 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16950 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16952 # If no C compiler was specified, use CC.
16955 # If no C compiler flags were specified, use CFLAGS.
16956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16958 # Allow CC to be a program name with arguments.
16962 # save warnings/boilerplate of simple test code
16963 ac_outfile=conftest.$ac_objext
16964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16966 _lt_compiler_boilerplate=`cat conftest.err`
16969 ac_outfile=conftest.$ac_objext
16970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972 _lt_linker_boilerplate=`cat conftest.err`
16976 # Allow CC to be a program name with arguments.
16981 for cc_temp in $compiler""; do
16983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16992 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16993 archive_cmds_need_lc_GCJ=no
16995 old_archive_cmds_GCJ=$old_archive_cmds
16998 lt_prog_compiler_no_builtin_flag_GCJ=
17000 if test "$GCC" = yes; then
17001 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17004 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17005 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 lt_cv_prog_compiler_rtti_exceptions=no
17010 ac_outfile=conftest.$ac_objext
17011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17012 lt_compiler_flag="-fno-rtti -fno-exceptions"
17013 # Insert the option either (1) after the last *FLAGS variable, or
17014 # (2) before a word containing "conftest.", or (3) at the end.
17015 # Note that $ac_compile itself does not contain backslashes and begins
17016 # with a dollar sign (not a hyphen), so the echo should work correctly.
17017 # The option is referenced via a variable to avoid confusing sed.
17018 lt_compile=`echo "$ac_compile" | $SED \
17019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17021 -e 's:$: $lt_compiler_flag:'`
17022 (eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
17023 (eval "$lt_compile" 2>conftest.err)
17025 cat conftest.err >&5
17026 echo "$as_me:17026: \$? = $ac_status" >&5
17027 if (exit $ac_status) && test -s "$ac_outfile"; then
17028 # The compiler can only warn and ignore the option if not recognized
17029 # So say no if there are warnings other than the usual output.
17030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17033 lt_cv_prog_compiler_rtti_exceptions=yes
17039 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17040 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17043 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17050 lt_prog_compiler_wl_GCJ=
17051 lt_prog_compiler_pic_GCJ=
17052 lt_prog_compiler_static_GCJ=
17054 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17057 if test "$GCC" = yes; then
17058 lt_prog_compiler_wl_GCJ='-Wl,'
17059 lt_prog_compiler_static_GCJ='-static'
17063 # All AIX code is PIC.
17064 if test "$host_cpu" = ia64; then
17065 # AIX 5 now supports IA64 processor
17066 lt_prog_compiler_static_GCJ='-Bstatic'
17071 # FIXME: we need at least 68020 code to build shared libraries, but
17072 # adding the `-m68020' flag to GCC prevents building anything better,
17074 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17077 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17078 # PIC is the default for these OSes.
17081 mingw* | pw32* | os2*)
17082 # This hack is so that the source file can tell whether it is being
17083 # built for inclusion in a dll (and should export symbols for example).
17084 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17087 darwin* | rhapsody*)
17088 # PIC is the default on this platform
17089 # Common symbols not allowed in MH_DYLIB files
17090 lt_prog_compiler_pic_GCJ='-fno-common'
17094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17095 # Instead, we relocate shared libraries at runtime.
17099 # Just because we use GCC doesn't mean we suddenly get shared libraries
17100 # on systems that don't support them.
17101 lt_prog_compiler_can_build_shared_GCJ=no
17106 if test -d /usr/nec; then
17107 lt_prog_compiler_pic_GCJ=-Kconform_pic
17112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113 # not for PA HP-UX.
17119 lt_prog_compiler_pic_GCJ='-fPIC'
17125 lt_prog_compiler_pic_GCJ='-fPIC'
17129 # PORTME Check for flag to pass linker flags through the system compiler.
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17133 if test "$host_cpu" = ia64; then
17134 # AIX 5 now supports IA64 processor
17135 lt_prog_compiler_static_GCJ='-Bstatic'
17137 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17141 # PIC is the default on this platform
17142 # Common symbols not allowed in MH_DYLIB files
17143 case $cc_basename in
17145 lt_prog_compiler_pic_GCJ='-qnocommon'
17146 lt_prog_compiler_wl_GCJ='-Wl,'
17151 mingw* | pw32* | os2*)
17152 # This hack is so that the source file can tell whether it is being
17153 # built for inclusion in a dll (and should export symbols for example).
17154 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17157 hpux9* | hpux10* | hpux11*)
17158 lt_prog_compiler_wl_GCJ='-Wl,'
17159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17160 # not for PA HP-UX.
17166 lt_prog_compiler_pic_GCJ='+Z'
17169 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17170 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17173 irix5* | irix6* | nonstopux*)
17174 lt_prog_compiler_wl_GCJ='-Wl,'
17175 # PIC (with -KPIC) is the default.
17176 lt_prog_compiler_static_GCJ='-non_shared'
17180 lt_prog_compiler_pic_GCJ='-KPIC'
17181 lt_prog_compiler_static_GCJ='-Bstatic'
17184 linux* | k*bsd*-gnu)
17185 case $cc_basename in
17187 lt_prog_compiler_wl_GCJ='-Wl,'
17188 lt_prog_compiler_pic_GCJ='-KPIC'
17189 lt_prog_compiler_static_GCJ='-static'
17191 pgcc* | pgf77* | pgf90* | pgf95*)
17192 # Portland Group compilers (*not* the Pentium gcc compiler,
17193 # which looks to be a dead project)
17194 lt_prog_compiler_wl_GCJ='-Wl,'
17195 lt_prog_compiler_pic_GCJ='-fpic'
17196 lt_prog_compiler_static_GCJ='-Bstatic'
17199 lt_prog_compiler_wl_GCJ='-Wl,'
17200 # All Alpha code is PIC.
17201 lt_prog_compiler_static_GCJ='-non_shared'
17206 osf3* | osf4* | osf5*)
17207 lt_prog_compiler_wl_GCJ='-Wl,'
17208 # All OSF/1 code is PIC.
17209 lt_prog_compiler_static_GCJ='-non_shared'
17213 lt_prog_compiler_pic_GCJ='-KPIC'
17214 lt_prog_compiler_static_GCJ='-Bstatic'
17215 case $cc_basename in
17216 f77* | f90* | f95*)
17217 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17219 lt_prog_compiler_wl_GCJ='-Wl,';;
17224 lt_prog_compiler_wl_GCJ='-Qoption ld '
17225 lt_prog_compiler_pic_GCJ='-PIC'
17226 lt_prog_compiler_static_GCJ='-Bstatic'
17229 sysv4 | sysv4.2uw2* | sysv4.3*)
17230 lt_prog_compiler_wl_GCJ='-Wl,'
17231 lt_prog_compiler_pic_GCJ='-KPIC'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17236 if test -d /usr/nec ;then
17237 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17238 lt_prog_compiler_static_GCJ='-Bstatic'
17242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17243 lt_prog_compiler_wl_GCJ='-Wl,'
17244 lt_prog_compiler_pic_GCJ='-KPIC'
17245 lt_prog_compiler_static_GCJ='-Bstatic'
17249 lt_prog_compiler_wl_GCJ='-Wl,'
17250 lt_prog_compiler_can_build_shared_GCJ=no
17254 lt_prog_compiler_pic_GCJ='-pic'
17255 lt_prog_compiler_static_GCJ='-Bstatic'
17259 lt_prog_compiler_can_build_shared_GCJ=no
17264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17265 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17268 # Check to make sure the PIC flag actually works.
17270 if test -n "$lt_prog_compiler_pic_GCJ"; then
17272 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17273 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17274 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 lt_prog_compiler_pic_works_GCJ=no
17278 ac_outfile=conftest.$ac_objext
17279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17280 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17281 # Insert the option either (1) after the last *FLAGS variable, or
17282 # (2) before a word containing "conftest.", or (3) at the end.
17283 # Note that $ac_compile itself does not contain backslashes and begins
17284 # with a dollar sign (not a hyphen), so the echo should work correctly.
17285 # The option is referenced via a variable to avoid confusing sed.
17286 lt_compile=`echo "$ac_compile" | $SED \
17287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17289 -e 's:$: $lt_compiler_flag:'`
17290 (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
17291 (eval "$lt_compile" 2>conftest.err)
17293 cat conftest.err >&5
17294 echo "$as_me:17294: \$? = $ac_status" >&5
17295 if (exit $ac_status) && test -s "$ac_outfile"; then
17296 # The compiler can only warn and ignore the option if not recognized
17297 # So say no if there are warnings other than the usual output.
17298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17301 lt_prog_compiler_pic_works_GCJ=yes
17307 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17308 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17310 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17311 case $lt_prog_compiler_pic_GCJ in
17313 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17316 lt_prog_compiler_pic_GCJ=
17317 lt_prog_compiler_can_build_shared_GCJ=no
17322 # For platforms which do not support PIC, -DPIC is meaningless:
17324 lt_prog_compiler_pic_GCJ=
17327 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17332 # Check to make sure the static flag actually works.
17334 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17335 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17337 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 lt_prog_compiler_static_works_GCJ=no
17341 save_LDFLAGS="$LDFLAGS"
17342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17343 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17345 # The linker can only warn and ignore the option if not recognized
17346 # So say no if there are warnings
17347 if test -s conftest.err; then
17348 # Append any errors to the config.log.
17349 cat conftest.err 1>&5
17350 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17352 if diff conftest.exp conftest.er2 >/dev/null; then
17353 lt_prog_compiler_static_works_GCJ=yes
17356 lt_prog_compiler_static_works_GCJ=yes
17360 LDFLAGS="$save_LDFLAGS"
17363 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17364 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17366 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17369 lt_prog_compiler_static_GCJ=
17373 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 lt_cv_prog_compiler_c_o_GCJ=no
17379 $rm -r conftest 2>/dev/null
17383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17385 lt_compiler_flag="-o out/conftest2.$ac_objext"
17386 # Insert the option either (1) after the last *FLAGS variable, or
17387 # (2) before a word containing "conftest.", or (3) at the end.
17388 # Note that $ac_compile itself does not contain backslashes and begins
17389 # with a dollar sign (not a hyphen), so the echo should work correctly.
17390 lt_compile=`echo "$ac_compile" | $SED \
17391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393 -e 's:$: $lt_compiler_flag:'`
17394 (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395 (eval "$lt_compile" 2>out/conftest.err)
17397 cat out/conftest.err >&5
17398 echo "$as_me:17398: \$? = $ac_status" >&5
17399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17401 # The compiler can only warn and ignore the option if not recognized
17402 # So say no if there are warnings
17403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17406 lt_cv_prog_compiler_c_o_GCJ=yes
17411 # SGI C++ compiler will create directory out/ii_files/ for
17412 # template instantiation
17413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17414 $rm out/* && rmdir out
17420 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17424 hard_links="nottested"
17425 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17426 # do not overwrite the value of need_locks provided by the user
17427 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 ln conftest.a conftest.b 2>&5 || hard_links=no
17434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435 { echo "$as_me:$LINENO: result: $hard_links" >&5
17436 echo "${ECHO_T}$hard_links" >&6; }
17437 if test "$hard_links" = no; then
17438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17446 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17450 allow_undefined_flag_GCJ=
17451 enable_shared_with_static_runtimes_GCJ=no
17453 archive_expsym_cmds_GCJ=
17454 old_archive_From_new_cmds_GCJ=
17455 old_archive_from_expsyms_cmds_GCJ=
17456 export_dynamic_flag_spec_GCJ=
17457 whole_archive_flag_spec_GCJ=
17458 thread_safe_flag_spec_GCJ=
17459 hardcode_libdir_flag_spec_GCJ=
17460 hardcode_libdir_flag_spec_ld_GCJ=
17461 hardcode_libdir_separator_GCJ=
17462 hardcode_direct_GCJ=no
17463 hardcode_minus_L_GCJ=no
17464 hardcode_shlibpath_var_GCJ=unsupported
17465 link_all_deplibs_GCJ=unknown
17466 hardcode_automatic_GCJ=no
17468 module_expsym_cmds_GCJ=
17469 always_export_symbols_GCJ=no
17470 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17471 # include_expsyms should be a list of space-separated symbols to be *always*
17472 # included in the symbol list
17473 include_expsyms_GCJ=
17474 # exclude_expsyms can be an extended regexp of symbols to exclude
17475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17477 # as well as any symbol that contains `d'.
17478 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17480 # platforms (ab)use it in PIC code, but their linkers get confused if
17481 # the symbol is explicitly referenced. Since portable code cannot
17482 # rely on this symbol name, it's probably fine to never include it in
17483 # preloaded symbol tables.
17484 extract_expsyms_cmds=
17485 # Just being paranoid about ensuring that cc_basename is set.
17486 for cc_temp in $compiler""; do
17488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17497 cygwin* | mingw* | pw32*)
17498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17499 # When not using gcc, we currently assume that we are using
17500 # Microsoft Visual C++.
17501 if test "$GCC" != yes; then
17506 # we just hope/assume this is gcc and not c89 (= MSVC++)
17515 if test "$with_gnu_ld" = yes; then
17516 # If archive_cmds runs LD, not CC, wlarc should be empty
17519 # Set some defaults for GNU ld with shared library support. These
17520 # are reset later if shared libraries are not supported. Putting them
17521 # here allows them to be overridden if necessary.
17522 runpath_var=LD_RUN_PATH
17523 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17524 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17525 # ancient GNU ld didn't support --whole-archive et. al.
17526 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17527 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17529 whole_archive_flag_spec_GCJ=
17531 supports_anon_versioning=no
17532 case `$LD -v 2>/dev/null` in
17533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17536 *\ 2.11.*) ;; # other 2.11 versions
17537 *) supports_anon_versioning=yes ;;
17540 # See if GNU ld supports shared libraries.
17542 aix3* | aix4* | aix5*)
17543 # On AIX/PPC, the GNU linker is very broken
17544 if test "$host_cpu" != ia64; then
17548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17549 *** to be unable to reliably create shared libraries on AIX.
17550 *** Therefore, libtool is disabling shared libraries support. If you
17551 *** really care for shared libraries, you may want to modify your PATH
17552 *** so that a non-GNU linker is found, and then restart.
17559 archive_cmds_GCJ='$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)'
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_minus_L_GCJ=yes
17563 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17564 # that the semantics of dynamic libraries on AmigaOS, at least up
17565 # to version 4, is to share data among multiple programs linked
17566 # with the same dynamic library. Since this doesn't match the
17567 # behavior of shared libraries on other platforms, we can't use
17573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574 allow_undefined_flag_GCJ=unsupported
17575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17576 # support --undefined. This deserves some investigation. FIXME
17577 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17583 cygwin* | mingw* | pw32*)
17584 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17585 # as there is no search path for DLLs.
17586 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587 allow_undefined_flag_GCJ=unsupported
17588 always_export_symbols_GCJ=no
17589 enable_shared_with_static_runtimes_GCJ=yes
17590 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17592 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594 # If the export-symbols file already is a .def file (1st line
17595 # is EXPORTS), use it as is; otherwise, prepend...
17596 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17597 cp $export_symbols $output_objdir/$soname.def;
17599 echo EXPORTS > $output_objdir/$soname.def;
17600 cat $export_symbols >> $output_objdir/$soname.def;
17602 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17609 hardcode_direct_GCJ=no
17610 hardcode_shlibpath_var_GCJ=no
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612 export_dynamic_flag_spec_GCJ='${wl}-E'
17613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17614 # Instead, shared libraries are loaded at an image base (0x10000000 by
17615 # default) and relocated if they conflict, which is a slow very memory
17616 # consuming and fragmenting process. To avoid this, we pick a random,
17617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17618 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17619 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17620 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17623 linux* | k*bsd*-gnu)
17624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626 case $cc_basename,$host_cpu in
17627 pgcc*) # Portland Group C compiler
17628 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17629 tmp_addflag=' $pic_flag'
17631 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17632 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17633 tmp_addflag=' $pic_flag -Mnomain' ;;
17634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17635 tmp_addflag=' -i_dynamic' ;;
17636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17637 tmp_addflag=' -i_dynamic -nofor_main' ;;
17638 ifc* | ifort*) # Intel Fortran compiler
17639 tmp_addflag=' -nofor_main' ;;
17641 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17643 if test $supports_anon_versioning = yes; then
17644 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17646 $echo "local: *; };" >> $output_objdir/$libname.ver~
17647 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17649 link_all_deplibs_GCJ=no
17655 netbsd* | netbsdelf*-gnu)
17656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17657 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17661 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17671 *** create shared libraries on Solaris systems. Therefore, libtool
17672 *** is disabling shared libraries support. We urge you to upgrade GNU
17673 *** binutils to release 2.9.1 or newer. Another option is to modify
17674 *** your PATH or compiler configuration so that the native linker is
17675 *** used, and then restart.
17678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17687 case `$LD -v 2>&1` in
17688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17693 *** reliably create shared libraries on SCO systems. Therefore, libtool
17694 *** is disabling shared libraries support. We urge you to upgrade GNU
17695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17696 *** your PATH or compiler configuration so that the native linker is
17697 *** used, and then restart.
17702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17703 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17704 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17705 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17714 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17716 hardcode_direct_GCJ=yes
17717 hardcode_shlibpath_var_GCJ=no
17721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17722 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17730 if test "$ld_shlibs_GCJ" = no; then
17732 hardcode_libdir_flag_spec_GCJ=
17733 export_dynamic_flag_spec_GCJ=
17734 whole_archive_flag_spec_GCJ=
17737 # PORTME fill in a description of your system's linker (not GNU ld)
17740 allow_undefined_flag_GCJ=unsupported
17741 always_export_symbols_GCJ=yes
17742 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17743 # Note: this linker hardcodes the directories in LIBPATH if there
17744 # are no directories specified by -L.
17745 hardcode_minus_L_GCJ=yes
17746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17747 # Neither direct hardcoding nor static linking is supported with a
17749 hardcode_direct_GCJ=unsupported
17754 if test "$host_cpu" = ia64; then
17755 # On IA64, the linker does run time linking by default, so we don't
17756 # have to do anything special.
17757 aix_use_runtimelinking=no
17758 exp_sym_flag='-Bexport'
17761 # If we're using GNU nm, then we don't want the "-C" option.
17762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17763 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17764 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17766 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17768 aix_use_runtimelinking=no
17770 # Test if we are trying to use run time linking or normal
17771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17772 # need to do runtime linking.
17773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17774 for ld_flag in $LDFLAGS; do
17775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17776 aix_use_runtimelinking=yes
17783 exp_sym_flag='-bexport'
17784 no_entry_flag='-bnoentry'
17787 # When large executables or shared objects are built, AIX ld can
17788 # have problems creating the table of contents. If linking a library
17789 # or program results in "error TOC overflow" add -mminimal-toc to
17790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17793 archive_cmds_GCJ=''
17794 hardcode_direct_GCJ=yes
17795 hardcode_libdir_separator_GCJ=':'
17796 link_all_deplibs_GCJ=yes
17798 if test "$GCC" = yes; then
17799 case $host_os in aix4.[012]|aix4.[012].*)
17800 # We only want to do this on AIX 4.2 and lower, the check
17801 # below for broken collect2 doesn't work under 4.3+
17802 collect2name=`${CC} -print-prog-name=collect2`
17803 if test -f "$collect2name" && \
17804 strings "$collect2name" | grep resolve_lib_name >/dev/null
17806 # We have reworked collect2
17807 hardcode_direct_GCJ=yes
17809 # We have old collect2
17810 hardcode_direct_GCJ=unsupported
17811 # It fails to find uninstalled libraries when the uninstalled
17812 # path is not listed in the libpath. Setting hardcode_minus_L
17813 # to unsupported forces relinking
17814 hardcode_minus_L_GCJ=yes
17815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17816 hardcode_libdir_separator_GCJ=
17820 shared_flag='-shared'
17821 if test "$aix_use_runtimelinking" = yes; then
17822 shared_flag="$shared_flag "'${wl}-G'
17826 if test "$host_cpu" = ia64; then
17827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17828 # chokes on -Wl,-G. The following line is correct:
17831 if test "$aix_use_runtimelinking" = yes; then
17832 shared_flag='${wl}-G'
17834 shared_flag='${wl}-bM:SRE'
17839 # It seems that -bexpall does not export symbols beginning with
17840 # underscore (_), so it is better to generate a list of symbols to export.
17841 always_export_symbols_GCJ=yes
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # Warning - without using the other runtime loading flags (-brtl),
17844 # -berok will link without error, but may produce a broken library.
17845 allow_undefined_flag_GCJ='-berok'
17846 # Determine the default libpath from the value encoded in an empty executable.
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (ac_try="$ac_link"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_link") 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } && {
17876 test -z "$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17878 } && test -s conftest$ac_exeext &&
17879 $as_test_x conftest$ac_exeext; then
17881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17883 # Check for a 64-bit object if we didn't find anything.
17884 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; }
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894 conftest$ac_exeext conftest.$ac_ext
17895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17897 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17898 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17900 if test "$host_cpu" = ia64; then
17901 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17902 allow_undefined_flag_GCJ="-z nodefs"
17903 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17905 # Determine the default libpath from the value encoded in an empty executable.
17906 cat >conftest.$ac_ext <<_ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17921 rm -f conftest.$ac_objext conftest$ac_exeext
17922 if { (ac_try="$ac_link"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_link") 2>conftest.er1
17930 grep -v '^ *+' conftest.er1 >conftest.err
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } && {
17935 test -z "$ac_c_werror_flag" ||
17936 test ! -s conftest.err
17937 } && test -s conftest$ac_exeext &&
17938 $as_test_x conftest$ac_exeext; then
17940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17942 # Check for a 64-bit object if we didn't find anything.
17943 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; }
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17953 conftest$ac_exeext conftest.$ac_ext
17954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17956 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17957 # Warning - without using the other run time loading flags,
17958 # -berok will link without error, but may produce a broken library.
17959 no_undefined_flag_GCJ=' ${wl}-bernotok'
17960 allow_undefined_flag_GCJ=' ${wl}-berok'
17961 # Exported symbols can be pulled into shared objects from archives
17962 whole_archive_flag_spec_GCJ='$convenience'
17963 archive_cmds_need_lc_GCJ=yes
17964 # This is similar to how AIX traditionally builds its shared libraries.
17965 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17971 archive_cmds_GCJ='$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)'
17972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973 hardcode_minus_L_GCJ=yes
17974 # see comment about different semantics on the GNU ld section
17979 export_dynamic_flag_spec_GCJ=-rdynamic
17982 cygwin* | mingw* | pw32*)
17983 # When not using gcc, we currently assume that we are using
17984 # Microsoft Visual C++.
17985 # hardcode_libdir_flag_spec is actually meaningless, as there is
17986 # no search path for DLLs.
17987 hardcode_libdir_flag_spec_GCJ=' '
17988 allow_undefined_flag_GCJ=unsupported
17989 # Tell ltmain to make .lib files, not .a files.
17991 # Tell ltmain to make .dll files, not .so files.
17993 # FIXME: Setting linknames here is a bad hack.
17994 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17995 # The linker will automatically build a .lib file if we build a DLL.
17996 old_archive_From_new_cmds_GCJ='true'
17997 # FIXME: Should let the user specify the lib program.
17998 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17999 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18000 enable_shared_with_static_runtimes_GCJ=yes
18003 darwin* | rhapsody*)
18005 rhapsody* | darwin1.[012])
18006 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18009 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18010 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18012 case ${MACOSX_DEPLOYMENT_TARGET} in
18014 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18017 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18023 archive_cmds_need_lc_GCJ=no
18024 hardcode_direct_GCJ=no
18025 hardcode_automatic_GCJ=yes
18026 hardcode_shlibpath_var_GCJ=unsupported
18027 whole_archive_flag_spec_GCJ=''
18028 link_all_deplibs_GCJ=yes
18029 if test "$GCC" = yes ; then
18030 output_verbose_link_cmd='echo'
18031 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18032 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18034 archive_expsym_cmds_GCJ='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}'
18035 module_expsym_cmds_GCJ='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}'
18037 case $cc_basename in
18039 output_verbose_link_cmd='echo'
18040 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18041 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18043 archive_expsym_cmds_GCJ='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}'
18044 module_expsym_cmds_GCJ='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}'
18054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18056 hardcode_shlibpath_var_GCJ=no
18063 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18064 # support. Future versions do this automatically, but an explicit c++rt0.o
18065 # does not break anything, and helps significantly (at the cost of a little
18068 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18069 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18070 hardcode_direct_GCJ=yes
18071 hardcode_shlibpath_var_GCJ=no
18074 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18076 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_direct_GCJ=yes
18078 hardcode_minus_L_GCJ=yes
18079 hardcode_shlibpath_var_GCJ=no
18082 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18083 freebsd* | dragonfly*)
18084 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18085 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18086 hardcode_direct_GCJ=yes
18087 hardcode_shlibpath_var_GCJ=no
18091 if test "$GCC" = yes; then
18092 archive_cmds_GCJ='$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'
18094 archive_cmds_GCJ='$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'
18096 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097 hardcode_libdir_separator_GCJ=:
18098 hardcode_direct_GCJ=yes
18100 # hardcode_minus_L: Not really in the search PATH,
18101 # but as the default location of the library.
18102 hardcode_minus_L_GCJ=yes
18103 export_dynamic_flag_spec_GCJ='${wl}-E'
18107 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18108 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18110 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18112 if test "$with_gnu_ld" = no; then
18113 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18114 hardcode_libdir_separator_GCJ=:
18116 hardcode_direct_GCJ=yes
18117 export_dynamic_flag_spec_GCJ='${wl}-E'
18119 # hardcode_minus_L: Not really in the search PATH,
18120 # but as the default location of the library.
18121 hardcode_minus_L_GCJ=yes
18126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18129 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18135 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18151 if test "$with_gnu_ld" = no; then
18152 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18153 hardcode_libdir_separator_GCJ=:
18157 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18158 hardcode_direct_GCJ=no
18159 hardcode_shlibpath_var_GCJ=no
18162 hardcode_direct_GCJ=yes
18163 export_dynamic_flag_spec_GCJ='${wl}-E'
18165 # hardcode_minus_L: Not really in the search PATH,
18166 # but as the default location of the library.
18167 hardcode_minus_L_GCJ=yes
18173 irix5* | irix6* | nonstopux*)
18174 if test "$GCC" = yes; then
18175 archive_cmds_GCJ='$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'
18177 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18178 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18181 hardcode_libdir_separator_GCJ=:
18182 link_all_deplibs_GCJ=yes
18185 netbsd* | netbsdelf*-gnu)
18186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18189 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18191 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18192 hardcode_direct_GCJ=yes
18193 hardcode_shlibpath_var_GCJ=no
18197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 hardcode_direct_GCJ=yes
18199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18200 hardcode_libdir_separator_GCJ=:
18201 hardcode_shlibpath_var_GCJ=no
18205 hardcode_direct_GCJ=yes
18206 hardcode_shlibpath_var_GCJ=no
18207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18208 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18211 export_dynamic_flag_spec_GCJ='${wl}-E'
18214 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18215 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18216 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18219 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18220 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18228 hardcode_minus_L_GCJ=yes
18229 allow_undefined_flag_GCJ=unsupported
18230 archive_cmds_GCJ='$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'
18231 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18235 if test "$GCC" = yes; then
18236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18237 archive_cmds_GCJ='$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'
18239 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18240 archive_cmds_GCJ='$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'
18242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18243 hardcode_libdir_separator_GCJ=:
18246 osf4* | osf5*) # as osf3* with the addition of -msym flag
18247 if test "$GCC" = yes; then
18248 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18249 archive_cmds_GCJ='$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'
18250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18252 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18253 archive_cmds_GCJ='$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'
18254 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18255 $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'
18257 # Both c and cxx compiler support -rpath directly
18258 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18260 hardcode_libdir_separator_GCJ=:
18264 no_undefined_flag_GCJ=' -z text'
18265 if test "$GCC" = yes; then
18267 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18272 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18273 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18276 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18277 hardcode_shlibpath_var_GCJ=no
18279 solaris2.[0-5] | solaris2.[0-5].*) ;;
18281 # The compiler driver will combine linker options so we
18282 # cannot just pass the convience library names through
18283 # without $wl, iff we do not link with $LD.
18284 # Luckily, gcc supports the same syntax we need for Sun Studio.
18285 # Supported since Solaris 2.6 (maybe 2.5.1?)
18288 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18290 whole_archive_flag_spec_GCJ='${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' ;;
18293 link_all_deplibs_GCJ=yes
18297 if test "x$host_vendor" = xsequent; then
18298 # Use $CC to link under sequent, because it throws in some extra .o
18299 # files that make .init and .fini sections work.
18300 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18302 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305 hardcode_direct_GCJ=yes
18306 hardcode_minus_L_GCJ=yes
18307 hardcode_shlibpath_var_GCJ=no
18311 case $host_vendor in
18313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314 hardcode_direct_GCJ=yes # is this really true???
18317 ## LD is ld it makes a PLAMLIB
18318 ## CC just makes a GrossModule.
18319 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18320 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18321 hardcode_direct_GCJ=no
18324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18328 runpath_var='LD_RUN_PATH'
18329 hardcode_shlibpath_var_GCJ=no
18333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334 hardcode_shlibpath_var_GCJ=no
18335 export_dynamic_flag_spec_GCJ='-Bexport'
18339 if test -d /usr/nec; then
18340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341 hardcode_shlibpath_var_GCJ=no
18342 runpath_var=LD_RUN_PATH
18343 hardcode_runpath_var=yes
18348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18349 no_undefined_flag_GCJ='${wl}-z,text'
18350 archive_cmds_need_lc_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 runpath_var='LD_RUN_PATH'
18354 if test "$GCC" = yes; then
18355 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18358 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 sysv5* | sco3.2v5* | sco5v6*)
18364 # Note: We can NOT use -z defs as we might desire, because we do not
18365 # link with -lc, and that would cause any symbols used from libc to
18366 # always be unresolved, which means just about no library would
18367 # ever link correctly. If we're not using GNU ld we use -z text
18368 # though, which does catch some bad symbols but isn't as heavy-handed
18370 no_undefined_flag_GCJ='${wl}-z,text'
18371 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18372 archive_cmds_need_lc_GCJ=no
18373 hardcode_shlibpath_var_GCJ=no
18374 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18375 hardcode_libdir_separator_GCJ=':'
18376 link_all_deplibs_GCJ=yes
18377 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18378 runpath_var='LD_RUN_PATH'
18380 if test "$GCC" = yes; then
18381 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18382 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18384 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392 hardcode_shlibpath_var_GCJ=no
18401 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18402 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18403 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18406 # Do we need to explicitly link libc?
18408 case "x$archive_cmds_need_lc_GCJ" in
18410 # Assume -lc should be added
18411 archive_cmds_need_lc_GCJ=yes
18413 if test "$enable_shared" = yes && test "$GCC" = yes; then
18414 case $archive_cmds_GCJ in
18416 # FIXME: we may have to deal with multi-command sequences.
18419 # Test whether the compiler implicitly links with -lc since on some
18420 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18421 # to ld, don't add -lc before -lgcc.
18422 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428 (eval $ac_compile) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } 2>conftest.err; then
18434 libobjs=conftest.$ac_objext
18436 wl=$lt_prog_compiler_wl_GCJ
18437 pic_flag=$lt_prog_compiler_pic_GCJ
18443 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18444 allow_undefined_flag_GCJ=
18445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18446 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }
18451 archive_cmds_need_lc_GCJ=no
18453 archive_cmds_need_lc_GCJ=yes
18455 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18457 cat conftest.err 1>&5
18460 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18461 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18468 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18470 library_names_spec=
18471 libname_spec='lib$name'
18475 postuninstall_cmds=
18479 shlibpath_overrides_runpath=unknown
18481 dynamic_linker="$host_os ld.so"
18482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18483 if test "$GCC" = yes; then
18484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18485 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18486 # if the path contains ";" then we assume it to be the separator
18487 # otherwise default to the standard path separator (i.e. ":") - it is
18488 # assumed that no part of a normal pathname contains ";" but that should
18489 # okay in the real world where ";" in dirpaths is itself problematic.
18490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18497 need_lib_prefix=unknown
18498 hardcode_into_libs=no
18500 # when you set need_version to no, make sure it does not cause -set_version
18501 # flags to be left without arguments
18502 need_version=unknown
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18508 shlibpath_var=LIBPATH
18510 # AIX 3 has no versioning support, so we append a major version to the name.
18511 soname_spec='${libname}${release}${shared_ext}$major'
18518 hardcode_into_libs=yes
18519 if test "$host_cpu" = ia64; then
18520 # AIX 5 supports IA64
18521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18522 shlibpath_var=LD_LIBRARY_PATH
18524 # With GCC up to 2.95.x, collect2 would create an import file
18525 # for dependence libraries. The import file would start with
18526 # the line `#! .'. This would cause the generated library to
18527 # depend on `.', always an invalid library. This was fixed in
18528 # development snapshots of GCC prior to 3.0.
18530 aix4 | aix4.[01] | aix4.[01].*)
18531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18533 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18536 can_build_shared=no
18540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18541 # soname into executable. Probably we can add versioning support to
18542 # collect2, so additional links can be useful in future.
18543 if test "$aix_use_runtimelinking" = yes; then
18544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18545 # instead of lib<name>.a to let people know that these are not
18546 # typical AIX shared libraries.
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 # We preserve .a as extension for shared libraries through AIX4.2
18550 # and later when we are not doing run time linking.
18551 library_names_spec='${libname}${release}.a $libname.a'
18552 soname_spec='${libname}${release}${shared_ext}$major'
18554 shlibpath_var=LIBPATH
18559 library_names_spec='$libname.ixlibrary $libname.a'
18560 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18561 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'
18565 library_names_spec='${libname}${shared_ext}'
18566 dynamic_linker="$host_os ld.so"
18567 shlibpath_var=LIBRARY_PATH
18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574 soname_spec='${libname}${release}${shared_ext}$major'
18575 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18576 shlibpath_var=LD_LIBRARY_PATH
18577 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18578 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18579 # the default ld.so.conf also contains /usr/contrib/lib and
18580 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18581 # libtool to hard-code these into programs
18584 cygwin* | mingw* | pw32*)
18585 version_type=windows
18590 case $GCC,$host_os in
18591 yes,cygwin* | yes,mingw* | yes,pw32*)
18592 library_names_spec='$libname.dll.a'
18593 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18594 postinstall_cmds='base_file=`basename \${file}`~
18595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18596 dldir=$destdir/`dirname \$dlpath`~
18597 test -d \$dldir || mkdir -p \$dldir~
18598 $install_prog $dir/$dlname \$dldir/$dlname~
18599 chmod a+x \$dldir/$dlname'
18600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18601 dlpath=$dir/\$dldll~
18603 shlibpath_overrides_runpath=yes
18607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18612 # MinGW DLLs use traditional 'lib' prefix
18613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18615 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18616 # It is most probably a Windows format PATH printed by
18617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18618 # path with ; separators, and with drive letters. We can handle the
18619 # drive letters (cygwin fileutils understands them), so leave them,
18620 # especially as we might pass files found there to a mingw objdump,
18621 # which wouldn't understand a cygwinified path. Ahh.
18622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18628 # pw32 DLLs use 'pw' prefix rather than 'lib'
18629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18638 dynamic_linker='Win32 ld.exe'
18639 # FIXME: first we should search . and the directory the executable is in
18643 darwin* | rhapsody*)
18644 dynamic_linker="$host_os dyld"
18645 version_type=darwin
18648 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18649 soname_spec='${libname}${release}${major}$shared_ext'
18650 shlibpath_overrides_runpath=yes
18651 shlibpath_var=DYLD_LIBRARY_PATH
18652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18653 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18654 if test "$GCC" = yes; then
18655 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"`
18657 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18667 soname_spec='${libname}${release}${shared_ext}$major'
18668 shlibpath_var=LD_LIBRARY_PATH
18675 freebsd* | dragonfly*)
18676 # DragonFly does not have aout. When/if they implement a new
18677 # versioning mechanism, adjust this.
18678 if test -x /usr/bin/objformat; then
18679 objformat=`/usr/bin/objformat`
18682 freebsd[123]*) objformat=aout ;;
18683 *) objformat=elf ;;
18686 version_type=freebsd-$objformat
18687 case $version_type in
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18698 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes
18703 freebsd3.[01]* | freebsdelf3.[01]*)
18704 shlibpath_overrides_runpath=yes
18705 hardcode_into_libs=yes
18707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18709 shlibpath_overrides_runpath=no
18710 hardcode_into_libs=yes
18712 freebsd*) # from 4.6 on
18713 shlibpath_overrides_runpath=yes
18714 hardcode_into_libs=yes
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 shlibpath_var=LD_LIBRARY_PATH
18726 hardcode_into_libs=yes
18729 hpux9* | hpux10* | hpux11*)
18730 # Give a soname corresponding to the major version so that dld.sl refuses to
18731 # link against other versions.
18738 hardcode_into_libs=yes
18739 dynamic_linker="$host_os dld.so"
18740 shlibpath_var=LD_LIBRARY_PATH
18741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743 soname_spec='${libname}${release}${shared_ext}$major'
18744 if test "X$HPUX_IA64_MODE" = X32; then
18745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18753 hardcode_into_libs=yes
18754 dynamic_linker="$host_os dld.sl"
18755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18758 soname_spec='${libname}${release}${shared_ext}$major'
18759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18764 dynamic_linker="$host_os dld.sl"
18765 shlibpath_var=SHLIB_PATH
18766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18772 postinstall_cmds='chmod 555 $lib'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18780 soname_spec='${libname}${release}${shared_ext}$major'
18781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18782 shlibpath_var=LD_LIBRARY_PATH
18783 shlibpath_overrides_runpath=no
18784 hardcode_into_libs=yes
18787 irix5* | irix6* | nonstopux*)
18789 nonstopux*) version_type=nonstopux ;;
18791 if test "$lt_cv_prog_gnu_ld" = yes; then
18799 soname_spec='${libname}${release}${shared_ext}$major'
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18802 irix5* | nonstopux*)
18803 libsuff= shlibsuff=
18806 case $LD in # libtool.m4 will add one of these switches to LD
18807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18808 libsuff= shlibsuff= libmagic=32-bit;;
18809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18810 libsuff=32 shlibsuff=N32 libmagic=N32;;
18811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18813 *) libsuff= shlibsuff= libmagic=never-match;;
18817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18818 shlibpath_overrides_runpath=no
18819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18821 hardcode_into_libs=yes
18824 # No shared lib support for Linux oldld, aout, or coff.
18825 linux*oldld* | linux*aout* | linux*coff*)
18829 # This must be Linux ELF.
18830 linux* | k*bsd*-gnu)
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 soname_spec='${libname}${release}${shared_ext}$major'
18836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18837 shlibpath_var=LD_LIBRARY_PATH
18838 shlibpath_overrides_runpath=no
18839 # This implies no fast_install, which is unacceptable.
18840 # Some rework will be needed to allow for fast_install
18841 # before this can be enabled.
18842 hardcode_into_libs=yes
18844 # Append ld.so.conf contents to the search path
18845 if test -f /etc/ld.so.conf; then
18846 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18850 # We used to test for /lib/ld.so.1 and disable shared libraries on
18851 # powerpc, because MkLinux only supported shared libraries with the
18852 # GNU dynamic linker. Since this was broken with cross compilers,
18853 # most powerpc-linux boxes support dynamic linking these days and
18854 # people can always --disable-shared, the test was removed, and we
18855 # assume the GNU/Linux dynamic linker is in use.
18856 dynamic_linker='GNU/Linux ld.so'
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18864 soname_spec='${libname}${release}${shared_ext}$major'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 shlibpath_overrides_runpath=no
18867 hardcode_into_libs=yes
18868 dynamic_linker='NetBSD ld.elf_so'
18875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18878 dynamic_linker='NetBSD (a.out) ld.so'
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18881 soname_spec='${libname}${release}${shared_ext}$major'
18882 dynamic_linker='NetBSD ld.elf_so'
18884 shlibpath_var=LD_LIBRARY_PATH
18885 shlibpath_overrides_runpath=yes
18886 hardcode_into_libs=yes
18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 shlibpath_overrides_runpath=yes
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18903 shlibpath_overrides_runpath=yes
18908 sys_lib_dlsearch_path_spec="/usr/lib"
18910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18913 *) need_version=no ;;
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18920 openbsd2.[89] | openbsd2.[89].*)
18921 shlibpath_overrides_runpath=no
18924 shlibpath_overrides_runpath=yes
18928 shlibpath_overrides_runpath=yes
18933 libname_spec='$name'
18936 library_names_spec='$libname${shared_ext} $libname.a'
18937 dynamic_linker='OS/2 ld.exe'
18938 shlibpath_var=LIBPATH
18941 osf3* | osf4* | osf5*)
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947 shlibpath_var=LD_LIBRARY_PATH
18948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 shlibpath_overrides_runpath=yes
18960 hardcode_into_libs=yes
18961 # ldd complains unless libraries are executable
18962 postinstall_cmds='chmod +x $lib'
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 shlibpath_overrides_runpath=yes
18971 if test "$with_gnu_ld" = yes; then
18979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18980 soname_spec='${libname}${release}${shared_ext}$major'
18981 shlibpath_var=LD_LIBRARY_PATH
18982 case $host_vendor in
18984 shlibpath_overrides_runpath=no
18986 export_dynamic_flag_spec='${wl}-Blargedynsym'
18987 runpath_var=LD_RUN_PATH
18995 shlibpath_overrides_runpath=no
18996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19002 if test -d /usr/nec ;then
19004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19005 soname_spec='$libname${shared_ext}.$major'
19006 shlibpath_var=LD_LIBRARY_PATH
19010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19011 version_type=freebsd-elf
19014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19015 soname_spec='${libname}${release}${shared_ext}$major'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 hardcode_into_libs=yes
19018 if test "$with_gnu_ld" = yes; then
19019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19020 shlibpath_overrides_runpath=no
19022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19023 shlibpath_overrides_runpath=yes
19026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19030 sys_lib_dlsearch_path_spec='/usr/lib'
19035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19036 soname_spec='${libname}${release}${shared_ext}$major'
19037 shlibpath_var=LD_LIBRARY_PATH
19044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19045 echo "${ECHO_T}$dynamic_linker" >&6; }
19046 test "$dynamic_linker" = no && can_build_shared=no
19048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049 if test "$GCC" = yes; then
19050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19053 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19055 hardcode_action_GCJ=
19056 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057 test -n "$runpath_var_GCJ" || \
19058 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19060 # We can hardcode non-existant directories.
19061 if test "$hardcode_direct_GCJ" != no &&
19062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063 # have to relink, otherwise we might link with an installed library
19064 # when we should be linking with a yet-to-be-installed one
19065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066 test "$hardcode_minus_L_GCJ" != no; then
19067 # Linking always hardcodes the temporary library directory.
19068 hardcode_action_GCJ=relink
19070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071 hardcode_action_GCJ=immediate
19074 # We cannot hardcode anything, or else we can only hardcode existing
19076 hardcode_action_GCJ=unsupported
19078 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19081 if test "$hardcode_action_GCJ" = relink; then
19082 # Fast installation is not supported
19083 enable_fast_install=no
19084 elif test "$shlibpath_overrides_runpath" = yes ||
19085 test "$enable_shared" = no; then
19086 # Fast installation is not necessary
19087 enable_fast_install=needless
19091 # The else clause should only fire when bootstrapping the
19092 # libtool distribution, otherwise you forgot to ship ltmain.sh
19093 # with your package, and you will get complaints that there are
19094 # no rules to generate ltmain.sh.
19095 if test -f "$ltmain"; then
19096 # See if we are running on zsh, and set the options which allow our commands through
19097 # without removal of \ escapes.
19098 if test -n "${ZSH_VERSION+set}" ; then
19099 setopt NO_GLOB_SUBST
19101 # Now quote all the things that may contain metacharacters while being
19102 # careful not to overquote the AC_SUBSTed values. We take copies of the
19103 # variables and quote the copies for generation of the libtool script.
19104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108 deplibs_check_method reload_flag reload_cmds need_locks \
19109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110 lt_cv_sys_global_symbol_to_c_name_address \
19111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112 old_postinstall_cmds old_postuninstall_cmds \
19116 lt_prog_compiler_wl_GCJ \
19117 lt_prog_compiler_pic_GCJ \
19118 lt_prog_compiler_static_GCJ \
19119 lt_prog_compiler_no_builtin_flag_GCJ \
19120 export_dynamic_flag_spec_GCJ \
19121 thread_safe_flag_spec_GCJ \
19122 whole_archive_flag_spec_GCJ \
19123 enable_shared_with_static_runtimes_GCJ \
19124 old_archive_cmds_GCJ \
19125 old_archive_from_new_cmds_GCJ \
19126 predep_objects_GCJ \
19127 postdep_objects_GCJ \
19130 compiler_lib_search_path_GCJ \
19132 archive_expsym_cmds_GCJ \
19133 postinstall_cmds_GCJ \
19134 postuninstall_cmds_GCJ \
19135 old_archive_from_expsyms_cmds_GCJ \
19136 allow_undefined_flag_GCJ \
19137 no_undefined_flag_GCJ \
19138 export_symbols_cmds_GCJ \
19139 hardcode_libdir_flag_spec_GCJ \
19140 hardcode_libdir_flag_spec_ld_GCJ \
19141 hardcode_libdir_separator_GCJ \
19142 hardcode_automatic_GCJ \
19144 module_expsym_cmds_GCJ \
19145 lt_cv_prog_compiler_c_o_GCJ \
19146 exclude_expsyms_GCJ \
19147 include_expsyms_GCJ; do
19150 old_archive_cmds_GCJ | \
19151 old_archive_from_new_cmds_GCJ | \
19152 archive_cmds_GCJ | \
19153 archive_expsym_cmds_GCJ | \
19154 module_cmds_GCJ | \
19155 module_expsym_cmds_GCJ | \
19156 old_archive_from_expsyms_cmds_GCJ | \
19157 export_symbols_cmds_GCJ | \
19158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19159 postinstall_cmds | postuninstall_cmds | \
19160 old_postinstall_cmds | old_postuninstall_cmds | \
19161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19162 # Double-quote double-evaled strings.
19163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19172 *'\$0 --fallback-echo"')
19173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19179 cat <<__EOF__ >> "$cfgfile"
19180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19184 # Shell to use when invoking shell scripts.
19187 # Whether or not to build shared libraries.
19188 build_libtool_libs=$enable_shared
19190 # Whether or not to build static libraries.
19191 build_old_libs=$enable_static
19193 # Whether or not to add -lc for building shared libraries.
19194 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19196 # Whether or not to disallow shared libs when runtime libs are static
19197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19199 # Whether or not to optimize for fast installation.
19200 fast_install=$enable_fast_install
19203 host_alias=$host_alias
19207 # The build system.
19208 build_alias=$build_alias
19212 # An echo program that does not interpret backslashes.
19217 AR_FLAGS=$lt_AR_FLAGS
19222 # LTCC compiler flags.
19223 LTCFLAGS=$lt_LTCFLAGS
19225 # A language-specific compiler.
19226 CC=$lt_compiler_GCJ
19228 # Is the compiler the GNU C compiler?
19234 # The linker used to build libraries.
19237 # Whether we need hard or soft links.
19240 # A BSD-compatible nm program.
19243 # A symbol stripping program
19246 # Used to examine libraries when file_magic_cmd begins "file"
19247 MAGIC_CMD=$MAGIC_CMD
19249 # Used on cygwin: DLL creation program.
19252 # Used on cygwin: object dumper.
19255 # Used on cygwin: assembler.
19258 # The name of the directory that contains temporary libtool files.
19261 # How to create reloadable object files.
19262 reload_flag=$lt_reload_flag
19263 reload_cmds=$lt_reload_cmds
19265 # How to pass a linker flag through the compiler.
19266 wl=$lt_lt_prog_compiler_wl_GCJ
19268 # Object file suffix (normally "o").
19269 objext="$ac_objext"
19271 # Old archive suffix (normally "a").
19274 # Shared library suffix (normally ".so").
19275 shrext_cmds='$shrext_cmds'
19277 # Executable file suffix (normally "").
19280 # Additional compiler flags for building library objects.
19281 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19284 # What is the maximum length of a command?
19285 max_cmd_len=$lt_cv_sys_max_cmd_len
19287 # Does compiler simultaneously support -c and -o options?
19288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19290 # Must we lock files when doing compilation?
19291 need_locks=$lt_need_locks
19293 # Do we need the lib prefix for modules?
19294 need_lib_prefix=$need_lib_prefix
19296 # Do we need a version for libraries?
19297 need_version=$need_version
19299 # Whether dlopen is supported.
19300 dlopen_support=$enable_dlopen
19302 # Whether dlopen of programs is supported.
19303 dlopen_self=$enable_dlopen_self
19305 # Whether dlopen of statically linked programs is supported.
19306 dlopen_self_static=$enable_dlopen_self_static
19308 # Compiler flag to prevent dynamic linking.
19309 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19311 # Compiler flag to turn off builtin functions.
19312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19314 # Compiler flag to allow reflexive dlopens.
19315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19317 # Compiler flag to generate shared objects directly from archives.
19318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19320 # Compiler flag to generate thread-safe objects.
19321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19323 # Library versioning type.
19324 version_type=$version_type
19326 # Format of library name prefix.
19327 libname_spec=$lt_libname_spec
19329 # List of archive names. First name is the real one, the rest are links.
19330 # The last name is the one that the linker finds with -lNAME.
19331 library_names_spec=$lt_library_names_spec
19333 # The coded name of the library, if different from the real name.
19334 soname_spec=$lt_soname_spec
19336 # Commands used to build and install an old-style archive.
19338 old_archive_cmds=$lt_old_archive_cmds_GCJ
19339 old_postinstall_cmds=$lt_old_postinstall_cmds
19340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19342 # Create an old-style archive from a shared archive.
19343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19345 # Create a temporary old-style archive to link instead of a shared archive.
19346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19348 # Commands used to build and install a shared archive.
19349 archive_cmds=$lt_archive_cmds_GCJ
19350 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19351 postinstall_cmds=$lt_postinstall_cmds
19352 postuninstall_cmds=$lt_postuninstall_cmds
19354 # Commands used to build a loadable module (assumed same as above if empty)
19355 module_cmds=$lt_module_cmds_GCJ
19356 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19358 # Commands to strip libraries.
19359 old_striplib=$lt_old_striplib
19360 striplib=$lt_striplib
19362 # Dependencies to place before the objects being linked to create a
19364 predep_objects=$lt_predep_objects_GCJ
19366 # Dependencies to place after the objects being linked to create a
19368 postdep_objects=$lt_postdep_objects_GCJ
19370 # Dependencies to place before the objects being linked to create a
19372 predeps=$lt_predeps_GCJ
19374 # Dependencies to place after the objects being linked to create a
19376 postdeps=$lt_postdeps_GCJ
19378 # The library search path used internally by the compiler when linking
19379 # a shared library.
19380 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19382 # Method to check whether dependent libraries are shared objects.
19383 deplibs_check_method=$lt_deplibs_check_method
19385 # Command to use when deplibs_check_method == file_magic.
19386 file_magic_cmd=$lt_file_magic_cmd
19388 # Flag that allows shared libraries with undefined symbols to be built.
19389 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19391 # Flag that forces no undefined symbols.
19392 no_undefined_flag=$lt_no_undefined_flag_GCJ
19394 # Commands used to finish a libtool library installation in a directory.
19395 finish_cmds=$lt_finish_cmds
19397 # Same as above, but a single script fragment to be evaled but not shown.
19398 finish_eval=$lt_finish_eval
19400 # Take the output of nm and produce a listing of raw symbols and C names.
19401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19403 # Transform the output of nm in a proper C declaration
19404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19406 # Transform the output of nm in a C name address pair
19407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19409 # This is the shared library runtime path variable.
19410 runpath_var=$runpath_var
19412 # This is the shared library path variable.
19413 shlibpath_var=$shlibpath_var
19415 # Is shlibpath searched before the hard-coded library search path?
19416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19418 # How to hardcode a shared library path into an executable.
19419 hardcode_action=$hardcode_action_GCJ
19421 # Whether we should hardcode library paths into libraries.
19422 hardcode_into_libs=$hardcode_into_libs
19424 # Flag to hardcode \$libdir into a binary during linking.
19425 # This must work even if \$libdir does not exist.
19426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19428 # If ld is used when linking, flag to hardcode \$libdir into
19429 # a binary during linking. This must work even if \$libdir does
19431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19433 # Whether we need a single -rpath flag with a separated argument.
19434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19437 # resulting binary.
19438 hardcode_direct=$hardcode_direct_GCJ
19440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19441 # resulting binary.
19442 hardcode_minus_L=$hardcode_minus_L_GCJ
19444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19445 # the resulting binary.
19446 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19448 # Set to yes if building a shared library automatically hardcodes DIR into the library
19449 # and all subsequent libraries and executables linked against it.
19450 hardcode_automatic=$hardcode_automatic_GCJ
19452 # Variables whose values should be saved in libtool wrapper scripts and
19453 # restored at relink time.
19454 variables_saved_for_relink="$variables_saved_for_relink"
19456 # Whether libtool must link a program against all its dependency libraries.
19457 link_all_deplibs=$link_all_deplibs_GCJ
19459 # Compile-time system search path for libraries
19460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19462 # Run-time system search path for libraries
19463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19465 # Fix the shell variable \$srcfile for the compiler.
19466 fix_srcfile_path="$fix_srcfile_path_GCJ"
19468 # Set to yes if exported symbols are required.
19469 always_export_symbols=$always_export_symbols_GCJ
19471 # The commands to list exported symbols.
19472 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19474 # The commands to extract the exported symbol list from a shared archive.
19475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19477 # Symbols that should not be listed in the preloaded symbols.
19478 exclude_expsyms=$lt_exclude_expsyms_GCJ
19480 # Symbols that must always be exported.
19481 include_expsyms=$lt_include_expsyms_GCJ
19483 # ### END LIBTOOL TAG CONFIG: $tagname
19489 # If there is no Makefile yet, we rely on a make rule to execute
19490 # `config.status --recheck' to rerun these tests and create the
19491 # libtool script then.
19492 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19493 if test -f "$ltmain_in"; then
19494 test -f Makefile && make "$ltmain"
19500 ac_cpp='$CPP $CPPFLAGS'
19501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19515 # Source file extension for RC test sources.
19518 # Object file extension for compiled RC test sources.
19522 # Code to be used in simple compile tests
19523 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19525 # Code to be used in simple link tests
19526 lt_simple_link_test_code="$lt_simple_compile_test_code"
19528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19530 # If no C compiler was specified, use CC.
19533 # If no C compiler flags were specified, use CFLAGS.
19534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19536 # Allow CC to be a program name with arguments.
19540 # save warnings/boilerplate of simple test code
19541 ac_outfile=conftest.$ac_objext
19542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19544 _lt_compiler_boilerplate=`cat conftest.err`
19547 ac_outfile=conftest.$ac_objext
19548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550 _lt_linker_boilerplate=`cat conftest.err`
19554 # Allow CC to be a program name with arguments.
19559 for cc_temp in $compiler""; do
19561 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19562 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19567 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19569 lt_cv_prog_compiler_c_o_RC=yes
19571 # The else clause should only fire when bootstrapping the
19572 # libtool distribution, otherwise you forgot to ship ltmain.sh
19573 # with your package, and you will get complaints that there are
19574 # no rules to generate ltmain.sh.
19575 if test -f "$ltmain"; then
19576 # See if we are running on zsh, and set the options which allow our commands through
19577 # without removal of \ escapes.
19578 if test -n "${ZSH_VERSION+set}" ; then
19579 setopt NO_GLOB_SUBST
19581 # Now quote all the things that may contain metacharacters while being
19582 # careful not to overquote the AC_SUBSTed values. We take copies of the
19583 # variables and quote the copies for generation of the libtool script.
19584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19588 deplibs_check_method reload_flag reload_cmds need_locks \
19589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19590 lt_cv_sys_global_symbol_to_c_name_address \
19591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19592 old_postinstall_cmds old_postuninstall_cmds \
19596 lt_prog_compiler_wl_RC \
19597 lt_prog_compiler_pic_RC \
19598 lt_prog_compiler_static_RC \
19599 lt_prog_compiler_no_builtin_flag_RC \
19600 export_dynamic_flag_spec_RC \
19601 thread_safe_flag_spec_RC \
19602 whole_archive_flag_spec_RC \
19603 enable_shared_with_static_runtimes_RC \
19604 old_archive_cmds_RC \
19605 old_archive_from_new_cmds_RC \
19606 predep_objects_RC \
19607 postdep_objects_RC \
19610 compiler_lib_search_path_RC \
19612 archive_expsym_cmds_RC \
19613 postinstall_cmds_RC \
19614 postuninstall_cmds_RC \
19615 old_archive_from_expsyms_cmds_RC \
19616 allow_undefined_flag_RC \
19617 no_undefined_flag_RC \
19618 export_symbols_cmds_RC \
19619 hardcode_libdir_flag_spec_RC \
19620 hardcode_libdir_flag_spec_ld_RC \
19621 hardcode_libdir_separator_RC \
19622 hardcode_automatic_RC \
19624 module_expsym_cmds_RC \
19625 lt_cv_prog_compiler_c_o_RC \
19626 exclude_expsyms_RC \
19627 include_expsyms_RC; do
19630 old_archive_cmds_RC | \
19631 old_archive_from_new_cmds_RC | \
19632 archive_cmds_RC | \
19633 archive_expsym_cmds_RC | \
19635 module_expsym_cmds_RC | \
19636 old_archive_from_expsyms_cmds_RC | \
19637 export_symbols_cmds_RC | \
19638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19639 postinstall_cmds | postuninstall_cmds | \
19640 old_postinstall_cmds | old_postuninstall_cmds | \
19641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19642 # Double-quote double-evaled strings.
19643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19652 *'\$0 --fallback-echo"')
19653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19659 cat <<__EOF__ >> "$cfgfile"
19660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19664 # Shell to use when invoking shell scripts.
19667 # Whether or not to build shared libraries.
19668 build_libtool_libs=$enable_shared
19670 # Whether or not to build static libraries.
19671 build_old_libs=$enable_static
19673 # Whether or not to add -lc for building shared libraries.
19674 build_libtool_need_lc=$archive_cmds_need_lc_RC
19676 # Whether or not to disallow shared libs when runtime libs are static
19677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19679 # Whether or not to optimize for fast installation.
19680 fast_install=$enable_fast_install
19683 host_alias=$host_alias
19687 # The build system.
19688 build_alias=$build_alias
19692 # An echo program that does not interpret backslashes.
19697 AR_FLAGS=$lt_AR_FLAGS
19702 # LTCC compiler flags.
19703 LTCFLAGS=$lt_LTCFLAGS
19705 # A language-specific compiler.
19708 # Is the compiler the GNU C compiler?
19714 # The linker used to build libraries.
19717 # Whether we need hard or soft links.
19720 # A BSD-compatible nm program.
19723 # A symbol stripping program
19726 # Used to examine libraries when file_magic_cmd begins "file"
19727 MAGIC_CMD=$MAGIC_CMD
19729 # Used on cygwin: DLL creation program.
19732 # Used on cygwin: object dumper.
19735 # Used on cygwin: assembler.
19738 # The name of the directory that contains temporary libtool files.
19741 # How to create reloadable object files.
19742 reload_flag=$lt_reload_flag
19743 reload_cmds=$lt_reload_cmds
19745 # How to pass a linker flag through the compiler.
19746 wl=$lt_lt_prog_compiler_wl_RC
19748 # Object file suffix (normally "o").
19749 objext="$ac_objext"
19751 # Old archive suffix (normally "a").
19754 # Shared library suffix (normally ".so").
19755 shrext_cmds='$shrext_cmds'
19757 # Executable file suffix (normally "").
19760 # Additional compiler flags for building library objects.
19761 pic_flag=$lt_lt_prog_compiler_pic_RC
19764 # What is the maximum length of a command?
19765 max_cmd_len=$lt_cv_sys_max_cmd_len
19767 # Does compiler simultaneously support -c and -o options?
19768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19770 # Must we lock files when doing compilation?
19771 need_locks=$lt_need_locks
19773 # Do we need the lib prefix for modules?
19774 need_lib_prefix=$need_lib_prefix
19776 # Do we need a version for libraries?
19777 need_version=$need_version
19779 # Whether dlopen is supported.
19780 dlopen_support=$enable_dlopen
19782 # Whether dlopen of programs is supported.
19783 dlopen_self=$enable_dlopen_self
19785 # Whether dlopen of statically linked programs is supported.
19786 dlopen_self_static=$enable_dlopen_self_static
19788 # Compiler flag to prevent dynamic linking.
19789 link_static_flag=$lt_lt_prog_compiler_static_RC
19791 # Compiler flag to turn off builtin functions.
19792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19794 # Compiler flag to allow reflexive dlopens.
19795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19797 # Compiler flag to generate shared objects directly from archives.
19798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19800 # Compiler flag to generate thread-safe objects.
19801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19803 # Library versioning type.
19804 version_type=$version_type
19806 # Format of library name prefix.
19807 libname_spec=$lt_libname_spec
19809 # List of archive names. First name is the real one, the rest are links.
19810 # The last name is the one that the linker finds with -lNAME.
19811 library_names_spec=$lt_library_names_spec
19813 # The coded name of the library, if different from the real name.
19814 soname_spec=$lt_soname_spec
19816 # Commands used to build and install an old-style archive.
19818 old_archive_cmds=$lt_old_archive_cmds_RC
19819 old_postinstall_cmds=$lt_old_postinstall_cmds
19820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19822 # Create an old-style archive from a shared archive.
19823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19825 # Create a temporary old-style archive to link instead of a shared archive.
19826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19828 # Commands used to build and install a shared archive.
19829 archive_cmds=$lt_archive_cmds_RC
19830 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19831 postinstall_cmds=$lt_postinstall_cmds
19832 postuninstall_cmds=$lt_postuninstall_cmds
19834 # Commands used to build a loadable module (assumed same as above if empty)
19835 module_cmds=$lt_module_cmds_RC
19836 module_expsym_cmds=$lt_module_expsym_cmds_RC
19838 # Commands to strip libraries.
19839 old_striplib=$lt_old_striplib
19840 striplib=$lt_striplib
19842 # Dependencies to place before the objects being linked to create a
19844 predep_objects=$lt_predep_objects_RC
19846 # Dependencies to place after the objects being linked to create a
19848 postdep_objects=$lt_postdep_objects_RC
19850 # Dependencies to place before the objects being linked to create a
19852 predeps=$lt_predeps_RC
19854 # Dependencies to place after the objects being linked to create a
19856 postdeps=$lt_postdeps_RC
19858 # The library search path used internally by the compiler when linking
19859 # a shared library.
19860 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19862 # Method to check whether dependent libraries are shared objects.
19863 deplibs_check_method=$lt_deplibs_check_method
19865 # Command to use when deplibs_check_method == file_magic.
19866 file_magic_cmd=$lt_file_magic_cmd
19868 # Flag that allows shared libraries with undefined symbols to be built.
19869 allow_undefined_flag=$lt_allow_undefined_flag_RC
19871 # Flag that forces no undefined symbols.
19872 no_undefined_flag=$lt_no_undefined_flag_RC
19874 # Commands used to finish a libtool library installation in a directory.
19875 finish_cmds=$lt_finish_cmds
19877 # Same as above, but a single script fragment to be evaled but not shown.
19878 finish_eval=$lt_finish_eval
19880 # Take the output of nm and produce a listing of raw symbols and C names.
19881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19883 # Transform the output of nm in a proper C declaration
19884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19886 # Transform the output of nm in a C name address pair
19887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19889 # This is the shared library runtime path variable.
19890 runpath_var=$runpath_var
19892 # This is the shared library path variable.
19893 shlibpath_var=$shlibpath_var
19895 # Is shlibpath searched before the hard-coded library search path?
19896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19898 # How to hardcode a shared library path into an executable.
19899 hardcode_action=$hardcode_action_RC
19901 # Whether we should hardcode library paths into libraries.
19902 hardcode_into_libs=$hardcode_into_libs
19904 # Flag to hardcode \$libdir into a binary during linking.
19905 # This must work even if \$libdir does not exist.
19906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19908 # If ld is used when linking, flag to hardcode \$libdir into
19909 # a binary during linking. This must work even if \$libdir does
19911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19913 # Whether we need a single -rpath flag with a separated argument.
19914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19917 # resulting binary.
19918 hardcode_direct=$hardcode_direct_RC
19920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19921 # resulting binary.
19922 hardcode_minus_L=$hardcode_minus_L_RC
19924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19925 # the resulting binary.
19926 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19928 # Set to yes if building a shared library automatically hardcodes DIR into the library
19929 # and all subsequent libraries and executables linked against it.
19930 hardcode_automatic=$hardcode_automatic_RC
19932 # Variables whose values should be saved in libtool wrapper scripts and
19933 # restored at relink time.
19934 variables_saved_for_relink="$variables_saved_for_relink"
19936 # Whether libtool must link a program against all its dependency libraries.
19937 link_all_deplibs=$link_all_deplibs_RC
19939 # Compile-time system search path for libraries
19940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19942 # Run-time system search path for libraries
19943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19945 # Fix the shell variable \$srcfile for the compiler.
19946 fix_srcfile_path="$fix_srcfile_path_RC"
19948 # Set to yes if exported symbols are required.
19949 always_export_symbols=$always_export_symbols_RC
19951 # The commands to list exported symbols.
19952 export_symbols_cmds=$lt_export_symbols_cmds_RC
19954 # The commands to extract the exported symbol list from a shared archive.
19955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19957 # Symbols that should not be listed in the preloaded symbols.
19958 exclude_expsyms=$lt_exclude_expsyms_RC
19960 # Symbols that must always be exported.
19961 include_expsyms=$lt_include_expsyms_RC
19963 # ### END LIBTOOL TAG CONFIG: $tagname
19969 # If there is no Makefile yet, we rely on a make rule to execute
19970 # `config.status --recheck' to rerun these tests and create the
19971 # libtool script then.
19972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19973 if test -f "$ltmain_in"; then
19974 test -f Makefile && make "$ltmain"
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19991 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19992 { (exit 1); exit 1; }; }
19996 # Append the new tag name to the list of available tags.
19997 if test -n "$tagname" ; then
19998 available_tags="$available_tags $tagname"
20004 # Now substitute the updated list of available tags.
20005 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20006 mv "${ofile}T" "$ofile"
20010 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20011 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20012 { (exit 1); exit 1; }; }
20018 # This can be used to rebuild libtool when needed
20019 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20021 # Always use our own libtool.
20022 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20024 # Prevent multiple expansion
20047 ac_cpp='$CPP $CPPFLAGS'
20048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053 # Checks for libraries.
20055 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20056 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20057 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 ac_check_lib_save_LIBS=$LIBS
20061 LIBS="-lapr-1 $LIBS"
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest$ac_exeext &&
20095 $as_test_x conftest$ac_exeext; then
20096 ac_cv_lib_apr_1_main=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_lib_apr_1_main=no
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20109 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20110 if test $ac_cv_lib_apr_1_main = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define HAVE_LIBAPR_1 1
20115 LIBS="-lapr-1 $LIBS"
20121 # Check whether --with-apache-header was given.
20122 if test "${with_apache_header+set}" = set; then
20123 withval=$with_apache_header;
20126 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
20128 if test "x$with_apache_header" = "xyes"; then
20129 { { echo "$as_me:$LINENO: error:
20130 Please specify the --with-apache-header option. And, please specify the place of the header file.
20133 echo "$as_me: error:
20134 Please specify the --with-apache-header option. And, please specify the place of the header file.
20137 { (exit 1); exit 1; }; }
20141 # Check whether --with-apxs was given.
20142 if test "${with_apxs+set}" = set; then
20143 withval=$with_apxs;
20146 if test "x$with_apxs" = "x" ; then
20149 if test "x$with_apxs" = "xyes" ; then
20150 { { echo "$as_me:$LINENO: error:
20151 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20153 echo "$as_me: error:
20154 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20156 { (exit 1); exit 1; }; }
20160 # Check whether --with-apr-config was given.
20161 if test "${with_apr_config+set}" = set; then
20162 withval=$with_apr_config;
20165 if test "x$with_apr_config" = "xyes" ; then
20166 { { echo "$as_me:$LINENO: error:
20167 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20169 echo "$as_me: error:
20170 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20172 { (exit 1); exit 1; }; }
20176 # Check whether --with-apu-config was given.
20177 if test "${with_apu_config+set}" = set; then
20178 withval=$with_apu_config;
20181 if test "x$with_apu_config" = "xyes" ; then
20182 { { echo "$as_me:$LINENO: error:
20183 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20185 echo "$as_me: error:
20186 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20188 { (exit 1); exit 1; }; }
20192 # Check whether --enable-img-conv-f was given.
20193 if test "${enable_img_conv_f+set}" = set; then
20194 enableval=$enable_img_conv_f;
20197 if test "x$enable_img_conv_f" = "xyes"; then
20200 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20203 # Check whether --enable-dump-log was given.
20204 if test "${enable_dump_log+set}" = set; then
20205 enableval=$enable_dump_log;
20208 if test "x$enable_dump_log" = "xyes"; then
20209 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20211 if test "x$enable_dump_log" != "x" ; then
20212 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20217 if test "x$with_apxs" = "x" ; then
20218 # Extract the first word of "apxs2", so it can be a program name with args.
20219 set dummy apxs2; ac_word=$2
20220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20222 if test "${ac_cv_path_APXS2+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20232 for as_dir in $as_dummy
20235 test -z "$as_dir" && as_dir=.
20236 for ac_exec_ext in '' $ac_executable_extensions; do
20237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20238 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20246 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20250 APXS2=$ac_cv_path_APXS2
20251 if test -n "$APXS2"; then
20252 { echo "$as_me:$LINENO: result: $APXS2" >&5
20253 echo "${ECHO_T}$APXS2" >&6; }
20255 { echo "$as_me:$LINENO: result: no" >&5
20256 echo "${ECHO_T}no" >&6; }
20260 if test "x$APXS2" = "xno"; then
20261 # Extract the first word of "apxs", so it can be a program name with args.
20262 set dummy apxs; ac_word=$2
20263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20265 if test "${ac_cv_path_APXS+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20275 for as_dir in $as_dummy
20278 test -z "$as_dir" && as_dir=.
20279 for ac_exec_ext in '' $ac_executable_extensions; do
20280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20281 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20289 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20293 APXS=$ac_cv_path_APXS
20294 if test -n "$APXS"; then
20295 { echo "$as_me:$LINENO: result: $APXS" >&5
20296 echo "${ECHO_T}$APXS" >&6; }
20298 { echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6; }
20303 if test "x$APXS" = "xno" ; then
20304 { { echo "$as_me:$LINENO: error: apxs not found." >&5
20305 echo "$as_me: error: apxs not found." >&2;}
20306 { (exit 1); exit 1; }; }
20312 if test "x$with_apxs" != "x" ; then
20316 # Extract the first word of "libtool", so it can be a program name with args.
20317 set dummy libtool; ac_word=$2
20318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20320 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20329 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20330 for as_dir in $as_dummy
20333 test -z "$as_dir" && as_dir=.
20334 for ac_exec_ext in '' $ac_executable_extensions; do
20335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20336 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20344 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20348 LIBTOOL=$ac_cv_path_LIBTOOL
20349 if test -n "$LIBTOOL"; then
20350 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20351 echo "${ECHO_T}$LIBTOOL" >&6; }
20353 { echo "$as_me:$LINENO: result: no" >&5
20354 echo "${ECHO_T}no" >&6; }
20358 if test "x$LIBTOOL" = "xno"; then
20359 { { echo "$as_me:$LINENO: error: libtool not found." >&5
20360 echo "$as_me: error: libtool not found." >&2;}
20361 { (exit 1); exit 1; }; }
20365 # Extract the first word of "Wand-config", so it can be a program name with args.
20366 set dummy Wand-config; ac_word=$2
20367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20369 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 case $WAND_CONFIG in
20374 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20379 for as_dir in $as_dummy
20382 test -z "$as_dir" && as_dir=.
20383 for ac_exec_ext in '' $ac_executable_extensions; do
20384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20385 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20393 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20397 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20398 if test -n "$WAND_CONFIG"; then
20399 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20400 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20402 { echo "$as_me:$LINENO: result: no" >&5
20403 echo "${ECHO_T}no" >&6; }
20407 if test "x$WAND_CONFIG" = "xno" ; then
20408 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20409 echo "$as_me: error: wand-config not found." >&2;}
20410 { (exit 1); exit 1; }; }
20414 if test "x$with_apr_config" = "x" ; then
20415 # Extract the first word of "apr-config", so it can be a program name with args.
20416 set dummy apr-config; ac_word=$2
20417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20419 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 case $APR_CONFIG in
20424 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20428 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20429 for as_dir in $as_dummy
20432 test -z "$as_dir" && as_dir=.
20433 for ac_exec_ext in '' $ac_executable_extensions; do
20434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20435 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20443 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20447 APR_CONFIG=$ac_cv_path_APR_CONFIG
20448 if test -n "$APR_CONFIG"; then
20449 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20450 echo "${ECHO_T}$APR_CONFIG" >&6; }
20452 { echo "$as_me:$LINENO: result: no" >&5
20453 echo "${ECHO_T}no" >&6; }
20457 if test "x$APR_CONFIG" = "xno" ; then
20458 # Extract the first word of "apr-1-config", so it can be a program name with args.
20459 set dummy apr-1-config; ac_word=$2
20460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20462 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 case $APR_1_CONFIG in
20467 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20472 for as_dir in $as_dummy
20475 test -z "$as_dir" && as_dir=.
20476 for ac_exec_ext in '' $ac_executable_extensions; do
20477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20478 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20486 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20490 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20491 if test -n "$APR_1_CONFIG"; then
20492 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20493 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20495 { echo "$as_me:$LINENO: result: no" >&5
20496 echo "${ECHO_T}no" >&6; }
20500 if test "x$APR_1_CONFIG" = "xno" ; then
20501 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20502 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20503 { (exit 1); exit 1; }; }
20505 APR_CONFIG="$APR_1_CONFIG"
20509 if test "x$with_apr_config" != "x" ; then
20510 APR_CONFIG=$with_apr_config
20513 if test "x$with_apu_config" = "x" ; then
20514 # Extract the first word of "apu-config", so it can be a program name with args.
20515 set dummy apu-config; ac_word=$2
20516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20518 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 case $APU_CONFIG in
20523 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20528 for as_dir in $as_dummy
20531 test -z "$as_dir" && as_dir=.
20532 for ac_exec_ext in '' $ac_executable_extensions; do
20533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20542 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20546 APU_CONFIG=$ac_cv_path_APU_CONFIG
20547 if test -n "$APU_CONFIG"; then
20548 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20549 echo "${ECHO_T}$APU_CONFIG" >&6; }
20551 { echo "$as_me:$LINENO: result: no" >&5
20552 echo "${ECHO_T}no" >&6; }
20556 if test "x$APU_CONFIG" = "xno" ; then
20557 # Extract the first word of "apu-1-config", so it can be a program name with args.
20558 set dummy apu-1-config; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 case $APU_1_CONFIG in
20566 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20571 for as_dir in $as_dummy
20574 test -z "$as_dir" && as_dir=.
20575 for ac_exec_ext in '' $ac_executable_extensions; do
20576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20577 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20585 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20589 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20590 if test -n "$APU_1_CONFIG"; then
20591 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20592 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20594 { echo "$as_me:$LINENO: result: no" >&5
20595 echo "${ECHO_T}no" >&6; }
20599 if test "x$APU_1_CONFIG" = "xno" ; then
20600 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20601 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20602 { (exit 1); exit 1; }; }
20604 APU_CONFIG="$APU_1_CONFIG"
20608 if test "x$with_apu_config" != "x" ; then
20609 APU_CONFIG=$with_apu_config
20612 if test "x$with_apache_header" = "x" ; then
20613 with_apache_header=`${APXS} -q includedir`
20619 CFLAGS="${CFLAGS} -I/usr/local/include "
20624 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20625 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20626 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20627 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20628 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20629 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20630 CFLAGS="${CFLAGS} -I${with_apache_header}"
20631 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` "
20632 CPPFLAGS="${CPPFLAGS} -I${with_apache_header}"
20634 # Checks for header files.
20635 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20636 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20637 if test "${ac_cv_header_stdc+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <stdlib.h>
20647 #include <stdarg.h>
20648 #include <string.h>
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_compile") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } && {
20673 test -z "$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20675 } && test -s conftest.$ac_objext; then
20676 ac_cv_header_stdc=yes
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_cv_header_stdc=no
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 if test $ac_cv_header_stdc = yes; then
20687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 #include <string.h>
20697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20698 $EGREP "memchr" >/dev/null 2>&1; then
20701 ac_cv_header_stdc=no
20707 if test $ac_cv_header_stdc = yes; then
20708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20709 cat >conftest.$ac_ext <<_ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20715 #include <stdlib.h>
20718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20719 $EGREP "free" >/dev/null 2>&1; then
20722 ac_cv_header_stdc=no
20728 if test $ac_cv_header_stdc = yes; then
20729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20730 if test "$cross_compiling" = yes; then
20733 cat >conftest.$ac_ext <<_ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20740 #include <stdlib.h>
20741 #if ((' ' & 0x0FF) == 0x020)
20742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20745 # define ISLOWER(c) \
20746 (('a' <= (c) && (c) <= 'i') \
20747 || ('j' <= (c) && (c) <= 'r') \
20748 || ('s' <= (c) && (c) <= 'z'))
20749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20757 for (i = 0; i < 256; i++)
20758 if (XOR (islower (i), ISLOWER (i))
20759 || toupper (i) != TOUPPER (i))
20764 rm -f conftest$ac_exeext
20765 if { (ac_try="$ac_link"
20766 case "(($ac_try" in
20767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768 *) ac_try_echo=$ac_try;;
20770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771 (eval "$ac_link") 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20786 echo "$as_me: program exited with status $ac_status" >&5
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ( exit $ac_status )
20791 ac_cv_header_stdc=no
20793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20799 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20800 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20801 if test $ac_cv_header_stdc = yes; then
20803 cat >>confdefs.h <<\_ACEOF
20804 #define STDC_HEADERS 1
20817 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 ac_res=`eval echo '${'$as_ac_Header'}'`
20827 { echo "$as_me:$LINENO: result: $ac_res" >&5
20828 echo "${ECHO_T}$ac_res" >&6; }
20830 # Is the header compilable?
20831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 #include <$ac_header>
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_compile") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest.$ac_objext; then
20859 ac_header_compiler=yes
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_header_compiler=no
20867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20869 echo "${ECHO_T}$ac_header_compiler" >&6; }
20871 # Is the header present?
20872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 #include <$ac_header>
20882 if { (ac_try="$ac_cpp conftest.$ac_ext"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20890 grep -v '^ *+' conftest.er1 >conftest.err
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } >/dev/null && {
20895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20898 ac_header_preproc=yes
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_header_preproc=no
20906 rm -f conftest.err conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20908 echo "${ECHO_T}$ac_header_preproc" >&6; }
20910 # So? What about this header?
20911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20917 ac_header_preproc=yes
20920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 eval "$as_ac_Header=\$ac_header_preproc"
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943 { echo "$as_me:$LINENO: result: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20956 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20959 for ac_header in apr_shm.h apr_global_mutex.h
20961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 ac_res=`eval echo '${'$as_ac_Header'}'`
20969 { echo "$as_me:$LINENO: result: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20972 # Is the header compilable?
20973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20982 #include <$ac_header>
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_header_compiler=yes
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_header_compiler=no
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21011 echo "${ECHO_T}$ac_header_compiler" >&6; }
21013 # Is the header present?
21014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <$ac_header>
21024 if { (ac_try="$ac_cpp conftest.$ac_ext"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1 >conftest.err
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } >/dev/null && {
21037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21040 ac_header_preproc=yes
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_header_preproc=no
21048 rm -f conftest.err conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21050 echo "${ECHO_T}$ac_header_preproc" >&6; }
21052 # So? What about this header?
21053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21059 ac_header_preproc=yes
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 eval "$as_ac_Header=\$ac_header_preproc"
21084 ac_res=`eval echo '${'$as_ac_Header'}'`
21085 { echo "$as_me:$LINENO: result: $ac_res" >&5
21086 echo "${ECHO_T}$ac_res" >&6; }
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21099 for ac_header in apr.h
21101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21112 # Is the header compilable?
21113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21115 cat >conftest.$ac_ext <<_ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 $ac_includes_default
21122 #include <$ac_header>
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest.$ac_objext; then
21141 ac_header_compiler=yes
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_header_compiler=no
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21151 echo "${ECHO_T}$ac_header_compiler" >&6; }
21153 # Is the header present?
21154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <$ac_header>
21164 if { (ac_try="$ac_cpp conftest.$ac_ext"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21172 grep -v '^ *+' conftest.er1 >conftest.err
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } >/dev/null && {
21177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21180 ac_header_preproc=yes
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_header_preproc=no
21188 rm -f conftest.err conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21190 echo "${ECHO_T}$ac_header_preproc" >&6; }
21192 # So? What about this header?
21193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21199 ac_header_preproc=yes
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 eval "$as_ac_Header=\$ac_header_preproc"
21224 ac_res=`eval echo '${'$as_ac_Header'}'`
21225 { echo "$as_me:$LINENO: result: $ac_res" >&5
21226 echo "${ECHO_T}$ac_res" >&6; }
21229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21239 for ac_header in ap_config.h
21241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 ac_res=`eval echo '${'$as_ac_Header'}'`
21249 { echo "$as_me:$LINENO: result: $ac_res" >&5
21250 echo "${ECHO_T}$ac_res" >&6; }
21252 # Is the header compilable?
21253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 $ac_includes_default
21262 #include <$ac_header>
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_compile") 2>conftest.er1
21273 grep -v '^ *+' conftest.er1 >conftest.err
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } && {
21278 test -z "$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21280 } && test -s conftest.$ac_objext; then
21281 ac_header_compiler=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_header_compiler=no
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21291 echo "${ECHO_T}$ac_header_compiler" >&6; }
21293 # Is the header present?
21294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21296 cat >conftest.$ac_ext <<_ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h. */
21302 #include <$ac_header>
21304 if { (ac_try="$ac_cpp conftest.$ac_ext"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21312 grep -v '^ *+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } >/dev/null && {
21317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21320 ac_header_preproc=yes
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_header_preproc=no
21328 rm -f conftest.err conftest.$ac_ext
21329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21330 echo "${ECHO_T}$ac_header_preproc" >&6; }
21332 # So? What about this header?
21333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21339 ac_header_preproc=yes
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 eval "$as_ac_Header=\$ac_header_preproc"
21364 ac_res=`eval echo '${'$as_ac_Header'}'`
21365 { echo "$as_me:$LINENO: result: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21370 cat >>confdefs.h <<_ACEOF
21371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379 for ac_header in ap_regex.h
21381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21392 # Is the header compilable?
21393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21395 cat >conftest.$ac_ext <<_ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 #include <$ac_header>
21404 rm -f conftest.$ac_objext
21405 if { (ac_try="$ac_compile"
21406 case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_compile") 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && {
21418 test -z "$ac_c_werror_flag" ||
21419 test ! -s conftest.err
21420 } && test -s conftest.$ac_objext; then
21421 ac_header_compiler=yes
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_header_compiler=no
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <$ac_header>
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21452 grep -v '^ *+' conftest.er1 >conftest.err
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null && {
21457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21460 ac_header_preproc=yes
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_header_preproc=no
21468 rm -f conftest.err conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6; }
21472 # So? What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21479 ac_header_preproc=yes
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 eval "$as_ac_Header=\$ac_header_preproc"
21504 ac_res=`eval echo '${'$as_ac_Header'}'`
21505 { echo "$as_me:$LINENO: result: $ac_res" >&5
21506 echo "${ECHO_T}$ac_res" >&6; }
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21515 use_pcre_flag="yes"
21520 if test "x$use_pcre_flag" = "xyes" ; then
21521 if test "x$with_pcre_config" = "x" ; then
21522 # Extract the first word of "pcre-config", so it can be a program name with args.
21523 set dummy pcre-config; ac_word=$2
21524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21526 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 case $PCRE_CONFIG in
21531 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21536 for as_dir in $as_dummy
21539 test -z "$as_dir" && as_dir=.
21540 for ac_exec_ext in '' $ac_executable_extensions; do
21541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21542 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21550 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21554 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21555 if test -n "$PCRE_CONFIG"; then
21556 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21557 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21559 { echo "$as_me:$LINENO: result: no" >&5
21560 echo "${ECHO_T}no" >&6; }
21564 if test "x$PCRE_CONFIG" = "xno" ; then
21565 # Extract the first word of "pcre-1-config", so it can be a program name with args.
21566 set dummy pcre-1-config; ac_word=$2
21567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21569 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 case $PCRE_1_CONFIG in
21574 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21578 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21579 for as_dir in $as_dummy
21582 test -z "$as_dir" && as_dir=.
21583 for ac_exec_ext in '' $ac_executable_extensions; do
21584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21585 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21593 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21597 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21598 if test -n "$PCRE_1_CONFIG"; then
21599 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21600 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21602 { echo "$as_me:$LINENO: result: no" >&5
21603 echo "${ECHO_T}no" >&6; }
21607 if test "x$PCRE_1_CONFIG" = "xno" ; then
21608 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21609 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21610 { (exit 1); exit 1; }; }
21612 PCRE_CONFIG="$PCRE_1_CONFIG"
21616 if test "x$with_pcre_config" != "x" ; then
21617 PCRE_CONFIG=$with_pcre_config
21619 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_AP_REGEX_H
21628 # Checks for typedefs, structures, and compiler characteristics.
21629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21631 if test "${ac_cv_c_const+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21644 /* FIXME: Include the comments suggested by Paul. */
21645 #ifndef __cplusplus
21646 /* Ultrix mips cc rejects this. */
21647 typedef int charset[2];
21649 /* SunOS 4.1.1 cc rejects this. */
21650 char const *const *pcpcc;
21652 /* NEC SVR4.0.2 mips cc rejects this. */
21653 struct point {int x, y;};
21654 static struct point const zero = {0,0};
21655 /* AIX XL C 1.02.0.0 rejects this.
21656 It does not let you subtract one const X* pointer from another in
21657 an arm of an if-expression whose if-part is not a constant
21659 const char *g = "string";
21660 pcpcc = &g + (g ? g-g : 0);
21661 /* HPUX 7.0 cc rejects these. */
21663 ppc = (char**) pcpcc;
21664 pcpcc = (char const *const *) ppc;
21665 { /* SCO 3.2v4 cc rejects this. */
21667 char const *s = 0 ? (char *) 0 : (char const *) 0;
21672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21673 int x[] = {25, 17};
21674 const int *foo = &x[0];
21677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21678 typedef const int *iptr;
21682 { /* AIX XL C 1.02.0.0 rejects this saying
21683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21684 struct s { int j; const int *ap[3]; };
21685 struct s *b; b->j = 5;
21687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21688 const int foo = 10;
21689 if (!foo) return 0;
21691 return !cs[0] && !zero.x;
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_compile") 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest.$ac_objext; then
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21727 if test $ac_cv_c_const = no; then
21729 cat >>confdefs.h <<\_ACEOF
21736 # Checks for library functions.
21738 for ac_header in stdlib.h
21740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21751 # Is the header compilable?
21752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 #include <$ac_header>
21763 rm -f conftest.$ac_objext
21764 if { (ac_try="$ac_compile"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_compile") 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && {
21777 test -z "$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 } && test -s conftest.$ac_objext; then
21780 ac_header_compiler=yes
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 ac_header_compiler=no
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21790 echo "${ECHO_T}$ac_header_compiler" >&6; }
21792 # Is the header present?
21793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21801 #include <$ac_header>
21803 if { (ac_try="$ac_cpp conftest.$ac_ext"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } >/dev/null && {
21816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21819 ac_header_preproc=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_header_preproc=no
21827 rm -f conftest.err conftest.$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21829 echo "${ECHO_T}$ac_header_preproc" >&6; }
21831 # So? What about this header?
21832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21838 ac_header_preproc=yes
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 eval "$as_ac_Header=\$ac_header_preproc"
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864 { echo "$as_me:$LINENO: result: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21869 cat >>confdefs.h <<_ACEOF
21870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21877 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21878 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 if test "$cross_compiling" = yes; then
21883 ac_cv_func_malloc_0_nonnull=no
21885 cat >conftest.$ac_ext <<_ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21892 # include <stdlib.h>
21900 return ! malloc (0);
21905 rm -f conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_link") 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21916 { (case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_try") 2>&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 ac_cv_func_malloc_0_nonnull=yes
21927 echo "$as_me: program exited with status $ac_status" >&5
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ( exit $ac_status )
21932 ac_cv_func_malloc_0_nonnull=no
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21940 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21941 if test $ac_cv_func_malloc_0_nonnull = yes; then
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE_MALLOC 1
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MALLOC 0
21952 case " $LIBOBJS " in
21953 *" malloc.$ac_objext "* ) ;;
21954 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21959 cat >>confdefs.h <<\_ACEOF
21960 #define malloc rpl_malloc
21975 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21991 #define $ac_func innocuous_$ac_func
21993 /* System header to define __stub macros and hopefully few prototypes,
21994 which can conflict with char $ac_func (); below.
21995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21996 <limits.h> exists even on freestanding compilers. */
21999 # include <limits.h>
22001 # include <assert.h>
22006 /* Override any GCC internal prototype to avoid an error.
22007 Use char because int might match the return type of a GCC
22008 builtin and then its argument prototype would still apply. */
22013 /* The GNU C library defines this for functions which it implements
22014 to always fail with ENOSYS. Some functions are actually named
22015 something starting with __ and the normal name is an alias. */
22016 #if defined __stub_$ac_func || defined __stub___$ac_func
22023 return $ac_func ();
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } && {
22042 test -z "$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 } && test -s conftest$ac_exeext &&
22045 $as_test_x conftest$ac_exeext; then
22046 eval "$as_ac_var=yes"
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22051 eval "$as_ac_var=no"
22054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22055 conftest$ac_exeext conftest.$ac_ext
22057 ac_res=`eval echo '${'$as_ac_var'}'`
22058 { echo "$as_me:$LINENO: result: $ac_res" >&5
22059 echo "${ECHO_T}$ac_res" >&6; }
22060 if test `eval echo '${'$as_ac_var'}'` = yes; then
22061 cat >>confdefs.h <<_ACEOF
22062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22077 ac_config_files="$ac_config_files Makefile src/Makefile"
22079 cat >confcache <<\_ACEOF
22080 # This file is a shell script that caches the results of configure
22081 # tests run on this system so they can be shared between configure
22082 # scripts and configure runs, see configure's option --config-cache.
22083 # It is not useful on other systems. If it contains results you don't
22084 # want to keep, you may remove or edit it.
22086 # config.status only pays attention to the cache file if you give it
22087 # the --recheck option to rerun configure.
22089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22091 # following values.
22095 # The following way of writing the cache mishandles newlines in values,
22096 # but we know of no workaround that is simple, portable, and efficient.
22097 # So, we kill variables containing newlines.
22098 # Ultrix sh set writes to stderr and can't be redirected directly,
22099 # and sets the high bit in the cache file unless we assign to the vars.
22101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22102 eval ac_val=\$$ac_var
22106 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22110 _ | IFS | as_nl) ;; #(
22111 *) $as_unset $ac_var ;;
22117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22118 *${as_nl}ac_space=\ *)
22119 # `set' does not quote correctly, so add quotes (double-quote
22120 # substitution turns \\\\ into \\, and sed turns \\ into \).
22123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22126 # `set' quotes correctly as required by POSIX, so do not add quotes.
22127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22141 if test -w "$cache_file"; then
22142 test "x$cache_file" != "x/dev/null" &&
22143 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22144 echo "$as_me: updating cache $cache_file" >&6;}
22145 cat confcache >$cache_file
22147 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22154 # Let make expand exec_prefix.
22155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22157 DEFS=-DHAVE_CONFIG_H
22161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22162 # 1. Remove the extension, and $U if already installed.
22163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22164 ac_i=`echo "$ac_i" | sed "$ac_script"`
22165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22166 # will be set to the directory where LIBOBJS objects are built.
22167 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22168 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22170 LIBOBJS=$ac_libobjs
22172 LTLIBOBJS=$ac_ltlibobjs
22175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22176 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&5
22178 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22179 Usually this means the macro was only invoked conditionally." >&2;}
22180 { (exit 1); exit 1; }; }
22182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22183 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&5
22185 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22186 Usually this means the macro was only invoked conditionally." >&2;}
22187 { (exit 1); exit 1; }; }
22189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22190 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22191 Usually this means the macro was only invoked conditionally." >&5
22192 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22193 Usually this means the macro was only invoked conditionally." >&2;}
22194 { (exit 1); exit 1; }; }
22196 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22197 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22198 Usually this means the macro was only invoked conditionally." >&5
22199 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22200 Usually this means the macro was only invoked conditionally." >&2;}
22201 { (exit 1); exit 1; }; }
22204 : ${CONFIG_STATUS=./config.status}
22205 ac_clean_files_save=$ac_clean_files
22206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22209 cat >$CONFIG_STATUS <<_ACEOF
22211 # Generated by $as_me.
22212 # Run this file to recreate the current configuration.
22213 # Compiler output produced by configure, useful for debugging
22214 # configure, is in config.log if it exists.
22217 ac_cs_recheck=false
22219 SHELL=\${CONFIG_SHELL-$SHELL}
22222 cat >>$CONFIG_STATUS <<\_ACEOF
22223 ## --------------------- ##
22224 ## M4sh Initialization. ##
22225 ## --------------------- ##
22227 # Be more Bourne compatible
22228 DUALCASE=1; export DUALCASE # for MKS sh
22229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22233 # is contrary to our usage. Disable this feature.
22234 alias -g '${1+"$@"}'='"$@"'
22235 setopt NO_GLOB_SUBST
22237 case `(set -o) 2>/dev/null` in
22238 *posix*) set -o posix ;;
22247 # Avoid depending upon Character Ranges.
22248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22251 as_cr_digits='0123456789'
22252 as_cr_alnum=$as_cr_Letters$as_cr_digits
22254 # The user is always right.
22255 if test "${PATH_SEPARATOR+set}" != set; then
22256 echo "#! /bin/sh" >conf$$.sh
22257 echo "exit 0" >>conf$$.sh
22259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22267 # Support unset when possible.
22268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22276 # We need space, tab and new line, in precisely that order. Quoting is
22277 # there to prevent editors from complaining about space-tab.
22278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22279 # splitting by setting IFS to empty value.)
22284 # Find who we are. Look in the path if we contain no directory separator.
22286 *[\\/]* ) as_myself=$0 ;;
22287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22291 test -z "$as_dir" && as_dir=.
22292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22298 # We did not find ourselves, most probably we were run as `sh COMMAND'
22299 # in which case we are not to be found in the path.
22300 if test "x$as_myself" = x; then
22303 if test ! -f "$as_myself"; then
22304 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22305 { (exit 1); exit 1; }
22308 # Work around bugs in pre-3.0 UWIN ksh.
22309 for as_var in ENV MAIL MAILPATH
22310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22320 LC_TELEPHONE LC_TIME
22322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22323 eval $as_var=C; export $as_var
22325 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22329 # Required to use basename.
22330 if expr a : '\(a\)' >/dev/null 2>&1 &&
22331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22338 as_basename=basename
22344 # Name of the executable.
22345 as_me=`$as_basename -- "$0" ||
22346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22347 X"$0" : 'X\(//\)$' \| \
22348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22350 sed '/^.*\/\([^/][^/]*\)\/*$/{
22369 as_lineno_1=$LINENO
22370 as_lineno_2=$LINENO
22371 test "x$as_lineno_1" != "x$as_lineno_2" &&
22372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22374 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22375 # uniformly replaced by the line number. The first 'sed' inserts a
22376 # line-number line after each line using $LINENO; the second 'sed'
22377 # does the real work. The second script uses 'N' to pair each
22378 # line-number line with the line containing $LINENO, and appends
22379 # trailing '-' during substitution so that $LINENO is not a special
22380 # case at line end.
22381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22382 # scripts with optimization help from Paolo Bonzini. Blame Lee
22383 # E. McMahon (1931-1989) for sed's syntax. :-)
22395 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22398 ' >$as_me.lineno &&
22399 chmod +x "$as_me.lineno" ||
22400 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22401 { (exit 1); exit 1; }; }
22403 # Don't try to exec as it changes $[0], causing all sort of problems
22404 # (the dirname of $[0] is not the place where we might find the
22405 # original and so on. Autoconf is especially sensitive to this).
22406 . "./$as_me.lineno"
22407 # Exit status is that of the last command.
22412 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22418 ECHO_C= ECHO_N= ECHO_T=
22419 case `echo -n x` in
22421 case `echo 'x\c'` in
22422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22429 if expr a : '\(a\)' >/dev/null 2>&1 &&
22430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22436 rm -f conf$$ conf$$.exe conf$$.file
22437 if test -d conf$$.dir; then
22438 rm -f conf$$.dir/conf$$.file
22444 if ln -s conf$$.file conf$$ 2>/dev/null; then
22446 # ... but there are two gotchas:
22447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22449 # In both cases, we have to default to `cp -p'.
22450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22452 elif ln conf$$.file conf$$ 2>/dev/null; then
22457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22458 rmdir conf$$.dir 2>/dev/null
22460 if mkdir -p . 2>/dev/null; then
22463 test -d ./-p && rmdir ./-p
22467 if test -x / >/dev/null 2>&1; then
22468 as_test_x='test -x'
22470 if ls -dL / >/dev/null 2>&1; then
22477 if test -d "$1"; then
22483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22484 ???[sx]*):;;*)false;;esac;fi
22488 as_executable_p=$as_test_x
22490 # Sed expression to map a string onto a valid CPP name.
22491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22493 # Sed expression to map a string onto a valid variable name.
22494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22499 # Save the log message, to keep $[0] and so on meaningful, and to
22500 # report actual input values of CONFIG_FILES etc. instead of their
22501 # values after options handling.
22503 This file was extended by mod_chxj $as_me 1.0.0, which was
22504 generated by GNU Autoconf 2.61. Invocation command line was
22506 CONFIG_FILES = $CONFIG_FILES
22507 CONFIG_HEADERS = $CONFIG_HEADERS
22508 CONFIG_LINKS = $CONFIG_LINKS
22509 CONFIG_COMMANDS = $CONFIG_COMMANDS
22512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22517 cat >>$CONFIG_STATUS <<_ACEOF
22518 # Files that config.status was made for.
22519 config_files="$ac_config_files"
22520 config_headers="$ac_config_headers"
22521 config_commands="$ac_config_commands"
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22527 \`$as_me' instantiates files from templates according to the
22528 current configuration.
22530 Usage: $0 [OPTIONS] [FILE]...
22532 -h, --help print this help, then exit
22533 -V, --version print version number and configuration settings, then exit
22534 -q, --quiet do not print progress messages
22535 -d, --debug don't remove temporary files
22536 --recheck update $as_me by reconfiguring in the same conditions
22537 --file=FILE[:TEMPLATE]
22538 instantiate the configuration file FILE
22539 --header=FILE[:TEMPLATE]
22540 instantiate the configuration header FILE
22542 Configuration files:
22545 Configuration headers:
22548 Configuration commands:
22551 Report bugs to <bug-autoconf@gnu.org>."
22554 cat >>$CONFIG_STATUS <<_ACEOF
22556 mod_chxj config.status 1.0.0
22557 configured by $0, generated by GNU Autoconf 2.61,
22558 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22560 Copyright (C) 2006 Free Software Foundation, Inc.
22561 This config.status script is free software; the Free Software Foundation
22562 gives unlimited permission to copy, distribute and modify it."
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 # If no file are specified by the user, then we need to provide default
22572 # value. By we need to know if files were specified by the user.
22578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22590 # Handling of the options.
22591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22593 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22594 echo "$ac_cs_version"; exit ;;
22595 --debug | --debu | --deb | --de | --d | -d )
22597 --file | --fil | --fi | --f )
22599 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22600 ac_need_defaults=false;;
22601 --header | --heade | --head | --hea )
22603 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22604 ac_need_defaults=false;;
22606 # Conflict between --help and --header
22607 { echo "$as_me: error: ambiguous option: $1
22608 Try \`$0 --help' for more information." >&2
22609 { (exit 1); exit 1; }; };;
22610 --help | --hel | -h )
22611 echo "$ac_cs_usage"; exit ;;
22612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22616 # This is an error.
22617 -*) { echo "$as_me: error: unrecognized option: $1
22618 Try \`$0 --help' for more information." >&2
22619 { (exit 1); exit 1; }; } ;;
22621 *) ac_config_targets="$ac_config_targets $1"
22622 ac_need_defaults=false ;;
22628 ac_configure_extra_args=
22630 if $ac_cs_silent; then
22632 ac_configure_extra_args="$ac_configure_extra_args --silent"
22636 cat >>$CONFIG_STATUS <<_ACEOF
22637 if \$ac_cs_recheck; then
22638 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22639 CONFIG_SHELL=$SHELL
22640 export CONFIG_SHELL
22641 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22650 ## Running $as_me. ##
22656 cat >>$CONFIG_STATUS <<_ACEOF
22660 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22664 cat >>$CONFIG_STATUS <<\_ACEOF
22666 # Handling of arguments.
22667 for ac_config_target in $ac_config_targets
22669 case $ac_config_target in
22670 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22673 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22675 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22676 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22677 { (exit 1); exit 1; }; };;
22682 # If the user did not use the arguments to specify the items to instantiate,
22683 # then the envvar interface is used. Set only those that are not.
22684 # We use the long form for the default assignment because of an extremely
22685 # bizarre bug on SunOS 4.1.3.
22686 if $ac_need_defaults; then
22687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22689 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22692 # Have a temporary directory for convenience. Make it in the build tree
22693 # simply because there is no reason against having it here, and in addition,
22694 # creating and moving files from /tmp can sometimes cause problems.
22695 # Hook for its removal unless debugging.
22696 # Note that there is a small window in which the directory will not be cleaned:
22697 # after its creation but before its name has been assigned to `$tmp'.
22701 trap 'exit_status=$?
22702 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22704 trap '{ (exit 1); exit 1; }' 1 2 13 15
22706 # Create a (secure) tmp directory for tmp files.
22709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22710 test -n "$tmp" && test -d "$tmp"
22713 tmp=./conf$$-$RANDOM
22714 (umask 077 && mkdir "$tmp")
22717 echo "$me: cannot create a temporary directory in ." >&2
22718 { (exit 1); exit 1; }
22722 # Set up the sed scripts for CONFIG_FILES section.
22725 # No need to generate the scripts if there are no CONFIG_FILES.
22726 # This happens for instance when ./config.status config.h
22727 if test -n "$CONFIG_FILES"; then
22734 for ac_last_try in false false false false false :; do
22735 cat >conf$$subs.sed <<_ACEOF
22736 SHELL!$SHELL$ac_delim
22737 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22738 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22739 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22740 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22741 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22742 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22743 exec_prefix!$exec_prefix$ac_delim
22744 prefix!$prefix$ac_delim
22745 program_transform_name!$program_transform_name$ac_delim
22746 bindir!$bindir$ac_delim
22747 sbindir!$sbindir$ac_delim
22748 libexecdir!$libexecdir$ac_delim
22749 datarootdir!$datarootdir$ac_delim
22750 datadir!$datadir$ac_delim
22751 sysconfdir!$sysconfdir$ac_delim
22752 sharedstatedir!$sharedstatedir$ac_delim
22753 localstatedir!$localstatedir$ac_delim
22754 includedir!$includedir$ac_delim
22755 oldincludedir!$oldincludedir$ac_delim
22756 docdir!$docdir$ac_delim
22757 infodir!$infodir$ac_delim
22758 htmldir!$htmldir$ac_delim
22759 dvidir!$dvidir$ac_delim
22760 pdfdir!$pdfdir$ac_delim
22761 psdir!$psdir$ac_delim
22762 libdir!$libdir$ac_delim
22763 localedir!$localedir$ac_delim
22764 mandir!$mandir$ac_delim
22765 DEFS!$DEFS$ac_delim
22766 ECHO_C!$ECHO_C$ac_delim
22767 ECHO_N!$ECHO_N$ac_delim
22768 ECHO_T!$ECHO_T$ac_delim
22769 LIBS!$LIBS$ac_delim
22770 build_alias!$build_alias$ac_delim
22771 host_alias!$host_alias$ac_delim
22772 target_alias!$target_alias$ac_delim
22773 build!$build$ac_delim
22774 build_cpu!$build_cpu$ac_delim
22775 build_vendor!$build_vendor$ac_delim
22776 build_os!$build_os$ac_delim
22777 host!$host$ac_delim
22778 host_cpu!$host_cpu$ac_delim
22779 host_vendor!$host_vendor$ac_delim
22780 host_os!$host_os$ac_delim
22781 target!$target$ac_delim
22782 target_cpu!$target_cpu$ac_delim
22783 target_vendor!$target_vendor$ac_delim
22784 target_os!$target_os$ac_delim
22785 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22786 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22787 INSTALL_DATA!$INSTALL_DATA$ac_delim
22788 am__isrc!$am__isrc$ac_delim
22789 CYGPATH_W!$CYGPATH_W$ac_delim
22790 PACKAGE!$PACKAGE$ac_delim
22791 VERSION!$VERSION$ac_delim
22792 ACLOCAL!$ACLOCAL$ac_delim
22793 AUTOCONF!$AUTOCONF$ac_delim
22794 AUTOMAKE!$AUTOMAKE$ac_delim
22795 AUTOHEADER!$AUTOHEADER$ac_delim
22796 MAKEINFO!$MAKEINFO$ac_delim
22797 install_sh!$install_sh$ac_delim
22798 STRIP!$STRIP$ac_delim
22799 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22800 mkdir_p!$mkdir_p$ac_delim
22802 SET_MAKE!$SET_MAKE$ac_delim
22803 am__leading_dot!$am__leading_dot$ac_delim
22804 AMTAR!$AMTAR$ac_delim
22805 am__tar!$am__tar$ac_delim
22806 am__untar!$am__untar$ac_delim
22808 CFLAGS!$CFLAGS$ac_delim
22809 LDFLAGS!$LDFLAGS$ac_delim
22810 CPPFLAGS!$CPPFLAGS$ac_delim
22811 ac_ct_CC!$ac_ct_CC$ac_delim
22812 EXEEXT!$EXEEXT$ac_delim
22813 OBJEXT!$OBJEXT$ac_delim
22814 DEPDIR!$DEPDIR$ac_delim
22815 am__include!$am__include$ac_delim
22816 am__quote!$am__quote$ac_delim
22817 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22818 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22819 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22820 CCDEPMODE!$CCDEPMODE$ac_delim
22821 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22822 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22824 GREP!$GREP$ac_delim
22825 EGREP!$EGREP$ac_delim
22826 LN_S!$LN_S$ac_delim
22827 ECHO!$ECHO$ac_delim
22829 RANLIB!$RANLIB$ac_delim
22831 CXXFLAGS!$CXXFLAGS$ac_delim
22832 ac_ct_CXX!$ac_ct_CXX$ac_delim
22835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22837 elif $ac_last_try; then
22838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840 { (exit 1); exit 1; }; }
22842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849 ac_eof=`expr $ac_eof + 1`
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22861 s/'"$ac_delim"'$/,g/; t
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22872 for ac_last_try in false false false false false :; do
22873 cat >conf$$subs.sed <<_ACEOF
22874 CXXDEPMODE!$CXXDEPMODE$ac_delim
22875 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22876 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22877 CXXCPP!$CXXCPP$ac_delim
22879 FFLAGS!$FFLAGS$ac_delim
22880 ac_ct_F77!$ac_ct_F77$ac_delim
22881 LIBTOOL!$LIBTOOL$ac_delim
22882 APXS2!$APXS2$ac_delim
22883 APXS!$APXS$ac_delim
22884 WAND_CONFIG!$WAND_CONFIG$ac_delim
22885 APR_CONFIG!$APR_CONFIG$ac_delim
22886 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22887 APU_CONFIG!$APU_CONFIG$ac_delim
22888 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22889 with_apache_header!$with_apache_header$ac_delim
22890 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22891 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22892 LIBOBJS!$LIBOBJS$ac_delim
22893 QDEFS!$QDEFS$ac_delim
22894 DDEFS!$DDEFS$ac_delim
22895 LTLIBOBJS!$LTLIBOBJS$ac_delim
22898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
22900 elif $ac_last_try; then
22901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22903 { (exit 1); exit 1; }; }
22905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22910 if test -n "$ac_eof"; then
22911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22912 ac_eof=`expr $ac_eof + 1`
22915 cat >>$CONFIG_STATUS <<_ACEOF
22916 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22921 s/^/s,@/; s/!/@,|#_!!_#|/
22924 s/'"$ac_delim"'$/,g/; t
22926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22927 ' >>$CONFIG_STATUS <conf$$subs.sed
22928 rm -f conf$$subs.sed
22929 cat >>$CONFIG_STATUS <<_ACEOF
22936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22938 # trailing colons and then remove the whole line if VPATH becomes empty
22939 # (actually we leave an empty line to preserve line numbers).
22940 if test "x$srcdir" = x.; then
22941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22942 s/:*\$(srcdir):*/:/
22943 s/:*\${srcdir}:*/:/
22945 s/^\([^=]*=[ ]*\):*/\1/
22951 cat >>$CONFIG_STATUS <<\_ACEOF
22952 fi # test -n "$CONFIG_FILES"
22955 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22958 :[FHLC]) ac_mode=$ac_tag; continue;;
22960 case $ac_mode$ac_tag in
22962 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22963 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22964 { (exit 1); exit 1; }; };;
22965 :[FH]-) ac_tag=-:-;;
22966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22983 -) ac_f="$tmp/stdin";;
22984 *) # Look for the file first in the build tree, then in the source tree
22985 # (if the path is not absolute). The absolute path cannot be DOS-style,
22986 # because $ac_f cannot contain `:'.
22990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22992 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22993 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22994 { (exit 1); exit 1; }; };;
22996 ac_file_inputs="$ac_file_inputs $ac_f"
22999 # Let's still pretend it is `configure' which instantiates (i.e., don't
23000 # use $as_me), people would be surprised to read:
23001 # /* config.h. Generated by config.status. */
23002 configure_input="Generated from "`IFS=:
23003 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23004 if test x"$ac_file" != x-; then
23005 configure_input="$ac_file. $configure_input"
23006 { echo "$as_me:$LINENO: creating $ac_file" >&5
23007 echo "$as_me: creating $ac_file" >&6;}
23011 *:-:* | *:-) cat >"$tmp/stdin";;
23016 ac_dir=`$as_dirname -- "$ac_file" ||
23017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$ac_file" : 'X\(//\)[^/]' \| \
23019 X"$ac_file" : 'X\(//\)$' \| \
23020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23026 /^X\(\/\/\)[^/].*/{
23041 -*) as_dir=./$as_dir;;
23043 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23047 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23048 *) as_qdir=$as_dir;;
23050 as_dirs="'$as_qdir' $as_dirs"
23051 as_dir=`$as_dirname -- "$as_dir" ||
23052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053 X"$as_dir" : 'X\(//\)[^/]' \| \
23054 X"$as_dir" : 'X\(//\)$' \| \
23055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23061 /^X\(\/\/\)[^/].*/{
23074 test -d "$as_dir" && break
23076 test -z "$as_dirs" || eval "mkdir $as_dirs"
23077 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23078 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23079 { (exit 1); exit 1; }; }; }
23083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23086 # A ".." for each directory in $ac_dir_suffix.
23087 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23088 case $ac_top_builddir_sub in
23089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23093 ac_abs_top_builddir=$ac_pwd
23094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23095 # for backward compatibility:
23096 ac_top_builddir=$ac_top_build_prefix
23099 .) # We are building in place.
23101 ac_top_srcdir=$ac_top_builddir_sub
23102 ac_abs_top_srcdir=$ac_pwd ;;
23103 [\\/]* | ?:[\\/]* ) # Absolute name.
23104 ac_srcdir=$srcdir$ac_dir_suffix;
23105 ac_top_srcdir=$srcdir
23106 ac_abs_top_srcdir=$srcdir ;;
23107 *) # Relative name.
23108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23109 ac_top_srcdir=$ac_top_build_prefix$srcdir
23110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23125 ac_MKDIR_P=$MKDIR_P
23127 [\\/$]* | ?:[\\/]* ) ;;
23128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23132 cat >>$CONFIG_STATUS <<\_ACEOF
23133 # If the template does not know about datarootdir, expand it.
23134 # FIXME: This hack should be removed a few years after 2.60.
23135 ac_datarootdir_hack=; ac_datarootdir_seen=
23137 case `sed -n '/datarootdir/ {
23146 ' $ac_file_inputs` in
23147 *datarootdir*) ac_datarootdir_seen=yes;;
23148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23149 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23150 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23152 cat >>$CONFIG_STATUS <<_ACEOF
23153 ac_datarootdir_hack='
23154 s&@datadir@&$datadir&g
23155 s&@docdir@&$docdir&g
23156 s&@infodir@&$infodir&g
23157 s&@localedir@&$localedir&g
23158 s&@mandir@&$mandir&g
23159 s&\\\${datarootdir}&$datarootdir&g' ;;
23163 # Neutralize VPATH when `$srcdir' = `.'.
23164 # Shell code in configure.ac might set extrasub.
23165 # FIXME: do we really want to maintain this feature?
23166 cat >>$CONFIG_STATUS <<_ACEOF
23170 cat >>$CONFIG_STATUS <<\_ACEOF
23172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23173 s&@configure_input@&$configure_input&;t t
23174 s&@top_builddir@&$ac_top_builddir_sub&;t t
23175 s&@srcdir@&$ac_srcdir&;t t
23176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23177 s&@top_srcdir@&$ac_top_srcdir&;t t
23178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23179 s&@builddir@&$ac_builddir&;t t
23180 s&@abs_builddir@&$ac_abs_builddir&;t t
23181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23182 s&@INSTALL@&$ac_INSTALL&;t t
23183 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23184 $ac_datarootdir_hack
23185 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23187 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23188 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23190 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23191 which seems to be undefined. Please make sure it is defined." >&5
23192 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23193 which seems to be undefined. Please make sure it is defined." >&2;}
23197 -) cat "$tmp/out"; rm -f "$tmp/out";;
23198 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23207 # Transform confdefs.h into a sed script `conftest.defines', that
23208 # substitutes the proper values into config.h.in to produce config.h.
23209 rm -f conftest.defines conftest.tail
23210 # First, append a space to every undef/define line, to ease matching.
23211 echo 's/$/ /' >conftest.defines
23212 # Then, protect against being on the right side of a sed subst, or in
23213 # an unquoted here document, in config.status. If some macros were
23214 # called several times there might be several #defines for the same
23215 # symbol, which is useless. But do not sort them, since the last
23216 # AC_DEFINE must be honored.
23217 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23218 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23219 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23220 # PARAMS is the parameter list in the macro definition--in most cases, it's
23221 # just an empty string.
23222 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23223 ac_dB='\\)[ (].*,\\1define\\2'
23231 s/^[ ]*#[ ]*define[ ][ ]*//
23236 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23237 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23238 ' >>conftest.defines
23240 # Remove the space that was appended to ease matching.
23241 # Then replace #undef with comments. This is necessary, for
23242 # example, in the case of _POSIX_SOURCE, which is predefined and required
23243 # on some systems where configure will not decide to define it.
23244 # (The regexp can be short, since the line contains either #define or #undef.)
23246 s,^[ #]*u.*,/* & */,' >>conftest.defines
23248 # Break up conftest.defines:
23249 ac_max_sed_lines=50
23251 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23252 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23253 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23255 ac_in='$ac_file_inputs'
23256 ac_out='"$tmp/out1"'
23257 ac_nxt='"$tmp/out2"'
23261 # Write a here document:
23262 cat >>$CONFIG_STATUS <<_ACEOF
23263 # First, check the format of the line:
23264 cat >"\$tmp/defines.sed" <<\\CEOF
23265 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23266 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23270 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23272 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23273 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23274 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23275 grep . conftest.tail >/dev/null || break
23276 rm -f conftest.defines
23277 mv conftest.tail conftest.defines
23279 rm -f conftest.defines conftest.tail
23281 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23282 cat >>$CONFIG_STATUS <<\_ACEOF
23283 if test x"$ac_file" != x-; then
23284 echo "/* $configure_input */" >"$tmp/config.h"
23285 cat "$ac_result" >>"$tmp/config.h"
23286 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23287 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23288 echo "$as_me: $ac_file is unchanged" >&6;}
23291 mv "$tmp/config.h" $ac_file
23294 echo "/* $configure_input */"
23298 # Compute $ac_file's index in $config_headers.
23300 for _am_header in $config_headers :; do
23301 case $_am_header in
23302 $ac_file | $ac_file:* )
23305 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23308 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23309 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X$ac_file : 'X\(//\)[^/]' \| \
23311 X$ac_file : 'X\(//\)$' \| \
23312 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23318 /^X\(\/\/\)[^/].*/{
23330 s/.*/./; q'`/stamp-h$_am_stamp_count
23333 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23334 echo "$as_me: executing $ac_file commands" >&6;}
23339 case $ac_file$ac_mode in
23340 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23341 # Strip MF so we end up with the name of the file.
23342 mf=`echo "$mf" | sed -e 's/:.*$//'`
23343 # Check whether this is an Automake generated Makefile or not.
23344 # We used to match only the files named `Makefile.in', but
23345 # some people rename them; so instead we look at the file content.
23346 # Grep'ing the first line is not enough: some people post-process
23347 # each Makefile.in and add a new line on top of each file to say so.
23348 # Grep'ing the whole file is not good either: AIX grep has a line
23349 # limit of 2048, but all sed's we know have understand at least 4000.
23350 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23351 dirpart=`$as_dirname -- "$mf" ||
23352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23353 X"$mf" : 'X\(//\)[^/]' \| \
23354 X"$mf" : 'X\(//\)$' \| \
23355 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23361 /^X\(\/\/\)[^/].*/{
23377 # Extract the definition of DEPDIR, am__include, and am__quote
23378 # from the Makefile without running `make'.
23379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23380 test -z "$DEPDIR" && continue
23381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23382 test -z "am__include" && continue
23383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23384 # When using ansi2knr, U may be empty or an underscore; expand it
23385 U=`sed -n 's/^U = //p' < "$mf"`
23386 # Find all dependency output files, they are included files with
23387 # $(DEPDIR) in their names. We invoke sed twice because it is the
23388 # simplest approach to changing $(DEPDIR) to its actual value in the
23390 for file in `sed -n "
23391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23393 # Make sure the directory exists.
23394 test -f "$dirpart/$file" && continue
23395 fdir=`$as_dirname -- "$file" ||
23396 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23397 X"$file" : 'X\(//\)[^/]' \| \
23398 X"$file" : 'X\(//\)$' \| \
23399 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23405 /^X\(\/\/\)[^/].*/{
23418 { as_dir=$dirpart/$fdir
23420 -*) as_dir=./$as_dir;;
23422 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23426 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23427 *) as_qdir=$as_dir;;
23429 as_dirs="'$as_qdir' $as_dirs"
23430 as_dir=`$as_dirname -- "$as_dir" ||
23431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23432 X"$as_dir" : 'X\(//\)[^/]' \| \
23433 X"$as_dir" : 'X\(//\)$' \| \
23434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23440 /^X\(\/\/\)[^/].*/{
23453 test -d "$as_dir" && break
23455 test -z "$as_dirs" || eval "mkdir $as_dirs"
23456 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23457 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23458 { (exit 1); exit 1; }; }; }
23459 # echo "creating $dirpart/$file"
23460 echo '# dummy' > "$dirpart/$file"
23469 { (exit 0); exit 0; }
23471 chmod +x $CONFIG_STATUS
23472 ac_clean_files=$ac_clean_files_save
23475 # configure is writing to config.log, and then calls config.status.
23476 # config.status does its own redirection, appending to config.log.
23477 # Unfortunately, on DOS this fails, as config.log is still kept open
23478 # by configure, so config.status won't be able to write to it; its
23479 # output is simply discarded. So we exec the FD to /dev/null,
23480 # effectively closing config.log, so it can be properly (re)opened and
23481 # appended to by config.status. When coming back to configure, we
23482 # need to make the FD available again.
23483 if test "$no_create" != yes; then
23485 ac_config_status_args=
23486 test "$silent" = yes &&
23487 ac_config_status_args="$ac_config_status_args --quiet"
23489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23492 # would make configure fail if this is the last instruction.
23493 $ac_cs_success || { (exit 1); exit 1; }