2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.12.7-1.
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='0.12.7-1'
730 PACKAGE_STRING='mod_chxj 0.12.7-1'
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
891 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name=s,x,x,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034 eval enable_$ac_feature=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1198 -site=* | --site=* | --sit=*)
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=\$ac_optarg ;;
1233 -without-* | --without-*)
1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=no ;;
1243 # Obsolete; use --with-x.
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1291 # Be sure to have absolute directory names.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303 { (exit 1); exit 1; }; }
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used." >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 { echo "$as_me: error: Working directory cannot be determined" >&2
1334 { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 { echo "$as_me: error: pwd does not report name of working directory" >&2
1337 { (exit 1); exit 1; }; }
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$0" : 'X\(//\)[^/]' \| \
1347 X"$0" : 'X\(//\)$' \| \
1348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 { (exit 1); exit 1; }; }
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 { (exit 1); exit 1; }; }
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures mod_chxj 0.12.7-1 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of mod_chxj 0.12.7-1:";;
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1494 source by the automatic operation.
1495 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1496 --enable-memcached-static use static link.
1497 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1498 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1506 --with-tags[=TAGS] include additional configurations [automatic]
1507 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1508 --with-apxs=ARG Path of apxs program file.
1509 --with-apr-config=ARG Path of apr-config program file.
1510 --with-apu-config=ARG Path of apu-config program file.
1511 --with-pcre-config=ARG Path of pcre-config program file.
1512 --with-memcached-header Path of "memcached.h"
1513 --with-memcached-lib-dir Path of "libmemcached.so"
1514 --with-mysql-header=ARG Path of "mysql.h"
1515 --with-mysql-lib-dir=ARG Path of libmysqlclient
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 CXXCPP C++ preprocessor
1529 F77 Fortran 77 compiler command
1530 FFLAGS Fortran 77 compiler flags
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" || continue
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1595 mod_chxj configure 0.12.7-1
1596 generated by GNU Autoconf 2.61
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1609 It was created by mod_chxj $as_me 0.12.7-1, which was
1610 generated by GNU Autoconf 2.61. Invocation command line was
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1632 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1635 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1636 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1637 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 echo "PATH: $as_dir"
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_must_keep_next=false
1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678 | -silent | --silent | --silen | --sile | --sil)
1681 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687 if test $ac_must_keep_next = true; then
1688 ac_must_keep_next=false # Got value, back to normal.
1691 *=* | --config-cache | -C | -disable-* | --disable-* \
1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694 | -with-* | --with-* | -without-* | --without-* | --x)
1695 case "$ac_configure_args0 " in
1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 -* ) ac_must_keep_next=true ;;
1702 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log. We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716 # Save into config.log some information that might help in debugging.
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1726 # The following way of writing the cache mishandles newlines in values,
1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729 eval ac_val=\$$ac_var
1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 _ | IFS | as_nl) ;; #(
1738 *) $as_unset $ac_var ;;
1743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744 *${as_nl}ac_space=\ *)
1746 "s/'\''/'\''\\\\'\'''\''/g;
1747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1763 for ac_var in $ac_subst_vars
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1773 if test -n "$ac_subst_files"; then
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1780 for ac_var in $ac_subst_files
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1791 if test -s confdefs.h; then
1801 test "$ac_signal" != 0 &&
1802 echo "$as_me: caught signal $ac_signal"
1803 echo "$as_me: exit $exit_status"
1805 rm -f core *.core core.conftest.* &&
1806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 for ac_signal in 1 2 13 15; do
1810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1817 # Predefined preprocessor variables.
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1851 set x "$ac_default_prefix/share/config.site" \
1852 "$ac_default_prefix/etc/config.site"
1857 if test -r "$ac_site_file"; then
1858 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1905 echo "$as_me: former value: $ac_old_val" >&2;}
1906 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1907 echo "$as_me: current value: $ac_new_val" >&2;}
1908 ac_cache_corrupted=:
1911 # Pass precious variables to config.status.
1912 if test "$ac_new_set" = set; then
1914 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 *) ac_arg=$ac_var=$ac_new_val ;;
1917 case " $ac_configure_args " in
1918 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1919 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 if $ac_cache_corrupted; then
1924 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928 { (exit 1); exit 1; }; }
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966 if test -f "$ac_dir/install-sh"; then
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1970 elif test -f "$ac_dir/install.sh"; then
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1974 elif test -f "$ac_dir/shtool"; then
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016 { (exit 1); exit 1; }; }
2019 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2023 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 echo "$as_me: error: invalid value of canonical build" >&2;}
2025 { (exit 1); exit 1; }; };;
2028 ac_save_IFS=$IFS; IFS='-'
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2041 { echo "$as_me:$LINENO: checking host system type" >&5
2042 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 echo "${ECHO_T}$ac_cv_host" >&6; }
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 echo "$as_me: error: invalid value of canonical host" >&2;}
2062 { (exit 1); exit 1; }; };;
2065 ac_save_IFS=$IFS; IFS='-'
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2078 { echo "$as_me:$LINENO: checking target system type" >&5
2079 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test "x$target_alias" = x; then
2084 ac_cv_target=$ac_cv_host
2086 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 echo "${ECHO_T}$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 echo "$as_me: error: invalid value of canonical target" >&2;}
2099 { (exit 1); exit 1; }; };;
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118 test "$program_prefix$program_suffix$program_transform_name" = \
2120 program_prefix=${target_alias}-
2121 am__api_version='1.10'
2123 # Find a good install program. We prefer a C program (faster),
2124 # so one script is as good as another. But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182 if test "${ac_cv_path_install+set}" = set; then
2183 INSTALL=$ac_cv_path_install
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for INSTALL within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 INSTALL=$ac_install_sh
2192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2193 echo "${ECHO_T}$INSTALL" >&6; }
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2204 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2207 echo timestamp > conftest.file
2208 # Do `set' in a subshell so we don't clobber the current shell's
2209 # arguments. Must try -L first in case configure is actually a
2210 # symlink; some systems play weird games with the mod time of symlinks
2211 # (eg FreeBSD returns the mod time of the symlink's containing
2214 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2215 if test "$*" = "X"; then
2217 set X `ls -t $srcdir/configure conftest.file`
2220 if test "$*" != "X $srcdir/configure conftest.file" \
2221 && test "$*" != "X conftest.file $srcdir/configure"; then
2223 # If neither matched, then we have a broken ls. This can happen
2224 # if, for instance, CONFIG_SHELL is bash and it inherits a
2225 # broken ls alias from the environment. This has actually
2226 # happened. Such a system could not be considered "sane".
2227 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2228 alias in your environment" >&5
2229 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" >&2;}
2231 { (exit 1); exit 1; }; }
2234 test "$2" = conftest.file
2240 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2241 Check your system clock" >&5
2242 echo "$as_me: error: newly created file is older than distributed files!
2243 Check your system clock" >&2;}
2244 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2248 test "$program_prefix" != NONE &&
2249 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2250 # Use a double $ so make ignores it.
2251 test "$program_suffix" != NONE &&
2252 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2253 # Double any \ or $. echo might interpret backslashes.
2254 # By default was `s,x,x', remove it if useless.
2255 cat <<\_ACEOF >conftest.sed
2256 s/[\\$]/&&/g;s/;s,x,x,$//
2258 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2261 # expand $ac_aux_dir to an absolute path
2262 am_aux_dir=`cd $ac_aux_dir && pwd`
2264 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2270 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2276 if test -z "$MKDIR_P"; then
2277 if test "${ac_cv_path_mkdir+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2284 test -z "$as_dir" && as_dir=.
2285 for ac_prog in mkdir gmkdir; do
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2289 'mkdir (GNU coreutils) '* | \
2290 'mkdir (coreutils) '* | \
2291 'mkdir (fileutils) '4.1*)
2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2302 if test "${ac_cv_path_mkdir+set}" = set; then
2303 MKDIR_P="$ac_cv_path_mkdir -p"
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for MKDIR_P within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 test -d ./--version && rmdir ./--version
2310 MKDIR_P="$ac_install_sh -d"
2313 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2314 echo "${ECHO_T}$MKDIR_P" >&6; }
2318 [\\/$]* | ?:[\\/]*) ;;
2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2322 for ac_prog in gawk mawk nawk awk
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$AWK"; then
2332 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_AWK="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$AWK"; then
2353 { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2361 test -n "$AWK" && break
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.make <<\_ACEOF
2373 @echo '@@@%%%=$(MAKE)=@@@%%%'
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2378 eval ac_cv_prog_make_${ac_make}_set=yes;;
2380 eval ac_cv_prog_make_${ac_make}_set=no;;
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385 { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391 SET_MAKE="MAKE=${MAKE-make}"
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2401 rmdir .tst 2>/dev/null
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405 # is not polluted with repeated "-I."
2406 am__isrc=' -I$(srcdir)'
2407 # test to see if srcdir already configured
2408 if test -f $srcdir/config.status; then
2409 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411 { (exit 1); exit 1; }; }
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417 if (cygpath --version) >/dev/null 2>/dev/null; then
2418 CYGPATH_W='cygpath -w'
2425 # Define the identity of the package.
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2439 # Some tools Automake needs.
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { echo "$as_me:$LINENO: result: $STRIP" >&5
2493 echo "${ECHO_T}$STRIP" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$ac_cv_prog_STRIP"; then
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2539 if test "x$ac_ct_STRIP" = x; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2555 STRIP="$ac_cv_prog_STRIP"
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2561 # We need awk for the "check" target. The system "awk" is bad on
2563 # Always define AMTAR for backward compatibility.
2565 AMTAR=${AMTAR-"${am_missing_run}tar"}
2567 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2573 ac_config_headers="$ac_config_headers include/config.h"
2577 # Checks for programs.
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$ac_cv_prog_CC"; then
2624 # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_CC="gcc"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654 echo "${ECHO_T}$ac_ct_CC" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2660 if test "x$ac_ct_CC" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2679 if test -z "$CC"; then
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}cc; ac_word=$2
2683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 if test -n "$CC"; then
2710 { echo "$as_me:$LINENO: result: $CC" >&5
2711 echo "${ECHO_T}$CC" >&6; }
2713 { echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6; }
2720 if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740 ac_prog_rejected=yes
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test $ac_prog_rejected = yes; then
2752 # We found a bogon in the path, so make sure we never use it.
2753 set dummy $ac_cv_prog_CC
2755 if test $# != 0; then
2756 # We chose a different compiler from the bogus one.
2757 # However, it has the same basename, so the bogon will be chosen
2758 # first if we set CC to just the basename; use the full file name.
2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2766 if test -n "$CC"; then
2767 { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2776 if test -z "$CC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in cl.exe
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CC"; then
2809 { echo "$as_me:$LINENO: result: $CC" >&5
2810 echo "${ECHO_T}$CC" >&6; }
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2817 test -n "$CC" && break
2820 if test -z "$CC"; then
2822 for ac_prog in cl.exe
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 echo "${ECHO_T}$ac_ct_CC" >&6; }
2856 { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2861 test -n "$ac_ct_CC" && break
2864 if test "x$ac_ct_CC" = x; then
2867 case $cross_compiling:$ac_tool_warned in
2869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet. If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet. If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2884 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: no acceptable C compiler found in \$PATH
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO: checking for C compiler version" >&5
2892 ac_compiler=`set X $ac_compile; echo $2`
2893 { (ac_try="$ac_compiler --version >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler --version >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -v >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -V >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 ac_clean_files_save=$ac_clean_files
2940 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2941 # Try to create an executable without -o first, disregard a.out.
2942 # It will help us diagnose broken compilers, and finding out an intuition
2944 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2945 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2946 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948 # List of possible output files, starting from the most likely.
2949 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2950 # only as a last resort. b.out is created by i960 compilers.
2951 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2953 # The IRIX 6 linker writes into existing files which may not be
2954 # executable, retaining their permissions. Remove them first so a
2955 # subsequent execution test works.
2957 for ac_file in $ac_files
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2961 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2977 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2978 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2979 # so that the user can short-circuit this test for compilers unknown to
2981 for ac_file in $ac_files ''
2983 test -f "$ac_file" || continue
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2988 # We found the default executable, but exeext='' is most
2992 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2996 # We set ac_cv_exeext here because the later test for it is not
2997 # safe: cross compilers may not add the suffix if given an `-o'
2998 # argument, so we may need to know it at that point already.
2999 # Even if this section looks crufty: it has the advantage of
3006 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012 { echo "$as_me:$LINENO: result: $ac_file" >&5
3013 echo "${ECHO_T}$ac_file" >&6; }
3014 if test -z "$ac_file"; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C compiler cannot create executables
3021 See \`config.log' for more details." >&2;}
3022 { (exit 77); exit 77; }; }
3025 ac_exeext=$ac_cv_exeext
3027 # Check that the compiler produces executables we can run. If not, either
3028 # the compiler is broken, or we cross compile.
3029 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3030 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3031 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3032 # If not cross compiling, check that we can run a simple program.
3033 if test "$cross_compiling" != yes; then
3034 if { ac_try='./$ac_file'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3046 if test "$cross_compiling" = maybe; then
3049 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3050 If you meant to cross compile, use \`--host'.
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&2;}
3055 { (exit 1); exit 1; }; }
3059 { echo "$as_me:$LINENO: result: yes" >&5
3060 echo "${ECHO_T}yes" >&6; }
3062 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3063 ac_clean_files=$ac_clean_files_save
3064 # Check that the compiler produces executables we can run. If not, either
3065 # the compiler is broken, or we cross compile.
3066 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3067 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3068 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3069 echo "${ECHO_T}$cross_compiling" >&6; }
3071 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3072 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3073 if { (ac_try="$ac_link"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_link") 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; then
3083 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3084 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3085 # work properly (i.e., refer to `conftest.exe'), while it won't with
3087 for ac_file in conftest.exe conftest conftest.*; do
3088 test -f "$ac_file" || continue
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3091 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3097 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3104 rm -f conftest$ac_cv_exeext
3105 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3106 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3108 rm -f conftest.$ac_ext
3109 EXEEXT=$ac_cv_exeext
3111 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3112 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3113 if test "${ac_cv_objext+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.o conftest.obj
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 for ac_file in conftest.o conftest.obj conftest.*; do
3143 test -f "$ac_file" || continue;
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3164 echo "${ECHO_T}$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3167 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3221 GCC=`test $ac_compiler_gnu = yes && echo yes`
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3226 if test "${ac_cv_prog_cc_g+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 ac_save_c_werror_flag=$ac_c_werror_flag
3230 ac_c_werror_flag=yes
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && {
3300 test -z "$ac_c_werror_flag" ||
3301 test ! -s conftest.err
3302 } && test -s conftest.$ac_objext; then
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_c_werror_flag=$ac_save_c_werror_flag
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3361 if test "$ac_test_CFLAGS" = set; then
3362 CFLAGS=$ac_save_CFLAGS
3363 elif test $ac_cv_prog_cc_g = yes; then
3364 if test "$GCC" = yes; then
3370 if test "$GCC" = yes; then
3376 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3377 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_c89+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_cv_prog_cc_c89=no
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3407 s = g (p, va_arg (v,int));
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3413 function prototypes and stuff, but not '\xHH' hex character constants.
3414 These don't provoke an error unfortunately, instead are silently treated
3415 as 'x'. The following induces an error, until -std is added to get
3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3417 array size at least. It's necessary to write '\x00'==0 to get something
3418 that's true only with -std. */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422 inside strings and character constants. */
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3443 CC="$ac_save_CC $ac_arg"
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 ac_cv_prog_cc_c89=$ac_arg
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f core conftest.err conftest.$ac_objext
3470 test "x$ac_cv_prog_cc_c89" != "xno" && break
3472 rm -f conftest.$ac_ext
3477 case "x$ac_cv_prog_cc_c89" in
3479 { echo "$as_me:$LINENO: result: none needed" >&5
3480 echo "${ECHO_T}none needed" >&6; } ;;
3482 { echo "$as_me:$LINENO: result: unsupported" >&5
3483 echo "${ECHO_T}unsupported" >&6; } ;;
3485 CC="$CC $ac_cv_prog_cc_c89"
3486 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 DEPDIR="${am__leading_dot}deps"
3498 ac_config_commands="$ac_config_commands depfiles"
3501 am_make=${MAKE-make}
3502 cat > confinc << 'END'
3507 # If we don't find an include directive, just comment out the code.
3508 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3509 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3513 # First try GNU make style include.
3514 echo "include confinc" > confmf
3515 # We grep out `Entering directory' and `Leaving directory'
3516 # messages which can occur if `w' ends up in MAKEFLAGS.
3517 # In particular we don't look at `^make:' because GNU make might
3518 # be invoked under some other name (usually "gmake"), in which
3519 # case it prints its new name instead of `make'.
3520 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3525 # Now try BSD make style include.
3526 if test "$am__include" = "#"; then
3527 echo '.include "confinc"' > confmf
3528 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3529 am__include=.include
3536 { echo "$as_me:$LINENO: result: $_am_result" >&5
3537 echo "${ECHO_T}$_am_result" >&6; }
3538 rm -f confinc confmf
3540 # Check whether --enable-dependency-tracking was given.
3541 if test "${enable_dependency_tracking+set}" = set; then
3542 enableval=$enable_dependency_tracking;
3545 if test "x$enable_dependency_tracking" != xno; then
3546 am_depcomp="$ac_aux_dir/depcomp"
3549 if test "x$enable_dependency_tracking" != xno; then
3559 depcc="$CC" am_compiler_list=
3561 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3562 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3563 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3567 # We make a subdir and do the tests there. Otherwise we can end up
3568 # making bogus files that we don't know about and never remove. For
3569 # instance it was reported that on HP-UX the gcc test will end up
3570 # making a dummy file named `D' -- because `-MD' means `put the output
3573 # Copy depcomp to subdir because otherwise we won't find it if we're
3574 # using a relative directory.
3575 cp "$am_depcomp" conftest.dir
3577 # We will build objects and dependencies in a subdirectory because
3578 # it helps to detect inapplicable dependency modes. For instance
3579 # both Tru64's cc and ICC support -MD to output dependencies as a
3580 # side effect of compilation, but ICC will put the dependencies in
3581 # the current directory while Tru64 will put them in the object
3585 am_cv_CC_dependencies_compiler_type=none
3586 if test "$am_compiler_list" = ""; then
3587 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3589 for depmode in $am_compiler_list; do
3590 # Setup a source with many dependencies, because some compilers
3591 # like to wrap large dependency lists on column 80 (with \), and
3592 # we should not choose a depcomp mode which is confused by this.
3594 # We need to recreate these files for each test, as the compiler may
3595 # overwrite some of them when testing with obscure command lines.
3596 # This happens at least with the AIX C compiler.
3598 for i in 1 2 3 4 5 6; do
3599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3601 # Solaris 8's {/usr,}/bin/sh.
3602 touch sub/conftst$i.h
3604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608 # after this tag, mechanisms are not by side-effect, so they'll
3609 # only be used when explicitly requested
3610 if test "x$enable_dependency_tracking" = xyes; then
3618 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3619 # mode. It turns out that the SunPro C++ compiler does not properly
3620 # handle `-M -o', and we need to detect this.
3621 if depmode=$depmode \
3622 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3624 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3625 >/dev/null 2>conftest.err &&
3626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3628 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3630 # icc doesn't choke on unknown options, it will just issue warnings
3631 # or remarks (even with -Werror). So we grep stderr for any message
3632 # that says an option was ignored or not supported.
3633 # When given -MP, icc 7.0 and 7.1 complain thusly:
3634 # icc: Command line warning: ignoring option '-M'; no argument required
3635 # The diagnosis changed in icc 8.0:
3636 # icc: Command line remark: option '-MP' not supported
3637 if (grep 'ignoring option' conftest.err ||
3638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3639 am_cv_CC_dependencies_compiler_type=$depmode
3648 am_cv_CC_dependencies_compiler_type=none
3652 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3653 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657 test "x$enable_dependency_tracking" != xno \
3658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3660 am__fastdepCC_FALSE='#'
3662 am__fastdepCC_TRUE='#'
3663 am__fastdepCC_FALSE=
3667 # Find a good install program. We prefer a C program (faster),
3668 # so one script is as good as another. But avoid the broken or
3669 # incompatible versions:
3670 # SysV /etc/install, /usr/sbin/install
3671 # SunOS /usr/etc/install
3672 # IRIX /sbin/install
3674 # AmigaOS /C/install, which installs bootblocks on floppy discs
3675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3678 # OS/2's system install, which has a completely different semantic
3679 # ./install, which can be erroneously created by make from ./install.sh.
3680 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3681 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3682 if test -z "$INSTALL"; then
3683 if test "${ac_cv_path_install+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 # Account for people who put trailing slashes in PATH elements.
3693 ./ | .// | /cC/* | \
3694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3695 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3698 # OSF1 and SCO ODT 3.0 have their own names for install.
3699 # Don't use installbsd from OSF since it installs stuff as root
3701 for ac_prog in ginstall scoinst install; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3704 if test $ac_prog = install &&
3705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3706 # AIX install. It has an incompatible calling convention.
3708 elif test $ac_prog = install &&
3709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710 # program-specific install script used by HP pwplus--don't use.
3713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3726 if test "${ac_cv_path_install+set}" = set; then
3727 INSTALL=$ac_cv_path_install
3729 # As a last resort, use the slow shell script. Don't cache a
3730 # value for INSTALL within a source directory, because that will
3731 # break other packages using the cache if that directory is
3732 # removed, or if the value is a relative name.
3733 INSTALL=$ac_install_sh
3736 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3737 echo "${ECHO_T}$INSTALL" >&6; }
3739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3740 # It thinks the first close brace ends the variable substitution.
3741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3743 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3749 # Check whether --enable-shared was given.
3750 if test "${enable_shared+set}" = set; then
3751 enableval=$enable_shared; p=${PACKAGE-default}
3753 yes) enable_shared=yes ;;
3754 no) enable_shared=no ;;
3757 # Look at the argument we got. We use all the common list separators.
3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759 for pkg in $enableval; do
3761 if test "X$pkg" = "X$p"; then
3773 # Check whether --enable-static was given.
3774 if test "${enable_static+set}" = set; then
3775 enableval=$enable_static; p=${PACKAGE-default}
3777 yes) enable_static=yes ;;
3778 no) enable_static=no ;;
3781 # Look at the argument we got. We use all the common list separators.
3782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3783 for pkg in $enableval; do
3785 if test "X$pkg" = "X$p"; then
3797 # Check whether --enable-fast-install was given.
3798 if test "${enable_fast_install+set}" = set; then
3799 enableval=$enable_fast_install; p=${PACKAGE-default}
3801 yes) enable_fast_install=yes ;;
3802 no) enable_fast_install=no ;;
3804 enable_fast_install=no
3805 # Look at the argument we got. We use all the common list separators.
3806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3807 for pkg in $enableval; do
3809 if test "X$pkg" = "X$p"; then
3810 enable_fast_install=yes
3817 enable_fast_install=yes
3821 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3822 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3823 if test "${lt_cv_path_SED+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 # Loop through the user's path and test for sed and gsed.
3827 # Then use that list of sed's as ones to test for truncation.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for lt_ac_prog in sed gsed; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3836 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3843 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3844 # along with /bin/sed that truncates output.
3845 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3846 test ! -f $lt_ac_sed && continue
3847 cat /dev/null > conftest.in
3849 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3850 # Check for GNU sed and select it if it is found.
3851 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3852 lt_cv_path_SED=$lt_ac_sed
3856 cat conftest.in conftest.in >conftest.tmp
3857 mv conftest.tmp conftest.in
3858 cp conftest.in conftest.nl
3860 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3861 cmp -s conftest.out conftest.nl || break
3862 # 10000 chars as input seems more than enough
3863 test $lt_ac_count -gt 10 && break
3864 lt_ac_count=`expr $lt_ac_count + 1`
3865 if test $lt_ac_count -gt $lt_ac_max; then
3866 lt_ac_max=$lt_ac_count
3867 lt_cv_path_SED=$lt_ac_sed
3875 { echo "$as_me:$LINENO: result: $SED" >&5
3876 echo "${ECHO_T}$SED" >&6; }
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in grep ggrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP="$ac_path_GREP"
3920 ac_path_GREP_max=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 $ac_path_GREP_found && break 3
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3947 ac_cv_path_GREP=$GREP
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3965 # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 $ac_path_EGREP_found && break 3
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_EGREP=$EGREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4041 # Check whether --with-gnu-ld was given.
4042 if test "${with_gnu_ld+set}" = set; then
4043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4049 if test "$GCC" = yes; then
4050 # Check if gcc -print-prog-name=ld gives a path.
4051 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4052 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4055 # gcc leaves a trailing carriage return which upsets mingw
4056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4061 # Accept absolute paths.
4063 re_direlt='/[^/][^/]*/\.\./'
4064 # Canonicalize the pathname of ld
4065 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4066 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4067 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4069 test -z "$LD" && LD="$ac_prog"
4072 # If it fails, then pretend we aren't using GCC.
4076 # If it is relative, then search for the first ld in PATH.
4080 elif test "$with_gnu_ld" = yes; then
4081 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4082 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4084 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4085 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4087 if test "${lt_cv_path_LD+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -z "$LD"; then
4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092 for ac_dir in $PATH; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096 lt_cv_path_LD="$ac_dir/$ac_prog"
4097 # Check to see if the program is GNU ld. I'd rather use --version,
4098 # but apparently some variants of GNU ld only accept -v.
4099 # Break only if it was the GNU/non-GNU ld that we prefer.
4100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101 *GNU* | *'with BFD'*)
4102 test "$with_gnu_ld" != no && break
4105 test "$with_gnu_ld" != yes && break
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4117 if test -n "$LD"; then
4118 { echo "$as_me:$LINENO: result: $LD" >&5
4119 echo "${ECHO_T}$LD" >&6; }
4121 { echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6; }
4124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126 { (exit 1); exit 1; }; }
4127 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4133 case `$LD -v 2>&1 </dev/null` in
4134 *GNU* | *'with BFD'*)
4135 lt_cv_prog_gnu_ld=yes
4138 lt_cv_prog_gnu_ld=no
4142 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4143 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4144 with_gnu_ld=$lt_cv_prog_gnu_ld
4147 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4148 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4149 if test "${lt_cv_ld_reload_flag+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 lt_cv_ld_reload_flag='-r'
4154 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4155 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4156 reload_flag=$lt_cv_ld_reload_flag
4157 case $reload_flag in
4159 *) reload_flag=" $reload_flag" ;;
4161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4164 if test "$GCC" = yes; then
4165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4172 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4173 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4174 if test "${lt_cv_path_NM+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$NM"; then
4178 # Let the user override the test.
4181 lt_nm_to_check="${ac_tool_prefix}nm"
4182 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4183 lt_nm_to_check="$lt_nm_to_check nm"
4185 for lt_tmp_nm in $lt_nm_to_check; do
4186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4187 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4189 test -z "$ac_dir" && ac_dir=.
4190 tmp_nm="$ac_dir/$lt_tmp_nm"
4191 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4192 # Check to see if the nm accepts a BSD-compat flag.
4193 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4194 # nm: unknown option "B" ignored
4195 # Tru64's nm complains that /dev/null is an invalid object file
4196 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4197 */dev/null* | *'Invalid file or object type'*)
4198 lt_cv_path_NM="$tmp_nm -B"
4202 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4204 lt_cv_path_NM="$tmp_nm -p"
4208 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4209 continue # so that we can try to find one that supports BSD flags
4218 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4221 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4222 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4225 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4226 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4228 if test "$LN_S" = "ln -s"; then
4229 { echo "$as_me:$LINENO: result: yes" >&5
4230 echo "${ECHO_T}yes" >&6; }
4232 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4233 echo "${ECHO_T}no, using $LN_S" >&6; }
4236 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4237 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4238 if test "${lt_cv_deplibs_check_method+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 lt_cv_file_magic_cmd='$MAGIC_CMD'
4242 lt_cv_file_magic_test_file=
4243 lt_cv_deplibs_check_method='unknown'
4244 # Need to set the preceding variable on all platforms that support
4245 # interlibrary dependencies.
4246 # 'none' -- dependencies not supported.
4247 # `unknown' -- same as none, but documents that we really don't know.
4248 # 'pass_all' -- all dependencies passed with no checks.
4249 # 'test_compile' -- check by making test program.
4250 # 'file_magic [[regex]]' -- check by looking for files in library path
4251 # which responds to the $file_magic_cmd with a given extended regex.
4252 # If you have `file' or equivalent on your system and you're not sure
4253 # whether `pass_all' will *always* work, you probably want this one.
4257 lt_cv_deplibs_check_method=pass_all
4261 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266 lt_cv_file_magic_cmd='/usr/bin/file -L'
4267 lt_cv_file_magic_test_file=/shlib/libc.so
4271 # func_win32_libid is a shell function defined in ltmain.sh
4272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4273 lt_cv_file_magic_cmd='func_win32_libid'
4277 # Base MSYS/MinGW do not provide the 'file' command needed by
4278 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4279 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4280 lt_cv_file_magic_cmd='$OBJDUMP -f'
4283 darwin* | rhapsody*)
4284 lt_cv_deplibs_check_method=pass_all
4287 freebsd* | dragonfly*)
4288 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4291 # Not sure whether the presence of OpenBSD here was a mistake.
4292 # Let's accept both of them until this is cleared up.
4293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4294 lt_cv_file_magic_cmd=/usr/bin/file
4295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299 lt_cv_deplibs_check_method=pass_all
4304 lt_cv_deplibs_check_method=pass_all
4307 hpux10.20* | hpux11*)
4308 lt_cv_file_magic_cmd=/usr/bin/file
4311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4315 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]'
4316 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4320 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4326 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4330 irix5* | irix6* | nonstopux*)
4332 *-32|*"-32 ") libmagic=32-bit;;
4333 *-n32|*"-n32 ") libmagic=N32;;
4334 *-64|*"-64 ") libmagic=64-bit;;
4335 *) libmagic=never-match;;
4337 lt_cv_deplibs_check_method=pass_all
4340 # This must be Linux ELF.
4341 linux* | k*bsd*-gnu)
4342 lt_cv_deplibs_check_method=pass_all
4345 netbsd* | netbsdelf*-gnu)
4346 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4355 lt_cv_file_magic_cmd=/usr/bin/file
4356 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360 lt_cv_deplibs_check_method=unknown
4364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371 osf3* | osf4* | osf5*)
4372 lt_cv_deplibs_check_method=pass_all
4376 lt_cv_deplibs_check_method=pass_all
4380 case $host_vendor in
4382 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]'
4383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4386 lt_cv_deplibs_check_method=pass_all
4389 lt_cv_file_magic_cmd='/bin/file'
4390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4393 lt_cv_file_magic_cmd='/bin/file'
4394 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4395 lt_cv_file_magic_test_file=/lib/libc.so
4398 lt_cv_deplibs_check_method=pass_all
4401 lt_cv_deplibs_check_method=pass_all
4406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4407 lt_cv_deplibs_check_method=pass_all
4412 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4413 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4414 file_magic_cmd=$lt_cv_file_magic_cmd
4415 deplibs_check_method=$lt_cv_deplibs_check_method
4416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4421 # If no C compiler was specified, use CC.
4424 # If no C compiler flags were specified, use CFLAGS.
4425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4427 # Allow CC to be a program name with arguments.
4431 # Check whether --enable-libtool-lock was given.
4432 if test "${enable_libtool_lock+set}" = set; then
4433 enableval=$enable_libtool_lock;
4436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4438 # Some flags need to be propagated to the compiler or linker for good
4442 # Find out which ABI we are using.
4443 echo 'int i;' > conftest.$ac_ext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; then
4449 case `/usr/bin/file conftest.$ac_objext` in
4461 # Find out which ABI we are using.
4462 echo '#line 4462 "configure"' > conftest.$ac_ext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 if test "$lt_cv_prog_gnu_ld" = yes; then
4469 case `/usr/bin/file conftest.$ac_objext` in
4471 LD="${LD-ld} -melf32bsmip"
4474 LD="${LD-ld} -melf32bmipn32"
4477 LD="${LD-ld} -melf64bmip"
4481 case `/usr/bin/file conftest.$ac_objext` in
4497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4498 # Find out which ABI we are using.
4499 echo 'int i;' > conftest.$ac_ext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; then
4505 case `/usr/bin/file conftest.o` in
4509 LD="${LD-ld} -m elf_i386"
4511 ppc64-*linux*|powerpc64-*linux*)
4512 LD="${LD-ld} -m elf32ppclinux"
4515 LD="${LD-ld} -m elf_s390"
4518 LD="${LD-ld} -m elf32_sparc"
4525 LD="${LD-ld} -m elf_x86_64"
4527 ppc*-*linux*|powerpc*-*linux*)
4528 LD="${LD-ld} -m elf64ppc"
4531 LD="${LD-ld} -m elf64_s390"
4534 LD="${LD-ld} -m elf64_sparc"
4544 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4545 SAVE_CFLAGS="$CFLAGS"
4546 CFLAGS="$CFLAGS -belf"
4547 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4549 if test "${lt_cv_cc_needs_belf+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_link") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest$ac_exeext &&
4590 $as_test_x conftest$ac_exeext; then
4591 lt_cv_cc_needs_belf=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 lt_cv_cc_needs_belf=no
4599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4600 conftest$ac_exeext conftest.$ac_ext
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4612 CFLAGS="$SAVE_CFLAGS"
4616 # Find out which ABI we are using.
4617 echo 'int i;' > conftest.$ac_ext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619 (eval $ac_compile) 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; then
4623 case `/usr/bin/file conftest.o` in
4625 case $lt_cv_prog_gnu_ld in
4626 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4627 *) LD="${LD-ld} -64" ;;
4638 need_locks="$enable_libtool_lock"
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4648 # On Suns, sometimes $CPP names a directory.
4649 if test -n "$CPP" && test -d "$CPP"; then
4652 if test -z "$CPP"; then
4653 if test "${ac_cv_prog_CPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 # Double quotes because CPP needs to be expanded
4657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4660 for ac_c_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 # include <limits.h>
4677 # include <assert.h>
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null && {
4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 # Broken: fails on valid input.
4706 rm -f conftest.err conftest.$ac_ext
4708 # OK, works on sane cases. Now check whether nonexistent headers
4709 # can be detected and how.
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4734 # Broken: success on invalid input.
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 # Passes both tests.
4745 rm -f conftest.err conftest.$ac_ext
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4762 { echo "$as_me:$LINENO: result: $CPP" >&5
4763 echo "${ECHO_T}$CPP" >&6; }
4765 for ac_c_preproc_warn_flag in '' yes
4767 # Use a header file that comes with gcc, so configuring glibc
4768 # with a fresh cross-compiler works.
4769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770 # <limits.h> exists even on freestanding compilers.
4771 # On the NeXT, cc -E runs the code through the compiler's parser,
4772 # not just through cpp. "Syntax error" is here to catch this case.
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # include <limits.h>
4782 # include <assert.h>
4786 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } >/dev/null && {
4799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 # Broken: fails on valid input.
4811 rm -f conftest.err conftest.$ac_ext
4813 # OK, works on sane cases. Now check whether nonexistent headers
4814 # can be detected and how.
4815 cat >conftest.$ac_ext <<_ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <ac_nonexistent.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null && {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4839 # Broken: success on invalid input.
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 # Passes both tests.
4850 rm -f conftest.err conftest.$ac_ext
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.$ac_ext
4855 if $ac_preproc_ok; then
4858 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4861 See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4866 ac_cpp='$CPP $CPPFLAGS'
4867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4874 if test "${ac_cv_header_stdc+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4913 ac_cv_header_stdc=yes
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ac_cv_header_stdc=no
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 if test $ac_cv_header_stdc = yes; then
4924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 $EGREP "memchr" >/dev/null 2>&1; then
4938 ac_cv_header_stdc=no
4944 if test $ac_cv_header_stdc = yes; then
4945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "free" >/dev/null 2>&1; then
4959 ac_cv_header_stdc=no
4965 if test $ac_cv_header_stdc = yes; then
4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967 if test "$cross_compiling" = yes; then
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4978 #if ((' ' & 0x0FF) == 0x020)
4979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982 # define ISLOWER(c) \
4983 (('a' <= (c) && (c) <= 'i') \
4984 || ('j' <= (c) && (c) <= 'r') \
4985 || ('s' <= (c) && (c) <= 'z'))
4986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4994 for (i = 0; i < 256; i++)
4995 if (XOR (islower (i), ISLOWER (i))
4996 || toupper (i) != TOUPPER (i))
5001 rm -f conftest$ac_exeext
5002 if { (ac_try="$ac_link"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_link") 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5012 { (case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_try") 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5023 echo "$as_me: program exited with status $ac_status" >&5
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5028 ac_cv_header_stdc=no
5030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5038 if test $ac_cv_header_stdc = yes; then
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057 inttypes.h stdint.h unistd.h
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 $ac_includes_default
5073 #include <$ac_header>
5075 rm -f conftest.$ac_objext
5076 if { (ac_try="$ac_compile"
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_compile") 2>conftest.er1
5084 grep -v '^ *+' conftest.er1 >conftest.err
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && {
5089 test -z "$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5091 } && test -s conftest.$ac_objext; then
5092 eval "$as_ac_Header=yes"
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 eval "$as_ac_Header=no"
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_res=`eval echo '${'$as_ac_Header'}'`
5103 { echo "$as_me:$LINENO: result: $ac_res" >&5
5104 echo "${ECHO_T}$ac_res" >&6; }
5105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5106 cat >>confdefs.h <<_ACEOF
5107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5116 for ac_header in dlfcn.h
5118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 ac_res=`eval echo '${'$as_ac_Header'}'`
5126 { echo "$as_me:$LINENO: result: $ac_res" >&5
5127 echo "${ECHO_T}$ac_res" >&6; }
5129 # Is the header compilable?
5130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 $ac_includes_default
5139 #include <$ac_header>
5141 rm -f conftest.$ac_objext
5142 if { (ac_try="$ac_compile"
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_compile") 2>conftest.er1
5150 grep -v '^ *+' conftest.er1 >conftest.err
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } && {
5155 test -z "$ac_c_werror_flag" ||
5156 test ! -s conftest.err
5157 } && test -s conftest.$ac_objext; then
5158 ac_header_compiler=yes
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_header_compiler=no
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5168 echo "${ECHO_T}$ac_header_compiler" >&6; }
5170 # Is the header present?
5171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <$ac_header>
5181 if { (ac_try="$ac_cpp conftest.$ac_ext"
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 grep -v '^ *+' conftest.er1 >conftest.err
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } >/dev/null && {
5194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5195 test ! -s conftest.err
5197 ac_header_preproc=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_header_preproc=no
5205 rm -f conftest.err conftest.$ac_ext
5206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5207 echo "${ECHO_T}$ac_header_preproc" >&6; }
5209 # So? What about this header?
5210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5216 ac_header_preproc=yes
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 eval "$as_ac_Header=\$ac_header_preproc"
5241 ac_res=`eval echo '${'$as_ac_Header'}'`
5242 { echo "$as_me:$LINENO: result: $ac_res" >&5
5243 echo "${ECHO_T}$ac_res" >&6; }
5246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 ac_cpp='$CXXCPP $CPPFLAGS'
5257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 if test -z "$CXX"; then
5261 if test -n "$CCC"; then
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_CXX+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test -n "$CXX"; then
5275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 if test -n "$CXX"; then
5296 { echo "$as_me:$LINENO: result: $CXX" >&5
5297 echo "${ECHO_T}$CXX" >&6; }
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5304 test -n "$CXX" && break
5307 if test -z "$CXX"; then
5309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 if test -n "$ac_ct_CXX"; then
5319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_ac_ct_CXX="$ac_prog"
5329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5339 if test -n "$ac_ct_CXX"; then
5340 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5341 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5348 test -n "$ac_ct_CXX" && break
5351 if test "x$ac_ct_CXX" = x; then
5354 case $cross_compiling:$ac_tool_warned in
5356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet. If you think this
5358 configuration is useful to you, please write to autoconf@gnu.org." >&5
5359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5360 whose name does not start with the host triplet. If you think this
5361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5362 ac_tool_warned=yes ;;
5370 # Provide some information about the compiler.
5371 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5372 ac_compiler=`set X $ac_compile; echo $2`
5373 { (ac_try="$ac_compiler --version >&5"
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compiler --version >&5") 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }
5383 { (ac_try="$ac_compiler -v >&5"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compiler -v >&5") 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }
5393 { (ac_try="$ac_compiler -V >&5"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_compiler -V >&5") 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5404 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5405 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_cxx_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5457 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5458 GXX=`test $ac_compiler_gnu = yes && echo yes`
5459 ac_test_CXXFLAGS=${CXXFLAGS+set}
5460 ac_save_CXXFLAGS=$CXXFLAGS
5461 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5462 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5463 if test "${ac_cv_prog_cxx_g+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5467 ac_cxx_werror_flag=yes
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_cxx_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_cv_prog_cxx_g=yes
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5532 grep -v '^ *+' conftest.er1 >conftest.err
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_cxx_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_cxx_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_cv_prog_cxx_g=yes
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5598 if test "$ac_test_CXXFLAGS" = set; then
5599 CXXFLAGS=$ac_save_CXXFLAGS
5600 elif test $ac_cv_prog_cxx_g = yes; then
5601 if test "$GXX" = yes; then
5607 if test "$GXX" = yes; then
5614 ac_cpp='$CXXCPP $CPPFLAGS'
5615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5619 depcc="$CXX" am_compiler_list=
5621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5623 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5627 # We make a subdir and do the tests there. Otherwise we can end up
5628 # making bogus files that we don't know about and never remove. For
5629 # instance it was reported that on HP-UX the gcc test will end up
5630 # making a dummy file named `D' -- because `-MD' means `put the output
5633 # Copy depcomp to subdir because otherwise we won't find it if we're
5634 # using a relative directory.
5635 cp "$am_depcomp" conftest.dir
5637 # We will build objects and dependencies in a subdirectory because
5638 # it helps to detect inapplicable dependency modes. For instance
5639 # both Tru64's cc and ICC support -MD to output dependencies as a
5640 # side effect of compilation, but ICC will put the dependencies in
5641 # the current directory while Tru64 will put them in the object
5645 am_cv_CXX_dependencies_compiler_type=none
5646 if test "$am_compiler_list" = ""; then
5647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5649 for depmode in $am_compiler_list; do
5650 # Setup a source with many dependencies, because some compilers
5651 # like to wrap large dependency lists on column 80 (with \), and
5652 # we should not choose a depcomp mode which is confused by this.
5654 # We need to recreate these files for each test, as the compiler may
5655 # overwrite some of them when testing with obscure command lines.
5656 # This happens at least with the AIX C compiler.
5658 for i in 1 2 3 4 5 6; do
5659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5661 # Solaris 8's {/usr,}/bin/sh.
5662 touch sub/conftst$i.h
5664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5668 # after this tag, mechanisms are not by side-effect, so they'll
5669 # only be used when explicitly requested
5670 if test "x$enable_dependency_tracking" = xyes; then
5678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5679 # mode. It turns out that the SunPro C++ compiler does not properly
5680 # handle `-M -o', and we need to detect this.
5681 if depmode=$depmode \
5682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5685 >/dev/null 2>conftest.err &&
5686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5688 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5690 # icc doesn't choke on unknown options, it will just issue warnings
5691 # or remarks (even with -Werror). So we grep stderr for any message
5692 # that says an option was ignored or not supported.
5693 # When given -MP, icc 7.0 and 7.1 complain thusly:
5694 # icc: Command line warning: ignoring option '-M'; no argument required
5695 # The diagnosis changed in icc 8.0:
5696 # icc: Command line remark: option '-MP' not supported
5697 if (grep 'ignoring option' conftest.err ||
5698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5699 am_cv_CXX_dependencies_compiler_type=$depmode
5708 am_cv_CXX_dependencies_compiler_type=none
5712 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5713 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5714 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5717 test "x$enable_dependency_tracking" != xno \
5718 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5719 am__fastdepCXX_TRUE=
5720 am__fastdepCXX_FALSE='#'
5722 am__fastdepCXX_TRUE='#'
5723 am__fastdepCXX_FALSE=
5729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5731 (test "X$CXX" != "Xg++"))) ; then
5733 ac_cpp='$CXXCPP $CPPFLAGS'
5734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5737 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5738 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5739 if test -z "$CXXCPP"; then
5740 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 # Double quotes because CXXCPP needs to be expanded
5744 for CXXCPP in "$CXX -E" "/lib/cpp"
5747 for ac_cxx_preproc_warn_flag in '' yes
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 # include <limits.h>
5764 # include <assert.h>
5768 if { (ac_try="$ac_cpp conftest.$ac_ext"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } >/dev/null && {
5781 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5782 test ! -s conftest.err
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 # Broken: fails on valid input.
5793 rm -f conftest.err conftest.$ac_ext
5795 # OK, works on sane cases. Now check whether nonexistent headers
5796 # can be detected and how.
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <ac_nonexistent.h>
5805 if { (ac_try="$ac_cpp conftest.$ac_ext"
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } >/dev/null && {
5818 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5819 test ! -s conftest.err
5821 # Broken: success on invalid input.
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 # Passes both tests.
5832 rm -f conftest.err conftest.$ac_ext
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.$ac_ext
5837 if $ac_preproc_ok; then
5842 ac_cv_prog_CXXCPP=$CXXCPP
5845 CXXCPP=$ac_cv_prog_CXXCPP
5847 ac_cv_prog_CXXCPP=$CXXCPP
5849 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5850 echo "${ECHO_T}$CXXCPP" >&6; }
5852 for ac_cxx_preproc_warn_flag in '' yes
5854 # Use a header file that comes with gcc, so configuring glibc
5855 # with a fresh cross-compiler works.
5856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 # <limits.h> exists even on freestanding compilers.
5858 # On the NeXT, cc -E runs the code through the compiler's parser,
5859 # not just through cpp. "Syntax error" is here to catch this case.
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5867 # include <limits.h>
5869 # include <assert.h>
5873 if { (ac_try="$ac_cpp conftest.$ac_ext"
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5881 grep -v '^ *+' conftest.er1 >conftest.err
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } >/dev/null && {
5886 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5887 test ! -s conftest.err
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 # Broken: fails on valid input.
5898 rm -f conftest.err conftest.$ac_ext
5900 # OK, works on sane cases. Now check whether nonexistent headers
5901 # can be detected and how.
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <ac_nonexistent.h>
5910 if { (ac_try="$ac_cpp conftest.$ac_ext"
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev/null && {
5923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5924 test ! -s conftest.err
5926 # Broken: success on invalid input.
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 # Passes both tests.
5937 rm -f conftest.err conftest.$ac_ext
5940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 rm -f conftest.err conftest.$ac_ext
5942 if $ac_preproc_ok; then
5945 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5946 See \`config.log' for more details." >&5
5947 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 See \`config.log' for more details." >&2;}
5949 { (exit 1); exit 1; }; }
5953 ac_cpp='$CXXCPP $CPPFLAGS'
5954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5963 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5965 if test -n "$ac_tool_prefix"; then
5966 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
5968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_F77+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$F77"; then
5976 ac_cv_prog_F77="$F77" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 if test -n "$F77"; then
5997 { echo "$as_me:$LINENO: result: $F77" >&5
5998 echo "${ECHO_T}$F77" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6005 test -n "$F77" && break
6008 if test -z "$F77"; then
6010 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
6012 # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 if test -n "$ac_ct_F77"; then
6020 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_ac_ct_F77="$ac_prog"
6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6040 if test -n "$ac_ct_F77"; then
6041 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6042 echo "${ECHO_T}$ac_ct_F77" >&6; }
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 test -n "$ac_ct_F77" && break
6052 if test "x$ac_ct_F77" = x; then
6055 case $cross_compiling:$ac_tool_warned in
6057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6058 whose name does not start with the host triplet. If you think this
6059 configuration is useful to you, please write to autoconf@gnu.org." >&5
6060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6061 whose name does not start with the host triplet. If you think this
6062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6063 ac_tool_warned=yes ;;
6070 # Provide some information about the compiler.
6071 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6072 ac_compiler=`set X $ac_compile; echo $2`
6073 { (ac_try="$ac_compiler --version >&5"
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compiler --version >&5") 2>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }
6083 { (ac_try="$ac_compiler -v >&5"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_compiler -v >&5") 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }
6093 { (ac_try="$ac_compiler -V >&5"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compiler -V >&5") 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }
6105 # If we don't use `.F' as extension, the preprocessor is not run on the
6106 # input file. (Note that this only needs to work for GNU compilers.)
6109 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6110 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6111 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 cat >conftest.$ac_ext <<_ACEOF
6122 rm -f conftest.$ac_objext
6123 if { (ac_try="$ac_compile"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compile") 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_f77_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.$ac_objext; then
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6151 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6152 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6154 ac_test_FFLAGS=${FFLAGS+set}
6155 ac_save_FFLAGS=$FFLAGS
6157 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6158 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_f77_g+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } && {
6182 test -z "$ac_f77_werror_flag" ||
6183 test ! -s conftest.err
6184 } && test -s conftest.$ac_objext; then
6185 ac_cv_prog_f77_g=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6197 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6198 if test "$ac_test_FFLAGS" = set; then
6199 FFLAGS=$ac_save_FFLAGS
6200 elif test $ac_cv_prog_f77_g = yes; then
6201 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6214 G77=`test $ac_compiler_gnu = yes && echo yes`
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6225 # find the maximum length of command line arguments
6226 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6227 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6228 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 # On DJGPP, this test can blow up pretty badly due to problems in libc
6237 # (any single argument exceeding 2000 bytes causes a buffer overrun
6238 # during glob expansion). Even if it were fixed, the result of this
6239 # check would be larger than it should be.
6240 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6244 # Under GNU Hurd, this test is not required because there is
6245 # no limit to the length of command line arguments.
6246 # Libtool will interpret -1 as no limit whatsoever
6247 lt_cv_sys_max_cmd_len=-1;
6251 # On Win9x/ME, this test blows up -- it succeeds, but takes
6252 # about 5 minutes as the teststring grows exponentially.
6253 # Worse, since 9x/ME are not pre-emptively multitasking,
6254 # you end up with a "frozen" computer, even though with patience
6255 # the test eventually succeeds (with a max line length of 256k).
6256 # Instead, let's just punt: use the minimum linelength reported by
6257 # all of the supported platforms: 8192 (on NT/2K/XP).
6258 lt_cv_sys_max_cmd_len=8192;
6262 # On AmigaOS with pdksh, this test takes hours, literally.
6263 # So we just punt and use a minimum line length of 8192.
6264 lt_cv_sys_max_cmd_len=8192;
6267 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6268 # This has been around since 386BSD, at least. Likely further.
6269 if test -x /sbin/sysctl; then
6270 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6271 elif test -x /usr/sbin/sysctl; then
6272 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6274 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6276 # And add a safety zone
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6282 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6283 lt_cv_sys_max_cmd_len=196608
6287 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6288 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6289 # nice to cause kernel panics so lets avoid the loop below.
6290 # First set a reasonable default.
6291 lt_cv_sys_max_cmd_len=16384
6293 if test -x /sbin/sysconfig; then
6294 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6295 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6300 lt_cv_sys_max_cmd_len=102400
6302 sysv5* | sco5v6* | sysv4.2uw2*)
6303 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6304 if test -n "$kargmax"; then
6305 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6307 lt_cv_sys_max_cmd_len=32768
6311 # If test is not a shell built-in, we'll probably end up computing a
6312 # maximum length that is only half of the actual maximum length, but
6314 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6315 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6316 = "XX$teststring") >/dev/null 2>&1 &&
6317 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6318 lt_cv_sys_max_cmd_len=$new_result &&
6319 test $i != 17 # 1/2 MB should be enough
6322 teststring=$teststring$teststring
6325 # Add a significant safety factor because C++ compilers can tack on massive
6326 # amounts of additional arguments before passing them to the linker.
6327 # It appears as though 1/2 is a usable value.
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6334 if test -n $lt_cv_sys_max_cmd_len ; then
6335 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6336 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6338 { echo "$as_me:$LINENO: result: none" >&5
6339 echo "${ECHO_T}none" >&6; }
6345 # Check for command to grab the raw symbol name followed by C symbol from nm.
6346 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6347 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6348 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 # These are sane defaults that work on at least a few old systems.
6353 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6355 # Character class describing NM global symbol codes.
6356 symcode='[BCDEGRST]'
6358 # Regexp to match symbols that can be accessed directly from C.
6359 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6361 # Transform an extracted symbol line into a proper C declaration
6362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6364 # Transform an extracted symbol line into symbol name and symbol address
6365 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'"
6367 # Define system-specific variables.
6372 cygwin* | mingw* | pw32*)
6373 symcode='[ABCDGISTW]'
6375 hpux*) # Its linker distinguishes data from code symbols
6376 if test "$host_cpu" = ia64; then
6377 symcode='[ABCDEGRST]'
6379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380 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'"
6382 linux* | k*bsd*-gnu)
6383 if test "$host_cpu" = ia64; then
6384 symcode='[ABCDGIRSTW]'
6385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6386 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'"
6390 symcode='[BCDEGRST]'
6393 symcode='[BCDEGQRST]'
6404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6412 # Handle CRLF in mingw tool chain
6416 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420 # If we're using GNU nm, then use its standard symbol codes.
6421 case `$NM -V 2>&1` in
6422 *GNU* | *'with BFD'*)
6423 symcode='[ABCDGIRSTW]' ;;
6426 # Try without a prefix undercore, then with it.
6427 for ac_symprfx in "" "_"; do
6429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6430 symxfrm="\\1 $ac_symprfx\\2 \\2"
6432 # Write the raw and C identifiers.
6433 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6435 # Check to see that the pipe works correctly.
6439 cat > conftest.$ac_ext <<EOF
6444 void nm_test_func(){}
6448 int main(){nm_test_var='a';nm_test_func();return(0);}
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; then
6456 # Now try to grab the symbols.
6458 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6459 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && test -s "$nlist"; then
6463 # Try sorting and uniquifying the output.
6464 if sort "$nlist" | uniq > "$nlist"T; then
6465 mv -f "$nlist"T "$nlist"
6470 # Make sure that we snagged all the symbols we need.
6471 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6472 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6473 cat <<EOF > conftest.$ac_ext
6479 # Now generate the symbol file.
6480 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6482 cat <<EOF >> conftest.$ac_ext
6483 #if defined (__STDC__) && __STDC__
6484 # define lt_ptr_t void *
6486 # define lt_ptr_t char *
6490 /* The mapping between symbol names and symbols. */
6495 lt_preloaded_symbols[] =
6498 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6499 cat <<\EOF >> conftest.$ac_ext
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_save_LIBS="$LIBS"
6510 lt_save_CFLAGS="$CFLAGS"
6511 LIBS="conftstm.$ac_objext"
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6520 LIBS="$lt_save_LIBS"
6521 CFLAGS="$lt_save_CFLAGS"
6523 echo "cannot find nm_test_func in $nlist" >&5
6526 echo "cannot find nm_test_var in $nlist" >&5
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 rm -f conftest* conftst*
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test "$pipe_works" = yes; then
6541 lt_cv_sys_global_symbol_pipe=
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { echo "$as_me:$LINENO: result: failed" >&5
6552 echo "${ECHO_T}failed" >&6; }
6554 { echo "$as_me:$LINENO: result: ok" >&5
6555 echo "${ECHO_T}ok" >&6; }
6558 { echo "$as_me:$LINENO: checking for objdir" >&5
6559 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6560 if test "${lt_cv_objdir+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 rm -f .libs 2>/dev/null
6564 mkdir .libs 2>/dev/null
6565 if test -d .libs; then
6568 # MS-DOS does not allow filenames that begin with a dot.
6571 rmdir .libs 2>/dev/null
6573 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6574 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6575 objdir=$lt_cv_objdir
6583 # AIX sometimes has problems with the GCC collect2 program. For some
6584 # reason, if we set the COLLECT_NAMES environment variable, the problems
6585 # vanish in a puff of smoke.
6586 if test "X${COLLECT_NAMES+set}" != Xset; then
6588 export COLLECT_NAMES
6593 # Sed substitution that helps us do robust quoting. It backslashifies
6594 # metacharacters that are still active within double-quoted strings.
6595 Xsed='sed -e 1s/^X//'
6596 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6598 # Same as above, but do not quote variable references.
6599 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6601 # Sed substitution to delay expansion of an escaped shell variable in a
6602 # double_quote_subst'ed string.
6603 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6605 # Sed substitution to avoid accidental globbing in evaled expressions
6606 no_glob_subst='s/\*/\\\*/g'
6612 default_ofile=libtool
6613 can_build_shared=yes
6615 # All known linkers require a `.a' archive for static linking (except MSVC,
6616 # which needs '.lib').
6618 ltmain="$ac_aux_dir/ltmain.sh"
6619 ofile="$default_ofile"
6620 with_gnu_ld="$lt_cv_prog_gnu_ld"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ar; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_AR+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 if test -n "$AR"; then
6631 ac_cv_prog_AR="$AR" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_AR="${ac_tool_prefix}ar"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 if test -n "$AR"; then
6652 { echo "$as_me:$LINENO: result: $AR" >&5
6653 echo "${ECHO_T}$AR" >&6; }
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6661 if test -z "$ac_cv_prog_AR"; then
6663 # Extract the first word of "ar", so it can be a program name with args.
6664 set dummy ar; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 if test -n "$ac_ct_AR"; then
6671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_AR="ar"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6691 if test -n "$ac_ct_AR"; then
6692 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6693 echo "${ECHO_T}$ac_ct_AR" >&6; }
6695 { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6699 if test "x$ac_ct_AR" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet. If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&5
6707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6710 ac_tool_warned=yes ;;
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_RANLIB" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}strip; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_STRIP+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 if test -n "$STRIP"; then
6823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 STRIP=$ac_cv_prog_STRIP
6843 if test -n "$STRIP"; then
6844 { echo "$as_me:$LINENO: result: $STRIP" >&5
6845 echo "${ECHO_T}$STRIP" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6853 if test -z "$ac_cv_prog_STRIP"; then
6855 # Extract the first word of "strip", so it can be a program name with args.
6856 set dummy strip; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 if test -n "$ac_ct_STRIP"; then
6863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_STRIP="strip"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6883 if test -n "$ac_ct_STRIP"; then
6884 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6885 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6891 if test "x$ac_ct_STRIP" = x; then
6894 case $cross_compiling:$ac_tool_warned in
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet. If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6907 STRIP="$ac_cv_prog_STRIP"
6912 old_CFLAGS="$CFLAGS"
6914 # Set sane defaults for various variables
6915 test -z "$AR" && AR=ar
6916 test -z "$AR_FLAGS" && AR_FLAGS=cru
6917 test -z "$AS" && AS=as
6918 test -z "$CC" && CC=cc
6919 test -z "$LTCC" && LTCC=$CC
6920 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6921 test -z "$DLLTOOL" && DLLTOOL=dlltool
6922 test -z "$LD" && LD=ld
6923 test -z "$LN_S" && LN_S="ln -s"
6924 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6925 test -z "$NM" && NM=nm
6926 test -z "$SED" && SED=sed
6927 test -z "$OBJDUMP" && OBJDUMP=objdump
6928 test -z "$RANLIB" && RANLIB=:
6929 test -z "$STRIP" && STRIP=:
6930 test -z "$ac_objext" && ac_objext=o
6932 # Determine commands to create old-style static archives.
6933 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6934 old_postinstall_cmds='chmod 644 $oldlib'
6935 old_postuninstall_cmds=
6937 if test -n "$RANLIB"; then
6940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6946 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6949 for cc_temp in $compiler""; do
6951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6960 # Only perform the check for file, if the check method requires it
6961 case $deplibs_check_method in
6963 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6964 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6965 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6966 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6974 lt_save_MAGIC_CMD="$MAGIC_CMD"
6975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6977 for ac_dir in $ac_dummy; do
6979 test -z "$ac_dir" && ac_dir=.
6980 if test -f $ac_dir/${ac_tool_prefix}file; then
6981 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6982 if test -n "$file_magic_test_file"; then
6983 case $deplibs_check_method in
6985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6988 $EGREP "$file_magic_regex" > /dev/null; then
6993 *** Warning: the command libtool uses to detect shared libraries,
6994 *** $file_magic_cmd, produces output that libtool cannot recognize.
6995 *** The result is that libtool may fail to recognize shared libraries
6996 *** as such. This will affect the creation of libtool libraries that
6997 *** depend on shared libraries, but programs linked with such libtool
6998 *** libraries will work regardless of this problem. Nevertheless, you
6999 *** may want to report the problem to your system manager and/or to
7000 *** bug-libtool@gnu.org
7010 MAGIC_CMD="$lt_save_MAGIC_CMD"
7015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7016 if test -n "$MAGIC_CMD"; then
7017 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7018 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7024 if test -z "$lt_cv_path_MAGIC_CMD"; then
7025 if test -n "$ac_tool_prefix"; then
7026 { echo "$as_me:$LINENO: checking for file" >&5
7027 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7028 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7036 lt_save_MAGIC_CMD="$MAGIC_CMD"
7037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039 for ac_dir in $ac_dummy; do
7041 test -z "$ac_dir" && ac_dir=.
7042 if test -f $ac_dir/file; then
7043 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7044 if test -n "$file_magic_test_file"; then
7045 case $deplibs_check_method in
7047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050 $EGREP "$file_magic_regex" > /dev/null; then
7055 *** Warning: the command libtool uses to detect shared libraries,
7056 *** $file_magic_cmd, produces output that libtool cannot recognize.
7057 *** The result is that libtool may fail to recognize shared libraries
7058 *** as such. This will affect the creation of libtool libraries that
7059 *** depend on shared libraries, but programs linked with such libtool
7060 *** libraries will work regardless of this problem. Nevertheless, you
7061 *** may want to report the problem to your system manager and/or to
7062 *** bug-libtool@gnu.org
7072 MAGIC_CMD="$lt_save_MAGIC_CMD"
7077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078 if test -n "$MAGIC_CMD"; then
7079 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7098 # Check whether --enable-libtool-lock was given.
7099 if test "${enable_libtool_lock+set}" = set; then
7100 enableval=$enable_libtool_lock;
7103 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7106 # Check whether --with-pic was given.
7107 if test "${with_pic+set}" = set; then
7108 withval=$with_pic; pic_mode="$withval"
7113 test -z "$pic_mode" && pic_mode=default
7115 # Use C for the default configuration in the libtool script
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 # Source file extension for C test sources.
7128 # Object file extension for compiled C test sources.
7132 # Code to be used in simple compile tests
7133 lt_simple_compile_test_code="int some_variable = 0;\n"
7135 # Code to be used in simple link tests
7136 lt_simple_link_test_code='int main(){return(0);}\n'
7139 # If no C compiler was specified, use CC.
7142 # If no C compiler flags were specified, use CFLAGS.
7143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7145 # Allow CC to be a program name with arguments.
7149 # save warnings/boilerplate of simple test code
7150 ac_outfile=conftest.$ac_objext
7151 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7153 _lt_compiler_boilerplate=`cat conftest.err`
7156 ac_outfile=conftest.$ac_objext
7157 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7159 _lt_linker_boilerplate=`cat conftest.err`
7164 lt_prog_compiler_no_builtin_flag=
7166 if test "$GCC" = yes; then
7167 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7170 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7171 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7172 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 lt_cv_prog_compiler_rtti_exceptions=no
7176 ac_outfile=conftest.$ac_objext
7177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7178 lt_compiler_flag="-fno-rtti -fno-exceptions"
7179 # Insert the option either (1) after the last *FLAGS variable, or
7180 # (2) before a word containing "conftest.", or (3) at the end.
7181 # Note that $ac_compile itself does not contain backslashes and begins
7182 # with a dollar sign (not a hyphen), so the echo should work correctly.
7183 # The option is referenced via a variable to avoid confusing sed.
7184 lt_compile=`echo "$ac_compile" | $SED \
7185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7187 -e 's:$: $lt_compiler_flag:'`
7188 (eval echo "\"\$as_me:7188: $lt_compile\"" >&5)
7189 (eval "$lt_compile" 2>conftest.err)
7191 cat conftest.err >&5
7192 echo "$as_me:7192: \$? = $ac_status" >&5
7193 if (exit $ac_status) && test -s "$ac_outfile"; then
7194 # The compiler can only warn and ignore the option if not recognized
7195 # So say no if there are warnings other than the usual output.
7196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7199 lt_cv_prog_compiler_rtti_exceptions=yes
7205 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7206 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7208 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7209 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7216 lt_prog_compiler_wl=
7217 lt_prog_compiler_pic=
7218 lt_prog_compiler_static=
7220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7223 if test "$GCC" = yes; then
7224 lt_prog_compiler_wl='-Wl,'
7225 lt_prog_compiler_static='-static'
7229 # All AIX code is PIC.
7230 if test "$host_cpu" = ia64; then
7231 # AIX 5 now supports IA64 processor
7232 lt_prog_compiler_static='-Bstatic'
7237 # FIXME: we need at least 68020 code to build shared libraries, but
7238 # adding the `-m68020' flag to GCC prevents building anything better,
7240 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7243 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7244 # PIC is the default for these OSes.
7247 mingw* | pw32* | os2*)
7248 # This hack is so that the source file can tell whether it is being
7249 # built for inclusion in a dll (and should export symbols for example).
7250 lt_prog_compiler_pic='-DDLL_EXPORT'
7253 darwin* | rhapsody*)
7254 # PIC is the default on this platform
7255 # Common symbols not allowed in MH_DYLIB files
7256 lt_prog_compiler_pic='-fno-common'
7260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7261 # Instead, we relocate shared libraries at runtime.
7265 # Just because we use GCC doesn't mean we suddenly get shared libraries
7266 # on systems that don't support them.
7267 lt_prog_compiler_can_build_shared=no
7272 if test -d /usr/nec; then
7273 lt_prog_compiler_pic=-Kconform_pic
7278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7285 lt_prog_compiler_pic='-fPIC'
7291 lt_prog_compiler_pic='-fPIC'
7295 # PORTME Check for flag to pass linker flags through the system compiler.
7298 lt_prog_compiler_wl='-Wl,'
7299 if test "$host_cpu" = ia64; then
7300 # AIX 5 now supports IA64 processor
7301 lt_prog_compiler_static='-Bstatic'
7303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7307 # PIC is the default on this platform
7308 # Common symbols not allowed in MH_DYLIB files
7309 case $cc_basename in
7311 lt_prog_compiler_pic='-qnocommon'
7312 lt_prog_compiler_wl='-Wl,'
7317 mingw* | pw32* | os2*)
7318 # This hack is so that the source file can tell whether it is being
7319 # built for inclusion in a dll (and should export symbols for example).
7320 lt_prog_compiler_pic='-DDLL_EXPORT'
7323 hpux9* | hpux10* | hpux11*)
7324 lt_prog_compiler_wl='-Wl,'
7325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7332 lt_prog_compiler_pic='+Z'
7335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7336 lt_prog_compiler_static='${wl}-a ${wl}archive'
7339 irix5* | irix6* | nonstopux*)
7340 lt_prog_compiler_wl='-Wl,'
7341 # PIC (with -KPIC) is the default.
7342 lt_prog_compiler_static='-non_shared'
7346 lt_prog_compiler_pic='-KPIC'
7347 lt_prog_compiler_static='-Bstatic'
7350 linux* | k*bsd*-gnu)
7351 case $cc_basename in
7353 lt_prog_compiler_wl='-Wl,'
7354 lt_prog_compiler_pic='-KPIC'
7355 lt_prog_compiler_static='-static'
7357 pgcc* | pgf77* | pgf90* | pgf95*)
7358 # Portland Group compilers (*not* the Pentium gcc compiler,
7359 # which looks to be a dead project)
7360 lt_prog_compiler_wl='-Wl,'
7361 lt_prog_compiler_pic='-fpic'
7362 lt_prog_compiler_static='-Bstatic'
7365 lt_prog_compiler_wl='-Wl,'
7366 # All Alpha code is PIC.
7367 lt_prog_compiler_static='-non_shared'
7372 osf3* | osf4* | osf5*)
7373 lt_prog_compiler_wl='-Wl,'
7374 # All OSF/1 code is PIC.
7375 lt_prog_compiler_static='-non_shared'
7379 lt_prog_compiler_pic='-KPIC'
7380 lt_prog_compiler_static='-Bstatic'
7381 case $cc_basename in
7383 lt_prog_compiler_wl='-Qoption ld ';;
7385 lt_prog_compiler_wl='-Wl,';;
7390 lt_prog_compiler_wl='-Qoption ld '
7391 lt_prog_compiler_pic='-PIC'
7392 lt_prog_compiler_static='-Bstatic'
7395 sysv4 | sysv4.2uw2* | sysv4.3*)
7396 lt_prog_compiler_wl='-Wl,'
7397 lt_prog_compiler_pic='-KPIC'
7398 lt_prog_compiler_static='-Bstatic'
7402 if test -d /usr/nec ;then
7403 lt_prog_compiler_pic='-Kconform_pic'
7404 lt_prog_compiler_static='-Bstatic'
7408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7409 lt_prog_compiler_wl='-Wl,'
7410 lt_prog_compiler_pic='-KPIC'
7411 lt_prog_compiler_static='-Bstatic'
7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_can_build_shared=no
7420 lt_prog_compiler_pic='-pic'
7421 lt_prog_compiler_static='-Bstatic'
7425 lt_prog_compiler_can_build_shared=no
7430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7431 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7434 # Check to make sure the PIC flag actually works.
7436 if test -n "$lt_prog_compiler_pic"; then
7438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7440 if test "${lt_prog_compiler_pic_works+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 lt_prog_compiler_pic_works=no
7444 ac_outfile=conftest.$ac_objext
7445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7447 # Insert the option either (1) after the last *FLAGS variable, or
7448 # (2) before a word containing "conftest.", or (3) at the end.
7449 # Note that $ac_compile itself does not contain backslashes and begins
7450 # with a dollar sign (not a hyphen), so the echo should work correctly.
7451 # The option is referenced via a variable to avoid confusing sed.
7452 lt_compile=`echo "$ac_compile" | $SED \
7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7455 -e 's:$: $lt_compiler_flag:'`
7456 (eval echo "\"\$as_me:7456: $lt_compile\"" >&5)
7457 (eval "$lt_compile" 2>conftest.err)
7459 cat conftest.err >&5
7460 echo "$as_me:7460: \$? = $ac_status" >&5
7461 if (exit $ac_status) && test -s "$ac_outfile"; then
7462 # The compiler can only warn and ignore the option if not recognized
7463 # So say no if there are warnings other than the usual output.
7464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7467 lt_prog_compiler_pic_works=yes
7473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7474 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7476 if test x"$lt_prog_compiler_pic_works" = xyes; then
7477 case $lt_prog_compiler_pic in
7479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7482 lt_prog_compiler_pic=
7483 lt_prog_compiler_can_build_shared=no
7488 # For platforms which do not support PIC, -DPIC is meaningless:
7490 lt_prog_compiler_pic=
7493 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7498 # Check to make sure the static flag actually works.
7500 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7503 if test "${lt_prog_compiler_static_works+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 lt_prog_compiler_static_works=no
7507 save_LDFLAGS="$LDFLAGS"
7508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7511 # The linker can only warn and ignore the option if not recognized
7512 # So say no if there are warnings
7513 if test -s conftest.err; then
7514 # Append any errors to the config.log.
7515 cat conftest.err 1>&5
7516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7518 if diff conftest.exp conftest.er2 >/dev/null; then
7519 lt_prog_compiler_static_works=yes
7522 lt_prog_compiler_static_works=yes
7526 LDFLAGS="$save_LDFLAGS"
7529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7530 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7532 if test x"$lt_prog_compiler_static_works" = xyes; then
7535 lt_prog_compiler_static=
7539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7541 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 lt_cv_prog_compiler_c_o=no
7545 $rm -r conftest 2>/dev/null
7549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7551 lt_compiler_flag="-o out/conftest2.$ac_objext"
7552 # Insert the option either (1) after the last *FLAGS variable, or
7553 # (2) before a word containing "conftest.", or (3) at the end.
7554 # Note that $ac_compile itself does not contain backslashes and begins
7555 # with a dollar sign (not a hyphen), so the echo should work correctly.
7556 lt_compile=`echo "$ac_compile" | $SED \
7557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7559 -e 's:$: $lt_compiler_flag:'`
7560 (eval echo "\"\$as_me:7560: $lt_compile\"" >&5)
7561 (eval "$lt_compile" 2>out/conftest.err)
7563 cat out/conftest.err >&5
7564 echo "$as_me:7564: \$? = $ac_status" >&5
7565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7567 # The compiler can only warn and ignore the option if not recognized
7568 # So say no if there are warnings
7569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7572 lt_cv_prog_compiler_c_o=yes
7577 # SGI C++ compiler will create directory out/ii_files/ for
7578 # template instantiation
7579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7580 $rm out/* && rmdir out
7586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7590 hard_links="nottested"
7591 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7592 # do not overwrite the value of need_locks provided by the user
7593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7599 ln conftest.a conftest.b 2>&5 || hard_links=no
7600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7601 { echo "$as_me:$LINENO: result: $hard_links" >&5
7602 echo "${ECHO_T}$hard_links" >&6; }
7603 if test "$hard_links" = no; then
7604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7616 allow_undefined_flag=
7617 enable_shared_with_static_runtimes=no
7619 archive_expsym_cmds=
7620 old_archive_From_new_cmds=
7621 old_archive_from_expsyms_cmds=
7622 export_dynamic_flag_spec=
7623 whole_archive_flag_spec=
7624 thread_safe_flag_spec=
7625 hardcode_libdir_flag_spec=
7626 hardcode_libdir_flag_spec_ld=
7627 hardcode_libdir_separator=
7630 hardcode_shlibpath_var=unsupported
7631 link_all_deplibs=unknown
7632 hardcode_automatic=no
7635 always_export_symbols=no
7636 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7637 # include_expsyms should be a list of space-separated symbols to be *always*
7638 # included in the symbol list
7640 # exclude_expsyms can be an extended regexp of symbols to exclude
7641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7643 # as well as any symbol that contains `d'.
7644 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7646 # platforms (ab)use it in PIC code, but their linkers get confused if
7647 # the symbol is explicitly referenced. Since portable code cannot
7648 # rely on this symbol name, it's probably fine to never include it in
7649 # preloaded symbol tables.
7650 extract_expsyms_cmds=
7651 # Just being paranoid about ensuring that cc_basename is set.
7652 for cc_temp in $compiler""; do
7654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7660 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7663 cygwin* | mingw* | pw32*)
7664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7665 # When not using gcc, we currently assume that we are using
7666 # Microsoft Visual C++.
7667 if test "$GCC" != yes; then
7672 # we just hope/assume this is gcc and not c89 (= MSVC++)
7681 if test "$with_gnu_ld" = yes; then
7682 # If archive_cmds runs LD, not CC, wlarc should be empty
7685 # Set some defaults for GNU ld with shared library support. These
7686 # are reset later if shared libraries are not supported. Putting them
7687 # here allows them to be overridden if necessary.
7688 runpath_var=LD_RUN_PATH
7689 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7690 export_dynamic_flag_spec='${wl}--export-dynamic'
7691 # ancient GNU ld didn't support --whole-archive et. al.
7692 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7693 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7695 whole_archive_flag_spec=
7697 supports_anon_versioning=no
7698 case `$LD -v 2>/dev/null` in
7699 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7702 *\ 2.11.*) ;; # other 2.11 versions
7703 *) supports_anon_versioning=yes ;;
7706 # See if GNU ld supports shared libraries.
7708 aix3* | aix4* | aix5*)
7709 # On AIX/PPC, the GNU linker is very broken
7710 if test "$host_cpu" != ia64; then
7714 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7715 *** to be unable to reliably create shared libraries on AIX.
7716 *** Therefore, libtool is disabling shared libraries support. If you
7717 *** really care for shared libraries, you may want to modify your PATH
7718 *** so that a non-GNU linker is found, and then restart.
7725 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)'
7726 hardcode_libdir_flag_spec='-L$libdir'
7727 hardcode_minus_L=yes
7729 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7730 # that the semantics of dynamic libraries on AmigaOS, at least up
7731 # to version 4, is to share data among multiple programs linked
7732 # with the same dynamic library. Since this doesn't match the
7733 # behavior of shared libraries on other platforms, we can't use
7739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7740 allow_undefined_flag=unsupported
7741 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7742 # support --undefined. This deserves some investigation. FIXME
7743 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 cygwin* | mingw* | pw32*)
7750 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7751 # as there is no search path for DLLs.
7752 hardcode_libdir_flag_spec='-L$libdir'
7753 allow_undefined_flag=unsupported
7754 always_export_symbols=no
7755 enable_shared_with_static_runtimes=yes
7756 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7758 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7760 # If the export-symbols file already is a .def file (1st line
7761 # is EXPORTS), use it as is; otherwise, prepend...
7762 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7763 cp $export_symbols $output_objdir/$soname.def;
7765 echo EXPORTS > $output_objdir/$soname.def;
7766 cat $export_symbols >> $output_objdir/$soname.def;
7768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7776 hardcode_shlibpath_var=no
7777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7778 export_dynamic_flag_spec='${wl}-E'
7779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7780 # Instead, shared libraries are loaded at an image base (0x10000000 by
7781 # default) and relocated if they conflict, which is a slow very memory
7782 # consuming and fragmenting process. To avoid this, we pick a random,
7783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7784 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7786 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'
7789 linux* | k*bsd*-gnu)
7790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7792 case $cc_basename,$host_cpu in
7793 pgcc*) # Portland Group C compiler
7794 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'
7795 tmp_addflag=' $pic_flag'
7797 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7798 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'
7799 tmp_addflag=' $pic_flag -Mnomain' ;;
7800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7801 tmp_addflag=' -i_dynamic' ;;
7802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7803 tmp_addflag=' -i_dynamic -nofor_main' ;;
7804 ifc* | ifort*) # Intel Fortran compiler
7805 tmp_addflag=' -nofor_main' ;;
7807 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7809 if test $supports_anon_versioning = yes; then
7810 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7812 $echo "local: *; };" >> $output_objdir/$libname.ver~
7813 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7821 netbsd* | netbsdelf*-gnu)
7822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7837 *** create shared libraries on Solaris systems. Therefore, libtool
7838 *** is disabling shared libraries support. We urge you to upgrade GNU
7839 *** binutils to release 2.9.1 or newer. Another option is to modify
7840 *** your PATH or compiler configuration so that the native linker is
7841 *** used, and then restart.
7844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7853 case `$LD -v 2>&1` in
7854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7859 *** reliably create shared libraries on SCO systems. Therefore, libtool
7860 *** is disabling shared libraries support. We urge you to upgrade GNU
7861 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7862 *** your PATH or compiler configuration so that the native linker is
7863 *** used, and then restart.
7868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7869 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7880 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7883 hardcode_shlibpath_var=no
7887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7896 if test "$ld_shlibs" = no; then
7898 hardcode_libdir_flag_spec=
7899 export_dynamic_flag_spec=
7900 whole_archive_flag_spec=
7903 # PORTME fill in a description of your system's linker (not GNU ld)
7906 allow_undefined_flag=unsupported
7907 always_export_symbols=yes
7908 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'
7909 # Note: this linker hardcodes the directories in LIBPATH if there
7910 # are no directories specified by -L.
7911 hardcode_minus_L=yes
7912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7913 # Neither direct hardcoding nor static linking is supported with a
7915 hardcode_direct=unsupported
7920 if test "$host_cpu" = ia64; then
7921 # On IA64, the linker does run time linking by default, so we don't
7922 # have to do anything special.
7923 aix_use_runtimelinking=no
7924 exp_sym_flag='-Bexport'
7927 # If we're using GNU nm, then we don't want the "-C" option.
7928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7929 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7930 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'
7932 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'
7934 aix_use_runtimelinking=no
7936 # Test if we are trying to use run time linking or normal
7937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7938 # need to do runtime linking.
7939 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7940 for ld_flag in $LDFLAGS; do
7941 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7942 aix_use_runtimelinking=yes
7949 exp_sym_flag='-bexport'
7950 no_entry_flag='-bnoentry'
7953 # When large executables or shared objects are built, AIX ld can
7954 # have problems creating the table of contents. If linking a library
7955 # or program results in "error TOC overflow" add -mminimal-toc to
7956 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7957 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7961 hardcode_libdir_separator=':'
7962 link_all_deplibs=yes
7964 if test "$GCC" = yes; then
7965 case $host_os in aix4.[012]|aix4.[012].*)
7966 # We only want to do this on AIX 4.2 and lower, the check
7967 # below for broken collect2 doesn't work under 4.3+
7968 collect2name=`${CC} -print-prog-name=collect2`
7969 if test -f "$collect2name" && \
7970 strings "$collect2name" | grep resolve_lib_name >/dev/null
7972 # We have reworked collect2
7975 # We have old collect2
7976 hardcode_direct=unsupported
7977 # It fails to find uninstalled libraries when the uninstalled
7978 # path is not listed in the libpath. Setting hardcode_minus_L
7979 # to unsupported forces relinking
7980 hardcode_minus_L=yes
7981 hardcode_libdir_flag_spec='-L$libdir'
7982 hardcode_libdir_separator=
7986 shared_flag='-shared'
7987 if test "$aix_use_runtimelinking" = yes; then
7988 shared_flag="$shared_flag "'${wl}-G'
7992 if test "$host_cpu" = ia64; then
7993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7994 # chokes on -Wl,-G. The following line is correct:
7997 if test "$aix_use_runtimelinking" = yes; then
7998 shared_flag='${wl}-G'
8000 shared_flag='${wl}-bM:SRE'
8005 # It seems that -bexpall does not export symbols beginning with
8006 # underscore (_), so it is better to generate a list of symbols to export.
8007 always_export_symbols=yes
8008 if test "$aix_use_runtimelinking" = yes; then
8009 # Warning - without using the other runtime loading flags (-brtl),
8010 # -berok will link without error, but may produce a broken library.
8011 allow_undefined_flag='-berok'
8012 # Determine the default libpath from the value encoded in an empty executable.
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8049 # Check for a 64-bit object if we didn't find anything.
8050 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; }
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060 conftest$ac_exeext conftest.$ac_ext
8061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8064 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"
8066 if test "$host_cpu" = ia64; then
8067 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8068 allow_undefined_flag="-z nodefs"
8069 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"
8071 # Determine the default libpath from the value encoded in an empty executable.
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext &&
8104 $as_test_x conftest$ac_exeext; then
8106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8108 # Check for a 64-bit object if we didn't find anything.
8109 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; }
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119 conftest$ac_exeext conftest.$ac_ext
8120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8123 # Warning - without using the other run time loading flags,
8124 # -berok will link without error, but may produce a broken library.
8125 no_undefined_flag=' ${wl}-bernotok'
8126 allow_undefined_flag=' ${wl}-berok'
8127 # Exported symbols can be pulled into shared objects from archives
8128 whole_archive_flag_spec='$convenience'
8129 archive_cmds_need_lc=yes
8130 # This is similar to how AIX traditionally builds its shared libraries.
8131 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'
8137 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)'
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_minus_L=yes
8140 # see comment about different semantics on the GNU ld section
8145 export_dynamic_flag_spec=-rdynamic
8148 cygwin* | mingw* | pw32*)
8149 # When not using gcc, we currently assume that we are using
8150 # Microsoft Visual C++.
8151 # hardcode_libdir_flag_spec is actually meaningless, as there is
8152 # no search path for DLLs.
8153 hardcode_libdir_flag_spec=' '
8154 allow_undefined_flag=unsupported
8155 # Tell ltmain to make .lib files, not .a files.
8157 # Tell ltmain to make .dll files, not .so files.
8159 # FIXME: Setting linknames here is a bad hack.
8160 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8161 # The linker will automatically build a .lib file if we build a DLL.
8162 old_archive_From_new_cmds='true'
8163 # FIXME: Should let the user specify the lib program.
8164 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8165 fix_srcfile_path='`cygpath -w "$srcfile"`'
8166 enable_shared_with_static_runtimes=yes
8169 darwin* | rhapsody*)
8171 rhapsody* | darwin1.[012])
8172 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8176 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8178 case ${MACOSX_DEPLOYMENT_TARGET} in
8180 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8183 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8189 archive_cmds_need_lc=no
8191 hardcode_automatic=yes
8192 hardcode_shlibpath_var=unsupported
8193 whole_archive_flag_spec=''
8194 link_all_deplibs=yes
8195 if test "$GCC" = yes ; then
8196 output_verbose_link_cmd='echo'
8197 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8198 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8200 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}'
8201 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}'
8203 case $cc_basename in
8205 output_verbose_link_cmd='echo'
8206 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8207 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8209 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}'
8210 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}'
8220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8221 hardcode_libdir_flag_spec='-L$libdir'
8222 hardcode_shlibpath_var=no
8229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8230 # support. Future versions do this automatically, but an explicit c++rt0.o
8231 # does not break anything, and helps significantly (at the cost of a little
8234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8235 hardcode_libdir_flag_spec='-R$libdir'
8237 hardcode_shlibpath_var=no
8240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_minus_L=yes
8245 hardcode_shlibpath_var=no
8248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8249 freebsd* | dragonfly*)
8250 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8251 hardcode_libdir_flag_spec='-R$libdir'
8253 hardcode_shlibpath_var=no
8257 if test "$GCC" = yes; then
8258 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'
8260 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'
8262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8263 hardcode_libdir_separator=:
8266 # hardcode_minus_L: Not really in the search PATH,
8267 # but as the default location of the library.
8268 hardcode_minus_L=yes
8269 export_dynamic_flag_spec='${wl}-E'
8273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8274 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8278 if test "$with_gnu_ld" = no; then
8279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8280 hardcode_libdir_separator=:
8283 export_dynamic_flag_spec='${wl}-E'
8285 # hardcode_minus_L: Not really in the search PATH,
8286 # but as the default location of the library.
8287 hardcode_minus_L=yes
8292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8295 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8298 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8307 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8310 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8313 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8317 if test "$with_gnu_ld" = no; then
8318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8319 hardcode_libdir_separator=:
8323 hardcode_libdir_flag_spec_ld='+b $libdir'
8325 hardcode_shlibpath_var=no
8329 export_dynamic_flag_spec='${wl}-E'
8331 # hardcode_minus_L: Not really in the search PATH,
8332 # but as the default location of the library.
8333 hardcode_minus_L=yes
8339 irix5* | irix6* | nonstopux*)
8340 if test "$GCC" = yes; then
8341 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'
8343 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'
8344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8347 hardcode_libdir_separator=:
8348 link_all_deplibs=yes
8351 netbsd* | netbsdelf*-gnu)
8352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8355 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8357 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_shlibpath_var=no
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367 hardcode_shlibpath_var=no
8372 hardcode_shlibpath_var=no
8373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8377 export_dynamic_flag_spec='${wl}-E'
8380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_libdir_flag_spec='-R$libdir'
8385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8393 hardcode_libdir_flag_spec='-L$libdir'
8394 hardcode_minus_L=yes
8395 allow_undefined_flag=unsupported
8396 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'
8397 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8401 if test "$GCC" = yes; then
8402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8403 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'
8405 allow_undefined_flag=' -expect_unresolved \*'
8406 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'
8408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8409 hardcode_libdir_separator=:
8412 osf4* | osf5*) # as osf3* with the addition of -msym flag
8413 if test "$GCC" = yes; then
8414 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8415 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'
8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 allow_undefined_flag=' -expect_unresolved \*'
8419 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'
8420 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8421 $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'
8423 # Both c and cxx compiler support -rpath directly
8424 hardcode_libdir_flag_spec='-rpath $libdir'
8426 hardcode_libdir_separator=:
8430 no_undefined_flag=' -z text'
8431 if test "$GCC" = yes; then
8433 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8435 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8442 hardcode_libdir_flag_spec='-R$libdir'
8443 hardcode_shlibpath_var=no
8445 solaris2.[0-5] | solaris2.[0-5].*) ;;
8447 # The compiler driver will combine linker options so we
8448 # cannot just pass the convience library names through
8449 # without $wl, iff we do not link with $LD.
8450 # Luckily, gcc supports the same syntax we need for Sun Studio.
8451 # Supported since Solaris 2.6 (maybe 2.5.1?)
8454 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8456 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' ;;
8459 link_all_deplibs=yes
8463 if test "x$host_vendor" = xsequent; then
8464 # Use $CC to link under sequent, because it throws in some extra .o
8465 # files that make .init and .fini sections work.
8466 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_minus_L=yes
8473 hardcode_shlibpath_var=no
8477 case $host_vendor in
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_direct=yes # is this really true???
8483 ## LD is ld it makes a PLAMLIB
8484 ## CC just makes a GrossModule.
8485 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8486 reload_cmds='$CC -r -o $output$reload_objs'
8490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8491 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8494 runpath_var='LD_RUN_PATH'
8495 hardcode_shlibpath_var=no
8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_shlibpath_var=no
8501 export_dynamic_flag_spec='-Bexport'
8505 if test -d /usr/nec; then
8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_shlibpath_var=no
8508 runpath_var=LD_RUN_PATH
8509 hardcode_runpath_var=yes
8514 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8515 no_undefined_flag='${wl}-z,text'
8516 archive_cmds_need_lc=no
8517 hardcode_shlibpath_var=no
8518 runpath_var='LD_RUN_PATH'
8520 if test "$GCC" = yes; then
8521 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 sysv5* | sco3.2v5* | sco5v6*)
8530 # Note: We can NOT use -z defs as we might desire, because we do not
8531 # link with -lc, and that would cause any symbols used from libc to
8532 # always be unresolved, which means just about no library would
8533 # ever link correctly. If we're not using GNU ld we use -z text
8534 # though, which does catch some bad symbols but isn't as heavy-handed
8536 no_undefined_flag='${wl}-z,text'
8537 allow_undefined_flag='${wl}-z,nodefs'
8538 archive_cmds_need_lc=no
8539 hardcode_shlibpath_var=no
8540 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8541 hardcode_libdir_separator=':'
8542 link_all_deplibs=yes
8543 export_dynamic_flag_spec='${wl}-Bexport'
8544 runpath_var='LD_RUN_PATH'
8546 if test "$GCC" = yes; then
8547 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8548 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8551 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_shlibpath_var=no
8567 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8568 echo "${ECHO_T}$ld_shlibs" >&6; }
8569 test "$ld_shlibs" = no && can_build_shared=no
8572 # Do we need to explicitly link libc?
8574 case "x$archive_cmds_need_lc" in
8576 # Assume -lc should be added
8577 archive_cmds_need_lc=yes
8579 if test "$enable_shared" = yes && test "$GCC" = yes; then
8580 case $archive_cmds in
8582 # FIXME: we may have to deal with multi-command sequences.
8585 # Test whether the compiler implicitly links with -lc since on some
8586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8587 # to ld, don't add -lc before -lgcc.
8588 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } 2>conftest.err; then
8600 libobjs=conftest.$ac_objext
8602 wl=$lt_prog_compiler_wl
8603 pic_flag=$lt_prog_compiler_pic
8609 lt_save_allow_undefined_flag=$allow_undefined_flag
8610 allow_undefined_flag=
8611 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8612 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }
8617 archive_cmds_need_lc=no
8619 archive_cmds_need_lc=yes
8621 allow_undefined_flag=$lt_save_allow_undefined_flag
8623 cat conftest.err 1>&5
8626 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8627 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8637 libname_spec='lib$name'
8645 shlibpath_overrides_runpath=unknown
8647 dynamic_linker="$host_os ld.so"
8648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8649 if test "$GCC" = yes; then
8650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8652 # if the path contains ";" then we assume it to be the separator
8653 # otherwise default to the standard path separator (i.e. ":") - it is
8654 # assumed that no part of a normal pathname contains ";" but that should
8655 # okay in the real world where ";" in dirpaths is itself problematic.
8656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8663 need_lib_prefix=unknown
8664 hardcode_into_libs=no
8666 # when you set need_version to no, make sure it does not cause -set_version
8667 # flags to be left without arguments
8668 need_version=unknown
8673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8674 shlibpath_var=LIBPATH
8676 # AIX 3 has no versioning support, so we append a major version to the name.
8677 soname_spec='${libname}${release}${shared_ext}$major'
8684 hardcode_into_libs=yes
8685 if test "$host_cpu" = ia64; then
8686 # AIX 5 supports IA64
8687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8688 shlibpath_var=LD_LIBRARY_PATH
8690 # With GCC up to 2.95.x, collect2 would create an import file
8691 # for dependence libraries. The import file would start with
8692 # the line `#! .'. This would cause the generated library to
8693 # depend on `.', always an invalid library. This was fixed in
8694 # development snapshots of GCC prior to 3.0.
8696 aix4 | aix4.[01] | aix4.[01].*)
8697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8707 # soname into executable. Probably we can add versioning support to
8708 # collect2, so additional links can be useful in future.
8709 if test "$aix_use_runtimelinking" = yes; then
8710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8711 # instead of lib<name>.a to let people know that these are not
8712 # typical AIX shared libraries.
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8715 # We preserve .a as extension for shared libraries through AIX4.2
8716 # and later when we are not doing run time linking.
8717 library_names_spec='${libname}${release}.a $libname.a'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8720 shlibpath_var=LIBPATH
8725 library_names_spec='$libname.ixlibrary $libname.a'
8726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8727 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'
8731 library_names_spec='${libname}${shared_ext}'
8732 dynamic_linker="$host_os ld.so"
8733 shlibpath_var=LIBRARY_PATH
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8742 shlibpath_var=LD_LIBRARY_PATH
8743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8745 # the default ld.so.conf also contains /usr/contrib/lib and
8746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8747 # libtool to hard-code these into programs
8750 cygwin* | mingw* | pw32*)
8751 version_type=windows
8756 case $GCC,$host_os in
8757 yes,cygwin* | yes,mingw* | yes,pw32*)
8758 library_names_spec='$libname.dll.a'
8759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8760 postinstall_cmds='base_file=`basename \${file}`~
8761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8762 dldir=$destdir/`dirname \$dlpath`~
8763 test -d \$dldir || mkdir -p \$dldir~
8764 $install_prog $dir/$dlname \$dldir/$dlname~
8765 chmod a+x \$dldir/$dlname'
8766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8767 dlpath=$dir/\$dldll~
8769 shlibpath_overrides_runpath=yes
8773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8778 # MinGW DLLs use traditional 'lib' prefix
8779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8782 # It is most probably a Windows format PATH printed by
8783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8784 # path with ; separators, and with drive letters. We can handle the
8785 # drive letters (cygwin fileutils understands them), so leave them,
8786 # especially as we might pass files found there to a mingw objdump,
8787 # which wouldn't understand a cygwinified path. Ahh.
8788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8794 # pw32 DLLs use 'pw' prefix rather than 'lib'
8795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8804 dynamic_linker='Win32 ld.exe'
8805 # FIXME: first we should search . and the directory the executable is in
8809 darwin* | rhapsody*)
8810 dynamic_linker="$host_os dyld"
8814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8815 soname_spec='${libname}${release}${major}$shared_ext'
8816 shlibpath_overrides_runpath=yes
8817 shlibpath_var=DYLD_LIBRARY_PATH
8818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8820 if test "$GCC" = yes; then
8821 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"`
8823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 shlibpath_var=LD_LIBRARY_PATH
8841 freebsd* | dragonfly*)
8842 # DragonFly does not have aout. When/if they implement a new
8843 # versioning mechanism, adjust this.
8844 if test -x /usr/bin/objformat; then
8845 objformat=`/usr/bin/objformat`
8848 freebsd[123]*) objformat=aout ;;
8852 version_type=freebsd-$objformat
8853 case $version_type in
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8864 shlibpath_var=LD_LIBRARY_PATH
8867 shlibpath_overrides_runpath=yes
8869 freebsd3.[01]* | freebsdelf3.[01]*)
8870 shlibpath_overrides_runpath=yes
8871 hardcode_into_libs=yes
8873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8875 shlibpath_overrides_runpath=no
8876 hardcode_into_libs=yes
8878 freebsd*) # from 4.6 on
8879 shlibpath_overrides_runpath=yes
8880 hardcode_into_libs=yes
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 shlibpath_var=LD_LIBRARY_PATH
8892 hardcode_into_libs=yes
8895 hpux9* | hpux10* | hpux11*)
8896 # Give a soname corresponding to the major version so that dld.sl refuses to
8897 # link against other versions.
8904 hardcode_into_libs=yes
8905 dynamic_linker="$host_os dld.so"
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 if test "X$HPUX_IA64_MODE" = X32; then
8911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919 hardcode_into_libs=yes
8920 dynamic_linker="$host_os dld.sl"
8921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8930 dynamic_linker="$host_os dld.sl"
8931 shlibpath_var=SHLIB_PATH
8932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8938 postinstall_cmds='chmod 555 $lib'
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=no
8950 hardcode_into_libs=yes
8953 irix5* | irix6* | nonstopux*)
8955 nonstopux*) version_type=nonstopux ;;
8957 if test "$lt_cv_prog_gnu_ld" = yes; then
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8968 irix5* | nonstopux*)
8972 case $LD in # libtool.m4 will add one of these switches to LD
8973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8974 libsuff= shlibsuff= libmagic=32-bit;;
8975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8976 libsuff=32 shlibsuff=N32 libmagic=N32;;
8977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8979 *) libsuff= shlibsuff= libmagic=never-match;;
8983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8984 shlibpath_overrides_runpath=no
8985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8987 hardcode_into_libs=yes
8990 # No shared lib support for Linux oldld, aout, or coff.
8991 linux*oldld* | linux*aout* | linux*coff*)
8995 # This must be Linux ELF.
8996 linux* | k*bsd*-gnu)
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 # This implies no fast_install, which is unacceptable.
9006 # Some rework will be needed to allow for fast_install
9007 # before this can be enabled.
9008 hardcode_into_libs=yes
9010 # Append ld.so.conf contents to the search path
9011 if test -f /etc/ld.so.conf; then
9012 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' ' '`
9013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9016 # We used to test for /lib/ld.so.1 and disable shared libraries on
9017 # powerpc, because MkLinux only supported shared libraries with the
9018 # GNU dynamic linker. Since this was broken with cross compilers,
9019 # most powerpc-linux boxes support dynamic linking these days and
9020 # people can always --disable-shared, the test was removed, and we
9021 # assume the GNU/Linux dynamic linker is in use.
9022 dynamic_linker='GNU/Linux ld.so'
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 hardcode_into_libs=yes
9034 dynamic_linker='NetBSD ld.elf_so'
9041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9044 dynamic_linker='NetBSD (a.out) ld.so'
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 dynamic_linker='NetBSD ld.elf_so'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 hardcode_into_libs=yes
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9074 sys_lib_dlsearch_path_spec="/usr/lib"
9076 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9078 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9079 *) need_version=no ;;
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9086 openbsd2.[89] | openbsd2.[89].*)
9087 shlibpath_overrides_runpath=no
9090 shlibpath_overrides_runpath=yes
9094 shlibpath_overrides_runpath=yes
9099 libname_spec='$name'
9102 library_names_spec='$libname${shared_ext} $libname.a'
9103 dynamic_linker='OS/2 ld.exe'
9104 shlibpath_var=LIBPATH
9107 osf3* | osf4* | osf5*)
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 hardcode_into_libs=yes
9127 # ldd complains unless libraries are executable
9128 postinstall_cmds='chmod +x $lib'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9137 if test "$with_gnu_ld" = yes; then
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 case $host_vendor in
9150 shlibpath_overrides_runpath=no
9152 export_dynamic_flag_spec='${wl}-Blargedynsym'
9153 runpath_var=LD_RUN_PATH
9161 shlibpath_overrides_runpath=no
9162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9168 if test -d /usr/nec ;then
9170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9171 soname_spec='$libname${shared_ext}.$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9177 version_type=freebsd-elf
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 hardcode_into_libs=yes
9184 if test "$with_gnu_ld" = yes; then
9185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9186 shlibpath_overrides_runpath=no
9188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9189 shlibpath_overrides_runpath=yes
9192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9196 sys_lib_dlsearch_path_spec='/usr/lib'
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9211 echo "${ECHO_T}$dynamic_linker" >&6; }
9212 test "$dynamic_linker" = no && can_build_shared=no
9214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9215 if test "$GCC" = yes; then
9216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9222 if test -n "$hardcode_libdir_flag_spec" || \
9223 test -n "$runpath_var" || \
9224 test "X$hardcode_automatic" = "Xyes" ; then
9226 # We can hardcode non-existant directories.
9227 if test "$hardcode_direct" != no &&
9228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9229 # have to relink, otherwise we might link with an installed library
9230 # when we should be linking with a yet-to-be-installed one
9231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9232 test "$hardcode_minus_L" != no; then
9233 # Linking always hardcodes the temporary library directory.
9234 hardcode_action=relink
9236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9237 hardcode_action=immediate
9240 # We cannot hardcode anything, or else we can only hardcode existing
9242 hardcode_action=unsupported
9244 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9245 echo "${ECHO_T}$hardcode_action" >&6; }
9247 if test "$hardcode_action" = relink; then
9248 # Fast installation is not supported
9249 enable_fast_install=no
9250 elif test "$shlibpath_overrides_runpath" = yes ||
9251 test "$enable_shared" = no; then
9252 # Fast installation is not necessary
9253 enable_fast_install=needless
9258 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9263 { echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6; }
9266 # FIXME - insert some real tests, host_os isn't really good enough
9269 if test -n "$STRIP" ; then
9270 striplib="$STRIP -x"
9271 { echo "$as_me:$LINENO: result: yes" >&5
9272 echo "${ECHO_T}yes" >&6; }
9274 { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9279 { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9285 if test "x$enable_dlopen" != xyes; then
9286 enable_dlopen=unknown
9287 enable_dlopen_self=unknown
9288 enable_dlopen_self_static=unknown
9295 lt_cv_dlopen="load_add_on"
9297 lt_cv_dlopen_self=yes
9301 lt_cv_dlopen="LoadLibrary"
9306 lt_cv_dlopen="dlopen"
9311 # if libdl is installed we need to link against it
9312 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9313 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 ac_check_lib_save_LIBS=$LIBS
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_link") 2>conftest.er1
9350 grep -v '^ *+' conftest.er1 >conftest.err
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest$ac_exeext &&
9358 $as_test_x conftest$ac_exeext; then
9359 ac_cv_lib_dl_dlopen=yes
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_lib_dl_dlopen=no
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9371 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9373 if test $ac_cv_lib_dl_dlopen = yes; then
9374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9379 lt_cv_dlopen_self=yes
9386 { echo "$as_me:$LINENO: checking for shl_load" >&5
9387 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9388 if test "${ac_cv_func_shl_load+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9399 #define shl_load innocuous_shl_load
9401 /* System header to define __stub macros and hopefully few prototypes,
9402 which can conflict with char shl_load (); below.
9403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9404 <limits.h> exists even on freestanding compilers. */
9407 # include <limits.h>
9409 # include <assert.h>
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9421 /* The GNU C library defines this for functions which it implements
9422 to always fail with ENOSYS. Some functions are actually named
9423 something starting with __ and the normal name is an alias. */
9424 #if defined __stub_shl_load || defined __stub___shl_load
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (ac_try="$ac_link"
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_link") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest$ac_exeext &&
9453 $as_test_x conftest$ac_exeext; then
9454 ac_cv_func_shl_load=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_func_shl_load=no
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463 conftest$ac_exeext conftest.$ac_ext
9465 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9466 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9467 if test $ac_cv_func_shl_load = yes; then
9468 lt_cv_dlopen="shl_load"
9470 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9471 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 ac_check_lib_save_LIBS=$LIBS
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506 (eval "$ac_link") 2>conftest.er1
9508 grep -v '^ *+' conftest.er1 >conftest.err
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_c_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest$ac_exeext &&
9516 $as_test_x conftest$ac_exeext; then
9517 ac_cv_lib_dld_shl_load=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_lib_dld_shl_load=no
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9530 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9531 if test $ac_cv_lib_dld_shl_load = yes; then
9532 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9534 { echo "$as_me:$LINENO: checking for dlopen" >&5
9535 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_dlopen+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9547 #define dlopen innocuous_dlopen
9549 /* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char dlopen (); below.
9551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552 <limits.h> exists even on freestanding compilers. */
9555 # include <limits.h>
9557 # include <assert.h>
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9569 /* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572 #if defined __stub_dlopen || defined __stub___dlopen
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext &&
9601 $as_test_x conftest$ac_exeext; then
9602 ac_cv_func_dlopen=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_func_dlopen=no
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611 conftest$ac_exeext conftest.$ac_ext
9613 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9615 if test $ac_cv_func_dlopen = yes; then
9616 lt_cv_dlopen="dlopen"
9618 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 ac_check_lib_save_LIBS=$LIBS
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_lib_dl_dlopen=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_lib_dl_dlopen=no
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9679 if test $ac_cv_lib_dl_dlopen = yes; then
9680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9682 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9683 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9684 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 ac_check_lib_save_LIBS=$LIBS
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
9729 ac_cv_lib_svld_dlopen=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_lib_svld_dlopen=no
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9741 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9742 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9743 if test $ac_cv_lib_svld_dlopen = yes; then
9744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9746 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9747 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9748 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_check_lib_save_LIBS=$LIBS
9753 cat >conftest.$ac_ext <<_ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1 >conftest.err
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext &&
9792 $as_test_x conftest$ac_exeext; then
9793 ac_cv_lib_dld_dld_link=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_lib_dld_dld_link=no
9801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9807 if test $ac_cv_lib_dld_dld_link = yes; then
9808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9829 if test "x$lt_cv_dlopen" != xno; then
9835 case $lt_cv_dlopen in
9837 save_CPPFLAGS="$CPPFLAGS"
9838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9840 save_LDFLAGS="$LDFLAGS"
9841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9844 LIBS="$lt_cv_dlopen_libs $LIBS"
9846 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9847 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9848 if test "${lt_cv_dlopen_self+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 if test "$cross_compiling" = yes; then :
9852 lt_cv_dlopen_self=cross
9854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9855 lt_status=$lt_dlunknown
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9857 "configure"
9858 #include "confdefs.h"
9867 # define LT_DLGLOBAL RTLD_GLOBAL
9870 # define LT_DLGLOBAL DL_GLOBAL
9872 # define LT_DLGLOBAL 0
9876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9877 find out it does not work in some platform. */
9878 #ifndef LT_DLLAZY_OR_NOW
9880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9883 # define LT_DLLAZY_OR_NOW DL_LAZY
9886 # define LT_DLLAZY_OR_NOW RTLD_NOW
9889 # define LT_DLLAZY_OR_NOW DL_NOW
9891 # define LT_DLLAZY_OR_NOW 0
9899 extern "C" void exit (int);
9902 void fnord() { int i=42;}
9905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9906 int status = $lt_dlunknown;
9910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9911 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9912 /* dlclose (self); */
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9925 (./conftest; exit; ) >&5 2>/dev/null
9928 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9929 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9930 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9933 # compilation failed
9934 lt_cv_dlopen_self=no
9941 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9942 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9944 if test "x$lt_cv_dlopen_self" = xyes; then
9945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9946 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9947 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9948 if test "${lt_cv_dlopen_self_static+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 if test "$cross_compiling" = yes; then :
9952 lt_cv_dlopen_self_static=cross
9954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9955 lt_status=$lt_dlunknown
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9957 "configure"
9958 #include "confdefs.h"
9967 # define LT_DLGLOBAL RTLD_GLOBAL
9970 # define LT_DLGLOBAL DL_GLOBAL
9972 # define LT_DLGLOBAL 0
9976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9977 find out it does not work in some platform. */
9978 #ifndef LT_DLLAZY_OR_NOW
9980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9983 # define LT_DLLAZY_OR_NOW DL_LAZY
9986 # define LT_DLLAZY_OR_NOW RTLD_NOW
9989 # define LT_DLLAZY_OR_NOW DL_NOW
9991 # define LT_DLLAZY_OR_NOW 0
9999 extern "C" void exit (int);
10002 void fnord() { int i=42;}
10005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10006 int status = $lt_dlunknown;
10010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10012 /* dlclose (self); */
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10025 (./conftest; exit; ) >&5 2>/dev/null
10027 case x$lt_status in
10028 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10029 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10030 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10033 # compilation failed
10034 lt_cv_dlopen_self_static=no
10041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10042 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10045 CPPFLAGS="$save_CPPFLAGS"
10046 LDFLAGS="$save_LDFLAGS"
10051 case $lt_cv_dlopen_self in
10052 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10053 *) enable_dlopen_self=unknown ;;
10056 case $lt_cv_dlopen_self_static in
10057 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10058 *) enable_dlopen_self_static=unknown ;;
10063 # Report which library types will actually be built
10064 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10065 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10066 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10067 echo "${ECHO_T}$can_build_shared" >&6; }
10069 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10070 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10071 test "$can_build_shared" = "no" && enable_shared=no
10073 # On AIX, shared libraries and static libraries use the same namespace, and
10074 # are all built from PIC.
10077 test "$enable_shared" = yes && enable_static=no
10078 if test -n "$RANLIB"; then
10079 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10080 postinstall_cmds='$RANLIB $lib'
10085 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10086 test "$enable_shared" = yes && enable_static=no
10090 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10091 echo "${ECHO_T}$enable_shared" >&6; }
10093 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10094 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10095 # Make sure either enable_shared or enable_static is yes.
10096 test "$enable_shared" = yes || enable_static=yes
10097 { echo "$as_me:$LINENO: result: $enable_static" >&5
10098 echo "${ECHO_T}$enable_static" >&6; }
10100 # The else clause should only fire when bootstrapping the
10101 # libtool distribution, otherwise you forgot to ship ltmain.sh
10102 # with your package, and you will get complaints that there are
10103 # no rules to generate ltmain.sh.
10104 if test -f "$ltmain"; then
10105 # See if we are running on zsh, and set the options which allow our commands through
10106 # without removal of \ escapes.
10107 if test -n "${ZSH_VERSION+set}" ; then
10108 setopt NO_GLOB_SUBST
10110 # Now quote all the things that may contain metacharacters while being
10111 # careful not to overquote the AC_SUBSTed values. We take copies of the
10112 # variables and quote the copies for generation of the libtool script.
10113 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10115 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10116 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10117 deplibs_check_method reload_flag reload_cmds need_locks \
10118 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10119 lt_cv_sys_global_symbol_to_c_name_address \
10120 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10121 old_postinstall_cmds old_postuninstall_cmds \
10125 lt_prog_compiler_wl \
10126 lt_prog_compiler_pic \
10127 lt_prog_compiler_static \
10128 lt_prog_compiler_no_builtin_flag \
10129 export_dynamic_flag_spec \
10130 thread_safe_flag_spec \
10131 whole_archive_flag_spec \
10132 enable_shared_with_static_runtimes \
10134 old_archive_from_new_cmds \
10139 compiler_lib_search_path \
10141 archive_expsym_cmds \
10143 postuninstall_cmds \
10144 old_archive_from_expsyms_cmds \
10145 allow_undefined_flag \
10146 no_undefined_flag \
10147 export_symbols_cmds \
10148 hardcode_libdir_flag_spec \
10149 hardcode_libdir_flag_spec_ld \
10150 hardcode_libdir_separator \
10151 hardcode_automatic \
10153 module_expsym_cmds \
10154 lt_cv_prog_compiler_c_o \
10156 include_expsyms; do
10159 old_archive_cmds | \
10160 old_archive_from_new_cmds | \
10162 archive_expsym_cmds | \
10164 module_expsym_cmds | \
10165 old_archive_from_expsyms_cmds | \
10166 export_symbols_cmds | \
10167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10168 postinstall_cmds | postuninstall_cmds | \
10169 old_postinstall_cmds | old_postuninstall_cmds | \
10170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10171 # Double-quote double-evaled strings.
10172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10181 *'\$0 --fallback-echo"')
10182 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10186 cfgfile="${ofile}T"
10187 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10189 { echo "$as_me:$LINENO: creating $ofile" >&5
10190 echo "$as_me: creating $ofile" >&6;}
10192 cat <<__EOF__ >> "$cfgfile"
10195 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10196 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10200 # Free Software Foundation, Inc.
10202 # This file is part of GNU Libtool:
10203 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10205 # This program is free software; you can redistribute it and/or modify
10206 # it under the terms of the GNU General Public License as published by
10207 # the Free Software Foundation; either version 2 of the License, or
10208 # (at your option) any later version.
10210 # This program is distributed in the hope that it will be useful, but
10211 # WITHOUT ANY WARRANTY; without even the implied warranty of
10212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10213 # General Public License for more details.
10215 # You should have received a copy of the GNU General Public License
10216 # along with this program; if not, write to the Free Software
10217 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10219 # As a special exception to the GNU General Public License, if you
10220 # distribute this file as part of a program that contains a
10221 # configuration script generated by Autoconf, you may include it under
10222 # the same distribution terms that you use for the rest of that program.
10224 # A sed program that does not truncate output.
10227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10228 Xsed="$SED -e 1s/^X//"
10230 # The HP-UX ksh and POSIX shell print the target directory to stdout
10231 # if CDPATH is set.
10232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10234 # The names of the tagged configurations supported by this script.
10237 # ### BEGIN LIBTOOL CONFIG
10239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10241 # Shell to use when invoking shell scripts.
10244 # Whether or not to build shared libraries.
10245 build_libtool_libs=$enable_shared
10247 # Whether or not to build static libraries.
10248 build_old_libs=$enable_static
10250 # Whether or not to add -lc for building shared libraries.
10251 build_libtool_need_lc=$archive_cmds_need_lc
10253 # Whether or not to disallow shared libs when runtime libs are static
10254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10256 # Whether or not to optimize for fast installation.
10257 fast_install=$enable_fast_install
10260 host_alias=$host_alias
10264 # The build system.
10265 build_alias=$build_alias
10269 # An echo program that does not interpret backslashes.
10274 AR_FLAGS=$lt_AR_FLAGS
10279 # LTCC compiler flags.
10280 LTCFLAGS=$lt_LTCFLAGS
10282 # A language-specific compiler.
10285 # Is the compiler the GNU C compiler?
10291 # The linker used to build libraries.
10294 # Whether we need hard or soft links.
10297 # A BSD-compatible nm program.
10300 # A symbol stripping program
10303 # Used to examine libraries when file_magic_cmd begins "file"
10304 MAGIC_CMD=$MAGIC_CMD
10306 # Used on cygwin: DLL creation program.
10309 # Used on cygwin: object dumper.
10312 # Used on cygwin: assembler.
10315 # The name of the directory that contains temporary libtool files.
10318 # How to create reloadable object files.
10319 reload_flag=$lt_reload_flag
10320 reload_cmds=$lt_reload_cmds
10322 # How to pass a linker flag through the compiler.
10323 wl=$lt_lt_prog_compiler_wl
10325 # Object file suffix (normally "o").
10326 objext="$ac_objext"
10328 # Old archive suffix (normally "a").
10331 # Shared library suffix (normally ".so").
10332 shrext_cmds='$shrext_cmds'
10334 # Executable file suffix (normally "").
10337 # Additional compiler flags for building library objects.
10338 pic_flag=$lt_lt_prog_compiler_pic
10341 # What is the maximum length of a command?
10342 max_cmd_len=$lt_cv_sys_max_cmd_len
10344 # Does compiler simultaneously support -c and -o options?
10345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10347 # Must we lock files when doing compilation?
10348 need_locks=$lt_need_locks
10350 # Do we need the lib prefix for modules?
10351 need_lib_prefix=$need_lib_prefix
10353 # Do we need a version for libraries?
10354 need_version=$need_version
10356 # Whether dlopen is supported.
10357 dlopen_support=$enable_dlopen
10359 # Whether dlopen of programs is supported.
10360 dlopen_self=$enable_dlopen_self
10362 # Whether dlopen of statically linked programs is supported.
10363 dlopen_self_static=$enable_dlopen_self_static
10365 # Compiler flag to prevent dynamic linking.
10366 link_static_flag=$lt_lt_prog_compiler_static
10368 # Compiler flag to turn off builtin functions.
10369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10371 # Compiler flag to allow reflexive dlopens.
10372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10374 # Compiler flag to generate shared objects directly from archives.
10375 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10377 # Compiler flag to generate thread-safe objects.
10378 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10380 # Library versioning type.
10381 version_type=$version_type
10383 # Format of library name prefix.
10384 libname_spec=$lt_libname_spec
10386 # List of archive names. First name is the real one, the rest are links.
10387 # The last name is the one that the linker finds with -lNAME.
10388 library_names_spec=$lt_library_names_spec
10390 # The coded name of the library, if different from the real name.
10391 soname_spec=$lt_soname_spec
10393 # Commands used to build and install an old-style archive.
10395 old_archive_cmds=$lt_old_archive_cmds
10396 old_postinstall_cmds=$lt_old_postinstall_cmds
10397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10399 # Create an old-style archive from a shared archive.
10400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10402 # Create a temporary old-style archive to link instead of a shared archive.
10403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10405 # Commands used to build and install a shared archive.
10406 archive_cmds=$lt_archive_cmds
10407 archive_expsym_cmds=$lt_archive_expsym_cmds
10408 postinstall_cmds=$lt_postinstall_cmds
10409 postuninstall_cmds=$lt_postuninstall_cmds
10411 # Commands used to build a loadable module (assumed same as above if empty)
10412 module_cmds=$lt_module_cmds
10413 module_expsym_cmds=$lt_module_expsym_cmds
10415 # Commands to strip libraries.
10416 old_striplib=$lt_old_striplib
10417 striplib=$lt_striplib
10419 # Dependencies to place before the objects being linked to create a
10421 predep_objects=$lt_predep_objects
10423 # Dependencies to place after the objects being linked to create a
10425 postdep_objects=$lt_postdep_objects
10427 # Dependencies to place before the objects being linked to create a
10429 predeps=$lt_predeps
10431 # Dependencies to place after the objects being linked to create a
10433 postdeps=$lt_postdeps
10435 # The library search path used internally by the compiler when linking
10436 # a shared library.
10437 compiler_lib_search_path=$lt_compiler_lib_search_path
10439 # Method to check whether dependent libraries are shared objects.
10440 deplibs_check_method=$lt_deplibs_check_method
10442 # Command to use when deplibs_check_method == file_magic.
10443 file_magic_cmd=$lt_file_magic_cmd
10445 # Flag that allows shared libraries with undefined symbols to be built.
10446 allow_undefined_flag=$lt_allow_undefined_flag
10448 # Flag that forces no undefined symbols.
10449 no_undefined_flag=$lt_no_undefined_flag
10451 # Commands used to finish a libtool library installation in a directory.
10452 finish_cmds=$lt_finish_cmds
10454 # Same as above, but a single script fragment to be evaled but not shown.
10455 finish_eval=$lt_finish_eval
10457 # Take the output of nm and produce a listing of raw symbols and C names.
10458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10460 # Transform the output of nm in a proper C declaration
10461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10463 # Transform the output of nm in a C name address pair
10464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10466 # This is the shared library runtime path variable.
10467 runpath_var=$runpath_var
10469 # This is the shared library path variable.
10470 shlibpath_var=$shlibpath_var
10472 # Is shlibpath searched before the hard-coded library search path?
10473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10475 # How to hardcode a shared library path into an executable.
10476 hardcode_action=$hardcode_action
10478 # Whether we should hardcode library paths into libraries.
10479 hardcode_into_libs=$hardcode_into_libs
10481 # Flag to hardcode \$libdir into a binary during linking.
10482 # This must work even if \$libdir does not exist.
10483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10485 # If ld is used when linking, flag to hardcode \$libdir into
10486 # a binary during linking. This must work even if \$libdir does
10488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10490 # Whether we need a single -rpath flag with a separated argument.
10491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10494 # resulting binary.
10495 hardcode_direct=$hardcode_direct
10497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10498 # resulting binary.
10499 hardcode_minus_L=$hardcode_minus_L
10501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10502 # the resulting binary.
10503 hardcode_shlibpath_var=$hardcode_shlibpath_var
10505 # Set to yes if building a shared library automatically hardcodes DIR into the library
10506 # and all subsequent libraries and executables linked against it.
10507 hardcode_automatic=$hardcode_automatic
10509 # Variables whose values should be saved in libtool wrapper scripts and
10510 # restored at relink time.
10511 variables_saved_for_relink="$variables_saved_for_relink"
10513 # Whether libtool must link a program against all its dependency libraries.
10514 link_all_deplibs=$link_all_deplibs
10516 # Compile-time system search path for libraries
10517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10519 # Run-time system search path for libraries
10520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10522 # Fix the shell variable \$srcfile for the compiler.
10523 fix_srcfile_path="$fix_srcfile_path"
10525 # Set to yes if exported symbols are required.
10526 always_export_symbols=$always_export_symbols
10528 # The commands to list exported symbols.
10529 export_symbols_cmds=$lt_export_symbols_cmds
10531 # The commands to extract the exported symbol list from a shared archive.
10532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10534 # Symbols that should not be listed in the preloaded symbols.
10535 exclude_expsyms=$lt_exclude_expsyms
10537 # Symbols that must always be exported.
10538 include_expsyms=$lt_include_expsyms
10540 # ### END LIBTOOL CONFIG
10547 cat <<\EOF >> "$cfgfile"
10549 # AIX sometimes has problems with the GCC collect2 program. For some
10550 # reason, if we set the COLLECT_NAMES environment variable, the problems
10551 # vanish in a puff of smoke.
10552 if test "X${COLLECT_NAMES+set}" != Xset; then
10554 export COLLECT_NAMES
10560 # We use sed instead of cat because bash on DJGPP gets confused if
10561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10562 # text mode, it properly converts lines to CR/LF. This bash problem
10563 # is reportedly fixed, but why not run on old versions too?
10564 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10566 mv -f "$cfgfile" "$ofile" || \
10567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10571 # If there is no Makefile yet, we rely on a make rule to execute
10572 # `config.status --recheck' to rerun these tests and create the
10573 # libtool script then.
10574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10575 if test -f "$ltmain_in"; then
10576 test -f Makefile && make "$ltmain"
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10590 # Check whether --with-tags was given.
10591 if test "${with_tags+set}" = set; then
10592 withval=$with_tags; tagnames="$withval"
10596 if test -f "$ltmain" && test -n "$tagnames"; then
10597 if test ! -f "${ofile}"; then
10598 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10599 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10602 if test -z "$LTCC"; then
10603 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10604 if test -z "$LTCC"; then
10605 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10606 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10609 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10612 if test -z "$LTCFLAGS"; then
10613 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10616 # Extract list of available tagged configurations in $ofile.
10617 # Note that this assumes the entire list is on one line.
10618 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10621 for tagname in $tagnames; do
10623 # Check whether tagname contains only valid characters
10624 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10626 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10627 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10628 { (exit 1); exit 1; }; }
10632 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10634 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10635 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10636 { (exit 1); exit 1; }; }
10639 # Update the list of available tags.
10640 if test -n "$tagname"; then
10641 echo appending configuration tag \"$tagname\" to $ofile
10645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10647 (test "X$CXX" != "Xg++"))) ; then
10649 ac_cpp='$CXXCPP $CPPFLAGS'
10650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10657 archive_cmds_need_lc_CXX=no
10658 allow_undefined_flag_CXX=
10659 always_export_symbols_CXX=no
10660 archive_expsym_cmds_CXX=
10661 export_dynamic_flag_spec_CXX=
10662 hardcode_direct_CXX=no
10663 hardcode_libdir_flag_spec_CXX=
10664 hardcode_libdir_flag_spec_ld_CXX=
10665 hardcode_libdir_separator_CXX=
10666 hardcode_minus_L_CXX=no
10667 hardcode_shlibpath_var_CXX=unsupported
10668 hardcode_automatic_CXX=no
10670 module_expsym_cmds_CXX=
10671 link_all_deplibs_CXX=unknown
10672 old_archive_cmds_CXX=$old_archive_cmds
10673 no_undefined_flag_CXX=
10674 whole_archive_flag_spec_CXX=
10675 enable_shared_with_static_runtimes_CXX=no
10677 # Dependencies to place before and after the object being linked:
10678 predep_objects_CXX=
10679 postdep_objects_CXX=
10682 compiler_lib_search_path_CXX=
10684 # Source file extension for C++ test sources.
10687 # Object file extension for compiled C++ test sources.
10691 # Code to be used in simple compile tests
10692 lt_simple_compile_test_code="int some_variable = 0;\n"
10694 # Code to be used in simple link tests
10695 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10699 # If no C compiler was specified, use CC.
10702 # If no C compiler flags were specified, use CFLAGS.
10703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10705 # Allow CC to be a program name with arguments.
10709 # save warnings/boilerplate of simple test code
10710 ac_outfile=conftest.$ac_objext
10711 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10713 _lt_compiler_boilerplate=`cat conftest.err`
10716 ac_outfile=conftest.$ac_objext
10717 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10719 _lt_linker_boilerplate=`cat conftest.err`
10723 # Allow CC to be a program name with arguments.
10728 lt_save_with_gnu_ld=$with_gnu_ld
10729 lt_save_path_LD=$lt_cv_path_LD
10730 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10731 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10733 $as_unset lt_cv_prog_gnu_ld
10735 if test -n "${lt_cv_path_LDCXX+set}"; then
10736 lt_cv_path_LD=$lt_cv_path_LDCXX
10738 $as_unset lt_cv_path_LD
10740 test -z "${LDCXX+set}" || LD=$LDCXX
10744 for cc_temp in $compiler""; do
10746 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10747 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10752 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10755 # We don't want -fno-exception wen compiling C++ code, so set the
10756 # no_builtin_flag separately
10757 if test "$GXX" = yes; then
10758 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10760 lt_prog_compiler_no_builtin_flag_CXX=
10763 if test "$GXX" = yes; then
10764 # Set up default GNU C++ configuration
10767 # Check whether --with-gnu-ld was given.
10768 if test "${with_gnu_ld+set}" = set; then
10769 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10775 if test "$GCC" = yes; then
10776 # Check if gcc -print-prog-name=ld gives a path.
10777 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10781 # gcc leaves a trailing carriage return which upsets mingw
10782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10787 # Accept absolute paths.
10789 re_direlt='/[^/][^/]*/\.\./'
10790 # Canonicalize the pathname of ld
10791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10795 test -z "$LD" && LD="$ac_prog"
10798 # If it fails, then pretend we aren't using GCC.
10802 # If it is relative, then search for the first ld in PATH.
10803 with_gnu_ld=unknown
10806 elif test "$with_gnu_ld" = yes; then
10807 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10810 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10813 if test "${lt_cv_path_LD+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 if test -z "$LD"; then
10817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10818 for ac_dir in $PATH; do
10820 test -z "$ac_dir" && ac_dir=.
10821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10822 lt_cv_path_LD="$ac_dir/$ac_prog"
10823 # Check to see if the program is GNU ld. I'd rather use --version,
10824 # but apparently some variants of GNU ld only accept -v.
10825 # Break only if it was the GNU/non-GNU ld that we prefer.
10826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10827 *GNU* | *'with BFD'*)
10828 test "$with_gnu_ld" != no && break
10831 test "$with_gnu_ld" != yes && break
10838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10842 LD="$lt_cv_path_LD"
10843 if test -n "$LD"; then
10844 { echo "$as_me:$LINENO: result: $LD" >&5
10845 echo "${ECHO_T}$LD" >&6; }
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10852 { (exit 1); exit 1; }; }
10853 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10855 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10859 case `$LD -v 2>&1 </dev/null` in
10860 *GNU* | *'with BFD'*)
10861 lt_cv_prog_gnu_ld=yes
10864 lt_cv_prog_gnu_ld=no
10868 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10870 with_gnu_ld=$lt_cv_prog_gnu_ld
10874 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10875 # archiving commands below assume that GNU ld is being used.
10876 if test "$with_gnu_ld" = yes; then
10877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878 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'
10880 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10881 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10883 # If archive_cmds runs LD, not CC, wlarc should be empty
10884 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10885 # investigate it a little bit more. (MM)
10888 # ancient GNU ld didn't support --whole-archive et. al.
10889 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10890 grep 'no-whole-archive' > /dev/null; then
10891 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10893 whole_archive_flag_spec_CXX=
10899 # A generic and very simple default shared library creation
10900 # command for GNU C++ for the case where it uses the native
10901 # linker, instead of GNU ld. If possible, this setting should
10902 # overridden to take advantage of the native linker features on
10903 # the platform it is being used on.
10904 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10907 # Commands to make compiler produce verbose output that lists
10908 # what "hidden" libraries, object files and flags are used when
10909 # linking a shared library.
10910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10918 # PORTME: fill in a description of your system's C++ link characteristics
10919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10924 # FIXME: insert proper C++ library support
10928 if test "$host_cpu" = ia64; then
10929 # On IA64, the linker does run time linking by default, so we don't
10930 # have to do anything special.
10931 aix_use_runtimelinking=no
10932 exp_sym_flag='-Bexport'
10935 aix_use_runtimelinking=no
10937 # Test if we are trying to use run time linking or normal
10938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10939 # need to do runtime linking.
10940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10941 for ld_flag in $LDFLAGS; do
10944 aix_use_runtimelinking=yes
10952 exp_sym_flag='-bexport'
10953 no_entry_flag='-bnoentry'
10956 # When large executables or shared objects are built, AIX ld can
10957 # have problems creating the table of contents. If linking a library
10958 # or program results in "error TOC overflow" add -mminimal-toc to
10959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10962 archive_cmds_CXX=''
10963 hardcode_direct_CXX=yes
10964 hardcode_libdir_separator_CXX=':'
10965 link_all_deplibs_CXX=yes
10967 if test "$GXX" = yes; then
10968 case $host_os in aix4.[012]|aix4.[012].*)
10969 # We only want to do this on AIX 4.2 and lower, the check
10970 # below for broken collect2 doesn't work under 4.3+
10971 collect2name=`${CC} -print-prog-name=collect2`
10972 if test -f "$collect2name" && \
10973 strings "$collect2name" | grep resolve_lib_name >/dev/null
10975 # We have reworked collect2
10976 hardcode_direct_CXX=yes
10978 # We have old collect2
10979 hardcode_direct_CXX=unsupported
10980 # It fails to find uninstalled libraries when the uninstalled
10981 # path is not listed in the libpath. Setting hardcode_minus_L
10982 # to unsupported forces relinking
10983 hardcode_minus_L_CXX=yes
10984 hardcode_libdir_flag_spec_CXX='-L$libdir'
10985 hardcode_libdir_separator_CXX=
10989 shared_flag='-shared'
10990 if test "$aix_use_runtimelinking" = yes; then
10991 shared_flag="$shared_flag "'${wl}-G'
10995 if test "$host_cpu" = ia64; then
10996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10997 # chokes on -Wl,-G. The following line is correct:
11000 if test "$aix_use_runtimelinking" = yes; then
11001 shared_flag='${wl}-G'
11003 shared_flag='${wl}-bM:SRE'
11008 # It seems that -bexpall does not export symbols beginning with
11009 # underscore (_), so it is better to generate a list of symbols to export.
11010 always_export_symbols_CXX=yes
11011 if test "$aix_use_runtimelinking" = yes; then
11012 # Warning - without using the other runtime loading flags (-brtl),
11013 # -berok will link without error, but may produce a broken library.
11014 allow_undefined_flag_CXX='-berok'
11015 # Determine the default libpath from the value encoded in an empty executable.
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_link") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_cxx_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest$ac_exeext &&
11048 $as_test_x conftest$ac_exeext; then
11050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11052 # Check for a 64-bit object if we didn't find anything.
11053 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; }
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11068 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"
11070 if test "$host_cpu" = ia64; then
11071 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11072 allow_undefined_flag_CXX="-z nodefs"
11073 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"
11075 # Determine the default libpath from the value encoded in an empty executable.
11076 cat >conftest.$ac_ext <<_ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_cxx_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11112 # Check for a 64-bit object if we didn't find anything.
11113 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; }
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11123 conftest$ac_exeext conftest.$ac_ext
11124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11126 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11127 # Warning - without using the other run time loading flags,
11128 # -berok will link without error, but may produce a broken library.
11129 no_undefined_flag_CXX=' ${wl}-bernotok'
11130 allow_undefined_flag_CXX=' ${wl}-berok'
11131 # Exported symbols can be pulled into shared objects from archives
11132 whole_archive_flag_spec_CXX='$convenience'
11133 archive_cmds_need_lc_CXX=yes
11134 # This is similar to how AIX traditionally builds its shared libraries.
11135 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'
11141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11142 allow_undefined_flag_CXX=unsupported
11143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11144 # support --undefined. This deserves some investigation. FIXME
11145 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11152 case $cc_basename in
11154 # FIXME: insert proper C++ library support
11160 cygwin* | mingw* | pw32*)
11161 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11162 # as there is no search path for DLLs.
11163 hardcode_libdir_flag_spec_CXX='-L$libdir'
11164 allow_undefined_flag_CXX=unsupported
11165 always_export_symbols_CXX=no
11166 enable_shared_with_static_runtimes_CXX=yes
11168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11169 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'
11170 # If the export-symbols file already is a .def file (1st line
11171 # is EXPORTS), use it as is; otherwise, prepend...
11172 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11173 cp $export_symbols $output_objdir/$soname.def;
11175 echo EXPORTS > $output_objdir/$soname.def;
11176 cat $export_symbols >> $output_objdir/$soname.def;
11178 $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'
11183 darwin* | rhapsody*)
11185 rhapsody* | darwin1.[012])
11186 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11190 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11192 case ${MACOSX_DEPLOYMENT_TARGET} in
11194 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11197 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11203 archive_cmds_need_lc_CXX=no
11204 hardcode_direct_CXX=no
11205 hardcode_automatic_CXX=yes
11206 hardcode_shlibpath_var_CXX=unsupported
11207 whole_archive_flag_spec_CXX=''
11208 link_all_deplibs_CXX=yes
11210 if test "$GXX" = yes ; then
11211 lt_int_apple_cc_single_mod=no
11212 output_verbose_link_cmd='echo'
11213 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11214 lt_int_apple_cc_single_mod=yes
11216 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11217 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11219 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'
11221 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224 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}'
11226 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}'
11228 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}'
11230 case $cc_basename in
11232 output_verbose_link_cmd='echo'
11233 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'
11234 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11236 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}'
11237 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}'
11247 case $cc_basename in
11249 # FIXME: insert proper C++ library support
11253 # Green Hills C++ Compiler
11254 # FIXME: insert proper C++ library support
11258 # FIXME: insert proper C++ library support
11264 # C++ shared libraries reported to be fairly broken before switch to ELF
11268 archive_cmds_need_lc_CXX=no
11270 freebsd* | dragonfly*)
11271 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11278 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11279 hardcode_libdir_separator_CXX=:
11280 export_dynamic_flag_spec_CXX='${wl}-E'
11281 hardcode_direct_CXX=yes
11282 hardcode_minus_L_CXX=yes # Not in the search PATH,
11283 # but as the default
11284 # location of the library.
11286 case $cc_basename in
11288 # FIXME: insert proper C++ library support
11292 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'
11293 # Commands to make compiler produce verbose output that lists
11294 # what "hidden" libraries, object files and flags are used when
11295 # linking a shared library.
11297 # There doesn't appear to be a way to prevent this compiler from
11298 # explicitly linking system object files so we need to strip them
11299 # from the output so that they don't get included in the library
11301 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'
11304 if test "$GXX" = yes; then
11305 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'
11307 # FIXME: insert proper C++ library support
11314 if test $with_gnu_ld = no; then
11315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11316 hardcode_libdir_separator_CXX=:
11320 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11323 export_dynamic_flag_spec_CXX='${wl}-E'
11329 hardcode_direct_CXX=no
11330 hardcode_shlibpath_var_CXX=no
11333 hardcode_direct_CXX=yes
11334 hardcode_minus_L_CXX=yes # Not in the search PATH,
11335 # but as the default
11336 # location of the library.
11340 case $cc_basename in
11342 # FIXME: insert proper C++ library support
11348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357 # Commands to make compiler produce verbose output that lists
11358 # what "hidden" libraries, object files and flags are used when
11359 # linking a shared library.
11361 # There doesn't appear to be a way to prevent this compiler from
11362 # explicitly linking system object files so we need to strip them
11363 # from the output so that they don't get included in the library
11365 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'
11368 if test "$GXX" = yes; then
11369 if test $with_gnu_ld = no; then
11372 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 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'
11383 # FIXME: insert proper C++ library support
11390 hardcode_direct_CXX=no
11391 hardcode_shlibpath_var_CXX=no
11392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11393 export_dynamic_flag_spec_CXX='${wl}-E'
11394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11395 # Instead, shared libraries are loaded at an image base (0x10000000 by
11396 # default) and relocated if they conflict, which is a slow very memory
11397 # consuming and fragmenting process. To avoid this, we pick a random,
11398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11400 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'
11401 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'
11404 case $cc_basename in
11407 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'
11409 # Archives containing C++ object files must be created using
11410 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11411 # necessary to make sure instantiated templates are included
11413 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11416 if test "$GXX" = yes; then
11417 if test "$with_gnu_ld" = no; then
11418 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'
11420 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'
11423 link_all_deplibs_CXX=yes
11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11427 hardcode_libdir_separator_CXX=:
11429 linux* | k*bsd*-gnu)
11430 case $cc_basename in
11432 # Kuck and Associates, Inc. (KAI) C++ Compiler
11434 # KCC will only create a shared library if the output file
11435 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11436 # to its proper name (with version) after linking.
11437 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'
11438 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'
11439 # Commands to make compiler produce verbose output that lists
11440 # what "hidden" libraries, object files and flags are used when
11441 # linking a shared library.
11443 # There doesn't appear to be a way to prevent this compiler from
11444 # explicitly linking system object files so we need to strip them
11445 # from the output so that they don't get included in the library
11447 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'
11449 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11452 # Archives containing C++ object files must be created using
11453 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11454 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11459 # version 8.0 and above of icpc choke on multiply defined symbols
11460 # if we add $predep_objects and $postdep_objects, however 7.1 and
11461 # earlier do not add the objects themselves.
11462 case `$CC -V 2>&1` in
11464 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 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'
11467 *) # Version 8.0 or newer
11470 ia64*) tmp_idyn=' -i_dynamic';;
11472 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11473 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'
11476 archive_cmds_need_lc_CXX=no
11477 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11479 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11482 # Portland Group C++ compiler
11483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11484 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'
11486 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11488 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'
11492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11493 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'
11495 runpath_var=LD_RUN_PATH
11496 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11497 hardcode_libdir_separator_CXX=:
11499 # Commands to make compiler produce verbose output that lists
11500 # what "hidden" libraries, object files and flags are used when
11501 # linking a shared library.
11503 # There doesn't appear to be a way to prevent this compiler from
11504 # explicitly linking system object files so we need to strip them
11505 # from the output so that they don't get included in the library
11507 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'
11512 # FIXME: insert proper C++ library support
11516 # FIXME: insert proper C++ library support
11520 case $cc_basename in
11522 # FIXME: insert proper C++ library support
11526 # FIXME: insert proper C++ library support
11531 netbsd* | netbsdelf*-gnu)
11532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11533 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11535 hardcode_libdir_flag_spec_CXX='-R$libdir'
11536 hardcode_direct_CXX=yes
11537 hardcode_shlibpath_var_CXX=no
11539 # Workaround some broken pre-1.5 toolchains
11540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11543 # C++ shared libraries are fairly broken
11547 hardcode_direct_CXX=yes
11548 hardcode_shlibpath_var_CXX=no
11549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11552 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11553 export_dynamic_flag_spec_CXX='${wl}-E'
11554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11556 output_verbose_link_cmd='echo'
11559 case $cc_basename in
11561 # Kuck and Associates, Inc. (KAI) C++ Compiler
11563 # KCC will only create a shared library if the output file
11564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565 # to its proper name (with version) after linking.
11566 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'
11568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11569 hardcode_libdir_separator_CXX=:
11571 # Archives containing C++ object files must be created using
11572 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11573 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11577 # Rational C++ 2.4.1
11578 # FIXME: insert proper C++ library support
11582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11583 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'
11585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11586 hardcode_libdir_separator_CXX=:
11588 # Commands to make compiler produce verbose output that lists
11589 # what "hidden" libraries, object files and flags are used when
11590 # linking a shared library.
11592 # There doesn't appear to be a way to prevent this compiler from
11593 # explicitly linking system object files so we need to strip them
11594 # from the output so that they don't get included in the library
11596 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'
11599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11600 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11601 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'
11603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11604 hardcode_libdir_separator_CXX=:
11606 # Commands to make compiler produce verbose output that lists
11607 # what "hidden" libraries, object files and flags are used when
11608 # linking a shared library.
11609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11612 # FIXME: insert proper C++ library support
11619 case $cc_basename in
11621 # Kuck and Associates, Inc. (KAI) C++ Compiler
11623 # KCC will only create a shared library if the output file
11624 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11625 # to its proper name (with version) after linking.
11626 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'
11628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11629 hardcode_libdir_separator_CXX=:
11631 # Archives containing C++ object files must be created using
11632 # the KAI C++ compiler.
11633 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11636 # Rational C++ 2.4.1
11637 # FIXME: insert proper C++ library support
11641 allow_undefined_flag_CXX=' -expect_unresolved \*'
11642 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'
11643 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11644 echo "-hidden">> $lib.exp~
11645 $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~
11648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11649 hardcode_libdir_separator_CXX=:
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11655 # There doesn't appear to be a way to prevent this compiler from
11656 # explicitly linking system object files so we need to strip them
11657 # from the output so that they don't get included in the library
11659 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'
11662 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11663 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11664 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'
11666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11667 hardcode_libdir_separator_CXX=:
11669 # Commands to make compiler produce verbose output that lists
11670 # what "hidden" libraries, object files and flags are used when
11671 # linking a shared library.
11672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11675 # FIXME: insert proper C++ library support
11682 # FIXME: insert proper C++ library support
11686 case $cc_basename in
11689 # FIXME: insert proper C++ library support
11694 # FIXME: insert proper C++ library support
11698 # FIXME: insert proper C++ library support
11704 case $cc_basename in
11706 # Sun C++ 4.2, 5.x and Centerline C++
11707 archive_cmds_need_lc_CXX=yes
11708 no_undefined_flag_CXX=' -zdefs'
11709 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11711 $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'
11713 hardcode_libdir_flag_spec_CXX='-R$libdir'
11714 hardcode_shlibpath_var_CXX=no
11716 solaris2.[0-5] | solaris2.[0-5].*) ;;
11718 # The C++ compiler is used as linker so we must use $wl
11719 # flag to pass the commands to the underlying system
11720 # linker. We must also pass each convience library through
11721 # to the system linker between allextract/defaultextract.
11722 # The C++ compiler will combine linker options so we
11723 # cannot just pass the convience library names through
11725 # Supported since Solaris 2.6 (maybe 2.5.1?)
11726 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'
11729 link_all_deplibs_CXX=yes
11731 output_verbose_link_cmd='echo'
11733 # Archives containing C++ object files must be created using
11734 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11735 # necessary to make sure instantiated templates are included
11737 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11740 # Green Hills C++ Compiler
11741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11743 # The C++ compiler must be used to create the archive.
11744 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11747 # GNU C++ compiler with Solaris linker
11748 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11749 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11750 if $CC --version | grep -v '^2\.7' > /dev/null; then
11751 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11752 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11753 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11758 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11760 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11762 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11763 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11769 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11778 no_undefined_flag_CXX='${wl}-z,text'
11779 archive_cmds_need_lc_CXX=no
11780 hardcode_shlibpath_var_CXX=no
11781 runpath_var='LD_RUN_PATH'
11783 case $cc_basename in
11785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794 sysv5* | sco3.2v5* | sco5v6*)
11795 # Note: We can NOT use -z defs as we might desire, because we do not
11796 # link with -lc, and that would cause any symbols used from libc to
11797 # always be unresolved, which means just about no library would
11798 # ever link correctly. If we're not using GNU ld we use -z text
11799 # though, which does catch some bad symbols but isn't as heavy-handed
11801 # For security reasons, it is highly recommended that you always
11802 # use absolute paths for naming shared libraries, and exclude the
11803 # DT_RUNPATH tag from executables and libraries. But doing so
11804 # requires that you compile everything twice, which is a pain.
11805 # So that behaviour is only enabled if SCOABSPATH is set to a
11806 # non-empty value in the environment. Most likely only useful for
11807 # creating official distributions of packages.
11808 # This is a hack until libtool officially supports absolute path
11809 # names for shared libraries.
11810 no_undefined_flag_CXX='${wl}-z,text'
11811 allow_undefined_flag_CXX='${wl}-z,nodefs'
11812 archive_cmds_need_lc_CXX=no
11813 hardcode_shlibpath_var_CXX=no
11814 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11815 hardcode_libdir_separator_CXX=':'
11816 link_all_deplibs_CXX=yes
11817 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11818 runpath_var='LD_RUN_PATH'
11820 case $cc_basename in
11822 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11832 case $cc_basename in
11834 # NonStop-UX NCC 3.20
11835 # FIXME: insert proper C++ library support
11839 # FIXME: insert proper C++ library support
11845 # FIXME: insert proper C++ library support
11849 # FIXME: insert proper C++ library support
11853 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11854 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11855 test "$ld_shlibs_CXX" = no && can_build_shared=no
11861 cat > conftest.$ac_ext <<EOF
11865 Foo (void) { a = 0; }
11871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872 (eval $ac_compile) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; then
11876 # Parse the compiler output and extract the necessary
11877 # objects, libraries and library flags.
11879 # Sentinel used to keep track of whether or not we are before
11880 # the conftest object file.
11881 pre_test_object_deps_done=no
11883 # The `*' in the case matches for architectures that use `case' in
11884 # $output_verbose_cmd can trigger glob expansion during the loop
11885 # eval without this substitution.
11886 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11888 for p in `eval $output_verbose_link_cmd`; do
11892 # Some compilers place space between "-{L,R}" and the path.
11893 # Remove the space.
11894 if test $p = "-L" \
11895 || test $p = "-R"; then
11902 if test "$pre_test_object_deps_done" = no; then
11905 # Internal compiler library paths should come after those
11906 # provided the user. The postdeps already come after the
11907 # user supplied libs so there is no need to process them.
11908 if test -z "$compiler_lib_search_path_CXX"; then
11909 compiler_lib_search_path_CXX="${prev}${p}"
11911 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11914 # The "-l" case would never come before the object being
11915 # linked, so don't bother handling this case.
11918 if test -z "$postdeps_CXX"; then
11919 postdeps_CXX="${prev}${p}"
11921 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11927 # This assumes that the test object file only shows up
11928 # once in the compiler output.
11929 if test "$p" = "conftest.$objext"; then
11930 pre_test_object_deps_done=yes
11934 if test "$pre_test_object_deps_done" = no; then
11935 if test -z "$predep_objects_CXX"; then
11936 predep_objects_CXX="$p"
11938 predep_objects_CXX="$predep_objects_CXX $p"
11941 if test -z "$postdep_objects_CXX"; then
11942 postdep_objects_CXX="$p"
11944 postdep_objects_CXX="$postdep_objects_CXX $p"
11949 *) ;; # Ignore the rest.
11957 echo "libtool.m4: error: problem compiling CXX test program"
11960 $rm -f confest.$objext
11962 # PORTME: override above test on systems where it is broken
11965 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11966 # hack all around it, let's just trust "g++" to DTRT.
11967 predep_objects_CXX=
11968 postdep_objects_CXX=
11973 case $cc_basename in
11975 # Adding this requires a known-good setup of shared libraries for
11976 # Sun compiler versions before 5.6, else PIC objects from an old
11977 # archive will be linked into the output, leading to subtle bugs.
11978 postdeps_CXX='-lCstd -lCrun'
11985 case " $postdeps_CXX " in
11986 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11989 lt_prog_compiler_wl_CXX=
11990 lt_prog_compiler_pic_CXX=
11991 lt_prog_compiler_static_CXX=
11993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11996 # C++ specific cases for pic, static, wl, etc.
11997 if test "$GXX" = yes; then
11998 lt_prog_compiler_wl_CXX='-Wl,'
11999 lt_prog_compiler_static_CXX='-static'
12003 # All AIX code is PIC.
12004 if test "$host_cpu" = ia64; then
12005 # AIX 5 now supports IA64 processor
12006 lt_prog_compiler_static_CXX='-Bstatic'
12010 # FIXME: we need at least 68020 code to build shared libraries, but
12011 # adding the `-m68020' flag to GCC prevents building anything better,
12013 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12015 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12016 # PIC is the default for these OSes.
12018 mingw* | os2* | pw32*)
12019 # This hack is so that the source file can tell whether it is being
12020 # built for inclusion in a dll (and should export symbols for example).
12021 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12023 darwin* | rhapsody*)
12024 # PIC is the default on this platform
12025 # Common symbols not allowed in MH_DYLIB files
12026 lt_prog_compiler_pic_CXX='-fno-common'
12029 # DJGPP does not support shared libraries at all
12030 lt_prog_compiler_pic_CXX=
12033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12034 # Instead, we relocate shared libraries at runtime.
12037 if test -d /usr/nec; then
12038 lt_prog_compiler_pic_CXX=-Kconform_pic
12042 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12043 # not for PA HP-UX.
12048 lt_prog_compiler_pic_CXX='-fPIC'
12053 lt_prog_compiler_pic_CXX='-fPIC'
12059 # All AIX code is PIC.
12060 if test "$host_cpu" = ia64; then
12061 # AIX 5 now supports IA64 processor
12062 lt_prog_compiler_static_CXX='-Bstatic'
12064 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12068 case $cc_basename in
12070 # Green Hills C++ Compiler
12071 # _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"
12076 # PIC is the default on this platform
12077 # Common symbols not allowed in MH_DYLIB files
12078 case $cc_basename in
12080 lt_prog_compiler_pic_CXX='-qnocommon'
12081 lt_prog_compiler_wl_CXX='-Wl,'
12086 case $cc_basename in
12088 lt_prog_compiler_pic_CXX='-KPIC'
12091 # Green Hills C++ Compiler
12092 lt_prog_compiler_pic_CXX='-pic'
12098 freebsd* | dragonfly*)
12099 # FreeBSD uses GNU C++
12101 hpux9* | hpux10* | hpux11*)
12102 case $cc_basename in
12104 lt_prog_compiler_wl_CXX='-Wl,'
12105 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12106 if test "$host_cpu" != ia64; then
12107 lt_prog_compiler_pic_CXX='+Z'
12111 lt_prog_compiler_wl_CXX='-Wl,'
12112 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12118 lt_prog_compiler_pic_CXX='+Z'
12127 # This is c89, which is MS Visual C++ (no shared libs)
12128 # Anyone wants to do a port?
12130 irix5* | irix6* | nonstopux*)
12131 case $cc_basename in
12133 lt_prog_compiler_wl_CXX='-Wl,'
12134 lt_prog_compiler_static_CXX='-non_shared'
12135 # CC pic flag -KPIC is the default.
12141 linux* | k*bsd*-gnu)
12142 case $cc_basename in
12145 lt_prog_compiler_wl_CXX='--backend -Wl,'
12146 lt_prog_compiler_pic_CXX='-fPIC'
12150 lt_prog_compiler_wl_CXX='-Wl,'
12151 lt_prog_compiler_pic_CXX='-KPIC'
12152 lt_prog_compiler_static_CXX='-static'
12155 # Portland Group C++ compiler.
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_pic_CXX='-fpic'
12158 lt_prog_compiler_static_CXX='-Bstatic'
12162 # Make sure the PIC flag is empty. It appears that all Alpha
12163 # Linux and Compaq Tru64 Unix objects are PIC.
12164 lt_prog_compiler_pic_CXX=
12165 lt_prog_compiler_static_CXX='-non_shared'
12176 case $cc_basename in
12178 lt_prog_compiler_pic_CXX='-W c,exportall'
12184 netbsd* | netbsdelf*-gnu)
12186 osf3* | osf4* | osf5*)
12187 case $cc_basename in
12189 lt_prog_compiler_wl_CXX='--backend -Wl,'
12192 # Rational C++ 2.4.1
12193 lt_prog_compiler_pic_CXX='-pic'
12196 # Digital/Compaq C++
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 # Make sure the PIC flag is empty. It appears that all Alpha
12199 # Linux and Compaq Tru64 Unix objects are PIC.
12200 lt_prog_compiler_pic_CXX=
12201 lt_prog_compiler_static_CXX='-non_shared'
12210 case $cc_basename in
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_wl_CXX='-Qoption ld '
12218 # Green Hills C++ Compiler
12219 lt_prog_compiler_pic_CXX='-PIC'
12226 case $cc_basename in
12229 lt_prog_compiler_pic_CXX='-pic'
12230 lt_prog_compiler_static_CXX='-Bstatic'
12234 lt_prog_compiler_pic_CXX='-pic'
12241 case $cc_basename in
12243 # NonStop-UX NCC 3.20
12244 lt_prog_compiler_pic_CXX='-KPIC'
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 case $cc_basename in
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12262 lt_prog_compiler_can_build_shared_CXX=no
12267 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12268 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12271 # Check to make sure the PIC flag actually works.
12273 if test -n "$lt_prog_compiler_pic_CXX"; then
12275 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12276 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12277 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 lt_prog_compiler_pic_works_CXX=no
12281 ac_outfile=conftest.$ac_objext
12282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12284 # Insert the option either (1) after the last *FLAGS variable, or
12285 # (2) before a word containing "conftest.", or (3) at the end.
12286 # Note that $ac_compile itself does not contain backslashes and begins
12287 # with a dollar sign (not a hyphen), so the echo should work correctly.
12288 # The option is referenced via a variable to avoid confusing sed.
12289 lt_compile=`echo "$ac_compile" | $SED \
12290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12292 -e 's:$: $lt_compiler_flag:'`
12293 (eval echo "\"\$as_me:12293: $lt_compile\"" >&5)
12294 (eval "$lt_compile" 2>conftest.err)
12296 cat conftest.err >&5
12297 echo "$as_me:12297: \$? = $ac_status" >&5
12298 if (exit $ac_status) && test -s "$ac_outfile"; then
12299 # The compiler can only warn and ignore the option if not recognized
12300 # So say no if there are warnings other than the usual output.
12301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_prog_compiler_pic_works_CXX=yes
12310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12311 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12313 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12314 case $lt_prog_compiler_pic_CXX in
12316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_can_build_shared_CXX=no
12325 # For platforms which do not support PIC, -DPIC is meaningless:
12327 lt_prog_compiler_pic_CXX=
12330 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12335 # Check to make sure the static flag actually works.
12337 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12338 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12339 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12340 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 lt_prog_compiler_static_works_CXX=no
12344 save_LDFLAGS="$LDFLAGS"
12345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12346 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12348 # The linker can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 if test -s conftest.err; then
12351 # Append any errors to the config.log.
12352 cat conftest.err 1>&5
12353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355 if diff conftest.exp conftest.er2 >/dev/null; then
12356 lt_prog_compiler_static_works_CXX=yes
12359 lt_prog_compiler_static_works_CXX=yes
12363 LDFLAGS="$save_LDFLAGS"
12366 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12367 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12369 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12372 lt_prog_compiler_static_CXX=
12376 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12377 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12378 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 lt_cv_prog_compiler_c_o_CXX=no
12382 $rm -r conftest 2>/dev/null
12386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12388 lt_compiler_flag="-o out/conftest2.$ac_objext"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 lt_compile=`echo "$ac_compile" | $SED \
12394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396 -e 's:$: $lt_compiler_flag:'`
12397 (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398 (eval "$lt_compile" 2>out/conftest.err)
12400 cat out/conftest.err >&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_c_o_CXX=yes
12414 # SGI C++ compiler will create directory out/ii_files/ for
12415 # template instantiation
12416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12417 $rm out/* && rmdir out
12423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12424 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12427 hard_links="nottested"
12428 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12429 # do not overwrite the value of need_locks provided by the user
12430 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12431 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12436 ln conftest.a conftest.b 2>&5 || hard_links=no
12437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12438 { echo "$as_me:$LINENO: result: $hard_links" >&5
12439 echo "${ECHO_T}$hard_links" >&6; }
12440 if test "$hard_links" = no; then
12441 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12442 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12449 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12455 # If we're using GNU nm, then we don't want the "-C" option.
12456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12458 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'
12460 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'
12464 export_symbols_cmds_CXX="$ltdll_cmds"
12467 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'
12469 linux* | k*bsd*-gnu)
12470 link_all_deplibs_CXX=no
12473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12477 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12478 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12479 test "$ld_shlibs_CXX" = no && can_build_shared=no
12482 # Do we need to explicitly link libc?
12484 case "x$archive_cmds_need_lc_CXX" in
12486 # Assume -lc should be added
12487 archive_cmds_need_lc_CXX=yes
12489 if test "$enable_shared" = yes && test "$GCC" = yes; then
12490 case $archive_cmds_CXX in
12492 # FIXME: we may have to deal with multi-command sequences.
12495 # Test whether the compiler implicitly links with -lc since on some
12496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12497 # to ld, don't add -lc before -lgcc.
12498 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } 2>conftest.err; then
12510 libobjs=conftest.$ac_objext
12512 wl=$lt_prog_compiler_wl_CXX
12513 pic_flag=$lt_prog_compiler_pic_CXX
12519 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12520 allow_undefined_flag_CXX=
12521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12522 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }
12527 archive_cmds_need_lc_CXX=no
12529 archive_cmds_need_lc_CXX=yes
12531 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12533 cat conftest.err 1>&5
12536 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12537 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12546 library_names_spec=
12547 libname_spec='lib$name'
12551 postuninstall_cmds=
12555 shlibpath_overrides_runpath=unknown
12557 dynamic_linker="$host_os ld.so"
12558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12559 if test "$GCC" = yes; then
12560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12562 # if the path contains ";" then we assume it to be the separator
12563 # otherwise default to the standard path separator (i.e. ":") - it is
12564 # assumed that no part of a normal pathname contains ";" but that should
12565 # okay in the real world where ";" in dirpaths is itself problematic.
12566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12573 need_lib_prefix=unknown
12574 hardcode_into_libs=no
12576 # when you set need_version to no, make sure it does not cause -set_version
12577 # flags to be left without arguments
12578 need_version=unknown
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12584 shlibpath_var=LIBPATH
12586 # AIX 3 has no versioning support, so we append a major version to the name.
12587 soname_spec='${libname}${release}${shared_ext}$major'
12594 hardcode_into_libs=yes
12595 if test "$host_cpu" = ia64; then
12596 # AIX 5 supports IA64
12597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12598 shlibpath_var=LD_LIBRARY_PATH
12600 # With GCC up to 2.95.x, collect2 would create an import file
12601 # for dependence libraries. The import file would start with
12602 # the line `#! .'. This would cause the generated library to
12603 # depend on `.', always an invalid library. This was fixed in
12604 # development snapshots of GCC prior to 3.0.
12606 aix4 | aix4.[01] | aix4.[01].*)
12607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12612 can_build_shared=no
12616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12617 # soname into executable. Probably we can add versioning support to
12618 # collect2, so additional links can be useful in future.
12619 if test "$aix_use_runtimelinking" = yes; then
12620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12621 # instead of lib<name>.a to let people know that these are not
12622 # typical AIX shared libraries.
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 # We preserve .a as extension for shared libraries through AIX4.2
12626 # and later when we are not doing run time linking.
12627 library_names_spec='${libname}${release}.a $libname.a'
12628 soname_spec='${libname}${release}${shared_ext}$major'
12630 shlibpath_var=LIBPATH
12635 library_names_spec='$libname.ixlibrary $libname.a'
12636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12637 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'
12641 library_names_spec='${libname}${shared_ext}'
12642 dynamic_linker="$host_os ld.so"
12643 shlibpath_var=LIBRARY_PATH
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650 soname_spec='${libname}${release}${shared_ext}$major'
12651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12655 # the default ld.so.conf also contains /usr/contrib/lib and
12656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12657 # libtool to hard-code these into programs
12660 cygwin* | mingw* | pw32*)
12661 version_type=windows
12666 case $GCC,$host_os in
12667 yes,cygwin* | yes,mingw* | yes,pw32*)
12668 library_names_spec='$libname.dll.a'
12669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12670 postinstall_cmds='base_file=`basename \${file}`~
12671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12672 dldir=$destdir/`dirname \$dlpath`~
12673 test -d \$dldir || mkdir -p \$dldir~
12674 $install_prog $dir/$dlname \$dldir/$dlname~
12675 chmod a+x \$dldir/$dlname'
12676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12677 dlpath=$dir/\$dldll~
12679 shlibpath_overrides_runpath=yes
12683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12688 # MinGW DLLs use traditional 'lib' prefix
12689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12692 # It is most probably a Windows format PATH printed by
12693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12694 # path with ; separators, and with drive letters. We can handle the
12695 # drive letters (cygwin fileutils understands them), so leave them,
12696 # especially as we might pass files found there to a mingw objdump,
12697 # which wouldn't understand a cygwinified path. Ahh.
12698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12704 # pw32 DLLs use 'pw' prefix rather than 'lib'
12705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12714 dynamic_linker='Win32 ld.exe'
12715 # FIXME: first we should search . and the directory the executable is in
12719 darwin* | rhapsody*)
12720 dynamic_linker="$host_os dyld"
12721 version_type=darwin
12724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12725 soname_spec='${libname}${release}${major}$shared_ext'
12726 shlibpath_overrides_runpath=yes
12727 shlibpath_var=DYLD_LIBRARY_PATH
12728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12730 if test "$GCC" = yes; then
12731 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"`
12733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12751 freebsd* | dragonfly*)
12752 # DragonFly does not have aout. When/if they implement a new
12753 # versioning mechanism, adjust this.
12754 if test -x /usr/bin/objformat; then
12755 objformat=`/usr/bin/objformat`
12758 freebsd[123]*) objformat=aout ;;
12759 *) objformat=elf ;;
12762 version_type=freebsd-$objformat
12763 case $version_type in
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12774 shlibpath_var=LD_LIBRARY_PATH
12777 shlibpath_overrides_runpath=yes
12779 freebsd3.[01]* | freebsdelf3.[01]*)
12780 shlibpath_overrides_runpath=yes
12781 hardcode_into_libs=yes
12783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12785 shlibpath_overrides_runpath=no
12786 hardcode_into_libs=yes
12788 freebsd*) # from 4.6 on
12789 shlibpath_overrides_runpath=yes
12790 hardcode_into_libs=yes
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 hardcode_into_libs=yes
12805 hpux9* | hpux10* | hpux11*)
12806 # Give a soname corresponding to the major version so that dld.sl refuses to
12807 # link against other versions.
12814 hardcode_into_libs=yes
12815 dynamic_linker="$host_os dld.so"
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 if test "X$HPUX_IA64_MODE" = X32; then
12821 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12823 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12829 hardcode_into_libs=yes
12830 dynamic_linker="$host_os dld.sl"
12831 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12840 dynamic_linker="$host_os dld.sl"
12841 shlibpath_var=SHLIB_PATH
12842 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12847 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12848 postinstall_cmds='chmod 555 $lib'
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=no
12860 hardcode_into_libs=yes
12863 irix5* | irix6* | nonstopux*)
12865 nonstopux*) version_type=nonstopux ;;
12867 if test "$lt_cv_prog_gnu_ld" = yes; then
12875 soname_spec='${libname}${release}${shared_ext}$major'
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12878 irix5* | nonstopux*)
12879 libsuff= shlibsuff=
12882 case $LD in # libtool.m4 will add one of these switches to LD
12883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12884 libsuff= shlibsuff= libmagic=32-bit;;
12885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12886 libsuff=32 shlibsuff=N32 libmagic=N32;;
12887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12889 *) libsuff= shlibsuff= libmagic=never-match;;
12893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12894 shlibpath_overrides_runpath=no
12895 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12896 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12897 hardcode_into_libs=yes
12900 # No shared lib support for Linux oldld, aout, or coff.
12901 linux*oldld* | linux*aout* | linux*coff*)
12905 # This must be Linux ELF.
12906 linux* | k*bsd*-gnu)
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=no
12915 # This implies no fast_install, which is unacceptable.
12916 # Some rework will be needed to allow for fast_install
12917 # before this can be enabled.
12918 hardcode_into_libs=yes
12920 # Append ld.so.conf contents to the search path
12921 if test -f /etc/ld.so.conf; then
12922 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' ' '`
12923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12926 # We used to test for /lib/ld.so.1 and disable shared libraries on
12927 # powerpc, because MkLinux only supported shared libraries with the
12928 # GNU dynamic linker. Since this was broken with cross compilers,
12929 # most powerpc-linux boxes support dynamic linking these days and
12930 # people can always --disable-shared, the test was removed, and we
12931 # assume the GNU/Linux dynamic linker is in use.
12932 dynamic_linker='GNU/Linux ld.so'
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=no
12943 hardcode_into_libs=yes
12944 dynamic_linker='NetBSD ld.elf_so'
12951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12954 dynamic_linker='NetBSD (a.out) ld.so'
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 dynamic_linker='NetBSD ld.elf_so'
12960 shlibpath_var=LD_LIBRARY_PATH
12961 shlibpath_overrides_runpath=yes
12962 hardcode_into_libs=yes
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 shlibpath_overrides_runpath=yes
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=yes
12984 sys_lib_dlsearch_path_spec="/usr/lib"
12986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12989 *) need_version=no ;;
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12996 openbsd2.[89] | openbsd2.[89].*)
12997 shlibpath_overrides_runpath=no
13000 shlibpath_overrides_runpath=yes
13004 shlibpath_overrides_runpath=yes
13009 libname_spec='$name'
13012 library_names_spec='$libname${shared_ext} $libname.a'
13013 dynamic_linker='OS/2 ld.exe'
13014 shlibpath_var=LIBPATH
13017 osf3* | osf4* | osf5*)
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 shlibpath_overrides_runpath=yes
13036 hardcode_into_libs=yes
13037 # ldd complains unless libraries are executable
13038 postinstall_cmds='chmod +x $lib'
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 shlibpath_overrides_runpath=yes
13047 if test "$with_gnu_ld" = yes; then
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 soname_spec='${libname}${release}${shared_ext}$major'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 case $host_vendor in
13060 shlibpath_overrides_runpath=no
13062 export_dynamic_flag_spec='${wl}-Blargedynsym'
13063 runpath_var=LD_RUN_PATH
13071 shlibpath_overrides_runpath=no
13072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13078 if test -d /usr/nec ;then
13080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13081 soname_spec='$libname${shared_ext}.$major'
13082 shlibpath_var=LD_LIBRARY_PATH
13086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13087 version_type=freebsd-elf
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 hardcode_into_libs=yes
13094 if test "$with_gnu_ld" = yes; then
13095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13096 shlibpath_overrides_runpath=no
13098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13099 shlibpath_overrides_runpath=yes
13102 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13106 sys_lib_dlsearch_path_spec='/usr/lib'
13111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112 soname_spec='${libname}${release}${shared_ext}$major'
13113 shlibpath_var=LD_LIBRARY_PATH
13120 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13121 echo "${ECHO_T}$dynamic_linker" >&6; }
13122 test "$dynamic_linker" = no && can_build_shared=no
13124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13125 if test "$GCC" = yes; then
13126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13129 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13130 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13131 hardcode_action_CXX=
13132 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13133 test -n "$runpath_var_CXX" || \
13134 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13136 # We can hardcode non-existant directories.
13137 if test "$hardcode_direct_CXX" != no &&
13138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13139 # have to relink, otherwise we might link with an installed library
13140 # when we should be linking with a yet-to-be-installed one
13141 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13142 test "$hardcode_minus_L_CXX" != no; then
13143 # Linking always hardcodes the temporary library directory.
13144 hardcode_action_CXX=relink
13146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13147 hardcode_action_CXX=immediate
13150 # We cannot hardcode anything, or else we can only hardcode existing
13152 hardcode_action_CXX=unsupported
13154 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13155 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13157 if test "$hardcode_action_CXX" = relink; then
13158 # Fast installation is not supported
13159 enable_fast_install=no
13160 elif test "$shlibpath_overrides_runpath" = yes ||
13161 test "$enable_shared" = no; then
13162 # Fast installation is not necessary
13163 enable_fast_install=needless
13167 # The else clause should only fire when bootstrapping the
13168 # libtool distribution, otherwise you forgot to ship ltmain.sh
13169 # with your package, and you will get complaints that there are
13170 # no rules to generate ltmain.sh.
13171 if test -f "$ltmain"; then
13172 # See if we are running on zsh, and set the options which allow our commands through
13173 # without removal of \ escapes.
13174 if test -n "${ZSH_VERSION+set}" ; then
13175 setopt NO_GLOB_SUBST
13177 # Now quote all the things that may contain metacharacters while being
13178 # careful not to overquote the AC_SUBSTed values. We take copies of the
13179 # variables and quote the copies for generation of the libtool script.
13180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13184 deplibs_check_method reload_flag reload_cmds need_locks \
13185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13186 lt_cv_sys_global_symbol_to_c_name_address \
13187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13188 old_postinstall_cmds old_postuninstall_cmds \
13192 lt_prog_compiler_wl_CXX \
13193 lt_prog_compiler_pic_CXX \
13194 lt_prog_compiler_static_CXX \
13195 lt_prog_compiler_no_builtin_flag_CXX \
13196 export_dynamic_flag_spec_CXX \
13197 thread_safe_flag_spec_CXX \
13198 whole_archive_flag_spec_CXX \
13199 enable_shared_with_static_runtimes_CXX \
13200 old_archive_cmds_CXX \
13201 old_archive_from_new_cmds_CXX \
13202 predep_objects_CXX \
13203 postdep_objects_CXX \
13206 compiler_lib_search_path_CXX \
13208 archive_expsym_cmds_CXX \
13209 postinstall_cmds_CXX \
13210 postuninstall_cmds_CXX \
13211 old_archive_from_expsyms_cmds_CXX \
13212 allow_undefined_flag_CXX \
13213 no_undefined_flag_CXX \
13214 export_symbols_cmds_CXX \
13215 hardcode_libdir_flag_spec_CXX \
13216 hardcode_libdir_flag_spec_ld_CXX \
13217 hardcode_libdir_separator_CXX \
13218 hardcode_automatic_CXX \
13220 module_expsym_cmds_CXX \
13221 lt_cv_prog_compiler_c_o_CXX \
13222 exclude_expsyms_CXX \
13223 include_expsyms_CXX; do
13226 old_archive_cmds_CXX | \
13227 old_archive_from_new_cmds_CXX | \
13228 archive_cmds_CXX | \
13229 archive_expsym_cmds_CXX | \
13230 module_cmds_CXX | \
13231 module_expsym_cmds_CXX | \
13232 old_archive_from_expsyms_cmds_CXX | \
13233 export_symbols_cmds_CXX | \
13234 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13235 postinstall_cmds | postuninstall_cmds | \
13236 old_postinstall_cmds | old_postuninstall_cmds | \
13237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13238 # Double-quote double-evaled strings.
13239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13248 *'\$0 --fallback-echo"')
13249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13255 cat <<__EOF__ >> "$cfgfile"
13256 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13260 # Shell to use when invoking shell scripts.
13263 # Whether or not to build shared libraries.
13264 build_libtool_libs=$enable_shared
13266 # Whether or not to build static libraries.
13267 build_old_libs=$enable_static
13269 # Whether or not to add -lc for building shared libraries.
13270 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13272 # Whether or not to disallow shared libs when runtime libs are static
13273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13275 # Whether or not to optimize for fast installation.
13276 fast_install=$enable_fast_install
13279 host_alias=$host_alias
13283 # The build system.
13284 build_alias=$build_alias
13288 # An echo program that does not interpret backslashes.
13293 AR_FLAGS=$lt_AR_FLAGS
13298 # LTCC compiler flags.
13299 LTCFLAGS=$lt_LTCFLAGS
13301 # A language-specific compiler.
13302 CC=$lt_compiler_CXX
13304 # Is the compiler the GNU C compiler?
13310 # The linker used to build libraries.
13313 # Whether we need hard or soft links.
13316 # A BSD-compatible nm program.
13319 # A symbol stripping program
13322 # Used to examine libraries when file_magic_cmd begins "file"
13323 MAGIC_CMD=$MAGIC_CMD
13325 # Used on cygwin: DLL creation program.
13328 # Used on cygwin: object dumper.
13331 # Used on cygwin: assembler.
13334 # The name of the directory that contains temporary libtool files.
13337 # How to create reloadable object files.
13338 reload_flag=$lt_reload_flag
13339 reload_cmds=$lt_reload_cmds
13341 # How to pass a linker flag through the compiler.
13342 wl=$lt_lt_prog_compiler_wl_CXX
13344 # Object file suffix (normally "o").
13345 objext="$ac_objext"
13347 # Old archive suffix (normally "a").
13350 # Shared library suffix (normally ".so").
13351 shrext_cmds='$shrext_cmds'
13353 # Executable file suffix (normally "").
13356 # Additional compiler flags for building library objects.
13357 pic_flag=$lt_lt_prog_compiler_pic_CXX
13360 # What is the maximum length of a command?
13361 max_cmd_len=$lt_cv_sys_max_cmd_len
13363 # Does compiler simultaneously support -c and -o options?
13364 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13366 # Must we lock files when doing compilation?
13367 need_locks=$lt_need_locks
13369 # Do we need the lib prefix for modules?
13370 need_lib_prefix=$need_lib_prefix
13372 # Do we need a version for libraries?
13373 need_version=$need_version
13375 # Whether dlopen is supported.
13376 dlopen_support=$enable_dlopen
13378 # Whether dlopen of programs is supported.
13379 dlopen_self=$enable_dlopen_self
13381 # Whether dlopen of statically linked programs is supported.
13382 dlopen_self_static=$enable_dlopen_self_static
13384 # Compiler flag to prevent dynamic linking.
13385 link_static_flag=$lt_lt_prog_compiler_static_CXX
13387 # Compiler flag to turn off builtin functions.
13388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13390 # Compiler flag to allow reflexive dlopens.
13391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13393 # Compiler flag to generate shared objects directly from archives.
13394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13396 # Compiler flag to generate thread-safe objects.
13397 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13399 # Library versioning type.
13400 version_type=$version_type
13402 # Format of library name prefix.
13403 libname_spec=$lt_libname_spec
13405 # List of archive names. First name is the real one, the rest are links.
13406 # The last name is the one that the linker finds with -lNAME.
13407 library_names_spec=$lt_library_names_spec
13409 # The coded name of the library, if different from the real name.
13410 soname_spec=$lt_soname_spec
13412 # Commands used to build and install an old-style archive.
13414 old_archive_cmds=$lt_old_archive_cmds_CXX
13415 old_postinstall_cmds=$lt_old_postinstall_cmds
13416 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13418 # Create an old-style archive from a shared archive.
13419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13421 # Create a temporary old-style archive to link instead of a shared archive.
13422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13424 # Commands used to build and install a shared archive.
13425 archive_cmds=$lt_archive_cmds_CXX
13426 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13427 postinstall_cmds=$lt_postinstall_cmds
13428 postuninstall_cmds=$lt_postuninstall_cmds
13430 # Commands used to build a loadable module (assumed same as above if empty)
13431 module_cmds=$lt_module_cmds_CXX
13432 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13434 # Commands to strip libraries.
13435 old_striplib=$lt_old_striplib
13436 striplib=$lt_striplib
13438 # Dependencies to place before the objects being linked to create a
13440 predep_objects=$lt_predep_objects_CXX
13442 # Dependencies to place after the objects being linked to create a
13444 postdep_objects=$lt_postdep_objects_CXX
13446 # Dependencies to place before the objects being linked to create a
13448 predeps=$lt_predeps_CXX
13450 # Dependencies to place after the objects being linked to create a
13452 postdeps=$lt_postdeps_CXX
13454 # The library search path used internally by the compiler when linking
13455 # a shared library.
13456 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13458 # Method to check whether dependent libraries are shared objects.
13459 deplibs_check_method=$lt_deplibs_check_method
13461 # Command to use when deplibs_check_method == file_magic.
13462 file_magic_cmd=$lt_file_magic_cmd
13464 # Flag that allows shared libraries with undefined symbols to be built.
13465 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13467 # Flag that forces no undefined symbols.
13468 no_undefined_flag=$lt_no_undefined_flag_CXX
13470 # Commands used to finish a libtool library installation in a directory.
13471 finish_cmds=$lt_finish_cmds
13473 # Same as above, but a single script fragment to be evaled but not shown.
13474 finish_eval=$lt_finish_eval
13476 # Take the output of nm and produce a listing of raw symbols and C names.
13477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13479 # Transform the output of nm in a proper C declaration
13480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13482 # Transform the output of nm in a C name address pair
13483 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13485 # This is the shared library runtime path variable.
13486 runpath_var=$runpath_var
13488 # This is the shared library path variable.
13489 shlibpath_var=$shlibpath_var
13491 # Is shlibpath searched before the hard-coded library search path?
13492 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13494 # How to hardcode a shared library path into an executable.
13495 hardcode_action=$hardcode_action_CXX
13497 # Whether we should hardcode library paths into libraries.
13498 hardcode_into_libs=$hardcode_into_libs
13500 # Flag to hardcode \$libdir into a binary during linking.
13501 # This must work even if \$libdir does not exist.
13502 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13504 # If ld is used when linking, flag to hardcode \$libdir into
13505 # a binary during linking. This must work even if \$libdir does
13507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13509 # Whether we need a single -rpath flag with a separated argument.
13510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13512 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13513 # resulting binary.
13514 hardcode_direct=$hardcode_direct_CXX
13516 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13517 # resulting binary.
13518 hardcode_minus_L=$hardcode_minus_L_CXX
13520 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13521 # the resulting binary.
13522 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13524 # Set to yes if building a shared library automatically hardcodes DIR into the library
13525 # and all subsequent libraries and executables linked against it.
13526 hardcode_automatic=$hardcode_automatic_CXX
13528 # Variables whose values should be saved in libtool wrapper scripts and
13529 # restored at relink time.
13530 variables_saved_for_relink="$variables_saved_for_relink"
13532 # Whether libtool must link a program against all its dependency libraries.
13533 link_all_deplibs=$link_all_deplibs_CXX
13535 # Compile-time system search path for libraries
13536 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13538 # Run-time system search path for libraries
13539 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13541 # Fix the shell variable \$srcfile for the compiler.
13542 fix_srcfile_path="$fix_srcfile_path_CXX"
13544 # Set to yes if exported symbols are required.
13545 always_export_symbols=$always_export_symbols_CXX
13547 # The commands to list exported symbols.
13548 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13550 # The commands to extract the exported symbol list from a shared archive.
13551 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13553 # Symbols that should not be listed in the preloaded symbols.
13554 exclude_expsyms=$lt_exclude_expsyms_CXX
13556 # Symbols that must always be exported.
13557 include_expsyms=$lt_include_expsyms_CXX
13559 # ### END LIBTOOL TAG CONFIG: $tagname
13565 # If there is no Makefile yet, we rely on a make rule to execute
13566 # `config.status --recheck' to rerun these tests and create the
13567 # libtool script then.
13568 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13569 if test -f "$ltmain_in"; then
13570 test -f Makefile && make "$ltmain"
13576 ac_cpp='$CPP $CPPFLAGS'
13577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13585 with_gnu_ldcxx=$with_gnu_ld
13586 with_gnu_ld=$lt_save_with_gnu_ld
13587 lt_cv_path_LDCXX=$lt_cv_path_LD
13588 lt_cv_path_LD=$lt_save_path_LD
13589 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13590 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13598 if test -n "$F77" && test "X$F77" != "Xno"; then
13601 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13602 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13603 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13606 archive_cmds_need_lc_F77=no
13607 allow_undefined_flag_F77=
13608 always_export_symbols_F77=no
13609 archive_expsym_cmds_F77=
13610 export_dynamic_flag_spec_F77=
13611 hardcode_direct_F77=no
13612 hardcode_libdir_flag_spec_F77=
13613 hardcode_libdir_flag_spec_ld_F77=
13614 hardcode_libdir_separator_F77=
13615 hardcode_minus_L_F77=no
13616 hardcode_automatic_F77=no
13618 module_expsym_cmds_F77=
13619 link_all_deplibs_F77=unknown
13620 old_archive_cmds_F77=$old_archive_cmds
13621 no_undefined_flag_F77=
13622 whole_archive_flag_spec_F77=
13623 enable_shared_with_static_runtimes_F77=no
13625 # Source file extension for f77 test sources.
13628 # Object file extension for compiled f77 test sources.
13632 # Code to be used in simple compile tests
13633 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13635 # Code to be used in simple link tests
13636 lt_simple_link_test_code=" program t\n end\n"
13638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13640 # If no C compiler was specified, use CC.
13643 # If no C compiler flags were specified, use CFLAGS.
13644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13646 # Allow CC to be a program name with arguments.
13650 # save warnings/boilerplate of simple test code
13651 ac_outfile=conftest.$ac_objext
13652 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654 _lt_compiler_boilerplate=`cat conftest.err`
13657 ac_outfile=conftest.$ac_objext
13658 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660 _lt_linker_boilerplate=`cat conftest.err`
13664 # Allow CC to be a program name with arguments.
13669 for cc_temp in $compiler""; do
13671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13680 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13682 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683 echo "${ECHO_T}$can_build_shared" >&6; }
13685 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13687 test "$can_build_shared" = "no" && enable_shared=no
13689 # On AIX, shared libraries and static libraries use the same namespace, and
13690 # are all built from PIC.
13693 test "$enable_shared" = yes && enable_static=no
13694 if test -n "$RANLIB"; then
13695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696 postinstall_cmds='$RANLIB $lib'
13700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701 test "$enable_shared" = yes && enable_static=no
13705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13706 echo "${ECHO_T}$enable_shared" >&6; }
13708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13710 # Make sure either enable_shared or enable_static is yes.
13711 test "$enable_shared" = yes || enable_static=yes
13712 { echo "$as_me:$LINENO: result: $enable_static" >&5
13713 echo "${ECHO_T}$enable_static" >&6; }
13718 lt_prog_compiler_wl_F77=
13719 lt_prog_compiler_pic_F77=
13720 lt_prog_compiler_static_F77=
13722 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13725 if test "$GCC" = yes; then
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_static_F77='-static'
13731 # All AIX code is PIC.
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13739 # FIXME: we need at least 68020 code to build shared libraries, but
13740 # adding the `-m68020' flag to GCC prevents building anything better,
13742 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13745 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746 # PIC is the default for these OSes.
13749 mingw* | pw32* | os2*)
13750 # This hack is so that the source file can tell whether it is being
13751 # built for inclusion in a dll (and should export symbols for example).
13752 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13755 darwin* | rhapsody*)
13756 # PIC is the default on this platform
13757 # Common symbols not allowed in MH_DYLIB files
13758 lt_prog_compiler_pic_F77='-fno-common'
13762 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13763 # Instead, we relocate shared libraries at runtime.
13767 # Just because we use GCC doesn't mean we suddenly get shared libraries
13768 # on systems that don't support them.
13769 lt_prog_compiler_can_build_shared_F77=no
13774 if test -d /usr/nec; then
13775 lt_prog_compiler_pic_F77=-Kconform_pic
13780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13781 # not for PA HP-UX.
13787 lt_prog_compiler_pic_F77='-fPIC'
13793 lt_prog_compiler_pic_F77='-fPIC'
13797 # PORTME Check for flag to pass linker flags through the system compiler.
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 if test "$host_cpu" = ia64; then
13802 # AIX 5 now supports IA64 processor
13803 lt_prog_compiler_static_F77='-Bstatic'
13805 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13809 # PIC is the default on this platform
13810 # Common symbols not allowed in MH_DYLIB files
13811 case $cc_basename in
13813 lt_prog_compiler_pic_F77='-qnocommon'
13814 lt_prog_compiler_wl_F77='-Wl,'
13819 mingw* | pw32* | os2*)
13820 # This hack is so that the source file can tell whether it is being
13821 # built for inclusion in a dll (and should export symbols for example).
13822 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13825 hpux9* | hpux10* | hpux11*)
13826 lt_prog_compiler_wl_F77='-Wl,'
13827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13828 # not for PA HP-UX.
13834 lt_prog_compiler_pic_F77='+Z'
13837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13838 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13841 irix5* | irix6* | nonstopux*)
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 # PIC (with -KPIC) is the default.
13844 lt_prog_compiler_static_F77='-non_shared'
13848 lt_prog_compiler_pic_F77='-KPIC'
13849 lt_prog_compiler_static_F77='-Bstatic'
13852 linux* | k*bsd*-gnu)
13853 case $cc_basename in
13855 lt_prog_compiler_wl_F77='-Wl,'
13856 lt_prog_compiler_pic_F77='-KPIC'
13857 lt_prog_compiler_static_F77='-static'
13859 pgcc* | pgf77* | pgf90* | pgf95*)
13860 # Portland Group compilers (*not* the Pentium gcc compiler,
13861 # which looks to be a dead project)
13862 lt_prog_compiler_wl_F77='-Wl,'
13863 lt_prog_compiler_pic_F77='-fpic'
13864 lt_prog_compiler_static_F77='-Bstatic'
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 # All Alpha code is PIC.
13869 lt_prog_compiler_static_F77='-non_shared'
13874 osf3* | osf4* | osf5*)
13875 lt_prog_compiler_wl_F77='-Wl,'
13876 # All OSF/1 code is PIC.
13877 lt_prog_compiler_static_F77='-non_shared'
13881 lt_prog_compiler_pic_F77='-KPIC'
13882 lt_prog_compiler_static_F77='-Bstatic'
13883 case $cc_basename in
13884 f77* | f90* | f95*)
13885 lt_prog_compiler_wl_F77='-Qoption ld ';;
13887 lt_prog_compiler_wl_F77='-Wl,';;
13892 lt_prog_compiler_wl_F77='-Qoption ld '
13893 lt_prog_compiler_pic_F77='-PIC'
13894 lt_prog_compiler_static_F77='-Bstatic'
13897 sysv4 | sysv4.2uw2* | sysv4.3*)
13898 lt_prog_compiler_wl_F77='-Wl,'
13899 lt_prog_compiler_pic_F77='-KPIC'
13900 lt_prog_compiler_static_F77='-Bstatic'
13904 if test -d /usr/nec ;then
13905 lt_prog_compiler_pic_F77='-Kconform_pic'
13906 lt_prog_compiler_static_F77='-Bstatic'
13910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13911 lt_prog_compiler_wl_F77='-Wl,'
13912 lt_prog_compiler_pic_F77='-KPIC'
13913 lt_prog_compiler_static_F77='-Bstatic'
13917 lt_prog_compiler_wl_F77='-Wl,'
13918 lt_prog_compiler_can_build_shared_F77=no
13922 lt_prog_compiler_pic_F77='-pic'
13923 lt_prog_compiler_static_F77='-Bstatic'
13927 lt_prog_compiler_can_build_shared_F77=no
13932 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13933 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13936 # Check to make sure the PIC flag actually works.
13938 if test -n "$lt_prog_compiler_pic_F77"; then
13940 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13942 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 lt_prog_compiler_pic_works_F77=no
13946 ac_outfile=conftest.$ac_objext
13947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13948 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13949 # Insert the option either (1) after the last *FLAGS variable, or
13950 # (2) before a word containing "conftest.", or (3) at the end.
13951 # Note that $ac_compile itself does not contain backslashes and begins
13952 # with a dollar sign (not a hyphen), so the echo should work correctly.
13953 # The option is referenced via a variable to avoid confusing sed.
13954 lt_compile=`echo "$ac_compile" | $SED \
13955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957 -e 's:$: $lt_compiler_flag:'`
13958 (eval echo "\"\$as_me:13958: $lt_compile\"" >&5)
13959 (eval "$lt_compile" 2>conftest.err)
13961 cat conftest.err >&5
13962 echo "$as_me:13962: \$? = $ac_status" >&5
13963 if (exit $ac_status) && test -s "$ac_outfile"; then
13964 # The compiler can only warn and ignore the option if not recognized
13965 # So say no if there are warnings other than the usual output.
13966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969 lt_prog_compiler_pic_works_F77=yes
13975 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13976 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13978 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13979 case $lt_prog_compiler_pic_F77 in
13981 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13984 lt_prog_compiler_pic_F77=
13985 lt_prog_compiler_can_build_shared_F77=no
13990 # For platforms which do not support PIC, -DPIC is meaningless:
13992 lt_prog_compiler_pic_F77=
13995 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14000 # Check to make sure the static flag actually works.
14002 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14003 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14004 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14005 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 lt_prog_compiler_static_works_F77=no
14009 save_LDFLAGS="$LDFLAGS"
14010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14011 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14013 # The linker can only warn and ignore the option if not recognized
14014 # So say no if there are warnings
14015 if test -s conftest.err; then
14016 # Append any errors to the config.log.
14017 cat conftest.err 1>&5
14018 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14020 if diff conftest.exp conftest.er2 >/dev/null; then
14021 lt_prog_compiler_static_works_F77=yes
14024 lt_prog_compiler_static_works_F77=yes
14028 LDFLAGS="$save_LDFLAGS"
14031 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14032 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14034 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14037 lt_prog_compiler_static_F77=
14041 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14042 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14043 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 lt_cv_prog_compiler_c_o_F77=no
14047 $rm -r conftest 2>/dev/null
14051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14053 lt_compiler_flag="-o out/conftest2.$ac_objext"
14054 # Insert the option either (1) after the last *FLAGS variable, or
14055 # (2) before a word containing "conftest.", or (3) at the end.
14056 # Note that $ac_compile itself does not contain backslashes and begins
14057 # with a dollar sign (not a hyphen), so the echo should work correctly.
14058 lt_compile=`echo "$ac_compile" | $SED \
14059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14061 -e 's:$: $lt_compiler_flag:'`
14062 (eval echo "\"\$as_me:14062: $lt_compile\"" >&5)
14063 (eval "$lt_compile" 2>out/conftest.err)
14065 cat out/conftest.err >&5
14066 echo "$as_me:14066: \$? = $ac_status" >&5
14067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14069 # The compiler can only warn and ignore the option if not recognized
14070 # So say no if there are warnings
14071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14074 lt_cv_prog_compiler_c_o_F77=yes
14079 # SGI C++ compiler will create directory out/ii_files/ for
14080 # template instantiation
14081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14082 $rm out/* && rmdir out
14088 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14092 hard_links="nottested"
14093 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14094 # do not overwrite the value of need_locks provided by the user
14095 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14101 ln conftest.a conftest.b 2>&5 || hard_links=no
14102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14103 { echo "$as_me:$LINENO: result: $hard_links" >&5
14104 echo "${ECHO_T}$hard_links" >&6; }
14105 if test "$hard_links" = no; then
14106 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14114 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14118 allow_undefined_flag_F77=
14119 enable_shared_with_static_runtimes_F77=no
14121 archive_expsym_cmds_F77=
14122 old_archive_From_new_cmds_F77=
14123 old_archive_from_expsyms_cmds_F77=
14124 export_dynamic_flag_spec_F77=
14125 whole_archive_flag_spec_F77=
14126 thread_safe_flag_spec_F77=
14127 hardcode_libdir_flag_spec_F77=
14128 hardcode_libdir_flag_spec_ld_F77=
14129 hardcode_libdir_separator_F77=
14130 hardcode_direct_F77=no
14131 hardcode_minus_L_F77=no
14132 hardcode_shlibpath_var_F77=unsupported
14133 link_all_deplibs_F77=unknown
14134 hardcode_automatic_F77=no
14136 module_expsym_cmds_F77=
14137 always_export_symbols_F77=no
14138 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14139 # include_expsyms should be a list of space-separated symbols to be *always*
14140 # included in the symbol list
14141 include_expsyms_F77=
14142 # exclude_expsyms can be an extended regexp of symbols to exclude
14143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14145 # as well as any symbol that contains `d'.
14146 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14148 # platforms (ab)use it in PIC code, but their linkers get confused if
14149 # the symbol is explicitly referenced. Since portable code cannot
14150 # rely on this symbol name, it's probably fine to never include it in
14151 # preloaded symbol tables.
14152 extract_expsyms_cmds=
14153 # Just being paranoid about ensuring that cc_basename is set.
14154 for cc_temp in $compiler""; do
14156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14162 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14165 cygwin* | mingw* | pw32*)
14166 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14167 # When not using gcc, we currently assume that we are using
14168 # Microsoft Visual C++.
14169 if test "$GCC" != yes; then
14174 # we just hope/assume this is gcc and not c89 (= MSVC++)
14183 if test "$with_gnu_ld" = yes; then
14184 # If archive_cmds runs LD, not CC, wlarc should be empty
14187 # Set some defaults for GNU ld with shared library support. These
14188 # are reset later if shared libraries are not supported. Putting them
14189 # here allows them to be overridden if necessary.
14190 runpath_var=LD_RUN_PATH
14191 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14192 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14193 # ancient GNU ld didn't support --whole-archive et. al.
14194 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14195 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14197 whole_archive_flag_spec_F77=
14199 supports_anon_versioning=no
14200 case `$LD -v 2>/dev/null` in
14201 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14204 *\ 2.11.*) ;; # other 2.11 versions
14205 *) supports_anon_versioning=yes ;;
14208 # See if GNU ld supports shared libraries.
14210 aix3* | aix4* | aix5*)
14211 # On AIX/PPC, the GNU linker is very broken
14212 if test "$host_cpu" != ia64; then
14216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14217 *** to be unable to reliably create shared libraries on AIX.
14218 *** Therefore, libtool is disabling shared libraries support. If you
14219 *** really care for shared libraries, you may want to modify your PATH
14220 *** so that a non-GNU linker is found, and then restart.
14227 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)'
14228 hardcode_libdir_flag_spec_F77='-L$libdir'
14229 hardcode_minus_L_F77=yes
14231 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14232 # that the semantics of dynamic libraries on AmigaOS, at least up
14233 # to version 4, is to share data among multiple programs linked
14234 # with the same dynamic library. Since this doesn't match the
14235 # behavior of shared libraries on other platforms, we can't use
14241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14242 allow_undefined_flag_F77=unsupported
14243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14244 # support --undefined. This deserves some investigation. FIXME
14245 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251 cygwin* | mingw* | pw32*)
14252 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14253 # as there is no search path for DLLs.
14254 hardcode_libdir_flag_spec_F77='-L$libdir'
14255 allow_undefined_flag_F77=unsupported
14256 always_export_symbols_F77=no
14257 enable_shared_with_static_runtimes_F77=yes
14258 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14260 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14262 # If the export-symbols file already is a .def file (1st line
14263 # is EXPORTS), use it as is; otherwise, prepend...
14264 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14265 cp $export_symbols $output_objdir/$soname.def;
14267 echo EXPORTS > $output_objdir/$soname.def;
14268 cat $export_symbols >> $output_objdir/$soname.def;
14270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14277 hardcode_direct_F77=no
14278 hardcode_shlibpath_var_F77=no
14279 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14280 export_dynamic_flag_spec_F77='${wl}-E'
14281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14282 # Instead, shared libraries are loaded at an image base (0x10000000 by
14283 # default) and relocated if they conflict, which is a slow very memory
14284 # consuming and fragmenting process. To avoid this, we pick a random,
14285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14287 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'
14288 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'
14291 linux* | k*bsd*-gnu)
14292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14294 case $cc_basename,$host_cpu in
14295 pgcc*) # Portland Group C compiler
14296 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'
14297 tmp_addflag=' $pic_flag'
14299 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14300 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'
14301 tmp_addflag=' $pic_flag -Mnomain' ;;
14302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14303 tmp_addflag=' -i_dynamic' ;;
14304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14305 tmp_addflag=' -i_dynamic -nofor_main' ;;
14306 ifc* | ifort*) # Intel Fortran compiler
14307 tmp_addflag=' -nofor_main' ;;
14309 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311 if test $supports_anon_versioning = yes; then
14312 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14314 $echo "local: *; };" >> $output_objdir/$libname.ver~
14315 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14317 link_all_deplibs_F77=no
14323 netbsd* | netbsdelf*-gnu)
14324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14325 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14339 *** create shared libraries on Solaris systems. Therefore, libtool
14340 *** is disabling shared libraries support. We urge you to upgrade GNU
14341 *** binutils to release 2.9.1 or newer. Another option is to modify
14342 *** your PATH or compiler configuration so that the native linker is
14343 *** used, and then restart.
14346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14355 case `$LD -v 2>&1` in
14356 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14360 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14361 *** reliably create shared libraries on SCO systems. Therefore, libtool
14362 *** is disabling shared libraries support. We urge you to upgrade GNU
14363 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14364 *** your PATH or compiler configuration so that the native linker is
14365 *** used, and then restart.
14370 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14372 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14373 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14382 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14384 hardcode_direct_F77=yes
14385 hardcode_shlibpath_var_F77=no
14389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14390 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14398 if test "$ld_shlibs_F77" = no; then
14400 hardcode_libdir_flag_spec_F77=
14401 export_dynamic_flag_spec_F77=
14402 whole_archive_flag_spec_F77=
14405 # PORTME fill in a description of your system's linker (not GNU ld)
14408 allow_undefined_flag_F77=unsupported
14409 always_export_symbols_F77=yes
14410 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'
14411 # Note: this linker hardcodes the directories in LIBPATH if there
14412 # are no directories specified by -L.
14413 hardcode_minus_L_F77=yes
14414 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14415 # Neither direct hardcoding nor static linking is supported with a
14417 hardcode_direct_F77=unsupported
14422 if test "$host_cpu" = ia64; then
14423 # On IA64, the linker does run time linking by default, so we don't
14424 # have to do anything special.
14425 aix_use_runtimelinking=no
14426 exp_sym_flag='-Bexport'
14429 # If we're using GNU nm, then we don't want the "-C" option.
14430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14431 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14432 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'
14434 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'
14436 aix_use_runtimelinking=no
14438 # Test if we are trying to use run time linking or normal
14439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14440 # need to do runtime linking.
14441 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14442 for ld_flag in $LDFLAGS; do
14443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14444 aix_use_runtimelinking=yes
14451 exp_sym_flag='-bexport'
14452 no_entry_flag='-bnoentry'
14455 # When large executables or shared objects are built, AIX ld can
14456 # have problems creating the table of contents. If linking a library
14457 # or program results in "error TOC overflow" add -mminimal-toc to
14458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14461 archive_cmds_F77=''
14462 hardcode_direct_F77=yes
14463 hardcode_libdir_separator_F77=':'
14464 link_all_deplibs_F77=yes
14466 if test "$GCC" = yes; then
14467 case $host_os in aix4.[012]|aix4.[012].*)
14468 # We only want to do this on AIX 4.2 and lower, the check
14469 # below for broken collect2 doesn't work under 4.3+
14470 collect2name=`${CC} -print-prog-name=collect2`
14471 if test -f "$collect2name" && \
14472 strings "$collect2name" | grep resolve_lib_name >/dev/null
14474 # We have reworked collect2
14475 hardcode_direct_F77=yes
14477 # We have old collect2
14478 hardcode_direct_F77=unsupported
14479 # It fails to find uninstalled libraries when the uninstalled
14480 # path is not listed in the libpath. Setting hardcode_minus_L
14481 # to unsupported forces relinking
14482 hardcode_minus_L_F77=yes
14483 hardcode_libdir_flag_spec_F77='-L$libdir'
14484 hardcode_libdir_separator_F77=
14488 shared_flag='-shared'
14489 if test "$aix_use_runtimelinking" = yes; then
14490 shared_flag="$shared_flag "'${wl}-G'
14494 if test "$host_cpu" = ia64; then
14495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14496 # chokes on -Wl,-G. The following line is correct:
14499 if test "$aix_use_runtimelinking" = yes; then
14500 shared_flag='${wl}-G'
14502 shared_flag='${wl}-bM:SRE'
14507 # It seems that -bexpall does not export symbols beginning with
14508 # underscore (_), so it is better to generate a list of symbols to export.
14509 always_export_symbols_F77=yes
14510 if test "$aix_use_runtimelinking" = yes; then
14511 # Warning - without using the other runtime loading flags (-brtl),
14512 # -berok will link without error, but may produce a broken library.
14513 allow_undefined_flag_F77='-berok'
14514 # Determine the default libpath from the value encoded in an empty executable.
14515 cat >conftest.$ac_ext <<_ACEOF
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_f77_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest$ac_exeext &&
14537 $as_test_x conftest$ac_exeext; then
14539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14541 # Check for a 64-bit object if we didn't find anything.
14542 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; }
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14552 conftest$ac_exeext conftest.$ac_ext
14553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14555 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14556 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"
14558 if test "$host_cpu" = ia64; then
14559 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14560 allow_undefined_flag_F77="-z nodefs"
14561 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"
14563 # Determine the default libpath from the value encoded in an empty executable.
14564 cat >conftest.$ac_ext <<_ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_f77_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest$ac_exeext &&
14586 $as_test_x conftest$ac_exeext; then
14588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14590 # Check for a 64-bit object if we didn't find anything.
14591 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; }
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14604 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14605 # Warning - without using the other run time loading flags,
14606 # -berok will link without error, but may produce a broken library.
14607 no_undefined_flag_F77=' ${wl}-bernotok'
14608 allow_undefined_flag_F77=' ${wl}-berok'
14609 # Exported symbols can be pulled into shared objects from archives
14610 whole_archive_flag_spec_F77='$convenience'
14611 archive_cmds_need_lc_F77=yes
14612 # This is similar to how AIX traditionally builds its shared libraries.
14613 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'
14619 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)'
14620 hardcode_libdir_flag_spec_F77='-L$libdir'
14621 hardcode_minus_L_F77=yes
14622 # see comment about different semantics on the GNU ld section
14627 export_dynamic_flag_spec_F77=-rdynamic
14630 cygwin* | mingw* | pw32*)
14631 # When not using gcc, we currently assume that we are using
14632 # Microsoft Visual C++.
14633 # hardcode_libdir_flag_spec is actually meaningless, as there is
14634 # no search path for DLLs.
14635 hardcode_libdir_flag_spec_F77=' '
14636 allow_undefined_flag_F77=unsupported
14637 # Tell ltmain to make .lib files, not .a files.
14639 # Tell ltmain to make .dll files, not .so files.
14641 # FIXME: Setting linknames here is a bad hack.
14642 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14643 # The linker will automatically build a .lib file if we build a DLL.
14644 old_archive_From_new_cmds_F77='true'
14645 # FIXME: Should let the user specify the lib program.
14646 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14647 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14648 enable_shared_with_static_runtimes_F77=yes
14651 darwin* | rhapsody*)
14653 rhapsody* | darwin1.[012])
14654 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14658 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14660 case ${MACOSX_DEPLOYMENT_TARGET} in
14662 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14665 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14671 archive_cmds_need_lc_F77=no
14672 hardcode_direct_F77=no
14673 hardcode_automatic_F77=yes
14674 hardcode_shlibpath_var_F77=unsupported
14675 whole_archive_flag_spec_F77=''
14676 link_all_deplibs_F77=yes
14677 if test "$GCC" = yes ; then
14678 output_verbose_link_cmd='echo'
14679 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14680 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14682 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}'
14683 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}'
14685 case $cc_basename in
14687 output_verbose_link_cmd='echo'
14688 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14689 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14691 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}'
14692 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}'
14702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703 hardcode_libdir_flag_spec_F77='-L$libdir'
14704 hardcode_shlibpath_var_F77=no
14711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14712 # support. Future versions do this automatically, but an explicit c++rt0.o
14713 # does not break anything, and helps significantly (at the cost of a little
14716 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14717 hardcode_libdir_flag_spec_F77='-R$libdir'
14718 hardcode_direct_F77=yes
14719 hardcode_shlibpath_var_F77=no
14722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14725 hardcode_direct_F77=yes
14726 hardcode_minus_L_F77=yes
14727 hardcode_shlibpath_var_F77=no
14730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14731 freebsd* | dragonfly*)
14732 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14733 hardcode_libdir_flag_spec_F77='-R$libdir'
14734 hardcode_direct_F77=yes
14735 hardcode_shlibpath_var_F77=no
14739 if test "$GCC" = yes; then
14740 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'
14742 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'
14744 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14745 hardcode_libdir_separator_F77=:
14746 hardcode_direct_F77=yes
14748 # hardcode_minus_L: Not really in the search PATH,
14749 # but as the default location of the library.
14750 hardcode_minus_L_F77=yes
14751 export_dynamic_flag_spec_F77='${wl}-E'
14755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14756 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14758 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14760 if test "$with_gnu_ld" = no; then
14761 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14762 hardcode_libdir_separator_F77=:
14764 hardcode_direct_F77=yes
14765 export_dynamic_flag_spec_F77='${wl}-E'
14767 # hardcode_minus_L: Not really in the search PATH,
14768 # but as the default location of the library.
14769 hardcode_minus_L_F77=yes
14774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14777 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14780 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14783 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14792 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14799 if test "$with_gnu_ld" = no; then
14800 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14801 hardcode_libdir_separator_F77=:
14805 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14806 hardcode_direct_F77=no
14807 hardcode_shlibpath_var_F77=no
14810 hardcode_direct_F77=yes
14811 export_dynamic_flag_spec_F77='${wl}-E'
14813 # hardcode_minus_L: Not really in the search PATH,
14814 # but as the default location of the library.
14815 hardcode_minus_L_F77=yes
14821 irix5* | irix6* | nonstopux*)
14822 if test "$GCC" = yes; then
14823 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'
14825 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'
14826 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829 hardcode_libdir_separator_F77=:
14830 link_all_deplibs_F77=yes
14833 netbsd* | netbsdelf*-gnu)
14834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14837 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14839 hardcode_libdir_flag_spec_F77='-R$libdir'
14840 hardcode_direct_F77=yes
14841 hardcode_shlibpath_var_F77=no
14845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14846 hardcode_direct_F77=yes
14847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14848 hardcode_libdir_separator_F77=:
14849 hardcode_shlibpath_var_F77=no
14853 hardcode_direct_F77=yes
14854 hardcode_shlibpath_var_F77=no
14855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14856 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14857 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14858 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14859 export_dynamic_flag_spec_F77='${wl}-E'
14862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_libdir_flag_spec_F77='-R$libdir'
14867 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14868 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14875 hardcode_libdir_flag_spec_F77='-L$libdir'
14876 hardcode_minus_L_F77=yes
14877 allow_undefined_flag_F77=unsupported
14878 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'
14879 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14883 if test "$GCC" = yes; then
14884 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14885 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'
14887 allow_undefined_flag_F77=' -expect_unresolved \*'
14888 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'
14890 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14891 hardcode_libdir_separator_F77=:
14894 osf4* | osf5*) # as osf3* with the addition of -msym flag
14895 if test "$GCC" = yes; then
14896 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14897 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'
14898 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14900 allow_undefined_flag_F77=' -expect_unresolved \*'
14901 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'
14902 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~
14903 $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'
14905 # Both c and cxx compiler support -rpath directly
14906 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14908 hardcode_libdir_separator_F77=:
14912 no_undefined_flag_F77=' -z text'
14913 if test "$GCC" = yes; then
14915 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14920 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14924 hardcode_libdir_flag_spec_F77='-R$libdir'
14925 hardcode_shlibpath_var_F77=no
14927 solaris2.[0-5] | solaris2.[0-5].*) ;;
14929 # The compiler driver will combine linker options so we
14930 # cannot just pass the convience library names through
14931 # without $wl, iff we do not link with $LD.
14932 # Luckily, gcc supports the same syntax we need for Sun Studio.
14933 # Supported since Solaris 2.6 (maybe 2.5.1?)
14936 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14938 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' ;;
14941 link_all_deplibs_F77=yes
14945 if test "x$host_vendor" = xsequent; then
14946 # Use $CC to link under sequent, because it throws in some extra .o
14947 # files that make .init and .fini sections work.
14948 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14952 hardcode_libdir_flag_spec_F77='-L$libdir'
14953 hardcode_direct_F77=yes
14954 hardcode_minus_L_F77=yes
14955 hardcode_shlibpath_var_F77=no
14959 case $host_vendor in
14961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962 hardcode_direct_F77=yes # is this really true???
14965 ## LD is ld it makes a PLAMLIB
14966 ## CC just makes a GrossModule.
14967 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14968 reload_cmds_F77='$CC -r -o $output$reload_objs'
14969 hardcode_direct_F77=no
14972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14973 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14976 runpath_var='LD_RUN_PATH'
14977 hardcode_shlibpath_var_F77=no
14981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982 hardcode_shlibpath_var_F77=no
14983 export_dynamic_flag_spec_F77='-Bexport'
14987 if test -d /usr/nec; then
14988 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989 hardcode_shlibpath_var_F77=no
14990 runpath_var=LD_RUN_PATH
14991 hardcode_runpath_var=yes
14996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14997 no_undefined_flag_F77='${wl}-z,text'
14998 archive_cmds_need_lc_F77=no
14999 hardcode_shlibpath_var_F77=no
15000 runpath_var='LD_RUN_PATH'
15002 if test "$GCC" = yes; then
15003 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 sysv5* | sco3.2v5* | sco5v6*)
15012 # Note: We can NOT use -z defs as we might desire, because we do not
15013 # link with -lc, and that would cause any symbols used from libc to
15014 # always be unresolved, which means just about no library would
15015 # ever link correctly. If we're not using GNU ld we use -z text
15016 # though, which does catch some bad symbols but isn't as heavy-handed
15018 no_undefined_flag_F77='${wl}-z,text'
15019 allow_undefined_flag_F77='${wl}-z,nodefs'
15020 archive_cmds_need_lc_F77=no
15021 hardcode_shlibpath_var_F77=no
15022 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15023 hardcode_libdir_separator_F77=':'
15024 link_all_deplibs_F77=yes
15025 export_dynamic_flag_spec_F77='${wl}-Bexport'
15026 runpath_var='LD_RUN_PATH'
15028 if test "$GCC" = yes; then
15029 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039 hardcode_libdir_flag_spec_F77='-L$libdir'
15040 hardcode_shlibpath_var_F77=no
15049 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15050 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15051 test "$ld_shlibs_F77" = no && can_build_shared=no
15054 # Do we need to explicitly link libc?
15056 case "x$archive_cmds_need_lc_F77" in
15058 # Assume -lc should be added
15059 archive_cmds_need_lc_F77=yes
15061 if test "$enable_shared" = yes && test "$GCC" = yes; then
15062 case $archive_cmds_F77 in
15064 # FIXME: we may have to deal with multi-command sequences.
15067 # Test whether the compiler implicitly links with -lc since on some
15068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15069 # to ld, don't add -lc before -lgcc.
15070 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } 2>conftest.err; then
15082 libobjs=conftest.$ac_objext
15084 wl=$lt_prog_compiler_wl_F77
15085 pic_flag=$lt_prog_compiler_pic_F77
15091 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15092 allow_undefined_flag_F77=
15093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15094 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }
15099 archive_cmds_need_lc_F77=no
15101 archive_cmds_need_lc_F77=yes
15103 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15105 cat conftest.err 1>&5
15108 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15109 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15116 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15118 library_names_spec=
15119 libname_spec='lib$name'
15123 postuninstall_cmds=
15127 shlibpath_overrides_runpath=unknown
15129 dynamic_linker="$host_os ld.so"
15130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15131 if test "$GCC" = yes; then
15132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15134 # if the path contains ";" then we assume it to be the separator
15135 # otherwise default to the standard path separator (i.e. ":") - it is
15136 # assumed that no part of a normal pathname contains ";" but that should
15137 # okay in the real world where ";" in dirpaths is itself problematic.
15138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15145 need_lib_prefix=unknown
15146 hardcode_into_libs=no
15148 # when you set need_version to no, make sure it does not cause -set_version
15149 # flags to be left without arguments
15150 need_version=unknown
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15156 shlibpath_var=LIBPATH
15158 # AIX 3 has no versioning support, so we append a major version to the name.
15159 soname_spec='${libname}${release}${shared_ext}$major'
15166 hardcode_into_libs=yes
15167 if test "$host_cpu" = ia64; then
15168 # AIX 5 supports IA64
15169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15170 shlibpath_var=LD_LIBRARY_PATH
15172 # With GCC up to 2.95.x, collect2 would create an import file
15173 # for dependence libraries. The import file would start with
15174 # the line `#! .'. This would cause the generated library to
15175 # depend on `.', always an invalid library. This was fixed in
15176 # development snapshots of GCC prior to 3.0.
15178 aix4 | aix4.[01] | aix4.[01].*)
15179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15184 can_build_shared=no
15188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15189 # soname into executable. Probably we can add versioning support to
15190 # collect2, so additional links can be useful in future.
15191 if test "$aix_use_runtimelinking" = yes; then
15192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15193 # instead of lib<name>.a to let people know that these are not
15194 # typical AIX shared libraries.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 # We preserve .a as extension for shared libraries through AIX4.2
15198 # and later when we are not doing run time linking.
15199 library_names_spec='${libname}${release}.a $libname.a'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15202 shlibpath_var=LIBPATH
15207 library_names_spec='$libname.ixlibrary $libname.a'
15208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15209 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'
15213 library_names_spec='${libname}${shared_ext}'
15214 dynamic_linker="$host_os ld.so"
15215 shlibpath_var=LIBRARY_PATH
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15227 # the default ld.so.conf also contains /usr/contrib/lib and
15228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15229 # libtool to hard-code these into programs
15232 cygwin* | mingw* | pw32*)
15233 version_type=windows
15238 case $GCC,$host_os in
15239 yes,cygwin* | yes,mingw* | yes,pw32*)
15240 library_names_spec='$libname.dll.a'
15241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15242 postinstall_cmds='base_file=`basename \${file}`~
15243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15244 dldir=$destdir/`dirname \$dlpath`~
15245 test -d \$dldir || mkdir -p \$dldir~
15246 $install_prog $dir/$dlname \$dldir/$dlname~
15247 chmod a+x \$dldir/$dlname'
15248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15249 dlpath=$dir/\$dldll~
15251 shlibpath_overrides_runpath=yes
15255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15260 # MinGW DLLs use traditional 'lib' prefix
15261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15264 # It is most probably a Windows format PATH printed by
15265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15266 # path with ; separators, and with drive letters. We can handle the
15267 # drive letters (cygwin fileutils understands them), so leave them,
15268 # especially as we might pass files found there to a mingw objdump,
15269 # which wouldn't understand a cygwinified path. Ahh.
15270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15276 # pw32 DLLs use 'pw' prefix rather than 'lib'
15277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15286 dynamic_linker='Win32 ld.exe'
15287 # FIXME: first we should search . and the directory the executable is in
15291 darwin* | rhapsody*)
15292 dynamic_linker="$host_os dyld"
15293 version_type=darwin
15296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15297 soname_spec='${libname}${release}${major}$shared_ext'
15298 shlibpath_overrides_runpath=yes
15299 shlibpath_var=DYLD_LIBRARY_PATH
15300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15302 if test "$GCC" = yes; then
15303 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"`
15305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 shlibpath_var=LD_LIBRARY_PATH
15323 freebsd* | dragonfly*)
15324 # DragonFly does not have aout. When/if they implement a new
15325 # versioning mechanism, adjust this.
15326 if test -x /usr/bin/objformat; then
15327 objformat=`/usr/bin/objformat`
15330 freebsd[123]*) objformat=aout ;;
15331 *) objformat=elf ;;
15334 version_type=freebsd-$objformat
15335 case $version_type in
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15346 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15351 freebsd3.[01]* | freebsdelf3.[01]*)
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15357 shlibpath_overrides_runpath=no
15358 hardcode_into_libs=yes
15360 freebsd*) # from 4.6 on
15361 shlibpath_overrides_runpath=yes
15362 hardcode_into_libs=yes
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 hardcode_into_libs=yes
15377 hpux9* | hpux10* | hpux11*)
15378 # Give a soname corresponding to the major version so that dld.sl refuses to
15379 # link against other versions.
15386 hardcode_into_libs=yes
15387 dynamic_linker="$host_os dld.so"
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 if test "X$HPUX_IA64_MODE" = X32; then
15393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401 hardcode_into_libs=yes
15402 dynamic_linker="$host_os dld.sl"
15403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=SHLIB_PATH
15414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15420 postinstall_cmds='chmod 555 $lib'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=no
15432 hardcode_into_libs=yes
15435 irix5* | irix6* | nonstopux*)
15437 nonstopux*) version_type=nonstopux ;;
15439 if test "$lt_cv_prog_gnu_ld" = yes; then
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15450 irix5* | nonstopux*)
15451 libsuff= shlibsuff=
15454 case $LD in # libtool.m4 will add one of these switches to LD
15455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15456 libsuff= shlibsuff= libmagic=32-bit;;
15457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15458 libsuff=32 shlibsuff=N32 libmagic=N32;;
15459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15461 *) libsuff= shlibsuff= libmagic=never-match;;
15465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15466 shlibpath_overrides_runpath=no
15467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15469 hardcode_into_libs=yes
15472 # No shared lib support for Linux oldld, aout, or coff.
15473 linux*oldld* | linux*aout* | linux*coff*)
15477 # This must be Linux ELF.
15478 linux* | k*bsd*-gnu)
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 # This implies no fast_install, which is unacceptable.
15488 # Some rework will be needed to allow for fast_install
15489 # before this can be enabled.
15490 hardcode_into_libs=yes
15492 # Append ld.so.conf contents to the search path
15493 if test -f /etc/ld.so.conf; then
15494 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' ' '`
15495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15498 # We used to test for /lib/ld.so.1 and disable shared libraries on
15499 # powerpc, because MkLinux only supported shared libraries with the
15500 # GNU dynamic linker. Since this was broken with cross compilers,
15501 # most powerpc-linux boxes support dynamic linking these days and
15502 # people can always --disable-shared, the test was removed, and we
15503 # assume the GNU/Linux dynamic linker is in use.
15504 dynamic_linker='GNU/Linux ld.so'
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=no
15515 hardcode_into_libs=yes
15516 dynamic_linker='NetBSD ld.elf_so'
15523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15526 dynamic_linker='NetBSD (a.out) ld.so'
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 dynamic_linker='NetBSD ld.elf_so'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 shlibpath_overrides_runpath=yes
15534 hardcode_into_libs=yes
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15556 sys_lib_dlsearch_path_spec="/usr/lib"
15558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15561 *) need_version=no ;;
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15568 openbsd2.[89] | openbsd2.[89].*)
15569 shlibpath_overrides_runpath=no
15572 shlibpath_overrides_runpath=yes
15576 shlibpath_overrides_runpath=yes
15581 libname_spec='$name'
15584 library_names_spec='$libname${shared_ext} $libname.a'
15585 dynamic_linker='OS/2 ld.exe'
15586 shlibpath_var=LIBPATH
15589 osf3* | osf4* | osf5*)
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15609 # ldd complains unless libraries are executable
15610 postinstall_cmds='chmod +x $lib'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes
15619 if test "$with_gnu_ld" = yes; then
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 case $host_vendor in
15632 shlibpath_overrides_runpath=no
15634 export_dynamic_flag_spec='${wl}-Blargedynsym'
15635 runpath_var=LD_RUN_PATH
15643 shlibpath_overrides_runpath=no
15644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15650 if test -d /usr/nec ;then
15652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15653 soname_spec='$libname${shared_ext}.$major'
15654 shlibpath_var=LD_LIBRARY_PATH
15658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15659 version_type=freebsd-elf
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 hardcode_into_libs=yes
15666 if test "$with_gnu_ld" = yes; then
15667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15668 shlibpath_overrides_runpath=no
15670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15671 shlibpath_overrides_runpath=yes
15674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15678 sys_lib_dlsearch_path_spec='/usr/lib'
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15692 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15693 echo "${ECHO_T}$dynamic_linker" >&6; }
15694 test "$dynamic_linker" = no && can_build_shared=no
15696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15697 if test "$GCC" = yes; then
15698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15701 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15703 hardcode_action_F77=
15704 if test -n "$hardcode_libdir_flag_spec_F77" || \
15705 test -n "$runpath_var_F77" || \
15706 test "X$hardcode_automatic_F77" = "Xyes" ; then
15708 # We can hardcode non-existant directories.
15709 if test "$hardcode_direct_F77" != no &&
15710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15711 # have to relink, otherwise we might link with an installed library
15712 # when we should be linking with a yet-to-be-installed one
15713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15714 test "$hardcode_minus_L_F77" != no; then
15715 # Linking always hardcodes the temporary library directory.
15716 hardcode_action_F77=relink
15718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15719 hardcode_action_F77=immediate
15722 # We cannot hardcode anything, or else we can only hardcode existing
15724 hardcode_action_F77=unsupported
15726 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15727 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15729 if test "$hardcode_action_F77" = relink; then
15730 # Fast installation is not supported
15731 enable_fast_install=no
15732 elif test "$shlibpath_overrides_runpath" = yes ||
15733 test "$enable_shared" = no; then
15734 # Fast installation is not necessary
15735 enable_fast_install=needless
15739 # The else clause should only fire when bootstrapping the
15740 # libtool distribution, otherwise you forgot to ship ltmain.sh
15741 # with your package, and you will get complaints that there are
15742 # no rules to generate ltmain.sh.
15743 if test -f "$ltmain"; then
15744 # See if we are running on zsh, and set the options which allow our commands through
15745 # without removal of \ escapes.
15746 if test -n "${ZSH_VERSION+set}" ; then
15747 setopt NO_GLOB_SUBST
15749 # Now quote all the things that may contain metacharacters while being
15750 # careful not to overquote the AC_SUBSTed values. We take copies of the
15751 # variables and quote the copies for generation of the libtool script.
15752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15756 deplibs_check_method reload_flag reload_cmds need_locks \
15757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15758 lt_cv_sys_global_symbol_to_c_name_address \
15759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15760 old_postinstall_cmds old_postuninstall_cmds \
15764 lt_prog_compiler_wl_F77 \
15765 lt_prog_compiler_pic_F77 \
15766 lt_prog_compiler_static_F77 \
15767 lt_prog_compiler_no_builtin_flag_F77 \
15768 export_dynamic_flag_spec_F77 \
15769 thread_safe_flag_spec_F77 \
15770 whole_archive_flag_spec_F77 \
15771 enable_shared_with_static_runtimes_F77 \
15772 old_archive_cmds_F77 \
15773 old_archive_from_new_cmds_F77 \
15774 predep_objects_F77 \
15775 postdep_objects_F77 \
15778 compiler_lib_search_path_F77 \
15780 archive_expsym_cmds_F77 \
15781 postinstall_cmds_F77 \
15782 postuninstall_cmds_F77 \
15783 old_archive_from_expsyms_cmds_F77 \
15784 allow_undefined_flag_F77 \
15785 no_undefined_flag_F77 \
15786 export_symbols_cmds_F77 \
15787 hardcode_libdir_flag_spec_F77 \
15788 hardcode_libdir_flag_spec_ld_F77 \
15789 hardcode_libdir_separator_F77 \
15790 hardcode_automatic_F77 \
15792 module_expsym_cmds_F77 \
15793 lt_cv_prog_compiler_c_o_F77 \
15794 exclude_expsyms_F77 \
15795 include_expsyms_F77; do
15798 old_archive_cmds_F77 | \
15799 old_archive_from_new_cmds_F77 | \
15800 archive_cmds_F77 | \
15801 archive_expsym_cmds_F77 | \
15802 module_cmds_F77 | \
15803 module_expsym_cmds_F77 | \
15804 old_archive_from_expsyms_cmds_F77 | \
15805 export_symbols_cmds_F77 | \
15806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15807 postinstall_cmds | postuninstall_cmds | \
15808 old_postinstall_cmds | old_postuninstall_cmds | \
15809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15810 # Double-quote double-evaled strings.
15811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15820 *'\$0 --fallback-echo"')
15821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15827 cat <<__EOF__ >> "$cfgfile"
15828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15832 # Shell to use when invoking shell scripts.
15835 # Whether or not to build shared libraries.
15836 build_libtool_libs=$enable_shared
15838 # Whether or not to build static libraries.
15839 build_old_libs=$enable_static
15841 # Whether or not to add -lc for building shared libraries.
15842 build_libtool_need_lc=$archive_cmds_need_lc_F77
15844 # Whether or not to disallow shared libs when runtime libs are static
15845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15847 # Whether or not to optimize for fast installation.
15848 fast_install=$enable_fast_install
15851 host_alias=$host_alias
15855 # The build system.
15856 build_alias=$build_alias
15860 # An echo program that does not interpret backslashes.
15865 AR_FLAGS=$lt_AR_FLAGS
15870 # LTCC compiler flags.
15871 LTCFLAGS=$lt_LTCFLAGS
15873 # A language-specific compiler.
15874 CC=$lt_compiler_F77
15876 # Is the compiler the GNU C compiler?
15882 # The linker used to build libraries.
15885 # Whether we need hard or soft links.
15888 # A BSD-compatible nm program.
15891 # A symbol stripping program
15894 # Used to examine libraries when file_magic_cmd begins "file"
15895 MAGIC_CMD=$MAGIC_CMD
15897 # Used on cygwin: DLL creation program.
15900 # Used on cygwin: object dumper.
15903 # Used on cygwin: assembler.
15906 # The name of the directory that contains temporary libtool files.
15909 # How to create reloadable object files.
15910 reload_flag=$lt_reload_flag
15911 reload_cmds=$lt_reload_cmds
15913 # How to pass a linker flag through the compiler.
15914 wl=$lt_lt_prog_compiler_wl_F77
15916 # Object file suffix (normally "o").
15917 objext="$ac_objext"
15919 # Old archive suffix (normally "a").
15922 # Shared library suffix (normally ".so").
15923 shrext_cmds='$shrext_cmds'
15925 # Executable file suffix (normally "").
15928 # Additional compiler flags for building library objects.
15929 pic_flag=$lt_lt_prog_compiler_pic_F77
15932 # What is the maximum length of a command?
15933 max_cmd_len=$lt_cv_sys_max_cmd_len
15935 # Does compiler simultaneously support -c and -o options?
15936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15941 # Do we need the lib prefix for modules?
15942 need_lib_prefix=$need_lib_prefix
15944 # Do we need a version for libraries?
15945 need_version=$need_version
15947 # Whether dlopen is supported.
15948 dlopen_support=$enable_dlopen
15950 # Whether dlopen of programs is supported.
15951 dlopen_self=$enable_dlopen_self
15953 # Whether dlopen of statically linked programs is supported.
15954 dlopen_self_static=$enable_dlopen_self_static
15956 # Compiler flag to prevent dynamic linking.
15957 link_static_flag=$lt_lt_prog_compiler_static_F77
15959 # Compiler flag to turn off builtin functions.
15960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15962 # Compiler flag to allow reflexive dlopens.
15963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15965 # Compiler flag to generate shared objects directly from archives.
15966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15968 # Compiler flag to generate thread-safe objects.
15969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15971 # Library versioning type.
15972 version_type=$version_type
15974 # Format of library name prefix.
15975 libname_spec=$lt_libname_spec
15977 # List of archive names. First name is the real one, the rest are links.
15978 # The last name is the one that the linker finds with -lNAME.
15979 library_names_spec=$lt_library_names_spec
15981 # The coded name of the library, if different from the real name.
15982 soname_spec=$lt_soname_spec
15984 # Commands used to build and install an old-style archive.
15986 old_archive_cmds=$lt_old_archive_cmds_F77
15987 old_postinstall_cmds=$lt_old_postinstall_cmds
15988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15990 # Create an old-style archive from a shared archive.
15991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15993 # Create a temporary old-style archive to link instead of a shared archive.
15994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15996 # Commands used to build and install a shared archive.
15997 archive_cmds=$lt_archive_cmds_F77
15998 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15999 postinstall_cmds=$lt_postinstall_cmds
16000 postuninstall_cmds=$lt_postuninstall_cmds
16002 # Commands used to build a loadable module (assumed same as above if empty)
16003 module_cmds=$lt_module_cmds_F77
16004 module_expsym_cmds=$lt_module_expsym_cmds_F77
16006 # Commands to strip libraries.
16007 old_striplib=$lt_old_striplib
16008 striplib=$lt_striplib
16010 # Dependencies to place before the objects being linked to create a
16012 predep_objects=$lt_predep_objects_F77
16014 # Dependencies to place after the objects being linked to create a
16016 postdep_objects=$lt_postdep_objects_F77
16018 # Dependencies to place before the objects being linked to create a
16020 predeps=$lt_predeps_F77
16022 # Dependencies to place after the objects being linked to create a
16024 postdeps=$lt_postdeps_F77
16026 # The library search path used internally by the compiler when linking
16027 # a shared library.
16028 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16030 # Method to check whether dependent libraries are shared objects.
16031 deplibs_check_method=$lt_deplibs_check_method
16033 # Command to use when deplibs_check_method == file_magic.
16034 file_magic_cmd=$lt_file_magic_cmd
16036 # Flag that allows shared libraries with undefined symbols to be built.
16037 allow_undefined_flag=$lt_allow_undefined_flag_F77
16039 # Flag that forces no undefined symbols.
16040 no_undefined_flag=$lt_no_undefined_flag_F77
16042 # Commands used to finish a libtool library installation in a directory.
16043 finish_cmds=$lt_finish_cmds
16045 # Same as above, but a single script fragment to be evaled but not shown.
16046 finish_eval=$lt_finish_eval
16048 # Take the output of nm and produce a listing of raw symbols and C names.
16049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16051 # Transform the output of nm in a proper C declaration
16052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16054 # Transform the output of nm in a C name address pair
16055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16057 # This is the shared library runtime path variable.
16058 runpath_var=$runpath_var
16060 # This is the shared library path variable.
16061 shlibpath_var=$shlibpath_var
16063 # Is shlibpath searched before the hard-coded library search path?
16064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16066 # How to hardcode a shared library path into an executable.
16067 hardcode_action=$hardcode_action_F77
16069 # Whether we should hardcode library paths into libraries.
16070 hardcode_into_libs=$hardcode_into_libs
16072 # Flag to hardcode \$libdir into a binary during linking.
16073 # This must work even if \$libdir does not exist.
16074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16076 # If ld is used when linking, flag to hardcode \$libdir into
16077 # a binary during linking. This must work even if \$libdir does
16079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16081 # Whether we need a single -rpath flag with a separated argument.
16082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16085 # resulting binary.
16086 hardcode_direct=$hardcode_direct_F77
16088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16089 # resulting binary.
16090 hardcode_minus_L=$hardcode_minus_L_F77
16092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16093 # the resulting binary.
16094 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16096 # Set to yes if building a shared library automatically hardcodes DIR into the library
16097 # and all subsequent libraries and executables linked against it.
16098 hardcode_automatic=$hardcode_automatic_F77
16100 # Variables whose values should be saved in libtool wrapper scripts and
16101 # restored at relink time.
16102 variables_saved_for_relink="$variables_saved_for_relink"
16104 # Whether libtool must link a program against all its dependency libraries.
16105 link_all_deplibs=$link_all_deplibs_F77
16107 # Compile-time system search path for libraries
16108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16110 # Run-time system search path for libraries
16111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16113 # Fix the shell variable \$srcfile for the compiler.
16114 fix_srcfile_path="$fix_srcfile_path_F77"
16116 # Set to yes if exported symbols are required.
16117 always_export_symbols=$always_export_symbols_F77
16119 # The commands to list exported symbols.
16120 export_symbols_cmds=$lt_export_symbols_cmds_F77
16122 # The commands to extract the exported symbol list from a shared archive.
16123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16125 # Symbols that should not be listed in the preloaded symbols.
16126 exclude_expsyms=$lt_exclude_expsyms_F77
16128 # Symbols that must always be exported.
16129 include_expsyms=$lt_include_expsyms_F77
16131 # ### END LIBTOOL TAG CONFIG: $tagname
16137 # If there is no Makefile yet, we rely on a make rule to execute
16138 # `config.status --recheck' to rerun these tests and create the
16139 # libtool script then.
16140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16141 if test -f "$ltmain_in"; then
16142 test -f Makefile && make "$ltmain"
16148 ac_cpp='$CPP $CPPFLAGS'
16149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16161 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16164 # Source file extension for Java test sources.
16167 # Object file extension for compiled Java test sources.
16171 # Code to be used in simple compile tests
16172 lt_simple_compile_test_code="class foo {}\n"
16174 # Code to be used in simple link tests
16175 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16177 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16179 # If no C compiler was specified, use CC.
16182 # If no C compiler flags were specified, use CFLAGS.
16183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16185 # Allow CC to be a program name with arguments.
16189 # save warnings/boilerplate of simple test code
16190 ac_outfile=conftest.$ac_objext
16191 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16193 _lt_compiler_boilerplate=`cat conftest.err`
16196 ac_outfile=conftest.$ac_objext
16197 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16199 _lt_linker_boilerplate=`cat conftest.err`
16203 # Allow CC to be a program name with arguments.
16208 for cc_temp in $compiler""; do
16210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16219 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16220 archive_cmds_need_lc_GCJ=no
16222 old_archive_cmds_GCJ=$old_archive_cmds
16225 lt_prog_compiler_no_builtin_flag_GCJ=
16227 if test "$GCC" = yes; then
16228 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16231 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16232 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 lt_cv_prog_compiler_rtti_exceptions=no
16237 ac_outfile=conftest.$ac_objext
16238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16239 lt_compiler_flag="-fno-rtti -fno-exceptions"
16240 # Insert the option either (1) after the last *FLAGS variable, or
16241 # (2) before a word containing "conftest.", or (3) at the end.
16242 # Note that $ac_compile itself does not contain backslashes and begins
16243 # with a dollar sign (not a hyphen), so the echo should work correctly.
16244 # The option is referenced via a variable to avoid confusing sed.
16245 lt_compile=`echo "$ac_compile" | $SED \
16246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16248 -e 's:$: $lt_compiler_flag:'`
16249 (eval echo "\"\$as_me:16249: $lt_compile\"" >&5)
16250 (eval "$lt_compile" 2>conftest.err)
16252 cat conftest.err >&5
16253 echo "$as_me:16253: \$? = $ac_status" >&5
16254 if (exit $ac_status) && test -s "$ac_outfile"; then
16255 # The compiler can only warn and ignore the option if not recognized
16256 # So say no if there are warnings other than the usual output.
16257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16259 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16260 lt_cv_prog_compiler_rtti_exceptions=yes
16266 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16270 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16277 lt_prog_compiler_wl_GCJ=
16278 lt_prog_compiler_pic_GCJ=
16279 lt_prog_compiler_static_GCJ=
16281 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16284 if test "$GCC" = yes; then
16285 lt_prog_compiler_wl_GCJ='-Wl,'
16286 lt_prog_compiler_static_GCJ='-static'
16290 # All AIX code is PIC.
16291 if test "$host_cpu" = ia64; then
16292 # AIX 5 now supports IA64 processor
16293 lt_prog_compiler_static_GCJ='-Bstatic'
16298 # FIXME: we need at least 68020 code to build shared libraries, but
16299 # adding the `-m68020' flag to GCC prevents building anything better,
16301 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16305 # PIC is the default for these OSes.
16308 mingw* | pw32* | os2*)
16309 # This hack is so that the source file can tell whether it is being
16310 # built for inclusion in a dll (and should export symbols for example).
16311 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16314 darwin* | rhapsody*)
16315 # PIC is the default on this platform
16316 # Common symbols not allowed in MH_DYLIB files
16317 lt_prog_compiler_pic_GCJ='-fno-common'
16321 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16322 # Instead, we relocate shared libraries at runtime.
16326 # Just because we use GCC doesn't mean we suddenly get shared libraries
16327 # on systems that don't support them.
16328 lt_prog_compiler_can_build_shared_GCJ=no
16333 if test -d /usr/nec; then
16334 lt_prog_compiler_pic_GCJ=-Kconform_pic
16339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16340 # not for PA HP-UX.
16346 lt_prog_compiler_pic_GCJ='-fPIC'
16352 lt_prog_compiler_pic_GCJ='-fPIC'
16356 # PORTME Check for flag to pass linker flags through the system compiler.
16359 lt_prog_compiler_wl_GCJ='-Wl,'
16360 if test "$host_cpu" = ia64; then
16361 # AIX 5 now supports IA64 processor
16362 lt_prog_compiler_static_GCJ='-Bstatic'
16364 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16368 # PIC is the default on this platform
16369 # Common symbols not allowed in MH_DYLIB files
16370 case $cc_basename in
16372 lt_prog_compiler_pic_GCJ='-qnocommon'
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16378 mingw* | pw32* | os2*)
16379 # This hack is so that the source file can tell whether it is being
16380 # built for inclusion in a dll (and should export symbols for example).
16381 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16384 hpux9* | hpux10* | hpux11*)
16385 lt_prog_compiler_wl_GCJ='-Wl,'
16386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16387 # not for PA HP-UX.
16393 lt_prog_compiler_pic_GCJ='+Z'
16396 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16397 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16400 irix5* | irix6* | nonstopux*)
16401 lt_prog_compiler_wl_GCJ='-Wl,'
16402 # PIC (with -KPIC) is the default.
16403 lt_prog_compiler_static_GCJ='-non_shared'
16407 lt_prog_compiler_pic_GCJ='-KPIC'
16408 lt_prog_compiler_static_GCJ='-Bstatic'
16411 linux* | k*bsd*-gnu)
16412 case $cc_basename in
16414 lt_prog_compiler_wl_GCJ='-Wl,'
16415 lt_prog_compiler_pic_GCJ='-KPIC'
16416 lt_prog_compiler_static_GCJ='-static'
16418 pgcc* | pgf77* | pgf90* | pgf95*)
16419 # Portland Group compilers (*not* the Pentium gcc compiler,
16420 # which looks to be a dead project)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 lt_prog_compiler_pic_GCJ='-fpic'
16423 lt_prog_compiler_static_GCJ='-Bstatic'
16426 lt_prog_compiler_wl_GCJ='-Wl,'
16427 # All Alpha code is PIC.
16428 lt_prog_compiler_static_GCJ='-non_shared'
16433 osf3* | osf4* | osf5*)
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 # All OSF/1 code is PIC.
16436 lt_prog_compiler_static_GCJ='-non_shared'
16440 lt_prog_compiler_pic_GCJ='-KPIC'
16441 lt_prog_compiler_static_GCJ='-Bstatic'
16442 case $cc_basename in
16443 f77* | f90* | f95*)
16444 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16446 lt_prog_compiler_wl_GCJ='-Wl,';;
16451 lt_prog_compiler_wl_GCJ='-Qoption ld '
16452 lt_prog_compiler_pic_GCJ='-PIC'
16453 lt_prog_compiler_static_GCJ='-Bstatic'
16456 sysv4 | sysv4.2uw2* | sysv4.3*)
16457 lt_prog_compiler_wl_GCJ='-Wl,'
16458 lt_prog_compiler_pic_GCJ='-KPIC'
16459 lt_prog_compiler_static_GCJ='-Bstatic'
16463 if test -d /usr/nec ;then
16464 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16465 lt_prog_compiler_static_GCJ='-Bstatic'
16469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16470 lt_prog_compiler_wl_GCJ='-Wl,'
16471 lt_prog_compiler_pic_GCJ='-KPIC'
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16476 lt_prog_compiler_wl_GCJ='-Wl,'
16477 lt_prog_compiler_can_build_shared_GCJ=no
16481 lt_prog_compiler_pic_GCJ='-pic'
16482 lt_prog_compiler_static_GCJ='-Bstatic'
16486 lt_prog_compiler_can_build_shared_GCJ=no
16491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16492 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16495 # Check to make sure the PIC flag actually works.
16497 if test -n "$lt_prog_compiler_pic_GCJ"; then
16499 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16501 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 lt_prog_compiler_pic_works_GCJ=no
16505 ac_outfile=conftest.$ac_objext
16506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16507 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16508 # Insert the option either (1) after the last *FLAGS variable, or
16509 # (2) before a word containing "conftest.", or (3) at the end.
16510 # Note that $ac_compile itself does not contain backslashes and begins
16511 # with a dollar sign (not a hyphen), so the echo should work correctly.
16512 # The option is referenced via a variable to avoid confusing sed.
16513 lt_compile=`echo "$ac_compile" | $SED \
16514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16516 -e 's:$: $lt_compiler_flag:'`
16517 (eval echo "\"\$as_me:16517: $lt_compile\"" >&5)
16518 (eval "$lt_compile" 2>conftest.err)
16520 cat conftest.err >&5
16521 echo "$as_me:16521: \$? = $ac_status" >&5
16522 if (exit $ac_status) && test -s "$ac_outfile"; then
16523 # The compiler can only warn and ignore the option if not recognized
16524 # So say no if there are warnings other than the usual output.
16525 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16528 lt_prog_compiler_pic_works_GCJ=yes
16534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16535 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16537 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16538 case $lt_prog_compiler_pic_GCJ in
16540 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16543 lt_prog_compiler_pic_GCJ=
16544 lt_prog_compiler_can_build_shared_GCJ=no
16549 # For platforms which do not support PIC, -DPIC is meaningless:
16551 lt_prog_compiler_pic_GCJ=
16554 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16559 # Check to make sure the static flag actually works.
16561 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16562 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16563 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16564 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 lt_prog_compiler_static_works_GCJ=no
16568 save_LDFLAGS="$LDFLAGS"
16569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16570 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16572 # The linker can only warn and ignore the option if not recognized
16573 # So say no if there are warnings
16574 if test -s conftest.err; then
16575 # Append any errors to the config.log.
16576 cat conftest.err 1>&5
16577 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16579 if diff conftest.exp conftest.er2 >/dev/null; then
16580 lt_prog_compiler_static_works_GCJ=yes
16583 lt_prog_compiler_static_works_GCJ=yes
16587 LDFLAGS="$save_LDFLAGS"
16590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16591 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16593 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16596 lt_prog_compiler_static_GCJ=
16600 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16601 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16602 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 lt_cv_prog_compiler_c_o_GCJ=no
16606 $rm -r conftest 2>/dev/null
16610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16612 lt_compiler_flag="-o out/conftest2.$ac_objext"
16613 # Insert the option either (1) after the last *FLAGS variable, or
16614 # (2) before a word containing "conftest.", or (3) at the end.
16615 # Note that $ac_compile itself does not contain backslashes and begins
16616 # with a dollar sign (not a hyphen), so the echo should work correctly.
16617 lt_compile=`echo "$ac_compile" | $SED \
16618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16620 -e 's:$: $lt_compiler_flag:'`
16621 (eval echo "\"\$as_me:16621: $lt_compile\"" >&5)
16622 (eval "$lt_compile" 2>out/conftest.err)
16624 cat out/conftest.err >&5
16625 echo "$as_me:16625: \$? = $ac_status" >&5
16626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16628 # The compiler can only warn and ignore the option if not recognized
16629 # So say no if there are warnings
16630 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16633 lt_cv_prog_compiler_c_o_GCJ=yes
16638 # SGI C++ compiler will create directory out/ii_files/ for
16639 # template instantiation
16640 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16641 $rm out/* && rmdir out
16647 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16651 hard_links="nottested"
16652 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16653 # do not overwrite the value of need_locks provided by the user
16654 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16660 ln conftest.a conftest.b 2>&5 || hard_links=no
16661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16662 { echo "$as_me:$LINENO: result: $hard_links" >&5
16663 echo "${ECHO_T}$hard_links" >&6; }
16664 if test "$hard_links" = no; then
16665 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16673 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16677 allow_undefined_flag_GCJ=
16678 enable_shared_with_static_runtimes_GCJ=no
16680 archive_expsym_cmds_GCJ=
16681 old_archive_From_new_cmds_GCJ=
16682 old_archive_from_expsyms_cmds_GCJ=
16683 export_dynamic_flag_spec_GCJ=
16684 whole_archive_flag_spec_GCJ=
16685 thread_safe_flag_spec_GCJ=
16686 hardcode_libdir_flag_spec_GCJ=
16687 hardcode_libdir_flag_spec_ld_GCJ=
16688 hardcode_libdir_separator_GCJ=
16689 hardcode_direct_GCJ=no
16690 hardcode_minus_L_GCJ=no
16691 hardcode_shlibpath_var_GCJ=unsupported
16692 link_all_deplibs_GCJ=unknown
16693 hardcode_automatic_GCJ=no
16695 module_expsym_cmds_GCJ=
16696 always_export_symbols_GCJ=no
16697 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16698 # include_expsyms should be a list of space-separated symbols to be *always*
16699 # included in the symbol list
16700 include_expsyms_GCJ=
16701 # exclude_expsyms can be an extended regexp of symbols to exclude
16702 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16703 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16704 # as well as any symbol that contains `d'.
16705 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16706 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16707 # platforms (ab)use it in PIC code, but their linkers get confused if
16708 # the symbol is explicitly referenced. Since portable code cannot
16709 # rely on this symbol name, it's probably fine to never include it in
16710 # preloaded symbol tables.
16711 extract_expsyms_cmds=
16712 # Just being paranoid about ensuring that cc_basename is set.
16713 for cc_temp in $compiler""; do
16715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16724 cygwin* | mingw* | pw32*)
16725 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16726 # When not using gcc, we currently assume that we are using
16727 # Microsoft Visual C++.
16728 if test "$GCC" != yes; then
16733 # we just hope/assume this is gcc and not c89 (= MSVC++)
16742 if test "$with_gnu_ld" = yes; then
16743 # If archive_cmds runs LD, not CC, wlarc should be empty
16746 # Set some defaults for GNU ld with shared library support. These
16747 # are reset later if shared libraries are not supported. Putting them
16748 # here allows them to be overridden if necessary.
16749 runpath_var=LD_RUN_PATH
16750 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16751 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16752 # ancient GNU ld didn't support --whole-archive et. al.
16753 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16754 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16756 whole_archive_flag_spec_GCJ=
16758 supports_anon_versioning=no
16759 case `$LD -v 2>/dev/null` in
16760 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16761 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16762 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16763 *\ 2.11.*) ;; # other 2.11 versions
16764 *) supports_anon_versioning=yes ;;
16767 # See if GNU ld supports shared libraries.
16769 aix3* | aix4* | aix5*)
16770 # On AIX/PPC, the GNU linker is very broken
16771 if test "$host_cpu" != ia64; then
16775 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16776 *** to be unable to reliably create shared libraries on AIX.
16777 *** Therefore, libtool is disabling shared libraries support. If you
16778 *** really care for shared libraries, you may want to modify your PATH
16779 *** so that a non-GNU linker is found, and then restart.
16786 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)'
16787 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16788 hardcode_minus_L_GCJ=yes
16790 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16791 # that the semantics of dynamic libraries on AmigaOS, at least up
16792 # to version 4, is to share data among multiple programs linked
16793 # with the same dynamic library. Since this doesn't match the
16794 # behavior of shared libraries on other platforms, we can't use
16800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16801 allow_undefined_flag_GCJ=unsupported
16802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16803 # support --undefined. This deserves some investigation. FIXME
16804 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16810 cygwin* | mingw* | pw32*)
16811 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16812 # as there is no search path for DLLs.
16813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16814 allow_undefined_flag_GCJ=unsupported
16815 always_export_symbols_GCJ=no
16816 enable_shared_with_static_runtimes_GCJ=yes
16817 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16819 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16821 # If the export-symbols file already is a .def file (1st line
16822 # is EXPORTS), use it as is; otherwise, prepend...
16823 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16824 cp $export_symbols $output_objdir/$soname.def;
16826 echo EXPORTS > $output_objdir/$soname.def;
16827 cat $export_symbols >> $output_objdir/$soname.def;
16829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16836 hardcode_direct_GCJ=no
16837 hardcode_shlibpath_var_GCJ=no
16838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16839 export_dynamic_flag_spec_GCJ='${wl}-E'
16840 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16841 # Instead, shared libraries are loaded at an image base (0x10000000 by
16842 # default) and relocated if they conflict, which is a slow very memory
16843 # consuming and fragmenting process. To avoid this, we pick a random,
16844 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16845 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16846 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'
16847 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'
16850 linux* | k*bsd*-gnu)
16851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16853 case $cc_basename,$host_cpu in
16854 pgcc*) # Portland Group C compiler
16855 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'
16856 tmp_addflag=' $pic_flag'
16858 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16859 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'
16860 tmp_addflag=' $pic_flag -Mnomain' ;;
16861 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16862 tmp_addflag=' -i_dynamic' ;;
16863 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16864 tmp_addflag=' -i_dynamic -nofor_main' ;;
16865 ifc* | ifort*) # Intel Fortran compiler
16866 tmp_addflag=' -nofor_main' ;;
16868 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16870 if test $supports_anon_versioning = yes; then
16871 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16873 $echo "local: *; };" >> $output_objdir/$libname.ver~
16874 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16876 link_all_deplibs_GCJ=no
16882 netbsd* | netbsdelf*-gnu)
16883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16884 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16898 *** create shared libraries on Solaris systems. Therefore, libtool
16899 *** is disabling shared libraries support. We urge you to upgrade GNU
16900 *** binutils to release 2.9.1 or newer. Another option is to modify
16901 *** your PATH or compiler configuration so that the native linker is
16902 *** used, and then restart.
16905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16907 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16914 case `$LD -v 2>&1` in
16915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16920 *** reliably create shared libraries on SCO systems. Therefore, libtool
16921 *** is disabling shared libraries support. We urge you to upgrade GNU
16922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16923 *** your PATH or compiler configuration so that the native linker is
16924 *** used, and then restart.
16929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16931 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16932 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16941 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16943 hardcode_direct_GCJ=yes
16944 hardcode_shlibpath_var_GCJ=no
16948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16950 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16957 if test "$ld_shlibs_GCJ" = no; then
16959 hardcode_libdir_flag_spec_GCJ=
16960 export_dynamic_flag_spec_GCJ=
16961 whole_archive_flag_spec_GCJ=
16964 # PORTME fill in a description of your system's linker (not GNU ld)
16967 allow_undefined_flag_GCJ=unsupported
16968 always_export_symbols_GCJ=yes
16969 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'
16970 # Note: this linker hardcodes the directories in LIBPATH if there
16971 # are no directories specified by -L.
16972 hardcode_minus_L_GCJ=yes
16973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16974 # Neither direct hardcoding nor static linking is supported with a
16976 hardcode_direct_GCJ=unsupported
16981 if test "$host_cpu" = ia64; then
16982 # On IA64, the linker does run time linking by default, so we don't
16983 # have to do anything special.
16984 aix_use_runtimelinking=no
16985 exp_sym_flag='-Bexport'
16988 # If we're using GNU nm, then we don't want the "-C" option.
16989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16991 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'
16993 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'
16995 aix_use_runtimelinking=no
16997 # Test if we are trying to use run time linking or normal
16998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16999 # need to do runtime linking.
17000 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17001 for ld_flag in $LDFLAGS; do
17002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17003 aix_use_runtimelinking=yes
17010 exp_sym_flag='-bexport'
17011 no_entry_flag='-bnoentry'
17014 # When large executables or shared objects are built, AIX ld can
17015 # have problems creating the table of contents. If linking a library
17016 # or program results in "error TOC overflow" add -mminimal-toc to
17017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17020 archive_cmds_GCJ=''
17021 hardcode_direct_GCJ=yes
17022 hardcode_libdir_separator_GCJ=':'
17023 link_all_deplibs_GCJ=yes
17025 if test "$GCC" = yes; then
17026 case $host_os in aix4.[012]|aix4.[012].*)
17027 # We only want to do this on AIX 4.2 and lower, the check
17028 # below for broken collect2 doesn't work under 4.3+
17029 collect2name=`${CC} -print-prog-name=collect2`
17030 if test -f "$collect2name" && \
17031 strings "$collect2name" | grep resolve_lib_name >/dev/null
17033 # We have reworked collect2
17034 hardcode_direct_GCJ=yes
17036 # We have old collect2
17037 hardcode_direct_GCJ=unsupported
17038 # It fails to find uninstalled libraries when the uninstalled
17039 # path is not listed in the libpath. Setting hardcode_minus_L
17040 # to unsupported forces relinking
17041 hardcode_minus_L_GCJ=yes
17042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043 hardcode_libdir_separator_GCJ=
17047 shared_flag='-shared'
17048 if test "$aix_use_runtimelinking" = yes; then
17049 shared_flag="$shared_flag "'${wl}-G'
17053 if test "$host_cpu" = ia64; then
17054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17055 # chokes on -Wl,-G. The following line is correct:
17058 if test "$aix_use_runtimelinking" = yes; then
17059 shared_flag='${wl}-G'
17061 shared_flag='${wl}-bM:SRE'
17066 # It seems that -bexpall does not export symbols beginning with
17067 # underscore (_), so it is better to generate a list of symbols to export.
17068 always_export_symbols_GCJ=yes
17069 if test "$aix_use_runtimelinking" = yes; then
17070 # Warning - without using the other runtime loading flags (-brtl),
17071 # -berok will link without error, but may produce a broken library.
17072 allow_undefined_flag_GCJ='-berok'
17073 # Determine the default libpath from the value encoded in an empty executable.
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17110 # Check for a 64-bit object if we didn't find anything.
17111 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; }
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17124 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17125 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"
17127 if test "$host_cpu" = ia64; then
17128 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17129 allow_undefined_flag_GCJ="-z nodefs"
17130 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"
17132 # Determine the default libpath from the value encoded in an empty executable.
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && {
17162 test -z "$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 } && test -s conftest$ac_exeext &&
17165 $as_test_x conftest$ac_exeext; then
17167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17169 # Check for a 64-bit object if we didn't find anything.
17170 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; }
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17180 conftest$ac_exeext conftest.$ac_ext
17181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17183 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17184 # Warning - without using the other run time loading flags,
17185 # -berok will link without error, but may produce a broken library.
17186 no_undefined_flag_GCJ=' ${wl}-bernotok'
17187 allow_undefined_flag_GCJ=' ${wl}-berok'
17188 # Exported symbols can be pulled into shared objects from archives
17189 whole_archive_flag_spec_GCJ='$convenience'
17190 archive_cmds_need_lc_GCJ=yes
17191 # This is similar to how AIX traditionally builds its shared libraries.
17192 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'
17198 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)'
17199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200 hardcode_minus_L_GCJ=yes
17201 # see comment about different semantics on the GNU ld section
17206 export_dynamic_flag_spec_GCJ=-rdynamic
17209 cygwin* | mingw* | pw32*)
17210 # When not using gcc, we currently assume that we are using
17211 # Microsoft Visual C++.
17212 # hardcode_libdir_flag_spec is actually meaningless, as there is
17213 # no search path for DLLs.
17214 hardcode_libdir_flag_spec_GCJ=' '
17215 allow_undefined_flag_GCJ=unsupported
17216 # Tell ltmain to make .lib files, not .a files.
17218 # Tell ltmain to make .dll files, not .so files.
17220 # FIXME: Setting linknames here is a bad hack.
17221 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17222 # The linker will automatically build a .lib file if we build a DLL.
17223 old_archive_From_new_cmds_GCJ='true'
17224 # FIXME: Should let the user specify the lib program.
17225 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17226 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17227 enable_shared_with_static_runtimes_GCJ=yes
17230 darwin* | rhapsody*)
17232 rhapsody* | darwin1.[012])
17233 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17236 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17237 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17239 case ${MACOSX_DEPLOYMENT_TARGET} in
17241 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17244 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17250 archive_cmds_need_lc_GCJ=no
17251 hardcode_direct_GCJ=no
17252 hardcode_automatic_GCJ=yes
17253 hardcode_shlibpath_var_GCJ=unsupported
17254 whole_archive_flag_spec_GCJ=''
17255 link_all_deplibs_GCJ=yes
17256 if test "$GCC" = yes ; then
17257 output_verbose_link_cmd='echo'
17258 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17259 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17261 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}'
17262 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}'
17264 case $cc_basename in
17266 output_verbose_link_cmd='echo'
17267 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17268 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17269 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17270 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}'
17271 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}'
17281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17283 hardcode_shlibpath_var_GCJ=no
17290 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17291 # support. Future versions do this automatically, but an explicit c++rt0.o
17292 # does not break anything, and helps significantly (at the cost of a little
17295 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17296 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17297 hardcode_direct_GCJ=yes
17298 hardcode_shlibpath_var_GCJ=no
17301 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17303 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17304 hardcode_direct_GCJ=yes
17305 hardcode_minus_L_GCJ=yes
17306 hardcode_shlibpath_var_GCJ=no
17309 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17310 freebsd* | dragonfly*)
17311 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17312 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17313 hardcode_direct_GCJ=yes
17314 hardcode_shlibpath_var_GCJ=no
17318 if test "$GCC" = yes; then
17319 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'
17321 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'
17323 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17324 hardcode_libdir_separator_GCJ=:
17325 hardcode_direct_GCJ=yes
17327 # hardcode_minus_L: Not really in the search PATH,
17328 # but as the default location of the library.
17329 hardcode_minus_L_GCJ=yes
17330 export_dynamic_flag_spec_GCJ='${wl}-E'
17334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17335 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17337 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17339 if test "$with_gnu_ld" = no; then
17340 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17341 hardcode_libdir_separator_GCJ=:
17343 hardcode_direct_GCJ=yes
17344 export_dynamic_flag_spec_GCJ='${wl}-E'
17346 # hardcode_minus_L: Not really in the search PATH,
17347 # but as the default location of the library.
17348 hardcode_minus_L_GCJ=yes
17353 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17356 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17362 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17371 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17374 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17378 if test "$with_gnu_ld" = no; then
17379 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17380 hardcode_libdir_separator_GCJ=:
17384 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17385 hardcode_direct_GCJ=no
17386 hardcode_shlibpath_var_GCJ=no
17389 hardcode_direct_GCJ=yes
17390 export_dynamic_flag_spec_GCJ='${wl}-E'
17392 # hardcode_minus_L: Not really in the search PATH,
17393 # but as the default location of the library.
17394 hardcode_minus_L_GCJ=yes
17400 irix5* | irix6* | nonstopux*)
17401 if test "$GCC" = yes; then
17402 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'
17404 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'
17405 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408 hardcode_libdir_separator_GCJ=:
17409 link_all_deplibs_GCJ=yes
17412 netbsd* | netbsdelf*-gnu)
17413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17416 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17418 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17419 hardcode_direct_GCJ=yes
17420 hardcode_shlibpath_var_GCJ=no
17424 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17425 hardcode_direct_GCJ=yes
17426 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17427 hardcode_libdir_separator_GCJ=:
17428 hardcode_shlibpath_var_GCJ=no
17432 hardcode_direct_GCJ=yes
17433 hardcode_shlibpath_var_GCJ=no
17434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17435 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17436 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17438 export_dynamic_flag_spec_GCJ='${wl}-E'
17441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17442 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17446 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455 hardcode_minus_L_GCJ=yes
17456 allow_undefined_flag_GCJ=unsupported
17457 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'
17458 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17462 if test "$GCC" = yes; then
17463 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17464 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'
17466 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17467 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'
17469 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17470 hardcode_libdir_separator_GCJ=:
17473 osf4* | osf5*) # as osf3* with the addition of -msym flag
17474 if test "$GCC" = yes; then
17475 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17476 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'
17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17480 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'
17481 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~
17482 $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'
17484 # Both c and cxx compiler support -rpath directly
17485 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17487 hardcode_libdir_separator_GCJ=:
17491 no_undefined_flag_GCJ=' -z text'
17492 if test "$GCC" = yes; then
17494 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17495 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17496 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17499 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17504 hardcode_shlibpath_var_GCJ=no
17506 solaris2.[0-5] | solaris2.[0-5].*) ;;
17508 # The compiler driver will combine linker options so we
17509 # cannot just pass the convience library names through
17510 # without $wl, iff we do not link with $LD.
17511 # Luckily, gcc supports the same syntax we need for Sun Studio.
17512 # Supported since Solaris 2.6 (maybe 2.5.1?)
17515 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17517 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' ;;
17520 link_all_deplibs_GCJ=yes
17524 if test "x$host_vendor" = xsequent; then
17525 # Use $CC to link under sequent, because it throws in some extra .o
17526 # files that make .init and .fini sections work.
17527 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532 hardcode_direct_GCJ=yes
17533 hardcode_minus_L_GCJ=yes
17534 hardcode_shlibpath_var_GCJ=no
17538 case $host_vendor in
17540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct_GCJ=yes # is this really true???
17544 ## LD is ld it makes a PLAMLIB
17545 ## CC just makes a GrossModule.
17546 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17547 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17548 hardcode_direct_GCJ=no
17551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17555 runpath_var='LD_RUN_PATH'
17556 hardcode_shlibpath_var_GCJ=no
17560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_shlibpath_var_GCJ=no
17562 export_dynamic_flag_spec_GCJ='-Bexport'
17566 if test -d /usr/nec; then
17567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568 hardcode_shlibpath_var_GCJ=no
17569 runpath_var=LD_RUN_PATH
17570 hardcode_runpath_var=yes
17575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17576 no_undefined_flag_GCJ='${wl}-z,text'
17577 archive_cmds_need_lc_GCJ=no
17578 hardcode_shlibpath_var_GCJ=no
17579 runpath_var='LD_RUN_PATH'
17581 if test "$GCC" = yes; then
17582 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 sysv5* | sco3.2v5* | sco5v6*)
17591 # Note: We can NOT use -z defs as we might desire, because we do not
17592 # link with -lc, and that would cause any symbols used from libc to
17593 # always be unresolved, which means just about no library would
17594 # ever link correctly. If we're not using GNU ld we use -z text
17595 # though, which does catch some bad symbols but isn't as heavy-handed
17597 no_undefined_flag_GCJ='${wl}-z,text'
17598 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17599 archive_cmds_need_lc_GCJ=no
17600 hardcode_shlibpath_var_GCJ=no
17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17602 hardcode_libdir_separator_GCJ=':'
17603 link_all_deplibs_GCJ=yes
17604 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17605 runpath_var='LD_RUN_PATH'
17607 if test "$GCC" = yes; then
17608 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17609 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619 hardcode_shlibpath_var_GCJ=no
17628 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17629 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17630 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17633 # Do we need to explicitly link libc?
17635 case "x$archive_cmds_need_lc_GCJ" in
17637 # Assume -lc should be added
17638 archive_cmds_need_lc_GCJ=yes
17640 if test "$enable_shared" = yes && test "$GCC" = yes; then
17641 case $archive_cmds_GCJ in
17643 # FIXME: we may have to deal with multi-command sequences.
17646 # Test whether the compiler implicitly links with -lc since on some
17647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17648 # to ld, don't add -lc before -lgcc.
17649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } 2>conftest.err; then
17661 libobjs=conftest.$ac_objext
17663 wl=$lt_prog_compiler_wl_GCJ
17664 pic_flag=$lt_prog_compiler_pic_GCJ
17670 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17671 allow_undefined_flag_GCJ=
17672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17673 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }
17678 archive_cmds_need_lc_GCJ=no
17680 archive_cmds_need_lc_GCJ=yes
17682 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17684 cat conftest.err 1>&5
17687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17688 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17697 library_names_spec=
17698 libname_spec='lib$name'
17702 postuninstall_cmds=
17706 shlibpath_overrides_runpath=unknown
17708 dynamic_linker="$host_os ld.so"
17709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17710 if test "$GCC" = yes; then
17711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17713 # if the path contains ";" then we assume it to be the separator
17714 # otherwise default to the standard path separator (i.e. ":") - it is
17715 # assumed that no part of a normal pathname contains ";" but that should
17716 # okay in the real world where ";" in dirpaths is itself problematic.
17717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17724 need_lib_prefix=unknown
17725 hardcode_into_libs=no
17727 # when you set need_version to no, make sure it does not cause -set_version
17728 # flags to be left without arguments
17729 need_version=unknown
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17735 shlibpath_var=LIBPATH
17737 # AIX 3 has no versioning support, so we append a major version to the name.
17738 soname_spec='${libname}${release}${shared_ext}$major'
17745 hardcode_into_libs=yes
17746 if test "$host_cpu" = ia64; then
17747 # AIX 5 supports IA64
17748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17749 shlibpath_var=LD_LIBRARY_PATH
17751 # With GCC up to 2.95.x, collect2 would create an import file
17752 # for dependence libraries. The import file would start with
17753 # the line `#! .'. This would cause the generated library to
17754 # depend on `.', always an invalid library. This was fixed in
17755 # development snapshots of GCC prior to 3.0.
17757 aix4 | aix4.[01] | aix4.[01].*)
17758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17763 can_build_shared=no
17767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17768 # soname into executable. Probably we can add versioning support to
17769 # collect2, so additional links can be useful in future.
17770 if test "$aix_use_runtimelinking" = yes; then
17771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17772 # instead of lib<name>.a to let people know that these are not
17773 # typical AIX shared libraries.
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 # We preserve .a as extension for shared libraries through AIX4.2
17777 # and later when we are not doing run time linking.
17778 library_names_spec='${libname}${release}.a $libname.a'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17781 shlibpath_var=LIBPATH
17786 library_names_spec='$libname.ixlibrary $libname.a'
17787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17788 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'
17792 library_names_spec='${libname}${shared_ext}'
17793 dynamic_linker="$host_os ld.so"
17794 shlibpath_var=LIBRARY_PATH
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17803 shlibpath_var=LD_LIBRARY_PATH
17804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17806 # the default ld.so.conf also contains /usr/contrib/lib and
17807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17808 # libtool to hard-code these into programs
17811 cygwin* | mingw* | pw32*)
17812 version_type=windows
17817 case $GCC,$host_os in
17818 yes,cygwin* | yes,mingw* | yes,pw32*)
17819 library_names_spec='$libname.dll.a'
17820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17821 postinstall_cmds='base_file=`basename \${file}`~
17822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17823 dldir=$destdir/`dirname \$dlpath`~
17824 test -d \$dldir || mkdir -p \$dldir~
17825 $install_prog $dir/$dlname \$dldir/$dlname~
17826 chmod a+x \$dldir/$dlname'
17827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17828 dlpath=$dir/\$dldll~
17830 shlibpath_overrides_runpath=yes
17834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17839 # MinGW DLLs use traditional 'lib' prefix
17840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17843 # It is most probably a Windows format PATH printed by
17844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17845 # path with ; separators, and with drive letters. We can handle the
17846 # drive letters (cygwin fileutils understands them), so leave them,
17847 # especially as we might pass files found there to a mingw objdump,
17848 # which wouldn't understand a cygwinified path. Ahh.
17849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17855 # pw32 DLLs use 'pw' prefix rather than 'lib'
17856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17865 dynamic_linker='Win32 ld.exe'
17866 # FIXME: first we should search . and the directory the executable is in
17870 darwin* | rhapsody*)
17871 dynamic_linker="$host_os dyld"
17872 version_type=darwin
17875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17876 soname_spec='${libname}${release}${major}$shared_ext'
17877 shlibpath_overrides_runpath=yes
17878 shlibpath_var=DYLD_LIBRARY_PATH
17879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17881 if test "$GCC" = yes; then
17882 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"`
17884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17894 soname_spec='${libname}${release}${shared_ext}$major'
17895 shlibpath_var=LD_LIBRARY_PATH
17902 freebsd* | dragonfly*)
17903 # DragonFly does not have aout. When/if they implement a new
17904 # versioning mechanism, adjust this.
17905 if test -x /usr/bin/objformat; then
17906 objformat=`/usr/bin/objformat`
17909 freebsd[123]*) objformat=aout ;;
17910 *) objformat=elf ;;
17913 version_type=freebsd-$objformat
17914 case $version_type in
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17925 shlibpath_var=LD_LIBRARY_PATH
17928 shlibpath_overrides_runpath=yes
17930 freebsd3.[01]* | freebsdelf3.[01]*)
17931 shlibpath_overrides_runpath=yes
17932 hardcode_into_libs=yes
17934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17936 shlibpath_overrides_runpath=no
17937 hardcode_into_libs=yes
17939 freebsd*) # from 4.6 on
17940 shlibpath_overrides_runpath=yes
17941 hardcode_into_libs=yes
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 hardcode_into_libs=yes
17956 hpux9* | hpux10* | hpux11*)
17957 # Give a soname corresponding to the major version so that dld.sl refuses to
17958 # link against other versions.
17965 hardcode_into_libs=yes
17966 dynamic_linker="$host_os dld.so"
17967 shlibpath_var=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 if test "X$HPUX_IA64_MODE" = X32; then
17972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17980 hardcode_into_libs=yes
17981 dynamic_linker="$host_os dld.sl"
17982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 soname_spec='${libname}${release}${shared_ext}$major'
17986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17991 dynamic_linker="$host_os dld.sl"
17992 shlibpath_var=SHLIB_PATH
17993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17999 postinstall_cmds='chmod 555 $lib'
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=no
18011 hardcode_into_libs=yes
18014 irix5* | irix6* | nonstopux*)
18016 nonstopux*) version_type=nonstopux ;;
18018 if test "$lt_cv_prog_gnu_ld" = yes; then
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18029 irix5* | nonstopux*)
18030 libsuff= shlibsuff=
18033 case $LD in # libtool.m4 will add one of these switches to LD
18034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18035 libsuff= shlibsuff= libmagic=32-bit;;
18036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18037 libsuff=32 shlibsuff=N32 libmagic=N32;;
18038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18040 *) libsuff= shlibsuff= libmagic=never-match;;
18044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18045 shlibpath_overrides_runpath=no
18046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18048 hardcode_into_libs=yes
18051 # No shared lib support for Linux oldld, aout, or coff.
18052 linux*oldld* | linux*aout* | linux*coff*)
18056 # This must be Linux ELF.
18057 linux* | k*bsd*-gnu)
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 # This implies no fast_install, which is unacceptable.
18067 # Some rework will be needed to allow for fast_install
18068 # before this can be enabled.
18069 hardcode_into_libs=yes
18071 # Append ld.so.conf contents to the search path
18072 if test -f /etc/ld.so.conf; then
18073 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' ' '`
18074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18077 # We used to test for /lib/ld.so.1 and disable shared libraries on
18078 # powerpc, because MkLinux only supported shared libraries with the
18079 # GNU dynamic linker. Since this was broken with cross compilers,
18080 # most powerpc-linux boxes support dynamic linking these days and
18081 # people can always --disable-shared, the test was removed, and we
18082 # assume the GNU/Linux dynamic linker is in use.
18083 dynamic_linker='GNU/Linux ld.so'
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 shlibpath_overrides_runpath=no
18094 hardcode_into_libs=yes
18095 dynamic_linker='NetBSD ld.elf_so'
18102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18105 dynamic_linker='NetBSD (a.out) ld.so'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 dynamic_linker='NetBSD ld.elf_so'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 shlibpath_overrides_runpath=yes
18113 hardcode_into_libs=yes
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=yes
18135 sys_lib_dlsearch_path_spec="/usr/lib"
18137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18140 *) need_version=no ;;
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18147 openbsd2.[89] | openbsd2.[89].*)
18148 shlibpath_overrides_runpath=no
18151 shlibpath_overrides_runpath=yes
18155 shlibpath_overrides_runpath=yes
18160 libname_spec='$name'
18163 library_names_spec='$libname${shared_ext} $libname.a'
18164 dynamic_linker='OS/2 ld.exe'
18165 shlibpath_var=LIBPATH
18168 osf3* | osf4* | osf5*)
18172 soname_spec='${libname}${release}${shared_ext}$major'
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 shlibpath_overrides_runpath=yes
18187 hardcode_into_libs=yes
18188 # ldd complains unless libraries are executable
18189 postinstall_cmds='chmod +x $lib'
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=yes
18198 if test "$with_gnu_ld" = yes; then
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 case $host_vendor in
18211 shlibpath_overrides_runpath=no
18213 export_dynamic_flag_spec='${wl}-Blargedynsym'
18214 runpath_var=LD_RUN_PATH
18222 shlibpath_overrides_runpath=no
18223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18229 if test -d /usr/nec ;then
18231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18232 soname_spec='$libname${shared_ext}.$major'
18233 shlibpath_var=LD_LIBRARY_PATH
18237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18238 version_type=freebsd-elf
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18242 soname_spec='${libname}${release}${shared_ext}$major'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 hardcode_into_libs=yes
18245 if test "$with_gnu_ld" = yes; then
18246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18247 shlibpath_overrides_runpath=no
18249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18250 shlibpath_overrides_runpath=yes
18253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18257 sys_lib_dlsearch_path_spec='/usr/lib'
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 shlibpath_var=LD_LIBRARY_PATH
18271 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18272 echo "${ECHO_T}$dynamic_linker" >&6; }
18273 test "$dynamic_linker" = no && can_build_shared=no
18275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18276 if test "$GCC" = yes; then
18277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18280 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18282 hardcode_action_GCJ=
18283 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18284 test -n "$runpath_var_GCJ" || \
18285 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18287 # We can hardcode non-existant directories.
18288 if test "$hardcode_direct_GCJ" != no &&
18289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18290 # have to relink, otherwise we might link with an installed library
18291 # when we should be linking with a yet-to-be-installed one
18292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18293 test "$hardcode_minus_L_GCJ" != no; then
18294 # Linking always hardcodes the temporary library directory.
18295 hardcode_action_GCJ=relink
18297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18298 hardcode_action_GCJ=immediate
18301 # We cannot hardcode anything, or else we can only hardcode existing
18303 hardcode_action_GCJ=unsupported
18305 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18306 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18308 if test "$hardcode_action_GCJ" = relink; then
18309 # Fast installation is not supported
18310 enable_fast_install=no
18311 elif test "$shlibpath_overrides_runpath" = yes ||
18312 test "$enable_shared" = no; then
18313 # Fast installation is not necessary
18314 enable_fast_install=needless
18318 # The else clause should only fire when bootstrapping the
18319 # libtool distribution, otherwise you forgot to ship ltmain.sh
18320 # with your package, and you will get complaints that there are
18321 # no rules to generate ltmain.sh.
18322 if test -f "$ltmain"; then
18323 # See if we are running on zsh, and set the options which allow our commands through
18324 # without removal of \ escapes.
18325 if test -n "${ZSH_VERSION+set}" ; then
18326 setopt NO_GLOB_SUBST
18328 # Now quote all the things that may contain metacharacters while being
18329 # careful not to overquote the AC_SUBSTed values. We take copies of the
18330 # variables and quote the copies for generation of the libtool script.
18331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18335 deplibs_check_method reload_flag reload_cmds need_locks \
18336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18337 lt_cv_sys_global_symbol_to_c_name_address \
18338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18339 old_postinstall_cmds old_postuninstall_cmds \
18343 lt_prog_compiler_wl_GCJ \
18344 lt_prog_compiler_pic_GCJ \
18345 lt_prog_compiler_static_GCJ \
18346 lt_prog_compiler_no_builtin_flag_GCJ \
18347 export_dynamic_flag_spec_GCJ \
18348 thread_safe_flag_spec_GCJ \
18349 whole_archive_flag_spec_GCJ \
18350 enable_shared_with_static_runtimes_GCJ \
18351 old_archive_cmds_GCJ \
18352 old_archive_from_new_cmds_GCJ \
18353 predep_objects_GCJ \
18354 postdep_objects_GCJ \
18357 compiler_lib_search_path_GCJ \
18359 archive_expsym_cmds_GCJ \
18360 postinstall_cmds_GCJ \
18361 postuninstall_cmds_GCJ \
18362 old_archive_from_expsyms_cmds_GCJ \
18363 allow_undefined_flag_GCJ \
18364 no_undefined_flag_GCJ \
18365 export_symbols_cmds_GCJ \
18366 hardcode_libdir_flag_spec_GCJ \
18367 hardcode_libdir_flag_spec_ld_GCJ \
18368 hardcode_libdir_separator_GCJ \
18369 hardcode_automatic_GCJ \
18371 module_expsym_cmds_GCJ \
18372 lt_cv_prog_compiler_c_o_GCJ \
18373 exclude_expsyms_GCJ \
18374 include_expsyms_GCJ; do
18377 old_archive_cmds_GCJ | \
18378 old_archive_from_new_cmds_GCJ | \
18379 archive_cmds_GCJ | \
18380 archive_expsym_cmds_GCJ | \
18381 module_cmds_GCJ | \
18382 module_expsym_cmds_GCJ | \
18383 old_archive_from_expsyms_cmds_GCJ | \
18384 export_symbols_cmds_GCJ | \
18385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18386 postinstall_cmds | postuninstall_cmds | \
18387 old_postinstall_cmds | old_postuninstall_cmds | \
18388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18389 # Double-quote double-evaled strings.
18390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18399 *'\$0 --fallback-echo"')
18400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18406 cat <<__EOF__ >> "$cfgfile"
18407 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18411 # Shell to use when invoking shell scripts.
18414 # Whether or not to build shared libraries.
18415 build_libtool_libs=$enable_shared
18417 # Whether or not to build static libraries.
18418 build_old_libs=$enable_static
18420 # Whether or not to add -lc for building shared libraries.
18421 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18423 # Whether or not to disallow shared libs when runtime libs are static
18424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18426 # Whether or not to optimize for fast installation.
18427 fast_install=$enable_fast_install
18430 host_alias=$host_alias
18434 # The build system.
18435 build_alias=$build_alias
18439 # An echo program that does not interpret backslashes.
18444 AR_FLAGS=$lt_AR_FLAGS
18449 # LTCC compiler flags.
18450 LTCFLAGS=$lt_LTCFLAGS
18452 # A language-specific compiler.
18453 CC=$lt_compiler_GCJ
18455 # Is the compiler the GNU C compiler?
18461 # The linker used to build libraries.
18464 # Whether we need hard or soft links.
18467 # A BSD-compatible nm program.
18470 # A symbol stripping program
18473 # Used to examine libraries when file_magic_cmd begins "file"
18474 MAGIC_CMD=$MAGIC_CMD
18476 # Used on cygwin: DLL creation program.
18479 # Used on cygwin: object dumper.
18482 # Used on cygwin: assembler.
18485 # The name of the directory that contains temporary libtool files.
18488 # How to create reloadable object files.
18489 reload_flag=$lt_reload_flag
18490 reload_cmds=$lt_reload_cmds
18492 # How to pass a linker flag through the compiler.
18493 wl=$lt_lt_prog_compiler_wl_GCJ
18495 # Object file suffix (normally "o").
18496 objext="$ac_objext"
18498 # Old archive suffix (normally "a").
18501 # Shared library suffix (normally ".so").
18502 shrext_cmds='$shrext_cmds'
18504 # Executable file suffix (normally "").
18507 # Additional compiler flags for building library objects.
18508 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18511 # What is the maximum length of a command?
18512 max_cmd_len=$lt_cv_sys_max_cmd_len
18514 # Does compiler simultaneously support -c and -o options?
18515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18517 # Must we lock files when doing compilation?
18518 need_locks=$lt_need_locks
18520 # Do we need the lib prefix for modules?
18521 need_lib_prefix=$need_lib_prefix
18523 # Do we need a version for libraries?
18524 need_version=$need_version
18526 # Whether dlopen is supported.
18527 dlopen_support=$enable_dlopen
18529 # Whether dlopen of programs is supported.
18530 dlopen_self=$enable_dlopen_self
18532 # Whether dlopen of statically linked programs is supported.
18533 dlopen_self_static=$enable_dlopen_self_static
18535 # Compiler flag to prevent dynamic linking.
18536 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18538 # Compiler flag to turn off builtin functions.
18539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18541 # Compiler flag to allow reflexive dlopens.
18542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18544 # Compiler flag to generate shared objects directly from archives.
18545 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18547 # Compiler flag to generate thread-safe objects.
18548 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18550 # Library versioning type.
18551 version_type=$version_type
18553 # Format of library name prefix.
18554 libname_spec=$lt_libname_spec
18556 # List of archive names. First name is the real one, the rest are links.
18557 # The last name is the one that the linker finds with -lNAME.
18558 library_names_spec=$lt_library_names_spec
18560 # The coded name of the library, if different from the real name.
18561 soname_spec=$lt_soname_spec
18563 # Commands used to build and install an old-style archive.
18565 old_archive_cmds=$lt_old_archive_cmds_GCJ
18566 old_postinstall_cmds=$lt_old_postinstall_cmds
18567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18569 # Create an old-style archive from a shared archive.
18570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18572 # Create a temporary old-style archive to link instead of a shared archive.
18573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18575 # Commands used to build and install a shared archive.
18576 archive_cmds=$lt_archive_cmds_GCJ
18577 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18578 postinstall_cmds=$lt_postinstall_cmds
18579 postuninstall_cmds=$lt_postuninstall_cmds
18581 # Commands used to build a loadable module (assumed same as above if empty)
18582 module_cmds=$lt_module_cmds_GCJ
18583 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18585 # Commands to strip libraries.
18586 old_striplib=$lt_old_striplib
18587 striplib=$lt_striplib
18589 # Dependencies to place before the objects being linked to create a
18591 predep_objects=$lt_predep_objects_GCJ
18593 # Dependencies to place after the objects being linked to create a
18595 postdep_objects=$lt_postdep_objects_GCJ
18597 # Dependencies to place before the objects being linked to create a
18599 predeps=$lt_predeps_GCJ
18601 # Dependencies to place after the objects being linked to create a
18603 postdeps=$lt_postdeps_GCJ
18605 # The library search path used internally by the compiler when linking
18606 # a shared library.
18607 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18609 # Method to check whether dependent libraries are shared objects.
18610 deplibs_check_method=$lt_deplibs_check_method
18612 # Command to use when deplibs_check_method == file_magic.
18613 file_magic_cmd=$lt_file_magic_cmd
18615 # Flag that allows shared libraries with undefined symbols to be built.
18616 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18618 # Flag that forces no undefined symbols.
18619 no_undefined_flag=$lt_no_undefined_flag_GCJ
18621 # Commands used to finish a libtool library installation in a directory.
18622 finish_cmds=$lt_finish_cmds
18624 # Same as above, but a single script fragment to be evaled but not shown.
18625 finish_eval=$lt_finish_eval
18627 # Take the output of nm and produce a listing of raw symbols and C names.
18628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18630 # Transform the output of nm in a proper C declaration
18631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18633 # Transform the output of nm in a C name address pair
18634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18636 # This is the shared library runtime path variable.
18637 runpath_var=$runpath_var
18639 # This is the shared library path variable.
18640 shlibpath_var=$shlibpath_var
18642 # Is shlibpath searched before the hard-coded library search path?
18643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18645 # How to hardcode a shared library path into an executable.
18646 hardcode_action=$hardcode_action_GCJ
18648 # Whether we should hardcode library paths into libraries.
18649 hardcode_into_libs=$hardcode_into_libs
18651 # Flag to hardcode \$libdir into a binary during linking.
18652 # This must work even if \$libdir does not exist.
18653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18655 # If ld is used when linking, flag to hardcode \$libdir into
18656 # a binary during linking. This must work even if \$libdir does
18658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18660 # Whether we need a single -rpath flag with a separated argument.
18661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18664 # resulting binary.
18665 hardcode_direct=$hardcode_direct_GCJ
18667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18668 # resulting binary.
18669 hardcode_minus_L=$hardcode_minus_L_GCJ
18671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18672 # the resulting binary.
18673 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18675 # Set to yes if building a shared library automatically hardcodes DIR into the library
18676 # and all subsequent libraries and executables linked against it.
18677 hardcode_automatic=$hardcode_automatic_GCJ
18679 # Variables whose values should be saved in libtool wrapper scripts and
18680 # restored at relink time.
18681 variables_saved_for_relink="$variables_saved_for_relink"
18683 # Whether libtool must link a program against all its dependency libraries.
18684 link_all_deplibs=$link_all_deplibs_GCJ
18686 # Compile-time system search path for libraries
18687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18689 # Run-time system search path for libraries
18690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18692 # Fix the shell variable \$srcfile for the compiler.
18693 fix_srcfile_path="$fix_srcfile_path_GCJ"
18695 # Set to yes if exported symbols are required.
18696 always_export_symbols=$always_export_symbols_GCJ
18698 # The commands to list exported symbols.
18699 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18701 # The commands to extract the exported symbol list from a shared archive.
18702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18704 # Symbols that should not be listed in the preloaded symbols.
18705 exclude_expsyms=$lt_exclude_expsyms_GCJ
18707 # Symbols that must always be exported.
18708 include_expsyms=$lt_include_expsyms_GCJ
18710 # ### END LIBTOOL TAG CONFIG: $tagname
18716 # If there is no Makefile yet, we rely on a make rule to execute
18717 # `config.status --recheck' to rerun these tests and create the
18718 # libtool script then.
18719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18720 if test -f "$ltmain_in"; then
18721 test -f Makefile && make "$ltmain"
18727 ac_cpp='$CPP $CPPFLAGS'
18728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18742 # Source file extension for RC test sources.
18745 # Object file extension for compiled RC test sources.
18749 # Code to be used in simple compile tests
18750 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18752 # Code to be used in simple link tests
18753 lt_simple_link_test_code="$lt_simple_compile_test_code"
18755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18757 # If no C compiler was specified, use CC.
18760 # If no C compiler flags were specified, use CFLAGS.
18761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18763 # Allow CC to be a program name with arguments.
18767 # save warnings/boilerplate of simple test code
18768 ac_outfile=conftest.$ac_objext
18769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18771 _lt_compiler_boilerplate=`cat conftest.err`
18774 ac_outfile=conftest.$ac_objext
18775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18777 _lt_linker_boilerplate=`cat conftest.err`
18781 # Allow CC to be a program name with arguments.
18786 for cc_temp in $compiler""; do
18788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18794 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18796 lt_cv_prog_compiler_c_o_RC=yes
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803 # See if we are running on zsh, and set the options which allow our commands through
18804 # without removal of \ escapes.
18805 if test -n "${ZSH_VERSION+set}" ; then
18806 setopt NO_GLOB_SUBST
18808 # Now quote all the things that may contain metacharacters while being
18809 # careful not to overquote the AC_SUBSTed values. We take copies of the
18810 # variables and quote the copies for generation of the libtool script.
18811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815 deplibs_check_method reload_flag reload_cmds need_locks \
18816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817 lt_cv_sys_global_symbol_to_c_name_address \
18818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819 old_postinstall_cmds old_postuninstall_cmds \
18823 lt_prog_compiler_wl_RC \
18824 lt_prog_compiler_pic_RC \
18825 lt_prog_compiler_static_RC \
18826 lt_prog_compiler_no_builtin_flag_RC \
18827 export_dynamic_flag_spec_RC \
18828 thread_safe_flag_spec_RC \
18829 whole_archive_flag_spec_RC \
18830 enable_shared_with_static_runtimes_RC \
18831 old_archive_cmds_RC \
18832 old_archive_from_new_cmds_RC \
18833 predep_objects_RC \
18834 postdep_objects_RC \
18837 compiler_lib_search_path_RC \
18839 archive_expsym_cmds_RC \
18840 postinstall_cmds_RC \
18841 postuninstall_cmds_RC \
18842 old_archive_from_expsyms_cmds_RC \
18843 allow_undefined_flag_RC \
18844 no_undefined_flag_RC \
18845 export_symbols_cmds_RC \
18846 hardcode_libdir_flag_spec_RC \
18847 hardcode_libdir_flag_spec_ld_RC \
18848 hardcode_libdir_separator_RC \
18849 hardcode_automatic_RC \
18851 module_expsym_cmds_RC \
18852 lt_cv_prog_compiler_c_o_RC \
18853 exclude_expsyms_RC \
18854 include_expsyms_RC; do
18857 old_archive_cmds_RC | \
18858 old_archive_from_new_cmds_RC | \
18859 archive_cmds_RC | \
18860 archive_expsym_cmds_RC | \
18862 module_expsym_cmds_RC | \
18863 old_archive_from_expsyms_cmds_RC | \
18864 export_symbols_cmds_RC | \
18865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866 postinstall_cmds | postuninstall_cmds | \
18867 old_postinstall_cmds | old_postuninstall_cmds | \
18868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869 # Double-quote double-evaled strings.
18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18879 *'\$0 --fallback-echo"')
18880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18886 cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # Shell to use when invoking shell scripts.
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_RC
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18910 host_alias=$host_alias
18914 # The build system.
18915 build_alias=$build_alias
18919 # An echo program that does not interpret backslashes.
18924 AR_FLAGS=$lt_AR_FLAGS
18929 # LTCC compiler flags.
18930 LTCFLAGS=$lt_LTCFLAGS
18932 # A language-specific compiler.
18935 # Is the compiler the GNU C compiler?
18941 # The linker used to build libraries.
18944 # Whether we need hard or soft links.
18947 # A BSD-compatible nm program.
18950 # A symbol stripping program
18953 # Used to examine libraries when file_magic_cmd begins "file"
18954 MAGIC_CMD=$MAGIC_CMD
18956 # Used on cygwin: DLL creation program.
18959 # Used on cygwin: object dumper.
18962 # Used on cygwin: assembler.
18965 # The name of the directory that contains temporary libtool files.
18968 # How to create reloadable object files.
18969 reload_flag=$lt_reload_flag
18970 reload_cmds=$lt_reload_cmds
18972 # How to pass a linker flag through the compiler.
18973 wl=$lt_lt_prog_compiler_wl_RC
18975 # Object file suffix (normally "o").
18976 objext="$ac_objext"
18978 # Old archive suffix (normally "a").
18981 # Shared library suffix (normally ".so").
18982 shrext_cmds='$shrext_cmds'
18984 # Executable file suffix (normally "").
18987 # Additional compiler flags for building library objects.
18988 pic_flag=$lt_lt_prog_compiler_pic_RC
18991 # What is the maximum length of a command?
18992 max_cmd_len=$lt_cv_sys_max_cmd_len
18994 # Does compiler simultaneously support -c and -o options?
18995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18997 # Must we lock files when doing compilation?
18998 need_locks=$lt_need_locks
19000 # Do we need the lib prefix for modules?
19001 need_lib_prefix=$need_lib_prefix
19003 # Do we need a version for libraries?
19004 need_version=$need_version
19006 # Whether dlopen is supported.
19007 dlopen_support=$enable_dlopen
19009 # Whether dlopen of programs is supported.
19010 dlopen_self=$enable_dlopen_self
19012 # Whether dlopen of statically linked programs is supported.
19013 dlopen_self_static=$enable_dlopen_self_static
19015 # Compiler flag to prevent dynamic linking.
19016 link_static_flag=$lt_lt_prog_compiler_static_RC
19018 # Compiler flag to turn off builtin functions.
19019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19021 # Compiler flag to allow reflexive dlopens.
19022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19024 # Compiler flag to generate shared objects directly from archives.
19025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19027 # Compiler flag to generate thread-safe objects.
19028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19030 # Library versioning type.
19031 version_type=$version_type
19033 # Format of library name prefix.
19034 libname_spec=$lt_libname_spec
19036 # List of archive names. First name is the real one, the rest are links.
19037 # The last name is the one that the linker finds with -lNAME.
19038 library_names_spec=$lt_library_names_spec
19040 # The coded name of the library, if different from the real name.
19041 soname_spec=$lt_soname_spec
19043 # Commands used to build and install an old-style archive.
19045 old_archive_cmds=$lt_old_archive_cmds_RC
19046 old_postinstall_cmds=$lt_old_postinstall_cmds
19047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19049 # Create an old-style archive from a shared archive.
19050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19052 # Create a temporary old-style archive to link instead of a shared archive.
19053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19055 # Commands used to build and install a shared archive.
19056 archive_cmds=$lt_archive_cmds_RC
19057 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19058 postinstall_cmds=$lt_postinstall_cmds
19059 postuninstall_cmds=$lt_postuninstall_cmds
19061 # Commands used to build a loadable module (assumed same as above if empty)
19062 module_cmds=$lt_module_cmds_RC
19063 module_expsym_cmds=$lt_module_expsym_cmds_RC
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19069 # Dependencies to place before the objects being linked to create a
19071 predep_objects=$lt_predep_objects_RC
19073 # Dependencies to place after the objects being linked to create a
19075 postdep_objects=$lt_postdep_objects_RC
19077 # Dependencies to place before the objects being linked to create a
19079 predeps=$lt_predeps_RC
19081 # Dependencies to place after the objects being linked to create a
19083 postdeps=$lt_postdeps_RC
19085 # The library search path used internally by the compiler when linking
19086 # a shared library.
19087 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19089 # Method to check whether dependent libraries are shared objects.
19090 deplibs_check_method=$lt_deplibs_check_method
19092 # Command to use when deplibs_check_method == file_magic.
19093 file_magic_cmd=$lt_file_magic_cmd
19095 # Flag that allows shared libraries with undefined symbols to be built.
19096 allow_undefined_flag=$lt_allow_undefined_flag_RC
19098 # Flag that forces no undefined symbols.
19099 no_undefined_flag=$lt_no_undefined_flag_RC
19101 # Commands used to finish a libtool library installation in a directory.
19102 finish_cmds=$lt_finish_cmds
19104 # Same as above, but a single script fragment to be evaled but not shown.
19105 finish_eval=$lt_finish_eval
19107 # Take the output of nm and produce a listing of raw symbols and C names.
19108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19110 # Transform the output of nm in a proper C declaration
19111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19113 # Transform the output of nm in a C name address pair
19114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19116 # This is the shared library runtime path variable.
19117 runpath_var=$runpath_var
19119 # This is the shared library path variable.
19120 shlibpath_var=$shlibpath_var
19122 # Is shlibpath searched before the hard-coded library search path?
19123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19125 # How to hardcode a shared library path into an executable.
19126 hardcode_action=$hardcode_action_RC
19128 # Whether we should hardcode library paths into libraries.
19129 hardcode_into_libs=$hardcode_into_libs
19131 # Flag to hardcode \$libdir into a binary during linking.
19132 # This must work even if \$libdir does not exist.
19133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19135 # If ld is used when linking, flag to hardcode \$libdir into
19136 # a binary during linking. This must work even if \$libdir does
19138 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19140 # Whether we need a single -rpath flag with a separated argument.
19141 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19143 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19144 # resulting binary.
19145 hardcode_direct=$hardcode_direct_RC
19147 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19148 # resulting binary.
19149 hardcode_minus_L=$hardcode_minus_L_RC
19151 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19152 # the resulting binary.
19153 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19155 # Set to yes if building a shared library automatically hardcodes DIR into the library
19156 # and all subsequent libraries and executables linked against it.
19157 hardcode_automatic=$hardcode_automatic_RC
19159 # Variables whose values should be saved in libtool wrapper scripts and
19160 # restored at relink time.
19161 variables_saved_for_relink="$variables_saved_for_relink"
19163 # Whether libtool must link a program against all its dependency libraries.
19164 link_all_deplibs=$link_all_deplibs_RC
19166 # Compile-time system search path for libraries
19167 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19169 # Run-time system search path for libraries
19170 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19172 # Fix the shell variable \$srcfile for the compiler.
19173 fix_srcfile_path="$fix_srcfile_path_RC"
19175 # Set to yes if exported symbols are required.
19176 always_export_symbols=$always_export_symbols_RC
19178 # The commands to list exported symbols.
19179 export_symbols_cmds=$lt_export_symbols_cmds_RC
19181 # The commands to extract the exported symbol list from a shared archive.
19182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19184 # Symbols that should not be listed in the preloaded symbols.
19185 exclude_expsyms=$lt_exclude_expsyms_RC
19187 # Symbols that must always be exported.
19188 include_expsyms=$lt_include_expsyms_RC
19190 # ### END LIBTOOL TAG CONFIG: $tagname
19196 # If there is no Makefile yet, we rely on a make rule to execute
19197 # `config.status --recheck' to rerun these tests and create the
19198 # libtool script then.
19199 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19200 if test -f "$ltmain_in"; then
19201 test -f Makefile && make "$ltmain"
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19218 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19219 { (exit 1); exit 1; }; }
19223 # Append the new tag name to the list of available tags.
19224 if test -n "$tagname" ; then
19225 available_tags="$available_tags $tagname"
19231 # Now substitute the updated list of available tags.
19232 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19233 mv "${ofile}T" "$ofile"
19237 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19238 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19239 { (exit 1); exit 1; }; }
19245 # This can be used to rebuild libtool when needed
19246 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19248 # Always use our own libtool.
19249 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19251 # Prevent multiple expansion
19275 # Checks for libraries.
19277 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19278 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19279 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19282 ac_check_lib_save_LIBS=$LIBS
19283 LIBS="-lapr-1 $LIBS"
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && {
19314 test -z "$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19316 } && test -s conftest$ac_exeext &&
19317 $as_test_x conftest$ac_exeext; then
19318 ac_cv_lib_apr_1_main=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_lib_apr_1_main=no
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19331 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19332 if test $ac_cv_lib_apr_1_main = yes; then
19333 cat >>confdefs.h <<_ACEOF
19334 #define HAVE_LIBAPR_1 1
19337 LIBS="-lapr-1 $LIBS"
19343 # Check whether --with-apache-header was given.
19344 if test "${with_apache_header+set}" = set; then
19345 withval=$with_apache_header;
19348 if test "x$with_apache_header" = "xyes"; then
19349 { { echo "$as_me:$LINENO: error:
19350 Please specify the --with-apache-header option. And, please specify the place of the header file.
19353 echo "$as_me: error:
19354 Please specify the --with-apache-header option. And, please specify the place of the header file.
19357 { (exit 1); exit 1; }; }
19361 # Check whether --with-apxs was given.
19362 if test "${with_apxs+set}" = set; then
19363 withval=$with_apxs;
19366 if test "x$with_apxs" = "x" ; then
19369 if test "x$with_apxs" = "xyes" ; then
19370 { { echo "$as_me:$LINENO: error:
19371 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19373 echo "$as_me: error:
19374 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19376 { (exit 1); exit 1; }; }
19380 # Check whether --with-apr-config was given.
19381 if test "${with_apr_config+set}" = set; then
19382 withval=$with_apr_config;
19385 if test "x$with_apr_config" = "xyes" ; then
19386 { { echo "$as_me:$LINENO: error:
19387 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19389 echo "$as_me: error:
19390 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19392 { (exit 1); exit 1; }; }
19396 # Check whether --with-apu-config was given.
19397 if test "${with_apu_config+set}" = set; then
19398 withval=$with_apu_config;
19401 if test "x$with_apu_config" = "xyes" ; then
19402 { { echo "$as_me:$LINENO: error:
19403 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19405 echo "$as_me: error:
19406 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19408 { (exit 1); exit 1; }; }
19412 # Check whether --with-pcre-config was given.
19413 if test "${with_pcre_config+set}" = set; then
19414 withval=$with_pcre_config;
19417 if test "x$with_pcre_config" = "xyes" ; then
19418 { { echo "$as_me:$LINENO: error:
19419 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19421 echo "$as_me: error:
19422 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19424 { (exit 1); exit 1; }; }
19429 # Check whether --enable-img-conv-f was given.
19430 if test "${enable_img_conv_f+set}" = set; then
19431 enableval=$enable_img_conv_f;
19434 if test "x$enable_img_conv_f" = "xyes"; then
19437 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19441 # Check whether --enable-memcache-cookie was given.
19442 if test "${enable_memcache_cookie+set}" = set; then
19443 enableval=$enable_memcache_cookie;
19446 # Check whether --enable-memcached-static was given.
19447 if test "${enable_memcached_static+set}" = set; then
19448 enableval=$enable_memcached_static;
19452 # Check whether --with-memcached-header was given.
19453 if test "${with_memcached_header+set}" = set; then
19454 withval=$with_memcached_header;
19458 # Check whether --with-memcached-lib-dir was given.
19459 if test "${with_memcached_lib_dir+set}" = set; then
19460 withval=$with_memcached_lib_dir;
19463 if test "x$enable_memcache_cookie" = "xyes" ; then
19464 if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19465 { { echo "$as_me:$LINENO: error:
19466 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19468 echo "$as_me: error:
19469 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19471 { (exit 1); exit 1; }; }
19473 if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19474 { { echo "$as_me:$LINENO: error:
19475 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19477 echo "$as_me: error:
19478 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19480 { (exit 1); exit 1; }; }
19482 if test "x$enable_memcached_static" = "xyes" ; then
19483 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19484 MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19486 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19487 MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19490 MEMCACHE_COOKIE_DEFS=""
19491 MEMCACHE_COOKIE_LIBS=""
19493 # Check whether --enable-mysql-cookie was given.
19494 if test "${enable_mysql_cookie+set}" = set; then
19495 enableval=$enable_mysql_cookie;
19499 # Check whether --with-mysql-header was given.
19500 if test "${with_mysql_header+set}" = set; then
19501 withval=$with_mysql_header;
19505 # Check whether --with-mysql-lib-dir was given.
19506 if test "${with_mysql_lib_dir+set}" = set; then
19507 withval=$with_mysql_lib_dir;
19510 if test "x$enable_mysql_cookie" = "xyes"; then
19511 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19512 { { echo "$as_me:$LINENO: error:
19513 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19515 echo "$as_me: error:
19516 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19518 { (exit 1); exit 1; }; }
19520 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19521 { { echo "$as_me:$LINENO: error:
19522 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19524 echo "$as_me: error:
19525 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19527 { (exit 1); exit 1; }; }
19529 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19530 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19532 MYSQL_COOKIE_DEFS=""
19533 MYSQL_COOKIE_LIBS=""
19536 # Check whether --enable-dump-log was given.
19537 if test "${enable_dump_log+set}" = set; then
19538 enableval=$enable_dump_log;
19541 if test "x$enable_dump_log" = "xyes"; then
19542 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19544 if test "x$enable_dump_log" != "x" ; then
19545 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19550 if test "x$with_apxs" = "x" ; then
19551 # Extract the first word of "apxs2", so it can be a program name with args.
19552 set dummy apxs2; ac_word=$2
19553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19555 if test "${ac_cv_path_APXS2+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19564 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19565 for as_dir in $as_dummy
19568 test -z "$as_dir" && as_dir=.
19569 for ac_exec_ext in '' $ac_executable_extensions; do
19570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19571 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19583 APXS2=$ac_cv_path_APXS2
19584 if test -n "$APXS2"; then
19585 { echo "$as_me:$LINENO: result: $APXS2" >&5
19586 echo "${ECHO_T}$APXS2" >&6; }
19588 { echo "$as_me:$LINENO: result: no" >&5
19589 echo "${ECHO_T}no" >&6; }
19593 if test "x$APXS2" = "xno"; then
19594 # Extract the first word of "apxs", so it can be a program name with args.
19595 set dummy apxs; ac_word=$2
19596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19598 if test "${ac_cv_path_APXS+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19607 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19608 for as_dir in $as_dummy
19611 test -z "$as_dir" && as_dir=.
19612 for ac_exec_ext in '' $ac_executable_extensions; do
19613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19614 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19622 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19626 APXS=$ac_cv_path_APXS
19627 if test -n "$APXS"; then
19628 { echo "$as_me:$LINENO: result: $APXS" >&5
19629 echo "${ECHO_T}$APXS" >&6; }
19631 { echo "$as_me:$LINENO: result: no" >&5
19632 echo "${ECHO_T}no" >&6; }
19636 if test "x$APXS" = "xno" ; then
19637 { { echo "$as_me:$LINENO: error: apxs not found." >&5
19638 echo "$as_me: error: apxs not found." >&2;}
19639 { (exit 1); exit 1; }; }
19645 if test "x$with_apxs" != "x" ; then
19649 # Extract the first word of "libtool", so it can be a program name with args.
19650 set dummy libtool; ac_word=$2
19651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19653 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19662 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19663 for as_dir in $as_dummy
19666 test -z "$as_dir" && as_dir=.
19667 for ac_exec_ext in '' $ac_executable_extensions; do
19668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19669 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19681 LIBTOOL=$ac_cv_path_LIBTOOL
19682 if test -n "$LIBTOOL"; then
19683 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19684 echo "${ECHO_T}$LIBTOOL" >&6; }
19686 { echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6; }
19691 if test "x$LIBTOOL" = "xno"; then
19692 { { echo "$as_me:$LINENO: error: libtool not found." >&5
19693 echo "$as_me: error: libtool not found." >&2;}
19694 { (exit 1); exit 1; }; }
19698 # Extract the first word of "Wand-config", so it can be a program name with args.
19699 set dummy Wand-config; ac_word=$2
19700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19702 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 case $WAND_CONFIG in
19707 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19711 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19712 for as_dir in $as_dummy
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19718 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19726 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19730 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19731 if test -n "$WAND_CONFIG"; then
19732 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19733 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19735 { echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6; }
19740 if test "x$WAND_CONFIG" = "xno" ; then
19741 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19742 echo "$as_me: error: wand-config not found." >&2;}
19743 { (exit 1); exit 1; }; }
19746 if test "x$with_apr_config" = "x" ; then
19747 # Extract the first word of "apr-config", so it can be a program name with args.
19748 set dummy apr-config; ac_word=$2
19749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19751 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 case $APR_CONFIG in
19756 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19761 for as_dir in $as_dummy
19764 test -z "$as_dir" && as_dir=.
19765 for ac_exec_ext in '' $ac_executable_extensions; do
19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19767 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19779 APR_CONFIG=$ac_cv_path_APR_CONFIG
19780 if test -n "$APR_CONFIG"; then
19781 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19782 echo "${ECHO_T}$APR_CONFIG" >&6; }
19784 { echo "$as_me:$LINENO: result: no" >&5
19785 echo "${ECHO_T}no" >&6; }
19789 if test "x$APR_CONFIG" = "xno" ; then
19790 # Extract the first word of "apr-1-config", so it can be a program name with args.
19791 set dummy apr-1-config; ac_word=$2
19792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19794 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 case $APR_1_CONFIG in
19799 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19803 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19804 for as_dir in $as_dummy
19807 test -z "$as_dir" && as_dir=.
19808 for ac_exec_ext in '' $ac_executable_extensions; do
19809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19810 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19818 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19822 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19823 if test -n "$APR_1_CONFIG"; then
19824 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19825 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19827 { echo "$as_me:$LINENO: result: no" >&5
19828 echo "${ECHO_T}no" >&6; }
19832 if test "x$APR_1_CONFIG" = "xno" ; then
19833 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19834 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19835 { (exit 1); exit 1; }; }
19837 APR_CONFIG="$APR_1_CONFIG"
19841 if test "x$with_apr_config" != "x" ; then
19842 APR_CONFIG=$with_apr_config
19844 if test "x$with_apu_config" = "x" ; then
19845 # Extract the first word of "apu-config", so it can be a program name with args.
19846 set dummy apu-config; ac_word=$2
19847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19849 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 case $APU_CONFIG in
19854 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19858 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19859 for as_dir in $as_dummy
19862 test -z "$as_dir" && as_dir=.
19863 for ac_exec_ext in '' $ac_executable_extensions; do
19864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19865 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19873 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19877 APU_CONFIG=$ac_cv_path_APU_CONFIG
19878 if test -n "$APU_CONFIG"; then
19879 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19880 echo "${ECHO_T}$APU_CONFIG" >&6; }
19882 { echo "$as_me:$LINENO: result: no" >&5
19883 echo "${ECHO_T}no" >&6; }
19887 if test "x$APU_CONFIG" = "xno" ; then
19888 # Extract the first word of "apu-1-config", so it can be a program name with args.
19889 set dummy apu-1-config; ac_word=$2
19890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19892 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 case $APU_1_CONFIG in
19897 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19901 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19902 for as_dir in $as_dummy
19905 test -z "$as_dir" && as_dir=.
19906 for ac_exec_ext in '' $ac_executable_extensions; do
19907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19908 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19920 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19921 if test -n "$APU_1_CONFIG"; then
19922 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19923 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19925 { echo "$as_me:$LINENO: result: no" >&5
19926 echo "${ECHO_T}no" >&6; }
19930 if test "x$APU_1_CONFIG" = "xno" ; then
19931 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19932 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19933 { (exit 1); exit 1; }; }
19935 APU_CONFIG="$APU_1_CONFIG"
19939 if test "x$with_apu_config" != "x" ; then
19940 APU_CONFIG=$with_apu_config
19945 CFLAGS="${CFLAGS} -I/usr/local/include "
19949 if test "x${with_apache_header}" = "x" ; then
19950 with_apache_header=`${APXS} -q includedir`
19953 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19954 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19955 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19956 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19957 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
19958 LIBS="${LIBS} serf/.libs/libserf-0.a"
19959 LIBS="${LIBS} css/src/.libs/libscss.a"
19960 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19961 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19962 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19963 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19964 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19965 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19966 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19967 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19969 # Checks for header files.
19970 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19971 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19972 if test "${ac_cv_header_stdc+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <stdlib.h>
19982 #include <stdarg.h>
19983 #include <string.h>
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.$ac_objext; then
20011 ac_cv_header_stdc=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_header_stdc=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 if test $ac_cv_header_stdc = yes; then
20022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <string.h>
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "memchr" >/dev/null 2>&1; then
20036 ac_cv_header_stdc=no
20042 if test $ac_cv_header_stdc = yes; then
20043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <stdlib.h>
20053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20054 $EGREP "free" >/dev/null 2>&1; then
20057 ac_cv_header_stdc=no
20063 if test $ac_cv_header_stdc = yes; then
20064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20065 if test "$cross_compiling" = yes; then
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20075 #include <stdlib.h>
20076 #if ((' ' & 0x0FF) == 0x020)
20077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20080 # define ISLOWER(c) \
20081 (('a' <= (c) && (c) <= 'i') \
20082 || ('j' <= (c) && (c) <= 'r') \
20083 || ('s' <= (c) && (c) <= 'z'))
20084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20092 for (i = 0; i < 256; i++)
20093 if (XOR (islower (i), ISLOWER (i))
20094 || toupper (i) != TOUPPER (i))
20099 rm -f conftest$ac_exeext
20100 if { (ac_try="$ac_link"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_link") 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20110 { (case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_try") 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20121 echo "$as_me: program exited with status $ac_status" >&5
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ( exit $ac_status )
20126 ac_cv_header_stdc=no
20128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20135 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20136 if test $ac_cv_header_stdc = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define STDC_HEADERS 1
20152 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 ac_res=`eval echo '${'$as_ac_Header'}'`
20162 { echo "$as_me:$LINENO: result: $ac_res" >&5
20163 echo "${ECHO_T}$ac_res" >&6; }
20165 # Is the header compilable?
20166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 $ac_includes_default
20175 #include <$ac_header>
20177 rm -f conftest.$ac_objext
20178 if { (ac_try="$ac_compile"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_header_compiler=yes
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_compiler=no
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20204 echo "${ECHO_T}$ac_header_compiler" >&6; }
20206 # Is the header present?
20207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <$ac_header>
20217 if { (ac_try="$ac_cpp conftest.$ac_ext"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } >/dev/null && {
20230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20233 ac_header_preproc=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_header_preproc=no
20241 rm -f conftest.err conftest.$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20243 echo "${ECHO_T}$ac_header_preproc" >&6; }
20245 # So? What about this header?
20246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20252 ac_header_preproc=yes
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 eval "$as_ac_Header=\$ac_header_preproc"
20277 ac_res=`eval echo '${'$as_ac_Header'}'`
20278 { echo "$as_me:$LINENO: result: $ac_res" >&5
20279 echo "${ECHO_T}$ac_res" >&6; }
20282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20291 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20294 for ac_header in apr_shm.h apr_global_mutex.h
20296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 ac_res=`eval echo '${'$as_ac_Header'}'`
20304 { echo "$as_me:$LINENO: result: $ac_res" >&5
20305 echo "${ECHO_T}$ac_res" >&6; }
20307 # Is the header compilable?
20308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 $ac_includes_default
20317 #include <$ac_header>
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_compile") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } && {
20333 test -z "$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20335 } && test -s conftest.$ac_objext; then
20336 ac_header_compiler=yes
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_compiler=no
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20346 echo "${ECHO_T}$ac_header_compiler" >&6; }
20348 # Is the header present?
20349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 #include <$ac_header>
20359 if { (ac_try="$ac_cpp conftest.$ac_ext"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev/null && {
20372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20375 ac_header_preproc=yes
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_header_preproc=no
20383 rm -f conftest.err conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20385 echo "${ECHO_T}$ac_header_preproc" >&6; }
20387 # So? What about this header?
20388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20394 ac_header_preproc=yes
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 eval "$as_ac_Header=\$ac_header_preproc"
20419 ac_res=`eval echo '${'$as_ac_Header'}'`
20420 { echo "$as_me:$LINENO: result: $ac_res" >&5
20421 echo "${ECHO_T}$ac_res" >&6; }
20424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20425 cat >>confdefs.h <<_ACEOF
20426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20434 for ac_header in apr.h
20436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 ac_res=`eval echo '${'$as_ac_Header'}'`
20444 { echo "$as_me:$LINENO: result: $ac_res" >&5
20445 echo "${ECHO_T}$ac_res" >&6; }
20447 # Is the header compilable?
20448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 $ac_includes_default
20457 #include <$ac_header>
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_header_compiler=yes
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_header_compiler=no
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20486 echo "${ECHO_T}$ac_header_compiler" >&6; }
20488 # Is the header present?
20489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <$ac_header>
20499 if { (ac_try="$ac_cpp conftest.$ac_ext"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } >/dev/null && {
20512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20515 ac_header_preproc=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_header_preproc=no
20523 rm -f conftest.err conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20525 echo "${ECHO_T}$ac_header_preproc" >&6; }
20527 # So? What about this header?
20528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20534 ac_header_preproc=yes
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 eval "$as_ac_Header=\$ac_header_preproc"
20559 ac_res=`eval echo '${'$as_ac_Header'}'`
20560 { echo "$as_me:$LINENO: result: $ac_res" >&5
20561 echo "${ECHO_T}$ac_res" >&6; }
20564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20574 for ac_header in ap_config.h
20576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 ac_res=`eval echo '${'$as_ac_Header'}'`
20584 { echo "$as_me:$LINENO: result: $ac_res" >&5
20585 echo "${ECHO_T}$ac_res" >&6; }
20587 # Is the header compilable?
20588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 $ac_includes_default
20597 #include <$ac_header>
20599 rm -f conftest.$ac_objext
20600 if { (ac_try="$ac_compile"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest.$ac_objext; then
20616 ac_header_compiler=yes
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 ac_header_compiler=no
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20626 echo "${ECHO_T}$ac_header_compiler" >&6; }
20628 # Is the header present?
20629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 #include <$ac_header>
20639 if { (ac_try="$ac_cpp conftest.$ac_ext"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } >/dev/null && {
20652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20655 ac_header_preproc=yes
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_header_preproc=no
20663 rm -f conftest.err conftest.$ac_ext
20664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20665 echo "${ECHO_T}$ac_header_preproc" >&6; }
20667 # So? What about this header?
20668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20674 ac_header_preproc=yes
20677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 eval "$as_ac_Header=\$ac_header_preproc"
20699 ac_res=`eval echo '${'$as_ac_Header'}'`
20700 { echo "$as_me:$LINENO: result: $ac_res" >&5
20701 echo "${ECHO_T}$ac_res" >&6; }
20704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20705 cat >>confdefs.h <<_ACEOF
20706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20714 for ac_header in ap_regex.h
20716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 ac_res=`eval echo '${'$as_ac_Header'}'`
20724 { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20727 # Is the header compilable?
20728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 $ac_includes_default
20737 #include <$ac_header>
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest.$ac_objext; then
20756 ac_header_compiler=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_header_compiler=no
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20766 echo "${ECHO_T}$ac_header_compiler" >&6; }
20768 # Is the header present?
20769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 #include <$ac_header>
20779 if { (ac_try="$ac_cpp conftest.$ac_ext"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } >/dev/null && {
20792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20795 ac_header_preproc=yes
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ac_header_preproc=no
20803 rm -f conftest.err conftest.$ac_ext
20804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20805 echo "${ECHO_T}$ac_header_preproc" >&6; }
20807 # So? What about this header?
20808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20814 ac_header_preproc=yes
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 eval "$as_ac_Header=\$ac_header_preproc"
20839 ac_res=`eval echo '${'$as_ac_Header'}'`
20840 { echo "$as_me:$LINENO: result: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20850 use_pcre_flag="yes"
20856 for ac_header in libgen.h
20858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 ac_res=`eval echo '${'$as_ac_Header'}'`
20866 { echo "$as_me:$LINENO: result: $ac_res" >&5
20867 echo "${ECHO_T}$ac_res" >&6; }
20869 # Is the header compilable?
20870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 $ac_includes_default
20879 #include <$ac_header>
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
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_compile") 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); } && {
20895 test -z "$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest.$ac_objext; then
20898 ac_header_compiler=yes
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 ac_header_compiler=no
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20908 echo "${ECHO_T}$ac_header_compiler" >&6; }
20910 # Is the header present?
20911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <$ac_header>
20921 if { (ac_try="$ac_cpp conftest.$ac_ext"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } >/dev/null && {
20934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20937 ac_header_preproc=yes
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ac_header_preproc=no
20945 rm -f conftest.err conftest.$ac_ext
20946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20947 echo "${ECHO_T}$ac_header_preproc" >&6; }
20949 # So? What about this header?
20950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20956 ac_header_preproc=yes
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 eval "$as_ac_Header=\$ac_header_preproc"
20981 ac_res=`eval echo '${'$as_ac_Header'}'`
20982 { echo "$as_me:$LINENO: result: $ac_res" >&5
20983 echo "${ECHO_T}$ac_res" >&6; }
20986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20987 cat >>confdefs.h <<_ACEOF
20988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20995 if test "x$use_pcre_flag" = "xyes" ; then
20996 if test "x$with_pcre_config" = "x" ; then
20997 # Extract the first word of "pcre-config", so it can be a program name with args.
20998 set dummy pcre-config; ac_word=$2
20999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21001 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 case $PCRE_CONFIG in
21006 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21010 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21011 for as_dir in $as_dummy
21014 test -z "$as_dir" && as_dir=.
21015 for ac_exec_ext in '' $ac_executable_extensions; do
21016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21017 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21025 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21029 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21030 if test -n "$PCRE_CONFIG"; then
21031 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21032 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21034 { echo "$as_me:$LINENO: result: no" >&5
21035 echo "${ECHO_T}no" >&6; }
21039 if test "x$PCRE_CONFIG" = "xno" ; then
21040 # Extract the first word of "pcre-1-config", so it can be a program name with args.
21041 set dummy pcre-1-config; ac_word=$2
21042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21044 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 case $PCRE_1_CONFIG in
21049 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21053 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21054 for as_dir in $as_dummy
21057 test -z "$as_dir" && as_dir=.
21058 for ac_exec_ext in '' $ac_executable_extensions; do
21059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21060 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21068 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21072 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21073 if test -n "$PCRE_1_CONFIG"; then
21074 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21075 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21077 { echo "$as_me:$LINENO: result: no" >&5
21078 echo "${ECHO_T}no" >&6; }
21082 if test "x$PCRE_1_CONFIG" = "xno" ; then
21083 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21084 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21085 { (exit 1); exit 1; }; }
21087 PCRE_CONFIG="$PCRE_1_CONFIG"
21091 if test "x$with_pcre_config" != "x" ; then
21092 PCRE_CONFIG=$with_pcre_config
21094 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21097 cat >>confdefs.h <<\_ACEOF
21098 #define HAVE_AP_REGEX_H 1
21103 # Checks for typedefs, structures, and compiler characteristics.
21104 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21105 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21106 if test "${ac_cv_c_const+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21119 /* FIXME: Include the comments suggested by Paul. */
21120 #ifndef __cplusplus
21121 /* Ultrix mips cc rejects this. */
21122 typedef int charset[2];
21124 /* SunOS 4.1.1 cc rejects this. */
21125 char const *const *pcpcc;
21127 /* NEC SVR4.0.2 mips cc rejects this. */
21128 struct point {int x, y;};
21129 static struct point const zero = {0,0};
21130 /* AIX XL C 1.02.0.0 rejects this.
21131 It does not let you subtract one const X* pointer from another in
21132 an arm of an if-expression whose if-part is not a constant
21134 const char *g = "string";
21135 pcpcc = &g + (g ? g-g : 0);
21136 /* HPUX 7.0 cc rejects these. */
21138 ppc = (char**) pcpcc;
21139 pcpcc = (char const *const *) ppc;
21140 { /* SCO 3.2v4 cc rejects this. */
21142 char const *s = 0 ? (char *) 0 : (char const *) 0;
21147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21148 int x[] = {25, 17};
21149 const int *foo = &x[0];
21152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21153 typedef const int *iptr;
21157 { /* AIX XL C 1.02.0.0 rejects this saying
21158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21159 struct s { int j; const int *ap[3]; };
21160 struct s *b; b->j = 5;
21162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21163 const int foo = 10;
21164 if (!foo) return 0;
21166 return !cs[0] && !zero.x;
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_compile") 2>conftest.er1
21182 grep -v '^ *+' conftest.er1 >conftest.err
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && {
21187 test -z "$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 } && test -s conftest.$ac_objext; then
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21202 if test $ac_cv_c_const = no; then
21204 cat >>confdefs.h <<\_ACEOF
21211 # Checks for library functions.
21213 for ac_header in stdlib.h
21215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21226 # Is the header compilable?
21227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 $ac_includes_default
21236 #include <$ac_header>
21238 rm -f conftest.$ac_objext
21239 if { (ac_try="$ac_compile"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_compile") 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && {
21252 test -z "$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 } && test -s conftest.$ac_objext; then
21255 ac_header_compiler=yes
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_compiler=no
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21265 echo "${ECHO_T}$ac_header_compiler" >&6; }
21267 # Is the header present?
21268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 #include <$ac_header>
21278 if { (ac_try="$ac_cpp conftest.$ac_ext"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } >/dev/null && {
21291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21294 ac_header_preproc=yes
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_header_preproc=no
21302 rm -f conftest.err conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21304 echo "${ECHO_T}$ac_header_preproc" >&6; }
21306 # So? What about this header?
21307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21313 ac_header_preproc=yes
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 eval "$as_ac_Header=\$ac_header_preproc"
21338 ac_res=`eval echo '${'$as_ac_Header'}'`
21339 { echo "$as_me:$LINENO: result: $ac_res" >&5
21340 echo "${ECHO_T}$ac_res" >&6; }
21343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21352 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21353 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21354 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 if test "$cross_compiling" = yes; then
21358 ac_cv_func_malloc_0_nonnull=no
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21367 # include <stdlib.h>
21375 return ! malloc (0);
21380 rm -f conftest$ac_exeext
21381 if { (ac_try="$ac_link"
21382 case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_link") 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21391 { (case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_try") 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_func_malloc_0_nonnull=yes
21402 echo "$as_me: program exited with status $ac_status" >&5
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ( exit $ac_status )
21407 ac_cv_func_malloc_0_nonnull=no
21409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21414 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21415 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21416 if test $ac_cv_func_malloc_0_nonnull = yes; then
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_MALLOC 1
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_MALLOC 0
21427 case " $LIBOBJS " in
21428 *" malloc.$ac_objext "* ) ;;
21429 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21434 cat >>confdefs.h <<\_ACEOF
21435 #define malloc rpl_malloc
21450 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21466 #define $ac_func innocuous_$ac_func
21468 /* System header to define __stub macros and hopefully few prototypes,
21469 which can conflict with char $ac_func (); below.
21470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471 <limits.h> exists even on freestanding compilers. */
21474 # include <limits.h>
21476 # include <assert.h>
21481 /* Override any GCC internal prototype to avoid an error.
21482 Use char because int might match the return type of a GCC
21483 builtin and then its argument prototype would still apply. */
21488 /* The GNU C library defines this for functions which it implements
21489 to always fail with ENOSYS. Some functions are actually named
21490 something starting with __ and the normal name is an alias. */
21491 #if defined __stub_$ac_func || defined __stub___$ac_func
21498 return $ac_func ();
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (ac_try="$ac_link"
21505 case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_link") 2>conftest.er1
21512 grep -v '^ *+' conftest.er1 >conftest.err
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && {
21517 test -z "$ac_c_werror_flag" ||
21518 test ! -s conftest.err
21519 } && test -s conftest$ac_exeext &&
21520 $as_test_x conftest$ac_exeext; then
21521 eval "$as_ac_var=yes"
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 eval "$as_ac_var=no"
21529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21530 conftest$ac_exeext conftest.$ac_ext
21532 ac_res=`eval echo '${'$as_ac_var'}'`
21533 { echo "$as_me:$LINENO: result: $ac_res" >&5
21534 echo "${ECHO_T}$ac_res" >&6; }
21535 if test `eval echo '${'$as_ac_var'}'` = yes; then
21536 cat >>confdefs.h <<_ACEOF
21537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21554 ac_config_files="$ac_config_files Makefile src/Makefile"
21556 cat >confcache <<\_ACEOF
21557 # This file is a shell script that caches the results of configure
21558 # tests run on this system so they can be shared between configure
21559 # scripts and configure runs, see configure's option --config-cache.
21560 # It is not useful on other systems. If it contains results you don't
21561 # want to keep, you may remove or edit it.
21563 # config.status only pays attention to the cache file if you give it
21564 # the --recheck option to rerun configure.
21566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21568 # following values.
21572 # The following way of writing the cache mishandles newlines in values,
21573 # but we know of no workaround that is simple, portable, and efficient.
21574 # So, we kill variables containing newlines.
21575 # Ultrix sh set writes to stderr and can't be redirected directly,
21576 # and sets the high bit in the cache file unless we assign to the vars.
21578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21579 eval ac_val=\$$ac_var
21583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21587 _ | IFS | as_nl) ;; #(
21588 *) $as_unset $ac_var ;;
21594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21595 *${as_nl}ac_space=\ *)
21596 # `set' does not quote correctly, so add quotes (double-quote
21597 # substitution turns \\\\ into \\, and sed turns \\ into \).
21600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21603 # `set' quotes correctly as required by POSIX, so do not add quotes.
21604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21618 if test -w "$cache_file"; then
21619 test "x$cache_file" != "x/dev/null" &&
21620 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21621 echo "$as_me: updating cache $cache_file" >&6;}
21622 cat confcache >$cache_file
21624 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21625 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21631 # Let make expand exec_prefix.
21632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21634 DEFS=-DHAVE_CONFIG_H
21638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21639 # 1. Remove the extension, and $U if already installed.
21640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21641 ac_i=`echo "$ac_i" | sed "$ac_script"`
21642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21643 # will be set to the directory where LIBOBJS objects are built.
21644 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21645 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21647 LIBOBJS=$ac_libobjs
21649 LTLIBOBJS=$ac_ltlibobjs
21652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21653 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21654 Usually this means the macro was only invoked conditionally." >&5
21655 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21656 Usually this means the macro was only invoked conditionally." >&2;}
21657 { (exit 1); exit 1; }; }
21659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21660 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21661 Usually this means the macro was only invoked conditionally." >&5
21662 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21663 Usually this means the macro was only invoked conditionally." >&2;}
21664 { (exit 1); exit 1; }; }
21666 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21667 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21668 Usually this means the macro was only invoked conditionally." >&5
21669 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21670 Usually this means the macro was only invoked conditionally." >&2;}
21671 { (exit 1); exit 1; }; }
21674 : ${CONFIG_STATUS=./config.status}
21675 ac_clean_files_save=$ac_clean_files
21676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21679 cat >$CONFIG_STATUS <<_ACEOF
21681 # Generated by $as_me.
21682 # Run this file to recreate the current configuration.
21683 # Compiler output produced by configure, useful for debugging
21684 # configure, is in config.log if it exists.
21687 ac_cs_recheck=false
21689 SHELL=\${CONFIG_SHELL-$SHELL}
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 ## --------------------- ##
21694 ## M4sh Initialization. ##
21695 ## --------------------- ##
21697 # Be more Bourne compatible
21698 DUALCASE=1; export DUALCASE # for MKS sh
21699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21703 # is contrary to our usage. Disable this feature.
21704 alias -g '${1+"$@"}'='"$@"'
21705 setopt NO_GLOB_SUBST
21707 case `(set -o) 2>/dev/null` in
21708 *posix*) set -o posix ;;
21717 # Avoid depending upon Character Ranges.
21718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21721 as_cr_digits='0123456789'
21722 as_cr_alnum=$as_cr_Letters$as_cr_digits
21724 # The user is always right.
21725 if test "${PATH_SEPARATOR+set}" != set; then
21726 echo "#! /bin/sh" >conf$$.sh
21727 echo "exit 0" >>conf$$.sh
21729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21737 # Support unset when possible.
21738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21746 # We need space, tab and new line, in precisely that order. Quoting is
21747 # there to prevent editors from complaining about space-tab.
21748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21749 # splitting by setting IFS to empty value.)
21754 # Find who we are. Look in the path if we contain no directory separator.
21756 *[\\/]* ) as_myself=$0 ;;
21757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21761 test -z "$as_dir" && as_dir=.
21762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21768 # We did not find ourselves, most probably we were run as `sh COMMAND'
21769 # in which case we are not to be found in the path.
21770 if test "x$as_myself" = x; then
21773 if test ! -f "$as_myself"; then
21774 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21775 { (exit 1); exit 1; }
21778 # Work around bugs in pre-3.0 UWIN ksh.
21779 for as_var in ENV MAIL MAILPATH
21780 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21790 LC_TELEPHONE LC_TIME
21792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21793 eval $as_var=C; export $as_var
21795 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21799 # Required to use basename.
21800 if expr a : '\(a\)' >/dev/null 2>&1 &&
21801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21808 as_basename=basename
21814 # Name of the executable.
21815 as_me=`$as_basename -- "$0" ||
21816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21817 X"$0" : 'X\(//\)$' \| \
21818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21820 sed '/^.*\/\([^/][^/]*\)\/*$/{
21839 as_lineno_1=$LINENO
21840 as_lineno_2=$LINENO
21841 test "x$as_lineno_1" != "x$as_lineno_2" &&
21842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21845 # uniformly replaced by the line number. The first 'sed' inserts a
21846 # line-number line after each line using $LINENO; the second 'sed'
21847 # does the real work. The second script uses 'N' to pair each
21848 # line-number line with the line containing $LINENO, and appends
21849 # trailing '-' during substitution so that $LINENO is not a special
21850 # case at line end.
21851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21852 # scripts with optimization help from Paolo Bonzini. Blame Lee
21853 # E. McMahon (1931-1989) for sed's syntax. :-)
21865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21868 ' >$as_me.lineno &&
21869 chmod +x "$as_me.lineno" ||
21870 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21871 { (exit 1); exit 1; }; }
21873 # Don't try to exec as it changes $[0], causing all sort of problems
21874 # (the dirname of $[0] is not the place where we might find the
21875 # original and so on. Autoconf is especially sensitive to this).
21876 . "./$as_me.lineno"
21877 # Exit status is that of the last command.
21882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21888 ECHO_C= ECHO_N= ECHO_T=
21889 case `echo -n x` in
21891 case `echo 'x\c'` in
21892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21899 if expr a : '\(a\)' >/dev/null 2>&1 &&
21900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21906 rm -f conf$$ conf$$.exe conf$$.file
21907 if test -d conf$$.dir; then
21908 rm -f conf$$.dir/conf$$.file
21914 if ln -s conf$$.file conf$$ 2>/dev/null; then
21916 # ... but there are two gotchas:
21917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21919 # In both cases, we have to default to `cp -p'.
21920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21922 elif ln conf$$.file conf$$ 2>/dev/null; then
21927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21928 rmdir conf$$.dir 2>/dev/null
21930 if mkdir -p . 2>/dev/null; then
21933 test -d ./-p && rmdir ./-p
21937 if test -x / >/dev/null 2>&1; then
21938 as_test_x='test -x'
21940 if ls -dL / >/dev/null 2>&1; then
21947 if test -d "$1"; then
21953 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21954 ???[sx]*):;;*)false;;esac;fi
21958 as_executable_p=$as_test_x
21960 # Sed expression to map a string onto a valid CPP name.
21961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21963 # Sed expression to map a string onto a valid variable name.
21964 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21969 # Save the log message, to keep $[0] and so on meaningful, and to
21970 # report actual input values of CONFIG_FILES etc. instead of their
21971 # values after options handling.
21973 This file was extended by mod_chxj $as_me 0.12.7-1, which was
21974 generated by GNU Autoconf 2.61. Invocation command line was
21976 CONFIG_FILES = $CONFIG_FILES
21977 CONFIG_HEADERS = $CONFIG_HEADERS
21978 CONFIG_LINKS = $CONFIG_LINKS
21979 CONFIG_COMMANDS = $CONFIG_COMMANDS
21982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21987 cat >>$CONFIG_STATUS <<_ACEOF
21988 # Files that config.status was made for.
21989 config_files="$ac_config_files"
21990 config_headers="$ac_config_headers"
21991 config_commands="$ac_config_commands"
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21997 \`$as_me' instantiates files from templates according to the
21998 current configuration.
22000 Usage: $0 [OPTIONS] [FILE]...
22002 -h, --help print this help, then exit
22003 -V, --version print version number and configuration settings, then exit
22004 -q, --quiet do not print progress messages
22005 -d, --debug don't remove temporary files
22006 --recheck update $as_me by reconfiguring in the same conditions
22007 --file=FILE[:TEMPLATE]
22008 instantiate the configuration file FILE
22009 --header=FILE[:TEMPLATE]
22010 instantiate the configuration header FILE
22012 Configuration files:
22015 Configuration headers:
22018 Configuration commands:
22021 Report bugs to <bug-autoconf@gnu.org>."
22024 cat >>$CONFIG_STATUS <<_ACEOF
22026 mod_chxj config.status 0.12.7-1
22027 configured by $0, generated by GNU Autoconf 2.61,
22028 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22030 Copyright (C) 2006 Free Software Foundation, Inc.
22031 This config.status script is free software; the Free Software Foundation
22032 gives unlimited permission to copy, distribute and modify it."
22040 cat >>$CONFIG_STATUS <<\_ACEOF
22041 # If no file are specified by the user, then we need to provide default
22042 # value. By we need to know if files were specified by the user.
22048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22049 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22060 # Handling of the options.
22061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22063 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22064 echo "$ac_cs_version"; exit ;;
22065 --debug | --debu | --deb | --de | --d | -d )
22067 --file | --fil | --fi | --f )
22069 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22070 ac_need_defaults=false;;
22071 --header | --heade | --head | --hea )
22073 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22074 ac_need_defaults=false;;
22076 # Conflict between --help and --header
22077 { echo "$as_me: error: ambiguous option: $1
22078 Try \`$0 --help' for more information." >&2
22079 { (exit 1); exit 1; }; };;
22080 --help | --hel | -h )
22081 echo "$ac_cs_usage"; exit ;;
22082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22086 # This is an error.
22087 -*) { echo "$as_me: error: unrecognized option: $1
22088 Try \`$0 --help' for more information." >&2
22089 { (exit 1); exit 1; }; } ;;
22091 *) ac_config_targets="$ac_config_targets $1"
22092 ac_need_defaults=false ;;
22098 ac_configure_extra_args=
22100 if $ac_cs_silent; then
22102 ac_configure_extra_args="$ac_configure_extra_args --silent"
22106 cat >>$CONFIG_STATUS <<_ACEOF
22107 if \$ac_cs_recheck; then
22108 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22109 CONFIG_SHELL=$SHELL
22110 export CONFIG_SHELL
22111 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22115 cat >>$CONFIG_STATUS <<\_ACEOF
22119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22120 ## Running $as_me. ##
22126 cat >>$CONFIG_STATUS <<_ACEOF
22130 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22134 cat >>$CONFIG_STATUS <<\_ACEOF
22136 # Handling of arguments.
22137 for ac_config_target in $ac_config_targets
22139 case $ac_config_target in
22140 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22141 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22142 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22143 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22145 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22146 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22147 { (exit 1); exit 1; }; };;
22152 # If the user did not use the arguments to specify the items to instantiate,
22153 # then the envvar interface is used. Set only those that are not.
22154 # We use the long form for the default assignment because of an extremely
22155 # bizarre bug on SunOS 4.1.3.
22156 if $ac_need_defaults; then
22157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22162 # Have a temporary directory for convenience. Make it in the build tree
22163 # simply because there is no reason against having it here, and in addition,
22164 # creating and moving files from /tmp can sometimes cause problems.
22165 # Hook for its removal unless debugging.
22166 # Note that there is a small window in which the directory will not be cleaned:
22167 # after its creation but before its name has been assigned to `$tmp'.
22171 trap 'exit_status=$?
22172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22174 trap '{ (exit 1); exit 1; }' 1 2 13 15
22176 # Create a (secure) tmp directory for tmp files.
22179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22180 test -n "$tmp" && test -d "$tmp"
22183 tmp=./conf$$-$RANDOM
22184 (umask 077 && mkdir "$tmp")
22187 echo "$me: cannot create a temporary directory in ." >&2
22188 { (exit 1); exit 1; }
22192 # Set up the sed scripts for CONFIG_FILES section.
22195 # No need to generate the scripts if there are no CONFIG_FILES.
22196 # This happens for instance when ./config.status config.h
22197 if test -n "$CONFIG_FILES"; then
22204 for ac_last_try in false false false false false :; do
22205 cat >conf$$subs.sed <<_ACEOF
22206 SHELL!$SHELL$ac_delim
22207 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22208 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22209 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22210 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22211 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22212 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22213 exec_prefix!$exec_prefix$ac_delim
22214 prefix!$prefix$ac_delim
22215 program_transform_name!$program_transform_name$ac_delim
22216 bindir!$bindir$ac_delim
22217 sbindir!$sbindir$ac_delim
22218 libexecdir!$libexecdir$ac_delim
22219 datarootdir!$datarootdir$ac_delim
22220 datadir!$datadir$ac_delim
22221 sysconfdir!$sysconfdir$ac_delim
22222 sharedstatedir!$sharedstatedir$ac_delim
22223 localstatedir!$localstatedir$ac_delim
22224 includedir!$includedir$ac_delim
22225 oldincludedir!$oldincludedir$ac_delim
22226 docdir!$docdir$ac_delim
22227 infodir!$infodir$ac_delim
22228 htmldir!$htmldir$ac_delim
22229 dvidir!$dvidir$ac_delim
22230 pdfdir!$pdfdir$ac_delim
22231 psdir!$psdir$ac_delim
22232 libdir!$libdir$ac_delim
22233 localedir!$localedir$ac_delim
22234 mandir!$mandir$ac_delim
22235 DEFS!$DEFS$ac_delim
22236 ECHO_C!$ECHO_C$ac_delim
22237 ECHO_N!$ECHO_N$ac_delim
22238 ECHO_T!$ECHO_T$ac_delim
22239 LIBS!$LIBS$ac_delim
22240 build_alias!$build_alias$ac_delim
22241 host_alias!$host_alias$ac_delim
22242 target_alias!$target_alias$ac_delim
22243 build!$build$ac_delim
22244 build_cpu!$build_cpu$ac_delim
22245 build_vendor!$build_vendor$ac_delim
22246 build_os!$build_os$ac_delim
22247 host!$host$ac_delim
22248 host_cpu!$host_cpu$ac_delim
22249 host_vendor!$host_vendor$ac_delim
22250 host_os!$host_os$ac_delim
22251 target!$target$ac_delim
22252 target_cpu!$target_cpu$ac_delim
22253 target_vendor!$target_vendor$ac_delim
22254 target_os!$target_os$ac_delim
22255 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22256 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22257 INSTALL_DATA!$INSTALL_DATA$ac_delim
22258 am__isrc!$am__isrc$ac_delim
22259 CYGPATH_W!$CYGPATH_W$ac_delim
22260 PACKAGE!$PACKAGE$ac_delim
22261 VERSION!$VERSION$ac_delim
22262 ACLOCAL!$ACLOCAL$ac_delim
22263 AUTOCONF!$AUTOCONF$ac_delim
22264 AUTOMAKE!$AUTOMAKE$ac_delim
22265 AUTOHEADER!$AUTOHEADER$ac_delim
22266 MAKEINFO!$MAKEINFO$ac_delim
22267 install_sh!$install_sh$ac_delim
22268 STRIP!$STRIP$ac_delim
22269 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22270 mkdir_p!$mkdir_p$ac_delim
22272 SET_MAKE!$SET_MAKE$ac_delim
22273 am__leading_dot!$am__leading_dot$ac_delim
22274 AMTAR!$AMTAR$ac_delim
22275 am__tar!$am__tar$ac_delim
22276 am__untar!$am__untar$ac_delim
22278 CFLAGS!$CFLAGS$ac_delim
22279 LDFLAGS!$LDFLAGS$ac_delim
22280 CPPFLAGS!$CPPFLAGS$ac_delim
22281 ac_ct_CC!$ac_ct_CC$ac_delim
22282 EXEEXT!$EXEEXT$ac_delim
22283 OBJEXT!$OBJEXT$ac_delim
22284 DEPDIR!$DEPDIR$ac_delim
22285 am__include!$am__include$ac_delim
22286 am__quote!$am__quote$ac_delim
22287 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22288 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22289 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22290 CCDEPMODE!$CCDEPMODE$ac_delim
22291 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22292 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22293 GREP!$GREP$ac_delim
22294 EGREP!$EGREP$ac_delim
22295 LN_S!$LN_S$ac_delim
22296 ECHO!$ECHO$ac_delim
22298 RANLIB!$RANLIB$ac_delim
22301 CXXFLAGS!$CXXFLAGS$ac_delim
22302 ac_ct_CXX!$ac_ct_CXX$ac_delim
22305 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22307 elif $ac_last_try; then
22308 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22310 { (exit 1); exit 1; }; }
22312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22317 if test -n "$ac_eof"; then
22318 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22319 ac_eof=`expr $ac_eof + 1`
22322 cat >>$CONFIG_STATUS <<_ACEOF
22323 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22328 s/^/s,@/; s/!/@,|#_!!_#|/
22331 s/'"$ac_delim"'$/,g/; t
22333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22334 ' >>$CONFIG_STATUS <conf$$subs.sed
22335 rm -f conf$$subs.sed
22336 cat >>$CONFIG_STATUS <<_ACEOF
22342 for ac_last_try in false false false false false :; do
22343 cat >conf$$subs.sed <<_ACEOF
22344 CXXDEPMODE!$CXXDEPMODE$ac_delim
22345 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22346 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22347 CXXCPP!$CXXCPP$ac_delim
22349 FFLAGS!$FFLAGS$ac_delim
22350 ac_ct_F77!$ac_ct_F77$ac_delim
22351 LIBTOOL!$LIBTOOL$ac_delim
22352 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22353 APXS2!$APXS2$ac_delim
22354 APXS!$APXS$ac_delim
22355 WAND_CONFIG!$WAND_CONFIG$ac_delim
22356 APR_CONFIG!$APR_CONFIG$ac_delim
22357 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22358 APU_CONFIG!$APU_CONFIG$ac_delim
22359 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22360 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22361 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22362 LIBOBJS!$LIBOBJS$ac_delim
22363 with_apache_header!$with_apache_header$ac_delim
22364 QDEFS!$QDEFS$ac_delim
22365 DDEFS!$DDEFS$ac_delim
22366 LTLIBOBJS!$LTLIBOBJS$ac_delim
22369 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22371 elif $ac_last_try; then
22372 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22373 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22374 { (exit 1); exit 1; }; }
22376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22380 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22381 if test -n "$ac_eof"; then
22382 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22383 ac_eof=`expr $ac_eof + 1`
22386 cat >>$CONFIG_STATUS <<_ACEOF
22387 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22388 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22391 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22392 s/^/s,@/; s/!/@,|#_!!_#|/
22395 s/'"$ac_delim"'$/,g/; t
22397 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22398 ' >>$CONFIG_STATUS <conf$$subs.sed
22399 rm -f conf$$subs.sed
22400 cat >>$CONFIG_STATUS <<_ACEOF
22407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22409 # trailing colons and then remove the whole line if VPATH becomes empty
22410 # (actually we leave an empty line to preserve line numbers).
22411 if test "x$srcdir" = x.; then
22412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22413 s/:*\$(srcdir):*/:/
22414 s/:*\${srcdir}:*/:/
22416 s/^\([^=]*=[ ]*\):*/\1/
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22423 fi # test -n "$CONFIG_FILES"
22426 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22429 :[FHLC]) ac_mode=$ac_tag; continue;;
22431 case $ac_mode$ac_tag in
22433 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22434 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22435 { (exit 1); exit 1; }; };;
22436 :[FH]-) ac_tag=-:-;;
22437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22454 -) ac_f="$tmp/stdin";;
22455 *) # Look for the file first in the build tree, then in the source tree
22456 # (if the path is not absolute). The absolute path cannot be DOS-style,
22457 # because $ac_f cannot contain `:'.
22461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22463 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22464 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22465 { (exit 1); exit 1; }; };;
22467 ac_file_inputs="$ac_file_inputs $ac_f"
22470 # Let's still pretend it is `configure' which instantiates (i.e., don't
22471 # use $as_me), people would be surprised to read:
22472 # /* config.h. Generated by config.status. */
22473 configure_input="Generated from "`IFS=:
22474 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22475 if test x"$ac_file" != x-; then
22476 configure_input="$ac_file. $configure_input"
22477 { echo "$as_me:$LINENO: creating $ac_file" >&5
22478 echo "$as_me: creating $ac_file" >&6;}
22482 *:-:* | *:-) cat >"$tmp/stdin";;
22487 ac_dir=`$as_dirname -- "$ac_file" ||
22488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$ac_file" : 'X\(//\)[^/]' \| \
22490 X"$ac_file" : 'X\(//\)$' \| \
22491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22497 /^X\(\/\/\)[^/].*/{
22512 -*) as_dir=./$as_dir;;
22514 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22518 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22519 *) as_qdir=$as_dir;;
22521 as_dirs="'$as_qdir' $as_dirs"
22522 as_dir=`$as_dirname -- "$as_dir" ||
22523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22524 X"$as_dir" : 'X\(//\)[^/]' \| \
22525 X"$as_dir" : 'X\(//\)$' \| \
22526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22532 /^X\(\/\/\)[^/].*/{
22545 test -d "$as_dir" && break
22547 test -z "$as_dirs" || eval "mkdir $as_dirs"
22548 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22549 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22550 { (exit 1); exit 1; }; }; }
22554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22557 # A ".." for each directory in $ac_dir_suffix.
22558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22559 case $ac_top_builddir_sub in
22560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22564 ac_abs_top_builddir=$ac_pwd
22565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22566 # for backward compatibility:
22567 ac_top_builddir=$ac_top_build_prefix
22570 .) # We are building in place.
22572 ac_top_srcdir=$ac_top_builddir_sub
22573 ac_abs_top_srcdir=$ac_pwd ;;
22574 [\\/]* | ?:[\\/]* ) # Absolute name.
22575 ac_srcdir=$srcdir$ac_dir_suffix;
22576 ac_top_srcdir=$srcdir
22577 ac_abs_top_srcdir=$srcdir ;;
22578 *) # Relative name.
22579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22580 ac_top_srcdir=$ac_top_build_prefix$srcdir
22581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22596 ac_MKDIR_P=$MKDIR_P
22598 [\\/$]* | ?:[\\/]* ) ;;
22599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22603 cat >>$CONFIG_STATUS <<\_ACEOF
22604 # If the template does not know about datarootdir, expand it.
22605 # FIXME: This hack should be removed a few years after 2.60.
22606 ac_datarootdir_hack=; ac_datarootdir_seen=
22608 case `sed -n '/datarootdir/ {
22617 ' $ac_file_inputs` in
22618 *datarootdir*) ac_datarootdir_seen=yes;;
22619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22620 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22621 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22623 cat >>$CONFIG_STATUS <<_ACEOF
22624 ac_datarootdir_hack='
22625 s&@datadir@&$datadir&g
22626 s&@docdir@&$docdir&g
22627 s&@infodir@&$infodir&g
22628 s&@localedir@&$localedir&g
22629 s&@mandir@&$mandir&g
22630 s&\\\${datarootdir}&$datarootdir&g' ;;
22634 # Neutralize VPATH when `$srcdir' = `.'.
22635 # Shell code in configure.ac might set extrasub.
22636 # FIXME: do we really want to maintain this feature?
22637 cat >>$CONFIG_STATUS <<_ACEOF
22641 cat >>$CONFIG_STATUS <<\_ACEOF
22643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22644 s&@configure_input@&$configure_input&;t t
22645 s&@top_builddir@&$ac_top_builddir_sub&;t t
22646 s&@srcdir@&$ac_srcdir&;t t
22647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22648 s&@top_srcdir@&$ac_top_srcdir&;t t
22649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22650 s&@builddir@&$ac_builddir&;t t
22651 s&@abs_builddir@&$ac_abs_builddir&;t t
22652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22653 s&@INSTALL@&$ac_INSTALL&;t t
22654 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22655 $ac_datarootdir_hack
22656 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22661 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22662 which seems to be undefined. Please make sure it is defined." >&5
22663 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22664 which seems to be undefined. Please make sure it is defined." >&2;}
22668 -) cat "$tmp/out"; rm -f "$tmp/out";;
22669 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22678 # Transform confdefs.h into a sed script `conftest.defines', that
22679 # substitutes the proper values into config.h.in to produce config.h.
22680 rm -f conftest.defines conftest.tail
22681 # First, append a space to every undef/define line, to ease matching.
22682 echo 's/$/ /' >conftest.defines
22683 # Then, protect against being on the right side of a sed subst, or in
22684 # an unquoted here document, in config.status. If some macros were
22685 # called several times there might be several #defines for the same
22686 # symbol, which is useless. But do not sort them, since the last
22687 # AC_DEFINE must be honored.
22688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22689 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22690 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22691 # PARAMS is the parameter list in the macro definition--in most cases, it's
22692 # just an empty string.
22693 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22694 ac_dB='\\)[ (].*,\\1define\\2'
22702 s/^[ ]*#[ ]*define[ ][ ]*//
22707 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22708 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22709 ' >>conftest.defines
22711 # Remove the space that was appended to ease matching.
22712 # Then replace #undef with comments. This is necessary, for
22713 # example, in the case of _POSIX_SOURCE, which is predefined and required
22714 # on some systems where configure will not decide to define it.
22715 # (The regexp can be short, since the line contains either #define or #undef.)
22717 s,^[ #]*u.*,/* & */,' >>conftest.defines
22719 # Break up conftest.defines:
22720 ac_max_sed_lines=50
22722 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22723 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22724 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22726 ac_in='$ac_file_inputs'
22727 ac_out='"$tmp/out1"'
22728 ac_nxt='"$tmp/out2"'
22732 # Write a here document:
22733 cat >>$CONFIG_STATUS <<_ACEOF
22734 # First, check the format of the line:
22735 cat >"\$tmp/defines.sed" <<\\CEOF
22736 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22737 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22741 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22743 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22744 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22745 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22746 grep . conftest.tail >/dev/null || break
22747 rm -f conftest.defines
22748 mv conftest.tail conftest.defines
22750 rm -f conftest.defines conftest.tail
22752 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22753 cat >>$CONFIG_STATUS <<\_ACEOF
22754 if test x"$ac_file" != x-; then
22755 echo "/* $configure_input */" >"$tmp/config.h"
22756 cat "$ac_result" >>"$tmp/config.h"
22757 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22759 echo "$as_me: $ac_file is unchanged" >&6;}
22762 mv "$tmp/config.h" $ac_file
22765 echo "/* $configure_input */"
22769 # Compute $ac_file's index in $config_headers.
22771 for _am_header in $config_headers :; do
22772 case $_am_header in
22773 $ac_file | $ac_file:* )
22776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22779 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22780 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22781 X$ac_file : 'X\(//\)[^/]' \| \
22782 X$ac_file : 'X\(//\)$' \| \
22783 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22789 /^X\(\/\/\)[^/].*/{
22801 s/.*/./; q'`/stamp-h$_am_stamp_count
22804 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22805 echo "$as_me: executing $ac_file commands" >&6;}
22810 case $ac_file$ac_mode in
22811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22812 # Strip MF so we end up with the name of the file.
22813 mf=`echo "$mf" | sed -e 's/:.*$//'`
22814 # Check whether this is an Automake generated Makefile or not.
22815 # We used to match only the files named `Makefile.in', but
22816 # some people rename them; so instead we look at the file content.
22817 # Grep'ing the first line is not enough: some people post-process
22818 # each Makefile.in and add a new line on top of each file to say so.
22819 # Grep'ing the whole file is not good either: AIX grep has a line
22820 # limit of 2048, but all sed's we know have understand at least 4000.
22821 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22822 dirpart=`$as_dirname -- "$mf" ||
22823 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$mf" : 'X\(//\)[^/]' \| \
22825 X"$mf" : 'X\(//\)$' \| \
22826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22832 /^X\(\/\/\)[^/].*/{
22848 # Extract the definition of DEPDIR, am__include, and am__quote
22849 # from the Makefile without running `make'.
22850 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22851 test -z "$DEPDIR" && continue
22852 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22853 test -z "am__include" && continue
22854 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22855 # When using ansi2knr, U may be empty or an underscore; expand it
22856 U=`sed -n 's/^U = //p' < "$mf"`
22857 # Find all dependency output files, they are included files with
22858 # $(DEPDIR) in their names. We invoke sed twice because it is the
22859 # simplest approach to changing $(DEPDIR) to its actual value in the
22861 for file in `sed -n "
22862 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22863 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22864 # Make sure the directory exists.
22865 test -f "$dirpart/$file" && continue
22866 fdir=`$as_dirname -- "$file" ||
22867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22868 X"$file" : 'X\(//\)[^/]' \| \
22869 X"$file" : 'X\(//\)$' \| \
22870 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22876 /^X\(\/\/\)[^/].*/{
22889 { as_dir=$dirpart/$fdir
22891 -*) as_dir=./$as_dir;;
22893 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22897 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22898 *) as_qdir=$as_dir;;
22900 as_dirs="'$as_qdir' $as_dirs"
22901 as_dir=`$as_dirname -- "$as_dir" ||
22902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22903 X"$as_dir" : 'X\(//\)[^/]' \| \
22904 X"$as_dir" : 'X\(//\)$' \| \
22905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22911 /^X\(\/\/\)[^/].*/{
22924 test -d "$as_dir" && break
22926 test -z "$as_dirs" || eval "mkdir $as_dirs"
22927 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22928 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22929 { (exit 1); exit 1; }; }; }
22930 # echo "creating $dirpart/$file"
22931 echo '# dummy' > "$dirpart/$file"
22940 { (exit 0); exit 0; }
22942 chmod +x $CONFIG_STATUS
22943 ac_clean_files=$ac_clean_files_save
22946 # configure is writing to config.log, and then calls config.status.
22947 # config.status does its own redirection, appending to config.log.
22948 # Unfortunately, on DOS this fails, as config.log is still kept open
22949 # by configure, so config.status won't be able to write to it; its
22950 # output is simply discarded. So we exec the FD to /dev/null,
22951 # effectively closing config.log, so it can be properly (re)opened and
22952 # appended to by config.status. When coming back to configure, we
22953 # need to make the FD available again.
22954 if test "$no_create" != yes; then
22956 ac_config_status_args=
22957 test "$silent" = yes &&
22958 ac_config_status_args="$ac_config_status_args --quiet"
22960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22963 # would make configure fail if this is the last instruction.
22964 $ac_cs_success || { (exit 1); exit 1; }