2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for suPHP 0.7.1.
5 # Report bugs to <sebastian.marsching@suphp.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='suphp'
731 PACKAGE_VERSION='0.7.1'
732 PACKAGE_STRING='suPHP 0.7.1'
733 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
735 ac_unique_file="src/Application.cpp"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
884 OPT_APACHEMOD_USERGROUP_DEF
889 COND_APUSERGROUP_TRUE
890 COND_APUSERGROUP_FALSE
894 ac_precious_vars='build_alias
911 # Initialize some variables set by options.
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1201 -site=* | --site=* | --sit=*)
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1246 # Obsolete; use --with-x.
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures suPHP 0.7.1 to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/suphp]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of suPHP 0.7.1:";;
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1504 --with-tags[=TAGS] include additional configurations [automatic]
1505 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1506 or the full path to apr-config
1507 --with-apxs=FILE Build shared Apache module. FILE is the optional
1508 pathname to the Apache apxs tool; defaults to
1510 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1511 "owner", "config" or "paranoid"; defaults to
1513 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1515 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1517 --with-apache-user=USERNAME
1518 Name of the user Apache is running as (default is
1520 --with-logfile=FILE Path to suPHP logfile (default is
1521 "/var/log/httpd/suphp_log"
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1534 CXXCPP C++ preprocessor
1535 F77 Fortran 77 compiler command
1536 FFLAGS Fortran 77 compiler flags
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to <sebastian.marsching@suphp.org>.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1602 suPHP configure 0.7.1
1603 generated by GNU Autoconf 2.61
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1616 It was created by suPHP $as_me 0.7.1, which was
1617 generated by GNU Autoconf 2.61. Invocation command line was
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_must_keep_next=false
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 -* ) ac_must_keep_next=true ;;
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1733 # The following way of writing the cache mishandles newlines in values,
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1770 for ac_var in $ac_subst_vars
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1780 if test -n "$ac_subst_files"; then
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1787 for ac_var in $ac_subst_files
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1798 if test -s confdefs.h; then
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1824 # Predefined preprocessor variables.
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1889 # Check that the precious variables saved in the cache have kept the same
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912 echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914 echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 for ac_dir in config "$srcdir"/config; do
1973 if test -f "$ac_dir/install-sh"; then
1975 ac_install_sh="$ac_aux_dir/install-sh -c"
1977 elif test -f "$ac_dir/install.sh"; then
1979 ac_install_sh="$ac_aux_dir/install.sh -c"
1981 elif test -f "$ac_dir/shtool"; then
1983 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 if test -z "$ac_aux_dir"; then
1988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1989 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1990 { (exit 1); exit 1; }; }
1993 # These three variables are undocumented and unsupported,
1994 # and are intended to be withdrawn in a future Autoconf release.
1995 # They can cause serious problems if a builder's source tree is in a directory
1996 # whose full name contains unusual characters.
1997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003 am__api_version='1.10'
2005 # Find a good install program. We prefer a C program (faster),
2006 # so one script is as good as another. But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2085 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 echo timestamp > conftest.file
2090 # Do `set' in a subshell so we don't clobber the current shell's
2091 # arguments. Must try -L first in case configure is actually a
2092 # symlink; some systems play weird games with the mod time of symlinks
2093 # (eg FreeBSD returns the mod time of the symlink's containing
2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097 if test "$*" = "X"; then
2099 set X `ls -t $srcdir/configure conftest.file`
2102 if test "$*" != "X $srcdir/configure conftest.file" \
2103 && test "$*" != "X conftest.file $srcdir/configure"; then
2105 # If neither matched, then we have a broken ls. This can happen
2106 # if, for instance, CONFIG_SHELL is bash and it inherits a
2107 # broken ls alias from the environment. This has actually
2108 # happened. Such a system could not be considered "sane".
2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&5
2111 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&2;}
2113 { (exit 1); exit 1; }; }
2116 test "$2" = conftest.file
2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123 Check your system clock" >&5
2124 echo "$as_me: error: newly created file is older than distributed files!
2125 Check your system clock" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6; }
2130 test "$program_prefix" != NONE &&
2131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $. echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 # expand $ac_aux_dir to an absolute path
2144 am_aux_dir=`cd $ac_aux_dir && pwd`
2146 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147 # Use eval to expand $SHELL
2148 if eval "$MISSING --run true"; then
2149 am_missing_run="$MISSING --run "
2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158 if test -z "$MKDIR_P"; then
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 test -z "$as_dir" && as_dir=.
2167 for ac_prog in mkdir gmkdir; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171 'mkdir (GNU coreutils) '* | \
2172 'mkdir (coreutils) '* | \
2173 'mkdir (fileutils) '4.1*)
2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2184 if test "${ac_cv_path_mkdir+set}" = set; then
2185 MKDIR_P="$ac_cv_path_mkdir -p"
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for MKDIR_P within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 test -d ./--version && rmdir ./--version
2192 MKDIR_P="$ac_install_sh -d"
2195 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196 echo "${ECHO_T}$MKDIR_P" >&6; }
2200 [\\/$]* | ?:[\\/]*) ;;
2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 for ac_prog in gawk mawk nawk awk
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_AWK+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test -n "$AWK"; then
2214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_AWK="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 if test -n "$AWK"; then
2235 { echo "$as_me:$LINENO: result: $AWK" >&5
2236 echo "${ECHO_T}$AWK" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2243 test -n "$AWK" && break
2246 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 cat >conftest.make <<\_ACEOF
2255 @echo '@@@%%%=$(MAKE)=@@@%%%'
2257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2260 eval ac_cv_prog_make_${ac_make}_set=yes;;
2262 eval ac_cv_prog_make_${ac_make}_set=no;;
2266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273 SET_MAKE="MAKE=${MAKE-make}"
2276 rm -rf .tst 2>/dev/null
2277 mkdir .tst 2>/dev/null
2278 if test -d .tst; then
2283 rmdir .tst 2>/dev/null
2285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287 # is not polluted with repeated "-I."
2288 am__isrc=' -I$(srcdir)'
2289 # test to see if srcdir already configured
2290 if test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2297 # test whether we have cygpath
2298 if test -z "$CYGPATH_W"; then
2299 if (cygpath --version) >/dev/null 2>/dev/null; then
2300 CYGPATH_W='cygpath -w'
2307 # Define the identity of the package.
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE "$PACKAGE"
2317 cat >>confdefs.h <<_ACEOF
2318 #define VERSION "$VERSION"
2321 # Some tools Automake needs.
2323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2337 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2339 # Installed binaries are usually stripped using `strip' when the user
2340 # run `make install-strip'. However `strip' might not be the right
2341 # tool to use in cross-compilation environments, therefore Automake
2342 # will honor the `STRIP' environment variable to overrule this program.
2343 if test "$cross_compiling" != no; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 STRIP=$ac_cv_prog_STRIP
2373 if test -n "$STRIP"; then
2374 { echo "$as_me:$LINENO: result: $STRIP" >&5
2375 echo "${ECHO_T}$STRIP" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2383 if test -z "$ac_cv_prog_STRIP"; then
2385 # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$ac_ct_STRIP"; then
2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_STRIP="strip"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413 if test -n "$ac_ct_STRIP"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2421 if test "x$ac_ct_STRIP" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2437 STRIP="$ac_cv_prog_STRIP"
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2443 # We need awk for the "check" target. The system "awk" is bad on
2445 # Always define AMTAR for backward compatibility.
2447 AMTAR=${AMTAR-"${am_missing_run}tar"}
2449 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2455 # Check for right directory
2457 # Config headers for automake
2458 ac_config_headers="$ac_config_headers src/config.h"
2461 # Build time sanity check
2462 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2463 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2466 echo timestamp > conftest.file
2467 # Do `set' in a subshell so we don't clobber the current shell's
2468 # arguments. Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2473 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2476 set X `ls -t $srcdir/configure conftest.file`
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" >&5
2488 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2489 alias in your environment" >&2;}
2490 { (exit 1); exit 1; }; }
2493 test "$2" = conftest.file
2499 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2500 Check your system clock" >&5
2501 echo "$as_me: error: newly created file is older than distributed files!
2502 Check your system clock" >&2;}
2503 { (exit 1); exit 1; }; }
2505 { echo "$as_me:$LINENO: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6; }
2508 # Look for install program
2509 # Find a good install program. We prefer a C program (faster),
2510 # so one script is as good as another. But avoid the broken or
2511 # incompatible versions:
2512 # SysV /etc/install, /usr/sbin/install
2513 # SunOS /usr/etc/install
2514 # IRIX /sbin/install
2516 # AmigaOS /C/install, which installs bootblocks on floppy discs
2517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2520 # OS/2's system install, which has a completely different semantic
2521 # ./install, which can be erroneously created by make from ./install.sh.
2522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2524 if test -z "$INSTALL"; then
2525 if test "${ac_cv_path_install+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2535 ./ | .// | /cC/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 if test "${ac_cv_path_install+set}" = set; then
2569 INSTALL=$ac_cv_path_install
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for INSTALL within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 INSTALL=$ac_install_sh
2578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2579 echo "${ECHO_T}$INSTALL" >&6; }
2581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582 # It thinks the first close brace ends the variable substitution.
2583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test -n "$CC"; then
2626 { echo "$as_me:$LINENO: result: $CC" >&5
2627 echo "${ECHO_T}$CC" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2635 if test -z "$ac_cv_prog_CC"; then
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638 set dummy gcc; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2673 if test "x$ac_ct_CC" = x; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}cc; ac_word=$2
2696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="${ac_tool_prefix}cc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test -n "$CC"; then
2723 { echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6; }
2726 { echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6; }
2733 if test -z "$CC"; then
2734 # Extract the first word of "cc", so it can be a program name with args.
2735 set dummy cc; ac_word=$2
2736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2753 ac_prog_rejected=yes
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test $ac_prog_rejected = yes; then
2765 # We found a bogon in the path, so make sure we never use it.
2766 set dummy $ac_cv_prog_CC
2768 if test $# != 0; then
2769 # We chose a different compiler from the bogus one.
2770 # However, it has the same basename, so the bogon will be chosen
2771 # first if we set CC to just the basename; use the full file name.
2773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2779 if test -n "$CC"; then
2780 { echo "$as_me:$LINENO: result: $CC" >&5
2781 echo "${ECHO_T}$CC" >&6; }
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 for ac_prog in cl.exe
2793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797 if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$CC"; then
2822 { echo "$as_me:$LINENO: result: $CC" >&5
2823 echo "${ECHO_T}$CC" >&6; }
2825 { echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6; }
2830 test -n "$CC" && break
2833 if test -z "$CC"; then
2835 for ac_prog in cl.exe
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6; }
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2874 test -n "$ac_ct_CC" && break
2877 if test "x$ac_ct_CC" = x; then
2880 case $cross_compiling:$ac_tool_warned in
2882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&5
2885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2886 whose name does not start with the host triplet. If you think this
2887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2888 ac_tool_warned=yes ;;
2897 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: no acceptable C compiler found in \$PATH
2900 See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2903 # Provide some information about the compiler.
2904 echo "$as_me:$LINENO: checking for C compiler version" >&5
2905 ac_compiler=`set X $ac_compile; echo $2`
2906 { (ac_try="$ac_compiler --version >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler --version >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -v >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -V >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 ac_clean_files_save=$ac_clean_files
2953 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2954 # Try to create an executable without -o first, disregard a.out.
2955 # It will help us diagnose broken compilers, and finding out an intuition
2957 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2958 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 # List of possible output files, starting from the most likely.
2962 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2963 # only as a last resort. b.out is created by i960 compilers.
2964 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2966 # The IRIX 6 linker writes into existing files which may not be
2967 # executable, retaining their permissions. Remove them first so a
2968 # subsequent execution test works.
2970 for ac_file in $ac_files
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 if { (ac_try="$ac_link_default"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_link_default") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2994 for ac_file in $ac_files ''
2996 test -f "$ac_file" || continue
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3001 # We found the default executable, but exeext='' is most
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3019 test "$ac_cv_exeext" = no && ac_cv_exeext=
3025 { echo "$as_me:$LINENO: result: $ac_file" >&5
3026 echo "${ECHO_T}$ac_file" >&6; }
3027 if test -z "$ac_file"; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: C compiler cannot create executables
3034 See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3038 ac_exeext=$ac_cv_exeext
3040 # Check that the compiler produces executables we can run. If not, either
3041 # the compiler is broken, or we cross compile.
3042 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3045 # If not cross compiling, check that we can run a simple program.
3046 if test "$cross_compiling" != yes; then
3047 if { ac_try='./$ac_file'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 if test "$cross_compiling" = maybe; then
3062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&5
3065 echo "$as_me: error: cannot run C compiled programs.
3066 If you meant to cross compile, use \`--host'.
3067 See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3072 { echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6; }
3075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3076 ac_clean_files=$ac_clean_files_save
3077 # Check that the compiler produces executables we can run. If not, either
3078 # the compiler is broken, or we cross compile.
3079 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3081 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082 echo "${ECHO_T}$cross_compiling" >&6; }
3084 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3086 if { (ac_try="$ac_link"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_link") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; then
3096 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3098 # work properly (i.e., refer to `conftest.exe'), while it won't with
3100 for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&5
3112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3117 rm -f conftest$ac_cv_exeext
3118 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3121 rm -f conftest.$ac_ext
3122 EXEEXT=$ac_cv_exeext
3124 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3126 if test "${ac_cv_objext+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3144 rm -f conftest.o conftest.obj
3145 if { (ac_try="$ac_compile"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }
3174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3176 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3177 echo "${ECHO_T}$ac_cv_objext" >&6; }
3178 OBJEXT=$ac_cv_objext
3180 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3212 grep -v '^ *+' conftest.er1 >conftest.err
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3234 GCC=`test $ac_compiler_gnu = yes && echo yes`
3235 ac_test_CFLAGS=${CFLAGS+set}
3236 ac_save_CFLAGS=$CFLAGS
3237 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3239 if test "${ac_cv_prog_cc_g+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3383 if test "$GCC" = yes; then
3389 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3390 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_cc_c89+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_prog_cc_c89=no
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3420 s = g (p, va_arg (v,int));
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3435 inside strings and character constants. */
3437 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3439 int test (int i, double x);
3440 struct s1 {int (*f) (int a);};
3441 struct s2 {int (*f) (double a);};
3442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3448 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 ac_cv_prog_cc_c89=$ac_arg
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 rm -f conftest.$ac_ext
3490 case "x$ac_cv_prog_cc_c89" in
3492 { echo "$as_me:$LINENO: result: none needed" >&5
3493 echo "${ECHO_T}none needed" >&6; } ;;
3495 { echo "$as_me:$LINENO: result: unsupported" >&5
3496 echo "${ECHO_T}unsupported" >&6; } ;;
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 DEPDIR="${am__leading_dot}deps"
3511 ac_config_commands="$ac_config_commands depfiles"
3514 am_make=${MAKE-make}
3515 cat > confinc << 'END'
3520 # If we don't find an include directive, just comment out the code.
3521 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3522 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3526 # First try GNU make style include.
3527 echo "include confinc" > confmf
3528 # We grep out `Entering directory' and `Leaving directory'
3529 # messages which can occur if `w' ends up in MAKEFLAGS.
3530 # In particular we don't look at `^make:' because GNU make might
3531 # be invoked under some other name (usually "gmake"), in which
3532 # case it prints its new name instead of `make'.
3533 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3538 # Now try BSD make style include.
3539 if test "$am__include" = "#"; then
3540 echo '.include "confinc"' > confmf
3541 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3542 am__include=.include
3549 { echo "$as_me:$LINENO: result: $_am_result" >&5
3550 echo "${ECHO_T}$_am_result" >&6; }
3551 rm -f confinc confmf
3553 # Check whether --enable-dependency-tracking was given.
3554 if test "${enable_dependency_tracking+set}" = set; then
3555 enableval=$enable_dependency_tracking;
3558 if test "x$enable_dependency_tracking" != xno; then
3559 am_depcomp="$ac_aux_dir/depcomp"
3562 if test "x$enable_dependency_tracking" != xno; then
3572 depcc="$CC" am_compiler_list=
3574 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3575 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3576 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3580 # We make a subdir and do the tests there. Otherwise we can end up
3581 # making bogus files that we don't know about and never remove. For
3582 # instance it was reported that on HP-UX the gcc test will end up
3583 # making a dummy file named `D' -- because `-MD' means `put the output
3586 # Copy depcomp to subdir because otherwise we won't find it if we're
3587 # using a relative directory.
3588 cp "$am_depcomp" conftest.dir
3590 # We will build objects and dependencies in a subdirectory because
3591 # it helps to detect inapplicable dependency modes. For instance
3592 # both Tru64's cc and ICC support -MD to output dependencies as a
3593 # side effect of compilation, but ICC will put the dependencies in
3594 # the current directory while Tru64 will put them in the object
3598 am_cv_CC_dependencies_compiler_type=none
3599 if test "$am_compiler_list" = ""; then
3600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602 for depmode in $am_compiler_list; do
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614 # Solaris 8's {/usr,}/bin/sh.
3615 touch sub/conftst$i.h
3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3621 # after this tag, mechanisms are not by side-effect, so they'll
3622 # only be used when explicitly requested
3623 if test "x$enable_dependency_tracking" = xyes; then
3631 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3632 # mode. It turns out that the SunPro C++ compiler does not properly
3633 # handle `-M -o', and we need to detect this.
3634 if depmode=$depmode \
3635 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3637 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3638 >/dev/null 2>conftest.err &&
3639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type=$depmode
3661 am_cv_CC_dependencies_compiler_type=none
3665 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3670 test "x$enable_dependency_tracking" != xno \
3671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3673 am__fastdepCC_FALSE='#'
3675 am__fastdepCC_TRUE='#'
3676 am__fastdepCC_FALSE=
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685 if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696 if test "${ac_cv_prog_CXX+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 if test -n "$CXX"; then
3721 { echo "$as_me:$LINENO: result: $CXX" >&5
3722 echo "${ECHO_T}$CXX" >&6; }
3724 { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3729 test -n "$CXX" && break
3732 if test -z "$CXX"; then
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3740 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764 if test -n "$ac_ct_CXX"; then
3765 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3766 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3768 { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3773 test -n "$ac_ct_CXX" && break
3776 if test "x$ac_ct_CXX" = x; then
3779 case $cross_compiling:$ac_tool_warned in
3781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3782 whose name does not start with the host triplet. If you think this
3783 configuration is useful to you, please write to autoconf@gnu.org." >&5
3784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3785 whose name does not start with the host triplet. If you think this
3786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3787 ac_tool_warned=yes ;;
3795 # Provide some information about the compiler.
3796 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3797 ac_compiler=`set X $ac_compile; echo $2`
3798 { (ac_try="$ac_compiler --version >&5"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compiler --version >&5") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3808 { (ac_try="$ac_compiler -v >&5"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compiler -v >&5") 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }
3818 { (ac_try="$ac_compiler -V >&5"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compiler -V >&5") 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3829 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3830 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3831 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_cxx_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3881 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3883 GXX=`test $ac_compiler_gnu = yes && echo yes`
3884 ac_test_CXXFLAGS=${CXXFLAGS+set}
3885 ac_save_CXXFLAGS=$CXXFLAGS
3886 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3887 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_cxx_g+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3892 ac_cxx_werror_flag=yes
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3910 rm -f conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_compile") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_cxx_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest.$ac_objext; then
3927 ac_cv_prog_cxx_g=yes
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_cxx_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3972 cat >conftest.$ac_ext <<_ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3987 rm -f conftest.$ac_objext
3988 if { (ac_try="$ac_compile"
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compile") 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && {
4001 test -z "$ac_cxx_werror_flag" ||
4002 test ! -s conftest.err
4003 } && test -s conftest.$ac_objext; then
4004 ac_cv_prog_cxx_g=yes
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4022 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4023 if test "$ac_test_CXXFLAGS" = set; then
4024 CXXFLAGS=$ac_save_CXXFLAGS
4025 elif test $ac_cv_prog_cxx_g = yes; then
4026 if test "$GXX" = yes; then
4032 if test "$GXX" = yes; then
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 depcc="$CXX" am_compiler_list=
4046 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4047 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4048 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052 # We make a subdir and do the tests there. Otherwise we can end up
4053 # making bogus files that we don't know about and never remove. For
4054 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named `D' -- because `-MD' means `put the output
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4070 am_cv_CXX_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4086 # Solaris 8's {/usr,}/bin/sh.
4087 touch sub/conftst$i.h
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093 # after this tag, mechanisms are not by side-effect, so they'll
4094 # only be used when explicitly requested
4095 if test "x$enable_dependency_tracking" = xyes; then
4103 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4104 # mode. It turns out that the SunPro C++ compiler does not properly
4105 # handle `-M -o', and we need to detect this.
4106 if depmode=$depmode \
4107 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4109 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4110 >/dev/null 2>conftest.err &&
4111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4113 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4115 # icc doesn't choke on unknown options, it will just issue warnings
4116 # or remarks (even with -Werror). So we grep stderr for any message
4117 # that says an option was ignored or not supported.
4118 # When given -MP, icc 7.0 and 7.1 complain thusly:
4119 # icc: Command line warning: ignoring option '-M'; no argument required
4120 # The diagnosis changed in icc 8.0:
4121 # icc: Command line remark: option '-MP' not supported
4122 if (grep 'ignoring option' conftest.err ||
4123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4124 am_cv_CXX_dependencies_compiler_type=$depmode
4133 am_cv_CXX_dependencies_compiler_type=none
4137 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4138 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4139 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4142 test "x$enable_dependency_tracking" != xno \
4143 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCXX_TRUE=
4145 am__fastdepCXX_FALSE='#'
4147 am__fastdepCXX_TRUE='#'
4148 am__fastdepCXX_FALSE=
4152 # Check whether --enable-shared was given.
4153 if test "${enable_shared+set}" = set; then
4154 enableval=$enable_shared; p=${PACKAGE-default}
4156 yes) enable_shared=yes ;;
4157 no) enable_shared=no ;;
4160 # Look at the argument we got. We use all the common list separators.
4161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162 for pkg in $enableval; do
4164 if test "X$pkg" = "X$p"; then
4176 # Check whether --enable-static was given.
4177 if test "${enable_static+set}" = set; then
4178 enableval=$enable_static; p=${PACKAGE-default}
4180 yes) enable_static=yes ;;
4181 no) enable_static=no ;;
4184 # Look at the argument we got. We use all the common list separators.
4185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4186 for pkg in $enableval; do
4188 if test "X$pkg" = "X$p"; then
4200 # Check whether --enable-fast-install was given.
4201 if test "${enable_fast_install+set}" = set; then
4202 enableval=$enable_fast_install; p=${PACKAGE-default}
4204 yes) enable_fast_install=yes ;;
4205 no) enable_fast_install=no ;;
4207 enable_fast_install=no
4208 # Look at the argument we got. We use all the common list separators.
4209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4210 for pkg in $enableval; do
4212 if test "X$pkg" = "X$p"; then
4213 enable_fast_install=yes
4220 enable_fast_install=yes
4224 # Make sure we can run config.sub.
4225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4226 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4227 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4228 { (exit 1); exit 1; }; }
4230 { echo "$as_me:$LINENO: checking build system type" >&5
4231 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4232 if test "${ac_cv_build+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 ac_build_alias=$build_alias
4236 test "x$ac_build_alias" = x &&
4237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4238 test "x$ac_build_alias" = x &&
4239 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4241 { (exit 1); exit 1; }; }
4242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4245 { (exit 1); exit 1; }; }
4248 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4249 echo "${ECHO_T}$ac_cv_build" >&6; }
4250 case $ac_cv_build in
4252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4253 echo "$as_me: error: invalid value of canonical build" >&2;}
4254 { (exit 1); exit 1; }; };;
4257 ac_save_IFS=$IFS; IFS='-'
4263 # Remember, the first character of IFS is used to create $*,
4264 # except with old shells:
4267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4270 { echo "$as_me:$LINENO: checking host system type" >&5
4271 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4272 if test "${ac_cv_host+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 if test "x$host_alias" = x; then
4276 ac_cv_host=$ac_cv_build
4278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4279 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4280 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4281 { (exit 1); exit 1; }; }
4285 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4286 echo "${ECHO_T}$ac_cv_host" >&6; }
4289 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4290 echo "$as_me: error: invalid value of canonical host" >&2;}
4291 { (exit 1); exit 1; }; };;
4294 ac_save_IFS=$IFS; IFS='-'
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4307 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4308 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4309 if test "${lt_cv_path_SED+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 # Loop through the user's path and test for sed and gsed.
4313 # Then use that list of sed's as ones to test for truncation.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for lt_ac_prog in sed gsed; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4322 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4330 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4331 # along with /bin/sed that truncates output.
4332 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4333 test ! -f $lt_ac_sed && continue
4334 cat /dev/null > conftest.in
4336 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4337 # Check for GNU sed and select it if it is found.
4338 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4339 lt_cv_path_SED=$lt_ac_sed
4343 cat conftest.in conftest.in >conftest.tmp
4344 mv conftest.tmp conftest.in
4345 cp conftest.in conftest.nl
4347 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4348 cmp -s conftest.out conftest.nl || break
4349 # 10000 chars as input seems more than enough
4350 test $lt_ac_count -gt 10 && break
4351 lt_ac_count=`expr $lt_ac_count + 1`
4352 if test $lt_ac_count -gt $lt_ac_max; then
4353 lt_ac_max=$lt_ac_count
4354 lt_cv_path_SED=$lt_ac_sed
4363 { echo "$as_me:$LINENO: result: $SED" >&5
4364 echo "${ECHO_T}$SED" >&6; }
4366 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4367 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4368 if test "${ac_cv_path_GREP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 # Extract the first word of "grep ggrep" to use in msg output
4372 if test -z "$GREP"; then
4373 set dummy grep ggrep; ac_prog_name=$2
4374 if test "${ac_cv_path_GREP+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_path_GREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in grep ggrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4388 # Check for GNU ac_path_GREP and select it if it is found.
4389 # Check for GNU $ac_path_GREP
4390 case `"$ac_path_GREP" --version 2>&1` in
4392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 echo 'GREP' >> "conftest.nl"
4402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 ac_count=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_GREP="$ac_path_GREP"
4408 ac_path_GREP_max=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417 $ac_path_GREP_found && break 3
4427 GREP="$ac_cv_path_GREP"
4428 if test -z "$GREP"; then
4429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4430 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4431 { (exit 1); exit 1; }; }
4435 ac_cv_path_GREP=$GREP
4440 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4441 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4442 GREP="$ac_cv_path_GREP"
4445 { echo "$as_me:$LINENO: checking for egrep" >&5
4446 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_EGREP+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4451 then ac_cv_path_EGREP="$GREP -E"
4453 # Extract the first word of "egrep" to use in msg output
4454 if test -z "$EGREP"; then
4455 set dummy egrep; ac_prog_name=$2
4456 if test "${ac_cv_path_EGREP+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_path_EGREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in egrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4469 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4470 # Check for GNU ac_path_EGREP and select it if it is found.
4471 # Check for GNU $ac_path_EGREP
4472 case `"$ac_path_EGREP" --version 2>&1` in
4474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4477 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 echo 'EGREP' >> "conftest.nl"
4484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 ac_count=`expr $ac_count + 1`
4487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_EGREP="$ac_path_EGREP"
4490 ac_path_EGREP_max=$ac_count
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 $ac_path_EGREP_found && break 3
4509 EGREP="$ac_cv_path_EGREP"
4510 if test -z "$EGREP"; then
4511 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4512 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4513 { (exit 1); exit 1; }; }
4517 ac_cv_path_EGREP=$EGREP
4523 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4524 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4525 EGREP="$ac_cv_path_EGREP"
4529 # Check whether --with-gnu-ld was given.
4530 if test "${with_gnu_ld+set}" = set; then
4531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4537 if test "$GCC" = yes; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4540 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4543 # gcc leaves a trailing carriage return which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4549 # Accept absolute paths.
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4554 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4557 test -z "$LD" && LD="$ac_prog"
4560 # If it fails, then pretend we aren't using GCC.
4564 # If it is relative, then search for the first ld in PATH.
4568 elif test "$with_gnu_ld" = yes; then
4569 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4570 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4572 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4573 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4575 if test "${lt_cv_path_LD+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -z "$LD"; then
4579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD="$ac_dir/$ac_prog"
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test "$with_gnu_ld" != no && break
4593 test "$with_gnu_ld" != yes && break
4600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4605 if test -n "$LD"; then
4606 { echo "$as_me:$LINENO: result: $LD" >&5
4607 echo "${ECHO_T}$LD" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4612 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4613 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4614 { (exit 1); exit 1; }; }
4615 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4616 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4617 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4621 case `$LD -v 2>&1 </dev/null` in
4622 *GNU* | *'with BFD'*)
4623 lt_cv_prog_gnu_ld=yes
4626 lt_cv_prog_gnu_ld=no
4630 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4631 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4632 with_gnu_ld=$lt_cv_prog_gnu_ld
4635 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4636 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4637 if test "${lt_cv_ld_reload_flag+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 lt_cv_ld_reload_flag='-r'
4642 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4643 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4644 reload_flag=$lt_cv_ld_reload_flag
4645 case $reload_flag in
4647 *) reload_flag=" $reload_flag" ;;
4649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4652 if test "$GCC" = yes; then
4653 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4655 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4660 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4661 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4662 if test "${lt_cv_path_NM+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$NM"; then
4666 # Let the user override the test.
4669 lt_nm_to_check="${ac_tool_prefix}nm"
4670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4671 lt_nm_to_check="$lt_nm_to_check nm"
4673 for lt_tmp_nm in $lt_nm_to_check; do
4674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4677 test -z "$ac_dir" && ac_dir=.
4678 tmp_nm="$ac_dir/$lt_tmp_nm"
4679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4680 # Check to see if the nm accepts a BSD-compat flag.
4681 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4682 # nm: unknown option "B" ignored
4683 # Tru64's nm complains that /dev/null is an invalid object file
4684 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4685 */dev/null* | *'Invalid file or object type'*)
4686 lt_cv_path_NM="$tmp_nm -B"
4690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4692 lt_cv_path_NM="$tmp_nm -p"
4696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4697 continue # so that we can try to find one that supports BSD flags
4706 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4709 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4710 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4716 if test "$LN_S" = "ln -s"; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6; }
4720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4721 echo "${ECHO_T}no, using $LN_S" >&6; }
4724 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4725 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4726 if test "${lt_cv_deplibs_check_method+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 lt_cv_file_magic_cmd='$MAGIC_CMD'
4730 lt_cv_file_magic_test_file=
4731 lt_cv_deplibs_check_method='unknown'
4732 # Need to set the preceding variable on all platforms that support
4733 # interlibrary dependencies.
4734 # 'none' -- dependencies not supported.
4735 # `unknown' -- same as none, but documents that we really don't know.
4736 # 'pass_all' -- all dependencies passed with no checks.
4737 # 'test_compile' -- check by making test program.
4738 # 'file_magic [[regex]]' -- check by looking for files in library path
4739 # which responds to the $file_magic_cmd with a given extended regex.
4740 # If you have `file' or equivalent on your system and you're not sure
4741 # whether `pass_all' will *always* work, you probably want this one.
4745 lt_cv_deplibs_check_method=pass_all
4749 lt_cv_deplibs_check_method=pass_all
4753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4754 lt_cv_file_magic_cmd='/usr/bin/file -L'
4755 lt_cv_file_magic_test_file=/shlib/libc.so
4759 # func_win32_libid is a shell function defined in ltmain.sh
4760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4761 lt_cv_file_magic_cmd='func_win32_libid'
4765 # Base MSYS/MinGW do not provide the 'file' command needed by
4766 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4767 # unless we find 'file', for example because we are cross-compiling.
4768 if ( file / ) >/dev/null 2>&1; then
4769 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4770 lt_cv_file_magic_cmd='func_win32_libid'
4772 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4773 lt_cv_file_magic_cmd='$OBJDUMP -f'
4777 darwin* | rhapsody*)
4778 lt_cv_deplibs_check_method=pass_all
4781 freebsd* | dragonfly*)
4782 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4785 # Not sure whether the presence of OpenBSD here was a mistake.
4786 # Let's accept both of them until this is cleared up.
4787 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4788 lt_cv_file_magic_cmd=/usr/bin/file
4789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4793 lt_cv_deplibs_check_method=pass_all
4798 lt_cv_deplibs_check_method=pass_all
4801 hpux10.20* | hpux11*)
4802 lt_cv_file_magic_cmd=/usr/bin/file
4805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4806 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4809 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]'
4810 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4820 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4824 irix5* | irix6* | nonstopux*)
4826 *-32|*"-32 ") libmagic=32-bit;;
4827 *-n32|*"-n32 ") libmagic=N32;;
4828 *-64|*"-64 ") libmagic=64-bit;;
4829 *) libmagic=never-match;;
4831 lt_cv_deplibs_check_method=pass_all
4834 # This must be Linux ELF.
4835 linux* | k*bsd*-gnu)
4836 lt_cv_deplibs_check_method=pass_all
4839 netbsd* | netbsdelf*-gnu)
4840 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4849 lt_cv_file_magic_cmd=/usr/bin/file
4850 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4854 lt_cv_deplibs_check_method=unknown
4858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4865 osf3* | osf4* | osf5*)
4866 lt_cv_deplibs_check_method=pass_all
4870 lt_cv_deplibs_check_method=pass_all
4874 lt_cv_deplibs_check_method=pass_all
4878 case $host_vendor in
4880 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]'
4881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4884 lt_cv_deplibs_check_method=pass_all
4887 lt_cv_file_magic_cmd='/bin/file'
4888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4891 lt_cv_file_magic_cmd='/bin/file'
4892 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4893 lt_cv_file_magic_test_file=/lib/libc.so
4896 lt_cv_deplibs_check_method=pass_all
4899 lt_cv_deplibs_check_method=pass_all
4904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4905 lt_cv_deplibs_check_method=pass_all
4910 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4911 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4912 file_magic_cmd=$lt_cv_file_magic_cmd
4913 deplibs_check_method=$lt_cv_deplibs_check_method
4914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4919 # If no C compiler was specified, use CC.
4922 # If no C compiler flags were specified, use CFLAGS.
4923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4925 # Allow CC to be a program name with arguments.
4929 # Check whether --enable-libtool-lock was given.
4930 if test "${enable_libtool_lock+set}" = set; then
4931 enableval=$enable_libtool_lock;
4934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4936 # Some flags need to be propagated to the compiler or linker for good
4940 # Find out which ABI we are using.
4941 echo 'int i;' > conftest.$ac_ext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; then
4947 case `/usr/bin/file conftest.$ac_objext` in
4959 # Find out which ABI we are using.
4960 echo '#line 4960 "configure"' > conftest.$ac_ext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; then
4966 if test "$lt_cv_prog_gnu_ld" = yes; then
4967 case `/usr/bin/file conftest.$ac_objext` in
4969 LD="${LD-ld} -melf32bsmip"
4972 LD="${LD-ld} -melf32bmipn32"
4975 LD="${LD-ld} -melf64bmip"
4979 case `/usr/bin/file conftest.$ac_objext` in
4995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4996 s390*-*linux*|sparc*-*linux*)
4997 # Find out which ABI we are using.
4998 echo 'int i;' > conftest.$ac_ext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; then
5004 case `/usr/bin/file conftest.o` in
5007 x86_64-*kfreebsd*-gnu)
5008 LD="${LD-ld} -m elf_i386_fbsd"
5011 LD="${LD-ld} -m elf_i386"
5013 ppc64-*linux*|powerpc64-*linux*)
5014 LD="${LD-ld} -m elf32ppclinux"
5017 LD="${LD-ld} -m elf_s390"
5020 LD="${LD-ld} -m elf32_sparc"
5026 x86_64-*kfreebsd*-gnu)
5027 LD="${LD-ld} -m elf_x86_64_fbsd"
5030 LD="${LD-ld} -m elf_x86_64"
5032 ppc*-*linux*|powerpc*-*linux*)
5033 LD="${LD-ld} -m elf64ppc"
5036 LD="${LD-ld} -m elf64_s390"
5039 LD="${LD-ld} -m elf64_sparc"
5049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5050 SAVE_CFLAGS="$CFLAGS"
5051 CFLAGS="$CFLAGS -belf"
5052 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5053 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5054 if test "${lt_cv_cc_needs_belf+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (ac_try="$ac_link"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_link") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest$ac_exeext &&
5095 $as_test_x conftest$ac_exeext; then
5096 lt_cv_cc_needs_belf=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 lt_cv_cc_needs_belf=no
5104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5105 conftest$ac_exeext conftest.$ac_ext
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5114 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5117 CFLAGS="$SAVE_CFLAGS"
5121 # Find out which ABI we are using.
5122 echo 'int i;' > conftest.$ac_ext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; then
5128 case `/usr/bin/file conftest.o` in
5130 case $lt_cv_prog_gnu_ld in
5131 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5147 need_locks="$enable_libtool_lock"
5151 ac_cpp='$CPP $CPPFLAGS'
5152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5156 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5157 # On Suns, sometimes $CPP names a directory.
5158 if test -n "$CPP" && test -d "$CPP"; then
5161 if test -z "$CPP"; then
5162 if test "${ac_cv_prog_CPP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 # Double quotes because CPP needs to be expanded
5166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5169 for ac_c_preproc_warn_flag in '' yes
5171 # Use a header file that comes with gcc, so configuring glibc
5172 # with a fresh cross-compiler works.
5173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5174 # <limits.h> exists even on freestanding compilers.
5175 # On the NeXT, cc -E runs the code through the compiler's parser,
5176 # not just through cpp. "Syntax error" is here to catch this case.
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5184 # include <limits.h>
5186 # include <assert.h>
5190 if { (ac_try="$ac_cpp conftest.$ac_ext"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } >/dev/null && {
5203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Broken: fails on valid input.
5215 rm -f conftest.err conftest.$ac_ext
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 #include <ac_nonexistent.h>
5227 if { (ac_try="$ac_cpp conftest.$ac_ext"
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5235 grep -v '^ *+' conftest.er1 >conftest.err
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } >/dev/null && {
5240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5243 # Broken: success on invalid input.
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Passes both tests.
5254 rm -f conftest.err conftest.$ac_ext
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then
5271 { echo "$as_me:$LINENO: result: $CPP" >&5
5272 echo "${ECHO_T}$CPP" >&6; }
5274 for ac_c_preproc_warn_flag in '' yes
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5289 # include <limits.h>
5291 # include <assert.h>
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null && {
5308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 # Broken: fails on valid input.
5320 rm -f conftest.err conftest.$ac_ext
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat >conftest.$ac_ext <<_ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 #include <ac_nonexistent.h>
5332 if { (ac_try="$ac_cpp conftest.$ac_ext"
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null && {
5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5348 # Broken: success on invalid input.
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 # Passes both tests.
5359 rm -f conftest.err conftest.$ac_ext
5362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5363 rm -f conftest.err conftest.$ac_ext
5364 if $ac_preproc_ok; then
5367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5368 See \`config.log' for more details." >&5
5369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5370 See \`config.log' for more details." >&2;}
5371 { (exit 1); exit 1; }; }
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5383 if test "${ac_cv_header_stdc+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_header_stdc=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_cv_header_stdc=no
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 if test $ac_cv_header_stdc = yes; then
5433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "memchr" >/dev/null 2>&1; then
5447 ac_cv_header_stdc=no
5453 if test $ac_cv_header_stdc = yes; then
5454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5465 $EGREP "free" >/dev/null 2>&1; then
5468 ac_cv_header_stdc=no
5474 if test $ac_cv_header_stdc = yes; then
5475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5476 if test "$cross_compiling" = yes; then
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5487 #if ((' ' & 0x0FF) == 0x020)
5488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5491 # define ISLOWER(c) \
5492 (('a' <= (c) && (c) <= 'i') \
5493 || ('j' <= (c) && (c) <= 'r') \
5494 || ('s' <= (c) && (c) <= 'z'))
5495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5503 for (i = 0; i < 256; i++)
5504 if (XOR (islower (i), ISLOWER (i))
5505 || toupper (i) != TOUPPER (i))
5510 rm -f conftest$ac_exeext
5511 if { (ac_try="$ac_link"
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_link") 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5521 { (case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_try") 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5532 echo "$as_me: program exited with status $ac_status" >&5
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_cv_header_stdc=no
5539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5545 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5546 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5547 if test $ac_cv_header_stdc = yes; then
5549 cat >>confdefs.h <<\_ACEOF
5550 #define STDC_HEADERS 1
5555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5566 inttypes.h stdint.h unistd.h
5568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5582 #include <$ac_header>
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 eval "$as_ac_Header=yes"
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 eval "$as_ac_Header=no"
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 ac_res=`eval echo '${'$as_ac_Header'}'`
5612 { echo "$as_me:$LINENO: result: $ac_res" >&5
5613 echo "${ECHO_T}$ac_res" >&6; }
5614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615 cat >>confdefs.h <<_ACEOF
5616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5625 for ac_header in dlfcn.h
5627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_res=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5638 # Is the header compilable?
5639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5648 #include <$ac_header>
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_header_compiler=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 ac_header_compiler=no
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5677 echo "${ECHO_T}$ac_header_compiler" >&6; }
5679 # Is the header present?
5680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <$ac_header>
5690 if { (ac_try="$ac_cpp conftest.$ac_ext"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev/null && {
5703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5706 ac_header_preproc=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 ac_header_preproc=no
5714 rm -f conftest.err conftest.$ac_ext
5715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5716 echo "${ECHO_T}$ac_header_preproc" >&6; }
5718 # So? What about this header?
5719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5725 ac_header_preproc=yes
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5741 ## -------------------------------------------- ##
5742 ## Report this to sebastian.marsching@suphp.org ##
5743 ## -------------------------------------------- ##
5745 ) | sed "s/^/$as_me: WARNING: /" >&2
5748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 eval "$as_ac_Header=\$ac_header_preproc"
5755 ac_res=`eval echo '${'$as_ac_Header'}'`
5756 { echo "$as_me:$LINENO: result: $ac_res" >&5
5757 echo "${ECHO_T}$ac_res" >&6; }
5760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5771 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5772 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5773 (test "X$CXX" != "Xg++"))) ; then
5775 ac_cpp='$CXXCPP $CPPFLAGS'
5776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5779 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5780 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5781 if test -z "$CXXCPP"; then
5782 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 # Double quotes because CXXCPP needs to be expanded
5786 for CXXCPP in "$CXX -E" "/lib/cpp"
5789 for ac_cxx_preproc_warn_flag in '' yes
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5804 # include <limits.h>
5806 # include <assert.h>
5810 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 # Broken: fails on valid input.
5835 rm -f conftest.err conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5847 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null && {
5860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861 test ! -s conftest.err
5863 # Broken: success on invalid input.
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 # Passes both tests.
5874 rm -f conftest.err conftest.$ac_ext
5877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878 rm -f conftest.err conftest.$ac_ext
5879 if $ac_preproc_ok; then
5884 ac_cv_prog_CXXCPP=$CXXCPP
5887 CXXCPP=$ac_cv_prog_CXXCPP
5889 ac_cv_prog_CXXCPP=$CXXCPP
5891 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5892 echo "${ECHO_T}$CXXCPP" >&6; }
5894 for ac_cxx_preproc_warn_flag in '' yes
5896 # Use a header file that comes with gcc, so configuring glibc
5897 # with a fresh cross-compiler works.
5898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 # <limits.h> exists even on freestanding compilers.
5900 # On the NeXT, cc -E runs the code through the compiler's parser,
5901 # not just through cpp. "Syntax error" is here to catch this case.
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 # include <limits.h>
5911 # include <assert.h>
5915 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } >/dev/null && {
5928 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5929 test ! -s conftest.err
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 # Broken: fails on valid input.
5940 rm -f conftest.err conftest.$ac_ext
5942 # OK, works on sane cases. Now check whether nonexistent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ac_nonexistent.h>
5952 if { (ac_try="$ac_cpp conftest.$ac_ext"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } >/dev/null && {
5965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5966 test ! -s conftest.err
5968 # Broken: success on invalid input.
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 # Passes both tests.
5979 rm -f conftest.err conftest.$ac_ext
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.$ac_ext
5984 if $ac_preproc_ok; then
5987 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5988 See \`config.log' for more details." >&5
5989 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5990 See \`config.log' for more details." >&2;}
5991 { (exit 1); exit 1; }; }
5995 ac_cpp='$CXXCPP $CPPFLAGS'
5996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6004 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6005 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6007 if test -n "$ac_tool_prefix"; then
6008 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
6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_F77+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$F77"; then
6018 ac_cv_prog_F77="$F77" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 if test -n "$F77"; then
6039 { echo "$as_me:$LINENO: result: $F77" >&5
6040 echo "${ECHO_T}$F77" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6047 test -n "$F77" && break
6050 if test -z "$F77"; then
6052 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
6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
6055 set dummy $ac_prog; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if test -n "$ac_ct_F77"; then
6062 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_F77="$ac_prog"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6082 if test -n "$ac_ct_F77"; then
6083 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6084 echo "${ECHO_T}$ac_ct_F77" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6091 test -n "$ac_ct_F77" && break
6094 if test "x$ac_ct_F77" = x; then
6097 case $cross_compiling:$ac_tool_warned in
6099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6100 whose name does not start with the host triplet. If you think this
6101 configuration is useful to you, please write to autoconf@gnu.org." >&5
6102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6103 whose name does not start with the host triplet. If you think this
6104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6105 ac_tool_warned=yes ;;
6112 # Provide some information about the compiler.
6113 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6114 ac_compiler=`set X $ac_compile; echo $2`
6115 { (ac_try="$ac_compiler --version >&5"
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compiler --version >&5") 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }
6125 { (ac_try="$ac_compiler -v >&5"
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compiler -v >&5") 2>&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }
6135 { (ac_try="$ac_compiler -V >&5"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compiler -V >&5") 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }
6147 # If we don't use `.F' as extension, the preprocessor is not run on the
6148 # input file. (Note that this only needs to work for GNU compilers.)
6151 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6152 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6153 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 cat >conftest.$ac_ext <<_ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_f77_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6193 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6194 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6196 ac_test_FFLAGS=${FFLAGS+set}
6197 ac_save_FFLAGS=$FFLAGS
6199 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6200 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_f77_g+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_f77_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_cv_prog_f77_g=yes
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6239 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6240 if test "$ac_test_FFLAGS" = set; then
6241 FFLAGS=$ac_save_FFLAGS
6242 elif test $ac_cv_prog_f77_g = yes; then
6243 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6249 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6256 G77=`test $ac_compiler_gnu = yes && echo yes`
6258 ac_cpp='$CPP $CPPFLAGS'
6259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6266 # find the maximum length of command line arguments
6267 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6268 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6269 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len=-1;
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len=8192;
6303 # On AmigaOS with pdksh, this test takes hours, literally.
6304 # So we just punt and use a minimum line length of 8192.
6305 lt_cv_sys_max_cmd_len=8192;
6308 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6309 # This has been around since 386BSD, at least. Likely further.
6310 if test -x /sbin/sysctl; then
6311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6312 elif test -x /usr/sbin/sysctl; then
6313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6317 # And add a safety zone
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6324 lt_cv_sys_max_cmd_len=196608
6328 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6329 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6330 # nice to cause kernel panics so lets avoid the loop below.
6331 # First set a reasonable default.
6332 lt_cv_sys_max_cmd_len=16384
6334 if test -x /sbin/sysconfig; then
6335 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6336 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6341 lt_cv_sys_max_cmd_len=102400
6343 sysv5* | sco5v6* | sysv4.2uw2*)
6344 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6345 if test -n "$kargmax"; then
6346 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6348 lt_cv_sys_max_cmd_len=32768
6352 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6353 if test -n "$lt_cv_sys_max_cmd_len"; then
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6358 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6359 = "XX$teststring") >/dev/null 2>&1 &&
6360 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6361 lt_cv_sys_max_cmd_len=$new_result &&
6362 test $i != 17 # 1/2 MB should be enough
6365 teststring=$teststring$teststring
6368 # Add a significant safety factor because C++ compilers can tack on massive
6369 # amounts of additional arguments before passing them to the linker.
6370 # It appears as though 1/2 is a usable value.
6371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6378 if test -n $lt_cv_sys_max_cmd_len ; then
6379 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6380 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6382 { echo "$as_me:$LINENO: result: none" >&5
6383 echo "${ECHO_T}none" >&6; }
6390 # Check for command to grab the raw symbol name followed by C symbol from nm.
6391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 # These are sane defaults that work on at least a few old systems.
6398 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6400 # Character class describing NM global symbol codes.
6401 symcode='[BCDEGRST]'
6403 # Regexp to match symbols that can be accessed directly from C.
6404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6406 # Transform an extracted symbol line into a proper C declaration
6407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6409 # Transform an extracted symbol line into symbol name and symbol address
6410 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'"
6412 # Define system-specific variables.
6417 cygwin* | mingw* | pw32*)
6418 symcode='[ABCDGISTW]'
6420 hpux*) # Its linker distinguishes data from code symbols
6421 if test "$host_cpu" = ia64; then
6422 symcode='[ABCDEGRST]'
6424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425 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'"
6427 linux* | k*bsd*-gnu)
6428 if test "$host_cpu" = ia64; then
6429 symcode='[ABCDGIRSTW]'
6430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6431 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'"
6435 symcode='[BCDEGRST]'
6438 symcode='[BCDEGQRST]'
6449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6457 # Handle CRLF in mingw tool chain
6461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 # If we're using GNU nm, then use its standard symbol codes.
6466 case `$NM -V 2>&1` in
6467 *GNU* | *'with BFD'*)
6468 symcode='[ABCDGIRSTW]' ;;
6471 # Try without a prefix undercore, then with it.
6472 for ac_symprfx in "" "_"; do
6474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475 symxfrm="\\1 $ac_symprfx\\2 \\2"
6477 # Write the raw and C identifiers.
6478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6480 # Check to see that the pipe works correctly.
6484 cat > conftest.$ac_ext <<EOF
6489 void nm_test_func(){}
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; then
6501 # Now try to grab the symbols.
6503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" | uniq > "$nlist"T; then
6510 mv -f "$nlist"T "$nlist"
6515 # Make sure that we snagged all the symbols we need.
6516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6518 cat <<EOF > conftest.$ac_ext
6524 # Now generate the symbol file.
6525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6527 cat <<EOF >> conftest.$ac_ext
6528 #if defined (__STDC__) && __STDC__
6529 # define lt_ptr_t void *
6531 # define lt_ptr_t char *
6535 /* The mapping between symbol names and symbols. */
6540 lt_preloaded_symbols[] =
6543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6544 cat <<\EOF >> conftest.$ac_ext
6552 # Now try linking the two files.
6553 mv conftest.$ac_objext conftstm.$ac_objext
6554 lt_save_LIBS="$LIBS"
6555 lt_save_CFLAGS="$CFLAGS"
6556 LIBS="conftstm.$ac_objext"
6557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6565 LIBS="$lt_save_LIBS"
6566 CFLAGS="$lt_save_CFLAGS"
6568 echo "cannot find nm_test_func in $nlist" >&5
6571 echo "cannot find nm_test_var in $nlist" >&5
6574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6577 echo "$progname: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 rm -rf conftest* conftst*
6582 # Do not use the global_symbol_pipe unless it works.
6583 if test "$pipe_works" = yes; then
6586 lt_cv_sys_global_symbol_pipe=
6592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6593 lt_cv_sys_global_symbol_to_cdecl=
6595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6596 { echo "$as_me:$LINENO: result: failed" >&5
6597 echo "${ECHO_T}failed" >&6; }
6599 { echo "$as_me:$LINENO: result: ok" >&5
6600 echo "${ECHO_T}ok" >&6; }
6603 { echo "$as_me:$LINENO: checking for objdir" >&5
6604 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6605 if test "${lt_cv_objdir+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 rm -f .libs 2>/dev/null
6609 mkdir .libs 2>/dev/null
6610 if test -d .libs; then
6613 # MS-DOS does not allow filenames that begin with a dot.
6616 rmdir .libs 2>/dev/null
6618 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6619 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6620 objdir=$lt_cv_objdir
6628 # AIX sometimes has problems with the GCC collect2 program. For some
6629 # reason, if we set the COLLECT_NAMES environment variable, the problems
6630 # vanish in a puff of smoke.
6631 if test "X${COLLECT_NAMES+set}" != Xset; then
6633 export COLLECT_NAMES
6638 # Sed substitution that helps us do robust quoting. It backslashifies
6639 # metacharacters that are still active within double-quoted strings.
6640 Xsed='sed -e 1s/^X//'
6641 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6643 # Same as above, but do not quote variable references.
6644 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6646 # Sed substitution to delay expansion of an escaped shell variable in a
6647 # double_quote_subst'ed string.
6648 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6650 # Sed substitution to avoid accidental globbing in evaled expressions
6651 no_glob_subst='s/\*/\\\*/g'
6657 default_ofile=libtool
6658 can_build_shared=yes
6660 # All known linkers require a `.a' archive for static linking (except MSVC,
6661 # which needs '.lib').
6663 ltmain="$ac_aux_dir/ltmain.sh"
6664 ofile="$default_ofile"
6665 with_gnu_ld="$lt_cv_prog_gnu_ld"
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}ar; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_AR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$AR"; then
6676 ac_cv_prog_AR="$AR" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_AR="${ac_tool_prefix}ar"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 if test -n "$AR"; then
6697 { echo "$as_me:$LINENO: result: $AR" >&5
6698 echo "${ECHO_T}$AR" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_AR"; then
6708 # Extract the first word of "ar", so it can be a program name with args.
6709 set dummy ar; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_AR="ar"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6736 if test -n "$ac_ct_AR"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6738 echo "${ECHO_T}$ac_ct_AR" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744 if test "x$ac_ct_AR" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_prog_RANLIB+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 if test -n "$RANLIB"; then
6772 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 RANLIB=$ac_cv_prog_RANLIB
6792 if test -n "$RANLIB"; then
6793 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6794 echo "${ECHO_T}$RANLIB" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6802 if test -z "$ac_cv_prog_RANLIB"; then
6803 ac_ct_RANLIB=$RANLIB
6804 # Extract the first word of "ranlib", so it can be a program name with args.
6805 set dummy ranlib; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test -n "$ac_ct_RANLIB"; then
6812 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_ac_ct_RANLIB="ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832 if test -n "$ac_ct_RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6834 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6840 if test "x$ac_ct_RANLIB" = x; then
6843 case $cross_compiling:$ac_tool_warned in
6845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6846 whose name does not start with the host triplet. If you think this
6847 configuration is useful to you, please write to autoconf@gnu.org." >&5
6848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6849 whose name does not start with the host triplet. If you think this
6850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6851 ac_tool_warned=yes ;;
6853 RANLIB=$ac_ct_RANLIB
6856 RANLIB="$ac_cv_prog_RANLIB"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}strip; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_STRIP+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 if test -n "$STRIP"; then
6868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 STRIP=$ac_cv_prog_STRIP
6888 if test -n "$STRIP"; then
6889 { echo "$as_me:$LINENO: result: $STRIP" >&5
6890 echo "${ECHO_T}$STRIP" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_STRIP"; then
6900 # Extract the first word of "strip", so it can be a program name with args.
6901 set dummy strip; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 if test -n "$ac_ct_STRIP"; then
6908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_STRIP="strip"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6928 if test -n "$ac_ct_STRIP"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6930 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_STRIP" = x; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6952 STRIP="$ac_cv_prog_STRIP"
6957 old_CFLAGS="$CFLAGS"
6959 # Set sane defaults for various variables
6960 test -z "$AR" && AR=ar
6961 test -z "$AR_FLAGS" && AR_FLAGS=cru
6962 test -z "$AS" && AS=as
6963 test -z "$CC" && CC=cc
6964 test -z "$LTCC" && LTCC=$CC
6965 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6966 test -z "$DLLTOOL" && DLLTOOL=dlltool
6967 test -z "$LD" && LD=ld
6968 test -z "$LN_S" && LN_S="ln -s"
6969 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6970 test -z "$NM" && NM=nm
6971 test -z "$SED" && SED=sed
6972 test -z "$OBJDUMP" && OBJDUMP=objdump
6973 test -z "$RANLIB" && RANLIB=:
6974 test -z "$STRIP" && STRIP=:
6975 test -z "$ac_objext" && ac_objext=o
6977 # Determine commands to create old-style static archives.
6978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6979 old_postinstall_cmds='chmod 644 $oldlib'
6980 old_postuninstall_cmds=
6982 if test -n "$RANLIB"; then
6985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6994 for cc_temp in $compiler""; do
6996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7005 # Only perform the check for file, if the check method requires it
7006 case $deplibs_check_method in
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7010 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7019 lt_save_MAGIC_CMD="$MAGIC_CMD"
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir in $ac_dummy; do
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7033 $EGREP "$file_magic_regex" > /dev/null; then
7038 *** Warning: the command libtool uses to detect shared libraries,
7039 *** $file_magic_cmd, produces output that libtool cannot recognize.
7040 *** The result is that libtool may fail to recognize shared libraries
7041 *** as such. This will affect the creation of libtool libraries that
7042 *** depend on shared libraries, but programs linked with such libtool
7043 *** libraries will work regardless of this problem. Nevertheless, you
7044 *** may want to report the problem to your system manager and/or to
7045 *** bug-libtool@gnu.org
7055 MAGIC_CMD="$lt_save_MAGIC_CMD"
7060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7061 if test -n "$MAGIC_CMD"; then
7062 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7063 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7065 { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7069 if test -z "$lt_cv_path_MAGIC_CMD"; then
7070 if test -n "$ac_tool_prefix"; then
7071 { echo "$as_me:$LINENO: checking for file" >&5
7072 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7073 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7081 lt_save_MAGIC_CMD="$MAGIC_CMD"
7082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7084 for ac_dir in $ac_dummy; do
7086 test -z "$ac_dir" && ac_dir=.
7087 if test -f $ac_dir/file; then
7088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7089 if test -n "$file_magic_test_file"; then
7090 case $deplibs_check_method in
7092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7095 $EGREP "$file_magic_regex" > /dev/null; then
7100 *** Warning: the command libtool uses to detect shared libraries,
7101 *** $file_magic_cmd, produces output that libtool cannot recognize.
7102 *** The result is that libtool may fail to recognize shared libraries
7103 *** as such. This will affect the creation of libtool libraries that
7104 *** depend on shared libraries, but programs linked with such libtool
7105 *** libraries will work regardless of this problem. Nevertheless, you
7106 *** may want to report the problem to your system manager and/or to
7107 *** bug-libtool@gnu.org
7117 MAGIC_CMD="$lt_save_MAGIC_CMD"
7122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123 if test -n "$MAGIC_CMD"; then
7124 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7125 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7142 rhapsody* | darwin*)
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 if test -n "$DSYMUTIL"; then
7152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7172 if test -n "$DSYMUTIL"; then
7173 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7174 echo "${ECHO_T}$DSYMUTIL" >&6; }
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7182 if test -z "$ac_cv_prog_DSYMUTIL"; then
7183 ac_ct_DSYMUTIL=$DSYMUTIL
7184 # Extract the first word of "dsymutil", so it can be a program name with args.
7185 set dummy dsymutil; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7214 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7220 if test "x$ac_ct_DSYMUTIL" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet. If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&5
7228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7229 whose name does not start with the host triplet. If you think this
7230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7231 ac_tool_warned=yes ;;
7233 DSYMUTIL=$ac_ct_DSYMUTIL
7236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 if test -n "$NMEDIT"; then
7248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 NMEDIT=$ac_cv_prog_NMEDIT
7268 if test -n "$NMEDIT"; then
7269 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7270 echo "${ECHO_T}$NMEDIT" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7278 if test -z "$ac_cv_prog_NMEDIT"; then
7279 ac_ct_NMEDIT=$NMEDIT
7280 # Extract the first word of "nmedit", so it can be a program name with args.
7281 set dummy nmedit; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 if test -n "$ac_ct_NMEDIT"; then
7288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7308 if test -n "$ac_ct_NMEDIT"; then
7309 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7310 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7316 if test "x$ac_ct_NMEDIT" = x; then
7319 case $cross_compiling:$ac_tool_warned in
7321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7322 whose name does not start with the host triplet. If you think this
7323 configuration is useful to you, please write to autoconf@gnu.org." >&5
7324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7325 whose name does not start with the host triplet. If you think this
7326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7327 ac_tool_warned=yes ;;
7329 NMEDIT=$ac_ct_NMEDIT
7332 NMEDIT="$ac_cv_prog_NMEDIT"
7336 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7337 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7338 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 lt_cv_apple_cc_single_mod=no
7342 if test -z "${LT_MULTI_MODULE}"; then
7343 # By default we will add the -single_module flag. You can override
7344 # by either setting the environment variable LT_MULTI_MODULE
7345 # non-empty at configure time, or by adding -multi_module to the
7347 echo "int foo(void){return 1;}" > conftest.c
7348 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7349 -dynamiclib ${wl}-single_module conftest.c
7350 if test -f libconftest.dylib; then
7351 lt_cv_apple_cc_single_mod=yes
7352 rm -rf libconftest.dylib*
7357 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7358 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7359 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7360 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7361 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 lt_cv_ld_exported_symbols_list=no
7365 save_LDFLAGS=$LDFLAGS
7366 echo "_main" > conftest.sym
7367 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7383 rm -f conftest.$ac_objext conftest$ac_exeext
7384 if { (ac_try="$ac_link"
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_link") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest$ac_exeext &&
7400 $as_test_x conftest$ac_exeext; then
7401 lt_cv_ld_exported_symbols_list=yes
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7406 lt_cv_ld_exported_symbols_list=no
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7411 LDFLAGS="$save_LDFLAGS"
7414 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7415 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7417 rhapsody* | darwin1.[0123])
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7422 # if running on 10.5 or later, the deployment target defaults
7423 # to the OS version, if on x86, and 10.4, the deployment
7424 # target defaults to 10.4. Don't you love it?
7425 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7426 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7435 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7436 _lt_dar_single_mod='$single_module'
7438 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7439 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7441 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7443 if test "$DSYMUTIL" != ":"; then
7444 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7455 # Check whether --enable-libtool-lock was given.
7456 if test "${enable_libtool_lock+set}" = set; then
7457 enableval=$enable_libtool_lock;
7460 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7463 # Check whether --with-pic was given.
7464 if test "${with_pic+set}" = set; then
7465 withval=$with_pic; pic_mode="$withval"
7470 test -z "$pic_mode" && pic_mode=default
7472 # Use C for the default configuration in the libtool script
7476 ac_cpp='$CPP $CPPFLAGS'
7477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482 # Source file extension for C test sources.
7485 # Object file extension for compiled C test sources.
7489 # Code to be used in simple compile tests
7490 lt_simple_compile_test_code="int some_variable = 0;"
7492 # Code to be used in simple link tests
7493 lt_simple_link_test_code='int main(){return(0);}'
7496 # If no C compiler was specified, use CC.
7499 # If no C compiler flags were specified, use CFLAGS.
7500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7502 # Allow CC to be a program name with arguments.
7506 # save warnings/boilerplate of simple test code
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_compiler_boilerplate=`cat conftest.err`
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516 _lt_linker_boilerplate=`cat conftest.err`
7521 lt_prog_compiler_no_builtin_flag=
7523 if test "$GCC" = yes; then
7524 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7527 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7528 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7529 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 lt_cv_prog_compiler_rtti_exceptions=no
7533 ac_outfile=conftest.$ac_objext
7534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7535 lt_compiler_flag="-fno-rtti -fno-exceptions"
7536 # Insert the option either (1) after the last *FLAGS variable, or
7537 # (2) before a word containing "conftest.", or (3) at the end.
7538 # Note that $ac_compile itself does not contain backslashes and begins
7539 # with a dollar sign (not a hyphen), so the echo should work correctly.
7540 # The option is referenced via a variable to avoid confusing sed.
7541 lt_compile=`echo "$ac_compile" | $SED \
7542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7544 -e 's:$: $lt_compiler_flag:'`
7545 (eval echo "\"\$as_me:7545: $lt_compile\"" >&5)
7546 (eval "$lt_compile" 2>conftest.err)
7548 cat conftest.err >&5
7549 echo "$as_me:7549: \$? = $ac_status" >&5
7550 if (exit $ac_status) && test -s "$ac_outfile"; then
7551 # The compiler can only warn and ignore the option if not recognized
7552 # So say no if there are warnings other than the usual output.
7553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7556 lt_cv_prog_compiler_rtti_exceptions=yes
7562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7563 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7565 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7566 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7573 lt_prog_compiler_wl=
7574 lt_prog_compiler_pic=
7575 lt_prog_compiler_static=
7577 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7578 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7580 if test "$GCC" = yes; then
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_static='-static'
7586 # All AIX code is PIC.
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 now supports IA64 processor
7589 lt_prog_compiler_static='-Bstatic'
7594 # FIXME: we need at least 68020 code to build shared libraries, but
7595 # adding the `-m68020' flag to GCC prevents building anything better,
7597 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7601 # PIC is the default for these OSes.
7604 mingw* | cygwin* | pw32* | os2*)
7605 # This hack is so that the source file can tell whether it is being
7606 # built for inclusion in a dll (and should export symbols for example).
7607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7608 # (--disable-auto-import) libraries
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7612 darwin* | rhapsody*)
7613 # PIC is the default on this platform
7614 # Common symbols not allowed in MH_DYLIB files
7615 lt_prog_compiler_pic='-fno-common'
7619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7620 # Instead, we relocate shared libraries at runtime.
7624 # Just because we use GCC doesn't mean we suddenly get shared libraries
7625 # on systems that don't support them.
7626 lt_prog_compiler_can_build_shared=no
7631 if test -d /usr/nec; then
7632 lt_prog_compiler_pic=-Kconform_pic
7637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7644 lt_prog_compiler_pic='-fPIC'
7650 lt_prog_compiler_pic='-fPIC'
7654 # PORTME Check for flag to pass linker flags through the system compiler.
7657 lt_prog_compiler_wl='-Wl,'
7658 if test "$host_cpu" = ia64; then
7659 # AIX 5 now supports IA64 processor
7660 lt_prog_compiler_static='-Bstatic'
7662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7666 # PIC is the default on this platform
7667 # Common symbols not allowed in MH_DYLIB files
7668 case $cc_basename in
7670 lt_prog_compiler_pic='-qnocommon'
7671 lt_prog_compiler_wl='-Wl,'
7676 mingw* | cygwin* | pw32* | os2*)
7677 # This hack is so that the source file can tell whether it is being
7678 # built for inclusion in a dll (and should export symbols for example).
7679 lt_prog_compiler_pic='-DDLL_EXPORT'
7682 hpux9* | hpux10* | hpux11*)
7683 lt_prog_compiler_wl='-Wl,'
7684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7691 lt_prog_compiler_pic='+Z'
7694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7695 lt_prog_compiler_static='${wl}-a ${wl}archive'
7698 irix5* | irix6* | nonstopux*)
7699 lt_prog_compiler_wl='-Wl,'
7700 # PIC (with -KPIC) is the default.
7701 lt_prog_compiler_static='-non_shared'
7705 lt_prog_compiler_pic='-KPIC'
7706 lt_prog_compiler_static='-Bstatic'
7709 linux* | k*bsd*-gnu)
7710 case $cc_basename in
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-KPIC'
7714 lt_prog_compiler_static='-static'
7716 pgcc* | pgf77* | pgf90* | pgf95*)
7717 # Portland Group compilers (*not* the Pentium gcc compiler,
7718 # which looks to be a dead project)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-fpic'
7721 lt_prog_compiler_static='-Bstatic'
7724 lt_prog_compiler_wl='-Wl,'
7725 # All Alpha code is PIC.
7726 lt_prog_compiler_static='-non_shared'
7729 case `$CC -V 2>&1 | sed 5q` in
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_wl='-Wl,'
7737 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_wl=''
7747 osf3* | osf4* | osf5*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All OSF/1 code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7754 lt_prog_compiler_static='-non_shared'
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 case $cc_basename in
7762 lt_prog_compiler_wl='-Qoption ld ';;
7764 lt_prog_compiler_wl='-Wl,';;
7769 lt_prog_compiler_wl='-Qoption ld '
7770 lt_prog_compiler_pic='-PIC'
7771 lt_prog_compiler_static='-Bstatic'
7774 sysv4 | sysv4.2uw2* | sysv4.3*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7781 if test -d /usr/nec ;then
7782 lt_prog_compiler_pic='-Kconform_pic'
7783 lt_prog_compiler_static='-Bstatic'
7787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_can_build_shared=no
7799 lt_prog_compiler_pic='-pic'
7800 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_can_build_shared=no
7809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7810 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7813 # Check to make sure the PIC flag actually works.
7815 if test -n "$lt_prog_compiler_pic"; then
7817 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7818 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7819 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 lt_cv_prog_compiler_pic_works=no
7823 ac_outfile=conftest.$ac_objext
7824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7826 # Insert the option either (1) after the last *FLAGS variable, or
7827 # (2) before a word containing "conftest.", or (3) at the end.
7828 # Note that $ac_compile itself does not contain backslashes and begins
7829 # with a dollar sign (not a hyphen), so the echo should work correctly.
7830 # The option is referenced via a variable to avoid confusing sed.
7831 lt_compile=`echo "$ac_compile" | $SED \
7832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834 -e 's:$: $lt_compiler_flag:'`
7835 (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7836 (eval "$lt_compile" 2>conftest.err)
7838 cat conftest.err >&5
7839 echo "$as_me:7839: \$? = $ac_status" >&5
7840 if (exit $ac_status) && test -s "$ac_outfile"; then
7841 # The compiler can only warn and ignore the option if not recognized
7842 # So say no if there are warnings other than the usual output.
7843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7846 lt_cv_prog_compiler_pic_works=yes
7852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7853 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7855 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7856 case $lt_prog_compiler_pic in
7858 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7861 lt_prog_compiler_pic=
7862 lt_prog_compiler_can_build_shared=no
7867 # For platforms which do not support PIC, -DPIC is meaningless:
7869 lt_prog_compiler_pic=
7872 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7877 # Check to make sure the static flag actually works.
7879 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7880 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7881 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7882 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 lt_cv_prog_compiler_static_works=no
7886 save_LDFLAGS="$LDFLAGS"
7887 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7888 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7890 # The linker can only warn and ignore the option if not recognized
7891 # So say no if there are warnings
7892 if test -s conftest.err; then
7893 # Append any errors to the config.log.
7894 cat conftest.err 1>&5
7895 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7897 if diff conftest.exp conftest.er2 >/dev/null; then
7898 lt_cv_prog_compiler_static_works=yes
7901 lt_cv_prog_compiler_static_works=yes
7905 LDFLAGS="$save_LDFLAGS"
7908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7909 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7911 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7914 lt_prog_compiler_static=
7918 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 lt_cv_prog_compiler_c_o=no
7924 $rm -r conftest 2>/dev/null
7928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7930 lt_compiler_flag="-o out/conftest2.$ac_objext"
7931 # Insert the option either (1) after the last *FLAGS variable, or
7932 # (2) before a word containing "conftest.", or (3) at the end.
7933 # Note that $ac_compile itself does not contain backslashes and begins
7934 # with a dollar sign (not a hyphen), so the echo should work correctly.
7935 lt_compile=`echo "$ac_compile" | $SED \
7936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7938 -e 's:$: $lt_compiler_flag:'`
7939 (eval echo "\"\$as_me:7939: $lt_compile\"" >&5)
7940 (eval "$lt_compile" 2>out/conftest.err)
7942 cat out/conftest.err >&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7946 # The compiler can only warn and ignore the option if not recognized
7947 # So say no if there are warnings
7948 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7951 lt_cv_prog_compiler_c_o=yes
7956 # SGI C++ compiler will create directory out/ii_files/ for
7957 # template instantiation
7958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7959 $rm out/* && rmdir out
7965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7969 hard_links="nottested"
7970 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7971 # do not overwrite the value of need_locks provided by the user
7972 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7978 ln conftest.a conftest.b 2>&5 || hard_links=no
7979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7980 { echo "$as_me:$LINENO: result: $hard_links" >&5
7981 echo "${ECHO_T}$hard_links" >&6; }
7982 if test "$hard_links" = no; then
7983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7991 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7995 allow_undefined_flag=
7996 enable_shared_with_static_runtimes=no
7998 archive_expsym_cmds=
7999 old_archive_From_new_cmds=
8000 old_archive_from_expsyms_cmds=
8001 export_dynamic_flag_spec=
8002 whole_archive_flag_spec=
8003 thread_safe_flag_spec=
8004 hardcode_libdir_flag_spec=
8005 hardcode_libdir_flag_spec_ld=
8006 hardcode_libdir_separator=
8009 hardcode_shlibpath_var=unsupported
8010 link_all_deplibs=unknown
8011 hardcode_automatic=no
8014 always_export_symbols=no
8015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8016 # include_expsyms should be a list of space-separated symbols to be *always*
8017 # included in the symbol list
8019 # exclude_expsyms can be an extended regexp of symbols to exclude
8020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8022 # as well as any symbol that contains `d'.
8023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8025 # platforms (ab)use it in PIC code, but their linkers get confused if
8026 # the symbol is explicitly referenced. Since portable code cannot
8027 # rely on this symbol name, it's probably fine to never include it in
8028 # preloaded symbol tables.
8029 # Exclude shared library initialization/finalization symbols.
8030 extract_expsyms_cmds=
8031 # Just being paranoid about ensuring that cc_basename is set.
8032 for cc_temp in $compiler""; do
8034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8043 cygwin* | mingw* | pw32*)
8044 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8045 # When not using gcc, we currently assume that we are using
8046 # Microsoft Visual C++.
8047 if test "$GCC" != yes; then
8052 # we just hope/assume this is gcc and not c89 (= MSVC++)
8061 if test "$with_gnu_ld" = yes; then
8062 # If archive_cmds runs LD, not CC, wlarc should be empty
8065 # Set some defaults for GNU ld with shared library support. These
8066 # are reset later if shared libraries are not supported. Putting them
8067 # here allows them to be overridden if necessary.
8068 runpath_var=LD_RUN_PATH
8069 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8070 export_dynamic_flag_spec='${wl}--export-dynamic'
8071 # ancient GNU ld didn't support --whole-archive et. al.
8072 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8075 whole_archive_flag_spec=
8077 supports_anon_versioning=no
8078 case `$LD -v 2>/dev/null` in
8079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8082 *\ 2.11.*) ;; # other 2.11 versions
8083 *) supports_anon_versioning=yes ;;
8086 # See if GNU ld supports shared libraries.
8089 # On AIX/PPC, the GNU linker is very broken
8090 if test "$host_cpu" != ia64; then
8094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8095 *** to be unable to reliably create shared libraries on AIX.
8096 *** Therefore, libtool is disabling shared libraries support. If you
8097 *** really care for shared libraries, you may want to modify your PATH
8098 *** so that a non-GNU linker is found, and then restart.
8105 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)'
8106 hardcode_libdir_flag_spec='-L$libdir'
8107 hardcode_minus_L=yes
8109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8110 # that the semantics of dynamic libraries on AmigaOS, at least up
8111 # to version 4, is to share data among multiple programs linked
8112 # with the same dynamic library. Since this doesn't match the
8113 # behavior of shared libraries on other platforms, we can't use
8119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8120 allow_undefined_flag=unsupported
8121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8122 # support --undefined. This deserves some investigation. FIXME
8123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129 cygwin* | mingw* | pw32*)
8130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8131 # as there is no search path for DLLs.
8132 hardcode_libdir_flag_spec='-L$libdir'
8133 allow_undefined_flag=unsupported
8134 always_export_symbols=no
8135 enable_shared_with_static_runtimes=yes
8136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8140 # If the export-symbols file already is a .def file (1st line
8141 # is EXPORTS), use it as is; otherwise, prepend...
8142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8143 cp $export_symbols $output_objdir/$soname.def;
8145 echo EXPORTS > $output_objdir/$soname.def;
8146 cat $export_symbols >> $output_objdir/$soname.def;
8148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8156 hardcode_shlibpath_var=no
8157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8158 export_dynamic_flag_spec='${wl}-E'
8159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8160 # Instead, shared libraries are loaded at an image base (0x10000000 by
8161 # default) and relocated if they conflict, which is a slow very memory
8162 # consuming and fragmenting process. To avoid this, we pick a random,
8163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8166 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'
8169 gnu* | linux* | k*bsd*-gnu)
8170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8172 case $cc_basename,$host_cpu in
8173 pgcc*) # Portland Group C compiler
8174 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'
8175 tmp_addflag=' $pic_flag'
8177 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8178 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'
8179 tmp_addflag=' $pic_flag -Mnomain' ;;
8180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8181 tmp_addflag=' -i_dynamic' ;;
8182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8183 tmp_addflag=' -i_dynamic -nofor_main' ;;
8184 ifc* | ifort*) # Intel Fortran compiler
8185 tmp_addflag=' -nofor_main' ;;
8187 case `$CC -V 2>&1 | sed 5q` in
8188 *Sun\ C*) # Sun C 5.9
8189 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8190 tmp_sharedflag='-G' ;;
8191 *Sun\ F*) # Sun Fortran 8.3
8192 tmp_sharedflag='-G' ;;
8194 tmp_sharedflag='-shared' ;;
8196 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8198 if test $supports_anon_versioning = yes; then
8199 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8200 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8201 $echo "local: *; };" >> $output_objdir/$libname.ver~
8202 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8210 netbsd* | netbsdelf*-gnu)
8211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8225 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8226 *** create shared libraries on Solaris systems. Therefore, libtool
8227 *** is disabling shared libraries support. We urge you to upgrade GNU
8228 *** binutils to release 2.9.1 or newer. Another option is to modify
8229 *** your PATH or compiler configuration so that the native linker is
8230 *** used, and then restart.
8233 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8242 case `$LD -v 2>&1` in
8243 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8247 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8248 *** reliably create shared libraries on SCO systems. Therefore, libtool
8249 *** is disabling shared libraries support. We urge you to upgrade GNU
8250 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8251 *** your PATH or compiler configuration so that the native linker is
8252 *** used, and then restart.
8257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8269 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8272 hardcode_shlibpath_var=no
8276 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8285 if test "$ld_shlibs" = no; then
8287 hardcode_libdir_flag_spec=
8288 export_dynamic_flag_spec=
8289 whole_archive_flag_spec=
8292 # PORTME fill in a description of your system's linker (not GNU ld)
8295 allow_undefined_flag=unsupported
8296 always_export_symbols=yes
8297 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'
8298 # Note: this linker hardcodes the directories in LIBPATH if there
8299 # are no directories specified by -L.
8300 hardcode_minus_L=yes
8301 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8302 # Neither direct hardcoding nor static linking is supported with a
8304 hardcode_direct=unsupported
8309 if test "$host_cpu" = ia64; then
8310 # On IA64, the linker does run time linking by default, so we don't
8311 # have to do anything special.
8312 aix_use_runtimelinking=no
8313 exp_sym_flag='-Bexport'
8316 # If we're using GNU nm, then we don't want the "-C" option.
8317 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8318 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8319 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'
8321 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'
8323 aix_use_runtimelinking=no
8325 # Test if we are trying to use run time linking or normal
8326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8327 # need to do runtime linking.
8328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8329 for ld_flag in $LDFLAGS; do
8330 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8331 aix_use_runtimelinking=yes
8338 exp_sym_flag='-bexport'
8339 no_entry_flag='-bnoentry'
8342 # When large executables or shared objects are built, AIX ld can
8343 # have problems creating the table of contents. If linking a library
8344 # or program results in "error TOC overflow" add -mminimal-toc to
8345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8350 hardcode_libdir_separator=':'
8351 link_all_deplibs=yes
8353 if test "$GCC" = yes; then
8354 case $host_os in aix4.[012]|aix4.[012].*)
8355 # We only want to do this on AIX 4.2 and lower, the check
8356 # below for broken collect2 doesn't work under 4.3+
8357 collect2name=`${CC} -print-prog-name=collect2`
8358 if test -f "$collect2name" && \
8359 strings "$collect2name" | grep resolve_lib_name >/dev/null
8361 # We have reworked collect2
8364 # We have old collect2
8365 hardcode_direct=unsupported
8366 # It fails to find uninstalled libraries when the uninstalled
8367 # path is not listed in the libpath. Setting hardcode_minus_L
8368 # to unsupported forces relinking
8369 hardcode_minus_L=yes
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_libdir_separator=
8375 shared_flag='-shared'
8376 if test "$aix_use_runtimelinking" = yes; then
8377 shared_flag="$shared_flag "'${wl}-G'
8381 if test "$host_cpu" = ia64; then
8382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8383 # chokes on -Wl,-G. The following line is correct:
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag='${wl}-G'
8389 shared_flag='${wl}-bM:SRE'
8394 # It seems that -bexpall does not export symbols beginning with
8395 # underscore (_), so it is better to generate a list of symbols to export.
8396 always_export_symbols=yes
8397 if test "$aix_use_runtimelinking" = yes; then
8398 # Warning - without using the other runtime loading flags (-brtl),
8399 # -berok will link without error, but may produce a broken library.
8400 allow_undefined_flag='-berok'
8401 # Determine the default libpath from the value encoded in an empty executable.
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_link") 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest$ac_exeext &&
8434 $as_test_x conftest$ac_exeext; then
8436 lt_aix_libpath_sed='
8437 /Import File Strings/,/^$/ {
8443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8444 # Check for a 64-bit object if we didn't find anything.
8445 if test -z "$aix_libpath"; then
8446 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8456 conftest$ac_exeext conftest.$ac_ext
8457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8460 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"
8462 if test "$host_cpu" = ia64; then
8463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8464 allow_undefined_flag="-z nodefs"
8465 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"
8467 # Determine the default libpath from the value encoded in an empty executable.
8468 cat >conftest.$ac_ext <<_ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest$ac_exeext &&
8500 $as_test_x conftest$ac_exeext; then
8502 lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 # Check for a 64-bit object if we didn't find anything.
8511 if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522 conftest$ac_exeext conftest.$ac_ext
8523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526 # Warning - without using the other run time loading flags,
8527 # -berok will link without error, but may produce a broken library.
8528 no_undefined_flag=' ${wl}-bernotok'
8529 allow_undefined_flag=' ${wl}-berok'
8530 # Exported symbols can be pulled into shared objects from archives
8531 whole_archive_flag_spec='$convenience'
8532 archive_cmds_need_lc=yes
8533 # This is similar to how AIX traditionally builds its shared libraries.
8534 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'
8540 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)'
8541 hardcode_libdir_flag_spec='-L$libdir'
8542 hardcode_minus_L=yes
8543 # see comment about different semantics on the GNU ld section
8548 export_dynamic_flag_spec=-rdynamic
8551 cygwin* | mingw* | pw32*)
8552 # When not using gcc, we currently assume that we are using
8553 # Microsoft Visual C++.
8554 # hardcode_libdir_flag_spec is actually meaningless, as there is
8555 # no search path for DLLs.
8556 hardcode_libdir_flag_spec=' '
8557 allow_undefined_flag=unsupported
8558 # Tell ltmain to make .lib files, not .a files.
8560 # Tell ltmain to make .dll files, not .so files.
8562 # FIXME: Setting linknames here is a bad hack.
8563 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8564 # The linker will automatically build a .lib file if we build a DLL.
8565 old_archive_From_new_cmds='true'
8566 # FIXME: Should let the user specify the lib program.
8567 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8568 fix_srcfile_path='`cygpath -w "$srcfile"`'
8569 enable_shared_with_static_runtimes=yes
8572 darwin* | rhapsody*)
8574 rhapsody* | darwin1.[012])
8575 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8581 case ${MACOSX_DEPLOYMENT_TARGET} in
8583 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8586 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8592 archive_cmds_need_lc=no
8594 hardcode_automatic=yes
8595 hardcode_shlibpath_var=unsupported
8596 whole_archive_flag_spec=''
8597 link_all_deplibs=yes
8598 if test "$GCC" = yes ; then
8599 output_verbose_link_cmd='echo'
8600 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8601 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8602 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8603 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8605 case $cc_basename in
8607 output_verbose_link_cmd='echo'
8608 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8609 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8611 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8612 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}'
8622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8623 hardcode_libdir_flag_spec='-L$libdir'
8624 hardcode_shlibpath_var=no
8631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8632 # support. Future versions do this automatically, but an explicit c++rt0.o
8633 # does not break anything, and helps significantly (at the cost of a little
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8637 hardcode_libdir_flag_spec='-R$libdir'
8639 hardcode_shlibpath_var=no
8642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_minus_L=yes
8647 hardcode_shlibpath_var=no
8650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8651 freebsd* | dragonfly*)
8652 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8653 hardcode_libdir_flag_spec='-R$libdir'
8655 hardcode_shlibpath_var=no
8659 if test "$GCC" = yes; then
8660 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'
8662 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'
8664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665 hardcode_libdir_separator=:
8668 # hardcode_minus_L: Not really in the search PATH,
8669 # but as the default location of the library.
8670 hardcode_minus_L=yes
8671 export_dynamic_flag_spec='${wl}-E'
8675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8680 if test "$with_gnu_ld" = no; then
8681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8682 hardcode_libdir_separator=:
8685 export_dynamic_flag_spec='${wl}-E'
8687 # hardcode_minus_L: Not really in the search PATH,
8688 # but as the default location of the library.
8689 hardcode_minus_L=yes
8694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8697 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719 if test "$with_gnu_ld" = no; then
8720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8721 hardcode_libdir_separator=:
8725 hardcode_libdir_flag_spec_ld='+b $libdir'
8727 hardcode_shlibpath_var=no
8731 export_dynamic_flag_spec='${wl}-E'
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8741 irix5* | irix6* | nonstopux*)
8742 if test "$GCC" = yes; then
8743 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'
8745 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'
8746 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749 hardcode_libdir_separator=:
8750 link_all_deplibs=yes
8753 netbsd* | netbsdelf*-gnu)
8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8759 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_shlibpath_var=no
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8773 if test -f /usr/libexec/ld.so; then
8775 hardcode_shlibpath_var=no
8776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8780 export_dynamic_flag_spec='${wl}-E'
8783 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785 hardcode_libdir_flag_spec='-R$libdir'
8788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_minus_L=yes
8801 allow_undefined_flag=unsupported
8802 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'
8803 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8807 if test "$GCC" = yes; then
8808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8809 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'
8811 allow_undefined_flag=' -expect_unresolved \*'
8812 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'
8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815 hardcode_libdir_separator=:
8818 osf4* | osf5*) # as osf3* with the addition of -msym flag
8819 if test "$GCC" = yes; then
8820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821 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'
8822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 allow_undefined_flag=' -expect_unresolved \*'
8825 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'
8826 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8827 $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'
8829 # Both c and cxx compiler support -rpath directly
8830 hardcode_libdir_flag_spec='-rpath $libdir'
8832 hardcode_libdir_separator=:
8836 no_undefined_flag=' -z text'
8837 if test "$GCC" = yes; then
8839 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8848 hardcode_libdir_flag_spec='-R$libdir'
8849 hardcode_shlibpath_var=no
8851 solaris2.[0-5] | solaris2.[0-5].*) ;;
8853 # The compiler driver will combine and reorder linker options,
8854 # but understands `-z linker_flag'. GCC discards it without `$wl',
8855 # but is careful enough not to reorder.
8856 # Supported since Solaris 2.6 (maybe 2.5.1?)
8857 if test "$GCC" = yes; then
8858 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8864 link_all_deplibs=yes
8868 if test "x$host_vendor" = xsequent; then
8869 # Use $CC to link under sequent, because it throws in some extra .o
8870 # files that make .init and .fini sections work.
8871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_libdir_flag_spec='-L$libdir'
8877 hardcode_minus_L=yes
8878 hardcode_shlibpath_var=no
8882 case $host_vendor in
8884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_direct=yes # is this really true???
8888 ## LD is ld it makes a PLAMLIB
8889 ## CC just makes a GrossModule.
8890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8891 reload_cmds='$CC -r -o $output$reload_objs'
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8899 runpath_var='LD_RUN_PATH'
8900 hardcode_shlibpath_var=no
8904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var=no
8906 export_dynamic_flag_spec='-Bexport'
8910 if test -d /usr/nec; then
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_shlibpath_var=no
8913 runpath_var=LD_RUN_PATH
8914 hardcode_runpath_var=yes
8919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8920 no_undefined_flag='${wl}-z,text'
8921 archive_cmds_need_lc=no
8922 hardcode_shlibpath_var=no
8923 runpath_var='LD_RUN_PATH'
8925 if test "$GCC" = yes; then
8926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8934 sysv5* | sco3.2v5* | sco5v6*)
8935 # Note: We can NOT use -z defs as we might desire, because we do not
8936 # link with -lc, and that would cause any symbols used from libc to
8937 # always be unresolved, which means just about no library would
8938 # ever link correctly. If we're not using GNU ld we use -z text
8939 # though, which does catch some bad symbols but isn't as heavy-handed
8941 no_undefined_flag='${wl}-z,text'
8942 allow_undefined_flag='${wl}-z,nodefs'
8943 archive_cmds_need_lc=no
8944 hardcode_shlibpath_var=no
8945 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8946 hardcode_libdir_separator=':'
8947 link_all_deplibs=yes
8948 export_dynamic_flag_spec='${wl}-Bexport'
8949 runpath_var='LD_RUN_PATH'
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_libdir_flag_spec='-L$libdir'
8963 hardcode_shlibpath_var=no
8972 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8973 echo "${ECHO_T}$ld_shlibs" >&6; }
8974 test "$ld_shlibs" = no && can_build_shared=no
8977 # Do we need to explicitly link libc?
8979 case "x$archive_cmds_need_lc" in
8981 # Assume -lc should be added
8982 archive_cmds_need_lc=yes
8984 if test "$enable_shared" = yes && test "$GCC" = yes; then
8985 case $archive_cmds in
8987 # FIXME: we may have to deal with multi-command sequences.
8990 # Test whether the compiler implicitly links with -lc since on some
8991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992 # to ld, don't add -lc before -lgcc.
8993 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } 2>conftest.err; then
9005 libobjs=conftest.$ac_objext
9007 wl=$lt_prog_compiler_wl
9008 pic_flag=$lt_prog_compiler_pic
9014 lt_save_allow_undefined_flag=$allow_undefined_flag
9015 allow_undefined_flag=
9016 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }
9022 archive_cmds_need_lc=no
9024 archive_cmds_need_lc=yes
9026 allow_undefined_flag=$lt_save_allow_undefined_flag
9028 cat conftest.err 1>&5
9031 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9039 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9042 libname_spec='lib$name'
9050 shlibpath_overrides_runpath=unknown
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9055 if test "$GCC" = yes; then
9057 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9058 *) lt_awk_arg="/^libraries:/" ;;
9060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9061 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9062 # if the path contains ";" then we assume it to be the separator
9063 # otherwise default to the standard path separator (i.e. ":") - it is
9064 # assumed that no part of a normal pathname contains ";" but that should
9065 # okay in the real world where ";" in dirpaths is itself problematic.
9066 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9068 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9070 # Ok, now we have the path, separated by spaces, we can step through it
9071 # and add multilib dir if necessary.
9072 lt_tmp_lt_search_path_spec=
9073 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9074 for lt_sys_path in $lt_search_path_spec; do
9075 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9076 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9078 test -d "$lt_sys_path" && \
9079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9082 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9083 BEGIN {RS=" "; FS="/|\n";} {
9086 for (lt_i = NF; lt_i > 0; lt_i--) {
9087 if ($lt_i != "" && $lt_i != ".") {
9088 if ($lt_i == "..") {
9091 if (lt_count == 0) {
9092 lt_foo="/" $lt_i lt_foo;
9099 if (lt_foo != "") { lt_freq[lt_foo]++; }
9100 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9102 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9106 need_lib_prefix=unknown
9107 hardcode_into_libs=no
9109 # when you set need_version to no, make sure it does not cause -set_version
9110 # flags to be left without arguments
9111 need_version=unknown
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LIBPATH
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 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'
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so"
9176 shlibpath_var=LIBRARY_PATH
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9193 cygwin* | mingw* | pw32*)
9194 version_type=windows
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
9207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
9209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9212 shlibpath_overrides_runpath=yes
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
9238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9252 darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld"
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
9261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9280 freebsd* | dragonfly*)
9281 # DragonFly does not have aout. When/if they implement a new
9282 # versioning mechanism, adjust this.
9283 if test -x /usr/bin/objformat; then
9284 objformat=`/usr/bin/objformat`
9287 freebsd[123]*) objformat=aout ;;
9291 version_type=freebsd-$objformat
9292 case $version_type in
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9303 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9308 freebsd3.[01]* | freebsdelf3.[01]*)
9309 shlibpath_overrides_runpath=yes
9310 hardcode_into_libs=yes
9312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9314 shlibpath_overrides_runpath=no
9315 hardcode_into_libs=yes
9317 *) # from 4.6 on, and DragonFly
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 hardcode_into_libs=yes
9334 hpux9* | hpux10* | hpux11*)
9335 # Give a soname corresponding to the major version so that dld.sl refuses to
9336 # link against other versions.
9343 hardcode_into_libs=yes
9344 dynamic_linker="$host_os dld.so"
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 if test "X$HPUX_IA64_MODE" = X32; then
9350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358 hardcode_into_libs=yes
9359 dynamic_linker="$host_os dld.sl"
9360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369 dynamic_linker="$host_os dld.sl"
9370 shlibpath_var=SHLIB_PATH
9371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9377 postinstall_cmds='chmod 555 $lib'
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9392 irix5* | irix6* | nonstopux*)
9394 nonstopux*) version_type=nonstopux ;;
9396 if test "$lt_cv_prog_gnu_ld" = yes; then
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9407 irix5* | nonstopux*)
9411 case $LD in # libtool.m4 will add one of these switches to LD
9412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9413 libsuff= shlibsuff= libmagic=32-bit;;
9414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9415 libsuff=32 shlibsuff=N32 libmagic=N32;;
9416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9418 *) libsuff= shlibsuff= libmagic=never-match;;
9422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9423 shlibpath_overrides_runpath=no
9424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9426 hardcode_into_libs=yes
9429 # No shared lib support for Linux oldld, aout, or coff.
9430 linux*oldld* | linux*aout* | linux*coff*)
9434 # This must be Linux ELF.
9435 linux* | k*bsd*-gnu)
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=no
9444 # This implies no fast_install, which is unacceptable.
9445 # Some rework will be needed to allow for fast_install
9446 # before this can be enabled.
9447 hardcode_into_libs=yes
9449 # Append ld.so.conf contents to the search path
9450 if test -f /etc/ld.so.conf; then
9451 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9455 # We used to test for /lib/ld.so.1 and disable shared libraries on
9456 # powerpc, because MkLinux only supported shared libraries with the
9457 # GNU dynamic linker. Since this was broken with cross compilers,
9458 # most powerpc-linux boxes support dynamic linking these days and
9459 # people can always --disable-shared, the test was removed, and we
9460 # assume the GNU/Linux dynamic linker is in use.
9461 dynamic_linker='GNU/Linux ld.so'
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=no
9472 hardcode_into_libs=yes
9473 dynamic_linker='NetBSD ld.elf_so'
9480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9483 dynamic_linker='NetBSD (a.out) ld.so'
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 dynamic_linker='NetBSD ld.elf_so'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 shlibpath_overrides_runpath=yes
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 shlibpath_overrides_runpath=yes
9513 sys_lib_dlsearch_path_spec="/usr/lib"
9515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9518 *) need_version=no ;;
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9522 shlibpath_var=LD_LIBRARY_PATH
9523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9525 openbsd2.[89] | openbsd2.[89].*)
9526 shlibpath_overrides_runpath=no
9529 shlibpath_overrides_runpath=yes
9533 shlibpath_overrides_runpath=yes
9538 libname_spec='$name'
9541 library_names_spec='$libname${shared_ext} $libname.a'
9542 dynamic_linker='OS/2 ld.exe'
9543 shlibpath_var=LIBPATH
9546 osf3* | osf4* | osf5*)
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 hardcode_into_libs=yes
9570 # ldd complains unless libraries are executable
9571 postinstall_cmds='chmod +x $lib'
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=yes
9580 if test "$with_gnu_ld" = yes; then
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 case $host_vendor in
9593 shlibpath_overrides_runpath=no
9595 export_dynamic_flag_spec='${wl}-Blargedynsym'
9596 runpath_var=LD_RUN_PATH
9604 shlibpath_overrides_runpath=no
9605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9611 if test -d /usr/nec ;then
9613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9614 soname_spec='$libname${shared_ext}.$major'
9615 shlibpath_var=LD_LIBRARY_PATH
9619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9620 version_type=freebsd-elf
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 hardcode_into_libs=yes
9627 if test "$with_gnu_ld" = yes; then
9628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9629 shlibpath_overrides_runpath=no
9631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9632 shlibpath_overrides_runpath=yes
9635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9639 sys_lib_dlsearch_path_spec='/usr/lib'
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9653 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9654 echo "${ECHO_T}$dynamic_linker" >&6; }
9655 test "$dynamic_linker" = no && can_build_shared=no
9657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9663 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9664 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9670 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9673 if test "$GCC" = yes; then
9674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9677 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9678 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9680 if test -n "$hardcode_libdir_flag_spec" || \
9681 test -n "$runpath_var" || \
9682 test "X$hardcode_automatic" = "Xyes" ; then
9684 # We can hardcode non-existant directories.
9685 if test "$hardcode_direct" != no &&
9686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9687 # have to relink, otherwise we might link with an installed library
9688 # when we should be linking with a yet-to-be-installed one
9689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9690 test "$hardcode_minus_L" != no; then
9691 # Linking always hardcodes the temporary library directory.
9692 hardcode_action=relink
9694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9695 hardcode_action=immediate
9698 # We cannot hardcode anything, or else we can only hardcode existing
9700 hardcode_action=unsupported
9702 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9703 echo "${ECHO_T}$hardcode_action" >&6; }
9705 if test "$hardcode_action" = relink; then
9706 # Fast installation is not supported
9707 enable_fast_install=no
9708 elif test "$shlibpath_overrides_runpath" = yes ||
9709 test "$enable_shared" = no; then
9710 # Fast installation is not necessary
9711 enable_fast_install=needless
9716 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9717 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9718 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9719 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9720 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9721 { echo "$as_me:$LINENO: result: yes" >&5
9722 echo "${ECHO_T}yes" >&6; }
9724 # FIXME - insert some real tests, host_os isn't really good enough
9727 if test -n "$STRIP" ; then
9728 striplib="$STRIP -x"
9729 old_striplib="$STRIP -S"
9730 { echo "$as_me:$LINENO: result: yes" >&5
9731 echo "${ECHO_T}yes" >&6; }
9733 { echo "$as_me:$LINENO: result: no" >&5
9734 echo "${ECHO_T}no" >&6; }
9738 { echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6; }
9744 if test "x$enable_dlopen" != xyes; then
9745 enable_dlopen=unknown
9746 enable_dlopen_self=unknown
9747 enable_dlopen_self_static=unknown
9754 lt_cv_dlopen="load_add_on"
9756 lt_cv_dlopen_self=yes
9760 lt_cv_dlopen="LoadLibrary"
9765 lt_cv_dlopen="dlopen"
9770 # if libdl is installed we need to link against it
9771 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9772 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 ac_check_lib_save_LIBS=$LIBS
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9785 /* Override any GCC internal prototype to avoid an error.
9786 Use char because int might match the return type of a GCC
9787 builtin and then its argument prototype would still apply. */
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (ac_try="$ac_link"
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_link") 2>conftest.er1
9809 grep -v '^ *+' conftest.er1 >conftest.err
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && {
9814 test -z "$ac_c_werror_flag" ||
9815 test ! -s conftest.err
9816 } && test -s conftest$ac_exeext &&
9817 $as_test_x conftest$ac_exeext; then
9818 ac_cv_lib_dl_dlopen=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_lib_dl_dlopen=no
9826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828 LIBS=$ac_check_lib_save_LIBS
9830 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9831 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9832 if test $ac_cv_lib_dl_dlopen = yes; then
9833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9838 lt_cv_dlopen_self=yes
9845 { echo "$as_me:$LINENO: checking for shl_load" >&5
9846 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define shl_load innocuous_shl_load
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char shl_load (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub_shl_load || defined __stub___shl_load
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_func_shl_load=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_func_shl_load=no
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9924 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9925 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9926 if test $ac_cv_func_shl_load = yes; then
9927 lt_cv_dlopen="shl_load"
9929 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9930 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 ac_check_lib_save_LIBS=$LIBS
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && {
9972 test -z "$ac_c_werror_flag" ||
9973 test ! -s conftest.err
9974 } && test -s conftest$ac_exeext &&
9975 $as_test_x conftest$ac_exeext; then
9976 ac_cv_lib_dld_shl_load=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_lib_dld_shl_load=no
9984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9990 if test $ac_cv_lib_dld_shl_load = yes; then
9991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9993 { echo "$as_me:$LINENO: checking for dlopen" >&5
9994 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9995 if test "${ac_cv_func_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10006 #define dlopen innocuous_dlopen
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char dlopen (); below.
10010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011 <limits.h> exists even on freestanding compilers. */
10014 # include <limits.h>
10016 # include <assert.h>
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10028 /* The GNU C library defines this for functions which it implements
10029 to always fail with ENOSYS. Some functions are actually named
10030 something starting with __ and the normal name is an alias. */
10031 #if defined __stub_dlopen || defined __stub___dlopen
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext &&
10060 $as_test_x conftest$ac_exeext; then
10061 ac_cv_func_dlopen=yes
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_cv_func_dlopen=no
10069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10070 conftest$ac_exeext conftest.$ac_ext
10072 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10073 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10074 if test $ac_cv_func_dlopen = yes; then
10075 lt_cv_dlopen="dlopen"
10077 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 ac_check_lib_save_LIBS=$LIBS
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && {
10120 test -z "$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10122 } && test -s conftest$ac_exeext &&
10123 $as_test_x conftest$ac_exeext; then
10124 ac_cv_lib_dl_dlopen=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_cv_lib_dl_dlopen=no
10132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10138 if test $ac_cv_lib_dl_dlopen = yes; then
10139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10141 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10142 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-lsvld $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest$ac_exeext &&
10187 $as_test_x conftest$ac_exeext; then
10188 ac_cv_lib_svld_dlopen=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_cv_lib_svld_dlopen=no
10196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LIBS=$ac_check_lib_save_LIBS
10200 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10201 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10202 if test $ac_cv_lib_svld_dlopen = yes; then
10203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10205 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10206 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 ac_check_lib_save_LIBS=$LIBS
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10229 return dld_link ();
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (ac_try="$ac_link"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext &&
10251 $as_test_x conftest$ac_exeext; then
10252 ac_cv_lib_dld_dld_link=yes
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_lib_dld_dld_link=no
10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10266 if test $ac_cv_lib_dld_dld_link = yes; then
10267 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10288 if test "x$lt_cv_dlopen" != xno; then
10294 case $lt_cv_dlopen in
10296 save_CPPFLAGS="$CPPFLAGS"
10297 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10299 save_LDFLAGS="$LDFLAGS"
10300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10303 LIBS="$lt_cv_dlopen_libs $LIBS"
10305 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10306 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10307 if test "${lt_cv_dlopen_self+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 if test "$cross_compiling" = yes; then :
10311 lt_cv_dlopen_self=cross
10313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314 lt_status=$lt_dlunknown
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10326 # define LT_DLGLOBAL RTLD_GLOBAL
10329 # define LT_DLGLOBAL DL_GLOBAL
10331 # define LT_DLGLOBAL 0
10335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336 find out it does not work in some platform. */
10337 #ifndef LT_DLLAZY_OR_NOW
10339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10342 # define LT_DLLAZY_OR_NOW DL_LAZY
10345 # define LT_DLLAZY_OR_NOW RTLD_NOW
10348 # define LT_DLLAZY_OR_NOW DL_NOW
10350 # define LT_DLLAZY_OR_NOW 0
10358 extern "C" void exit (int);
10361 void fnord() { int i=42;}
10364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365 int status = $lt_dlunknown;
10369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371 /* dlclose (self); */
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384 (./conftest; exit; ) >&5 2>/dev/null
10386 case x$lt_status in
10387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10392 # compilation failed
10393 lt_cv_dlopen_self=no
10400 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10401 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10403 if test "x$lt_cv_dlopen_self" = xyes; then
10404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10405 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10406 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10407 if test "${lt_cv_dlopen_self_static+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 if test "$cross_compiling" = yes; then :
10411 lt_cv_dlopen_self_static=cross
10413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10414 lt_status=$lt_dlunknown
10415 cat > conftest.$ac_ext <<EOF
10416 #line 10416 "configure"
10417 #include "confdefs.h"
10426 # define LT_DLGLOBAL RTLD_GLOBAL
10429 # define LT_DLGLOBAL DL_GLOBAL
10431 # define LT_DLGLOBAL 0
10435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10436 find out it does not work in some platform. */
10437 #ifndef LT_DLLAZY_OR_NOW
10439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10442 # define LT_DLLAZY_OR_NOW DL_LAZY
10445 # define LT_DLLAZY_OR_NOW RTLD_NOW
10448 # define LT_DLLAZY_OR_NOW DL_NOW
10450 # define LT_DLLAZY_OR_NOW 0
10458 extern "C" void exit (int);
10461 void fnord() { int i=42;}
10464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10465 int status = $lt_dlunknown;
10469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10471 /* dlclose (self); */
10479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480 (eval $ac_link) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10484 (./conftest; exit; ) >&5 2>/dev/null
10486 case x$lt_status in
10487 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10488 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10489 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10492 # compilation failed
10493 lt_cv_dlopen_self_static=no
10500 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10501 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10504 CPPFLAGS="$save_CPPFLAGS"
10505 LDFLAGS="$save_LDFLAGS"
10510 case $lt_cv_dlopen_self in
10511 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10512 *) enable_dlopen_self=unknown ;;
10515 case $lt_cv_dlopen_self_static in
10516 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10517 *) enable_dlopen_self_static=unknown ;;
10522 # Report which library types will actually be built
10523 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10524 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10525 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10526 echo "${ECHO_T}$can_build_shared" >&6; }
10528 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10529 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10530 test "$can_build_shared" = "no" && enable_shared=no
10532 # On AIX, shared libraries and static libraries use the same namespace, and
10533 # are all built from PIC.
10536 test "$enable_shared" = yes && enable_static=no
10537 if test -n "$RANLIB"; then
10538 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10539 postinstall_cmds='$RANLIB $lib'
10544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10545 test "$enable_shared" = yes && enable_static=no
10549 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10550 echo "${ECHO_T}$enable_shared" >&6; }
10552 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10554 # Make sure either enable_shared or enable_static is yes.
10555 test "$enable_shared" = yes || enable_static=yes
10556 { echo "$as_me:$LINENO: result: $enable_static" >&5
10557 echo "${ECHO_T}$enable_static" >&6; }
10559 # The else clause should only fire when bootstrapping the
10560 # libtool distribution, otherwise you forgot to ship ltmain.sh
10561 # with your package, and you will get complaints that there are
10562 # no rules to generate ltmain.sh.
10563 if test -f "$ltmain"; then
10564 # See if we are running on zsh, and set the options which allow our commands through
10565 # without removal of \ escapes.
10566 if test -n "${ZSH_VERSION+set}" ; then
10567 setopt NO_GLOB_SUBST
10569 # Now quote all the things that may contain metacharacters while being
10570 # careful not to overquote the AC_SUBSTed values. We take copies of the
10571 # variables and quote the copies for generation of the libtool script.
10572 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10576 deplibs_check_method reload_flag reload_cmds need_locks \
10577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10578 lt_cv_sys_global_symbol_to_c_name_address \
10579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10580 old_postinstall_cmds old_postuninstall_cmds \
10584 lt_prog_compiler_wl \
10585 lt_prog_compiler_pic \
10586 lt_prog_compiler_static \
10587 lt_prog_compiler_no_builtin_flag \
10588 export_dynamic_flag_spec \
10589 thread_safe_flag_spec \
10590 whole_archive_flag_spec \
10591 enable_shared_with_static_runtimes \
10593 old_archive_from_new_cmds \
10598 compiler_lib_search_path \
10599 compiler_lib_search_dirs \
10601 archive_expsym_cmds \
10603 postuninstall_cmds \
10604 old_archive_from_expsyms_cmds \
10605 allow_undefined_flag \
10606 no_undefined_flag \
10607 export_symbols_cmds \
10608 hardcode_libdir_flag_spec \
10609 hardcode_libdir_flag_spec_ld \
10610 hardcode_libdir_separator \
10611 hardcode_automatic \
10613 module_expsym_cmds \
10614 lt_cv_prog_compiler_c_o \
10617 include_expsyms; do
10620 old_archive_cmds | \
10621 old_archive_from_new_cmds | \
10623 archive_expsym_cmds | \
10625 module_expsym_cmds | \
10626 old_archive_from_expsyms_cmds | \
10627 export_symbols_cmds | \
10628 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10629 postinstall_cmds | postuninstall_cmds | \
10630 old_postinstall_cmds | old_postuninstall_cmds | \
10631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10632 # Double-quote double-evaled strings.
10633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10642 *'\$0 --fallback-echo"')
10643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10647 cfgfile="${ofile}T"
10648 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10650 { echo "$as_me:$LINENO: creating $ofile" >&5
10651 echo "$as_me: creating $ofile" >&6;}
10653 cat <<__EOF__ >> "$cfgfile"
10656 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10657 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10661 # Free Software Foundation, Inc.
10663 # This file is part of GNU Libtool:
10664 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10666 # This program is free software; you can redistribute it and/or modify
10667 # it under the terms of the GNU General Public License as published by
10668 # the Free Software Foundation; either version 2 of the License, or
10669 # (at your option) any later version.
10671 # This program is distributed in the hope that it will be useful, but
10672 # WITHOUT ANY WARRANTY; without even the implied warranty of
10673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10674 # General Public License for more details.
10676 # You should have received a copy of the GNU General Public License
10677 # along with this program; if not, write to the Free Software
10678 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10680 # As a special exception to the GNU General Public License, if you
10681 # distribute this file as part of a program that contains a
10682 # configuration script generated by Autoconf, you may include it under
10683 # the same distribution terms that you use for the rest of that program.
10685 # A sed program that does not truncate output.
10688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10689 Xsed="$SED -e 1s/^X//"
10691 # The HP-UX ksh and POSIX shell print the target directory to stdout
10692 # if CDPATH is set.
10693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10695 # The names of the tagged configurations supported by this script.
10698 # ### BEGIN LIBTOOL CONFIG
10700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10702 # Shell to use when invoking shell scripts.
10705 # Whether or not to build shared libraries.
10706 build_libtool_libs=$enable_shared
10708 # Whether or not to build static libraries.
10709 build_old_libs=$enable_static
10711 # Whether or not to add -lc for building shared libraries.
10712 build_libtool_need_lc=$archive_cmds_need_lc
10714 # Whether or not to disallow shared libs when runtime libs are static
10715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10717 # Whether or not to optimize for fast installation.
10718 fast_install=$enable_fast_install
10721 host_alias=$host_alias
10725 # The build system.
10726 build_alias=$build_alias
10730 # An echo program that does not interpret backslashes.
10735 AR_FLAGS=$lt_AR_FLAGS
10740 # LTCC compiler flags.
10741 LTCFLAGS=$lt_LTCFLAGS
10743 # A language-specific compiler.
10746 # Is the compiler the GNU C compiler?
10752 # The linker used to build libraries.
10755 # Whether we need hard or soft links.
10758 # A BSD-compatible nm program.
10761 # A symbol stripping program
10764 # Used to examine libraries when file_magic_cmd begins "file"
10765 MAGIC_CMD=$MAGIC_CMD
10767 # Used on cygwin: DLL creation program.
10770 # Used on cygwin: object dumper.
10773 # Used on cygwin: assembler.
10776 # The name of the directory that contains temporary libtool files.
10779 # How to create reloadable object files.
10780 reload_flag=$lt_reload_flag
10781 reload_cmds=$lt_reload_cmds
10783 # How to pass a linker flag through the compiler.
10784 wl=$lt_lt_prog_compiler_wl
10786 # Object file suffix (normally "o").
10787 objext="$ac_objext"
10789 # Old archive suffix (normally "a").
10792 # Shared library suffix (normally ".so").
10793 shrext_cmds='$shrext_cmds'
10795 # Executable file suffix (normally "").
10798 # Additional compiler flags for building library objects.
10799 pic_flag=$lt_lt_prog_compiler_pic
10802 # What is the maximum length of a command?
10803 max_cmd_len=$lt_cv_sys_max_cmd_len
10805 # Does compiler simultaneously support -c and -o options?
10806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10808 # Must we lock files when doing compilation?
10809 need_locks=$lt_need_locks
10811 # Do we need the lib prefix for modules?
10812 need_lib_prefix=$need_lib_prefix
10814 # Do we need a version for libraries?
10815 need_version=$need_version
10817 # Whether dlopen is supported.
10818 dlopen_support=$enable_dlopen
10820 # Whether dlopen of programs is supported.
10821 dlopen_self=$enable_dlopen_self
10823 # Whether dlopen of statically linked programs is supported.
10824 dlopen_self_static=$enable_dlopen_self_static
10826 # Compiler flag to prevent dynamic linking.
10827 link_static_flag=$lt_lt_prog_compiler_static
10829 # Compiler flag to turn off builtin functions.
10830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10832 # Compiler flag to allow reflexive dlopens.
10833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10835 # Compiler flag to generate shared objects directly from archives.
10836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10838 # Compiler flag to generate thread-safe objects.
10839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10841 # Library versioning type.
10842 version_type=$version_type
10844 # Format of library name prefix.
10845 libname_spec=$lt_libname_spec
10847 # List of archive names. First name is the real one, the rest are links.
10848 # The last name is the one that the linker finds with -lNAME.
10849 library_names_spec=$lt_library_names_spec
10851 # The coded name of the library, if different from the real name.
10852 soname_spec=$lt_soname_spec
10854 # Commands used to build and install an old-style archive.
10856 old_archive_cmds=$lt_old_archive_cmds
10857 old_postinstall_cmds=$lt_old_postinstall_cmds
10858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10860 # Create an old-style archive from a shared archive.
10861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10863 # Create a temporary old-style archive to link instead of a shared archive.
10864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10866 # Commands used to build and install a shared archive.
10867 archive_cmds=$lt_archive_cmds
10868 archive_expsym_cmds=$lt_archive_expsym_cmds
10869 postinstall_cmds=$lt_postinstall_cmds
10870 postuninstall_cmds=$lt_postuninstall_cmds
10872 # Commands used to build a loadable module (assumed same as above if empty)
10873 module_cmds=$lt_module_cmds
10874 module_expsym_cmds=$lt_module_expsym_cmds
10876 # Commands to strip libraries.
10877 old_striplib=$lt_old_striplib
10878 striplib=$lt_striplib
10880 # Dependencies to place before the objects being linked to create a
10882 predep_objects=$lt_predep_objects
10884 # Dependencies to place after the objects being linked to create a
10886 postdep_objects=$lt_postdep_objects
10888 # Dependencies to place before the objects being linked to create a
10890 predeps=$lt_predeps
10892 # Dependencies to place after the objects being linked to create a
10894 postdeps=$lt_postdeps
10896 # The directories searched by this compiler when creating a shared
10898 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10900 # The library search path used internally by the compiler when linking
10901 # a shared library.
10902 compiler_lib_search_path=$lt_compiler_lib_search_path
10904 # Method to check whether dependent libraries are shared objects.
10905 deplibs_check_method=$lt_deplibs_check_method
10907 # Command to use when deplibs_check_method == file_magic.
10908 file_magic_cmd=$lt_file_magic_cmd
10910 # Flag that allows shared libraries with undefined symbols to be built.
10911 allow_undefined_flag=$lt_allow_undefined_flag
10913 # Flag that forces no undefined symbols.
10914 no_undefined_flag=$lt_no_undefined_flag
10916 # Commands used to finish a libtool library installation in a directory.
10917 finish_cmds=$lt_finish_cmds
10919 # Same as above, but a single script fragment to be evaled but not shown.
10920 finish_eval=$lt_finish_eval
10922 # Take the output of nm and produce a listing of raw symbols and C names.
10923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10925 # Transform the output of nm in a proper C declaration
10926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10928 # Transform the output of nm in a C name address pair
10929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10931 # This is the shared library runtime path variable.
10932 runpath_var=$runpath_var
10934 # This is the shared library path variable.
10935 shlibpath_var=$shlibpath_var
10937 # Is shlibpath searched before the hard-coded library search path?
10938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10940 # How to hardcode a shared library path into an executable.
10941 hardcode_action=$hardcode_action
10943 # Whether we should hardcode library paths into libraries.
10944 hardcode_into_libs=$hardcode_into_libs
10946 # Flag to hardcode \$libdir into a binary during linking.
10947 # This must work even if \$libdir does not exist.
10948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10950 # If ld is used when linking, flag to hardcode \$libdir into
10951 # a binary during linking. This must work even if \$libdir does
10953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10955 # Whether we need a single -rpath flag with a separated argument.
10956 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10959 # resulting binary.
10960 hardcode_direct=$hardcode_direct
10962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10963 # resulting binary.
10964 hardcode_minus_L=$hardcode_minus_L
10966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10967 # the resulting binary.
10968 hardcode_shlibpath_var=$hardcode_shlibpath_var
10970 # Set to yes if building a shared library automatically hardcodes DIR into the library
10971 # and all subsequent libraries and executables linked against it.
10972 hardcode_automatic=$hardcode_automatic
10974 # Variables whose values should be saved in libtool wrapper scripts and
10975 # restored at relink time.
10976 variables_saved_for_relink="$variables_saved_for_relink"
10978 # Whether libtool must link a program against all its dependency libraries.
10979 link_all_deplibs=$link_all_deplibs
10981 # Compile-time system search path for libraries
10982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10984 # Run-time system search path for libraries
10985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10987 # Fix the shell variable \$srcfile for the compiler.
10988 fix_srcfile_path=$lt_fix_srcfile_path
10990 # Set to yes if exported symbols are required.
10991 always_export_symbols=$always_export_symbols
10993 # The commands to list exported symbols.
10994 export_symbols_cmds=$lt_export_symbols_cmds
10996 # The commands to extract the exported symbol list from a shared archive.
10997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10999 # Symbols that should not be listed in the preloaded symbols.
11000 exclude_expsyms=$lt_exclude_expsyms
11002 # Symbols that must always be exported.
11003 include_expsyms=$lt_include_expsyms
11005 # ### END LIBTOOL CONFIG
11012 cat <<\EOF >> "$cfgfile"
11014 # AIX sometimes has problems with the GCC collect2 program. For some
11015 # reason, if we set the COLLECT_NAMES environment variable, the problems
11016 # vanish in a puff of smoke.
11017 if test "X${COLLECT_NAMES+set}" != Xset; then
11019 export COLLECT_NAMES
11025 # We use sed instead of cat because bash on DJGPP gets confused if
11026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11027 # text mode, it properly converts lines to CR/LF. This bash problem
11028 # is reportedly fixed, but why not run on old versions too?
11029 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11031 mv -f "$cfgfile" "$ofile" || \
11032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11036 # If there is no Makefile yet, we rely on a make rule to execute
11037 # `config.status --recheck' to rerun these tests and create the
11038 # libtool script then.
11039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11040 if test -f "$ltmain_in"; then
11041 test -f Makefile && make "$ltmain"
11047 ac_cpp='$CPP $CPPFLAGS'
11048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11055 # Check whether --with-tags was given.
11056 if test "${with_tags+set}" = set; then
11057 withval=$with_tags; tagnames="$withval"
11061 if test -f "$ltmain" && test -n "$tagnames"; then
11062 if test ! -f "${ofile}"; then
11063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11064 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11067 if test -z "$LTCC"; then
11068 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11069 if test -z "$LTCC"; then
11070 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11071 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11074 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11077 if test -z "$LTCFLAGS"; then
11078 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11081 # Extract list of available tagged configurations in $ofile.
11082 # Note that this assumes the entire list is on one line.
11083 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11086 for tagname in $tagnames; do
11088 # Check whether tagname contains only valid characters
11089 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11091 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11092 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11093 { (exit 1); exit 1; }; }
11097 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11099 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11100 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11101 { (exit 1); exit 1; }; }
11104 # Update the list of available tags.
11105 if test -n "$tagname"; then
11106 echo appending configuration tag \"$tagname\" to $ofile
11110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11112 (test "X$CXX" != "Xg++"))) ; then
11114 ac_cpp='$CXXCPP $CPPFLAGS'
11115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11122 archive_cmds_need_lc_CXX=no
11123 allow_undefined_flag_CXX=
11124 always_export_symbols_CXX=no
11125 archive_expsym_cmds_CXX=
11126 export_dynamic_flag_spec_CXX=
11127 hardcode_direct_CXX=no
11128 hardcode_libdir_flag_spec_CXX=
11129 hardcode_libdir_flag_spec_ld_CXX=
11130 hardcode_libdir_separator_CXX=
11131 hardcode_minus_L_CXX=no
11132 hardcode_shlibpath_var_CXX=unsupported
11133 hardcode_automatic_CXX=no
11135 module_expsym_cmds_CXX=
11136 link_all_deplibs_CXX=unknown
11137 old_archive_cmds_CXX=$old_archive_cmds
11138 no_undefined_flag_CXX=
11139 whole_archive_flag_spec_CXX=
11140 enable_shared_with_static_runtimes_CXX=no
11142 # Dependencies to place before and after the object being linked:
11143 predep_objects_CXX=
11144 postdep_objects_CXX=
11147 compiler_lib_search_path_CXX=
11148 compiler_lib_search_dirs_CXX=
11150 # Source file extension for C++ test sources.
11153 # Object file extension for compiled C++ test sources.
11157 # Code to be used in simple compile tests
11158 lt_simple_compile_test_code="int some_variable = 0;"
11160 # Code to be used in simple link tests
11161 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11165 # If no C compiler was specified, use CC.
11168 # If no C compiler flags were specified, use CFLAGS.
11169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11171 # Allow CC to be a program name with arguments.
11175 # save warnings/boilerplate of simple test code
11176 ac_outfile=conftest.$ac_objext
11177 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11179 _lt_compiler_boilerplate=`cat conftest.err`
11182 ac_outfile=conftest.$ac_objext
11183 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11185 _lt_linker_boilerplate=`cat conftest.err`
11189 # Allow CC to be a program name with arguments.
11194 lt_save_with_gnu_ld=$with_gnu_ld
11195 lt_save_path_LD=$lt_cv_path_LD
11196 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11199 $as_unset lt_cv_prog_gnu_ld
11201 if test -n "${lt_cv_path_LDCXX+set}"; then
11202 lt_cv_path_LD=$lt_cv_path_LDCXX
11204 $as_unset lt_cv_path_LD
11206 test -z "${LDCXX+set}" || LD=$LDCXX
11210 for cc_temp in $compiler""; do
11212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11221 # We don't want -fno-exception wen compiling C++ code, so set the
11222 # no_builtin_flag separately
11223 if test "$GXX" = yes; then
11224 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11226 lt_prog_compiler_no_builtin_flag_CXX=
11229 if test "$GXX" = yes; then
11230 # Set up default GNU C++ configuration
11233 # Check whether --with-gnu-ld was given.
11234 if test "${with_gnu_ld+set}" = set; then
11235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11241 if test "$GCC" = yes; then
11242 # Check if gcc -print-prog-name=ld gives a path.
11243 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11244 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11247 # gcc leaves a trailing carriage return which upsets mingw
11248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11253 # Accept absolute paths.
11255 re_direlt='/[^/][^/]*/\.\./'
11256 # Canonicalize the pathname of ld
11257 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11259 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11261 test -z "$LD" && LD="$ac_prog"
11264 # If it fails, then pretend we aren't using GCC.
11268 # If it is relative, then search for the first ld in PATH.
11269 with_gnu_ld=unknown
11272 elif test "$with_gnu_ld" = yes; then
11273 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11274 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11277 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11279 if test "${lt_cv_path_LD+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 if test -z "$LD"; then
11283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11284 for ac_dir in $PATH; do
11286 test -z "$ac_dir" && ac_dir=.
11287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11288 lt_cv_path_LD="$ac_dir/$ac_prog"
11289 # Check to see if the program is GNU ld. I'd rather use --version,
11290 # but apparently some variants of GNU ld only accept -v.
11291 # Break only if it was the GNU/non-GNU ld that we prefer.
11292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11293 *GNU* | *'with BFD'*)
11294 test "$with_gnu_ld" != no && break
11297 test "$with_gnu_ld" != yes && break
11304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11308 LD="$lt_cv_path_LD"
11309 if test -n "$LD"; then
11310 { echo "$as_me:$LINENO: result: $LD" >&5
11311 echo "${ECHO_T}$LD" >&6; }
11313 { echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6; }
11316 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11317 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11318 { (exit 1); exit 1; }; }
11319 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11320 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11321 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11325 case `$LD -v 2>&1 </dev/null` in
11326 *GNU* | *'with BFD'*)
11327 lt_cv_prog_gnu_ld=yes
11330 lt_cv_prog_gnu_ld=no
11334 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11335 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11336 with_gnu_ld=$lt_cv_prog_gnu_ld
11340 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11341 # archiving commands below assume that GNU ld is being used.
11342 if test "$with_gnu_ld" = yes; then
11343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344 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'
11346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11349 # If archive_cmds runs LD, not CC, wlarc should be empty
11350 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11351 # investigate it a little bit more. (MM)
11354 # ancient GNU ld didn't support --whole-archive et. al.
11355 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11356 grep 'no-whole-archive' > /dev/null; then
11357 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11359 whole_archive_flag_spec_CXX=
11365 # A generic and very simple default shared library creation
11366 # command for GNU C++ for the case where it uses the native
11367 # linker, instead of GNU ld. If possible, this setting should
11368 # overridden to take advantage of the native linker features on
11369 # the platform it is being used on.
11370 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11373 # Commands to make compiler produce verbose output that lists
11374 # what "hidden" libraries, object files and flags are used when
11375 # linking a shared library.
11376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11384 # PORTME: fill in a description of your system's C++ link characteristics
11385 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11386 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11390 # FIXME: insert proper C++ library support
11394 if test "$host_cpu" = ia64; then
11395 # On IA64, the linker does run time linking by default, so we don't
11396 # have to do anything special.
11397 aix_use_runtimelinking=no
11398 exp_sym_flag='-Bexport'
11401 aix_use_runtimelinking=no
11403 # Test if we are trying to use run time linking or normal
11404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11405 # need to do runtime linking.
11406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11407 for ld_flag in $LDFLAGS; do
11410 aix_use_runtimelinking=yes
11418 exp_sym_flag='-bexport'
11419 no_entry_flag='-bnoentry'
11422 # When large executables or shared objects are built, AIX ld can
11423 # have problems creating the table of contents. If linking a library
11424 # or program results in "error TOC overflow" add -mminimal-toc to
11425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11428 archive_cmds_CXX=''
11429 hardcode_direct_CXX=yes
11430 hardcode_libdir_separator_CXX=':'
11431 link_all_deplibs_CXX=yes
11433 if test "$GXX" = yes; then
11434 case $host_os in aix4.[012]|aix4.[012].*)
11435 # We only want to do this on AIX 4.2 and lower, the check
11436 # below for broken collect2 doesn't work under 4.3+
11437 collect2name=`${CC} -print-prog-name=collect2`
11438 if test -f "$collect2name" && \
11439 strings "$collect2name" | grep resolve_lib_name >/dev/null
11441 # We have reworked collect2
11444 # We have old collect2
11445 hardcode_direct_CXX=unsupported
11446 # It fails to find uninstalled libraries when the uninstalled
11447 # path is not listed in the libpath. Setting hardcode_minus_L
11448 # to unsupported forces relinking
11449 hardcode_minus_L_CXX=yes
11450 hardcode_libdir_flag_spec_CXX='-L$libdir'
11451 hardcode_libdir_separator_CXX=
11455 shared_flag='-shared'
11456 if test "$aix_use_runtimelinking" = yes; then
11457 shared_flag="$shared_flag "'${wl}-G'
11461 if test "$host_cpu" = ia64; then
11462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11463 # chokes on -Wl,-G. The following line is correct:
11466 if test "$aix_use_runtimelinking" = yes; then
11467 shared_flag='${wl}-G'
11469 shared_flag='${wl}-bM:SRE'
11474 # It seems that -bexpall does not export symbols beginning with
11475 # underscore (_), so it is better to generate a list of symbols to export.
11476 always_export_symbols_CXX=yes
11477 if test "$aix_use_runtimelinking" = yes; then
11478 # Warning - without using the other runtime loading flags (-brtl),
11479 # -berok will link without error, but may produce a broken library.
11480 allow_undefined_flag_CXX='-berok'
11481 # Determine the default libpath from the value encoded in an empty executable.
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (ac_try="$ac_link"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_link") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_cxx_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest$ac_exeext &&
11514 $as_test_x conftest$ac_exeext; then
11516 lt_aix_libpath_sed='
11517 /Import File Strings/,/^$/ {
11523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11524 # Check for a 64-bit object if we didn't find anything.
11525 if test -z "$aix_libpath"; then
11526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11536 conftest$ac_exeext conftest.$ac_ext
11537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11541 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"
11543 if test "$host_cpu" = ia64; then
11544 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11545 allow_undefined_flag_CXX="-z nodefs"
11546 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"
11548 # Determine the default libpath from the value encoded in an empty executable.
11549 cat >conftest.$ac_ext <<_ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_cxx_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext &&
11581 $as_test_x conftest$ac_exeext; then
11583 lt_aix_libpath_sed='
11584 /Import File Strings/,/^$/ {
11590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11591 # Check for a 64-bit object if we didn't find anything.
11592 if test -z "$aix_libpath"; then
11593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11603 conftest$ac_exeext conftest.$ac_ext
11604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11607 # Warning - without using the other run time loading flags,
11608 # -berok will link without error, but may produce a broken library.
11609 no_undefined_flag_CXX=' ${wl}-bernotok'
11610 allow_undefined_flag_CXX=' ${wl}-berok'
11611 # Exported symbols can be pulled into shared objects from archives
11612 whole_archive_flag_spec_CXX='$convenience'
11613 archive_cmds_need_lc_CXX=yes
11614 # This is similar to how AIX traditionally builds its shared libraries.
11615 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'
11621 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11622 allow_undefined_flag_CXX=unsupported
11623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11624 # support --undefined. This deserves some investigation. FIXME
11625 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632 case $cc_basename in
11634 # FIXME: insert proper C++ library support
11640 cygwin* | mingw* | pw32*)
11641 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11642 # as there is no search path for DLLs.
11643 hardcode_libdir_flag_spec_CXX='-L$libdir'
11644 allow_undefined_flag_CXX=unsupported
11645 always_export_symbols_CXX=no
11646 enable_shared_with_static_runtimes_CXX=yes
11648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11649 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'
11650 # If the export-symbols file already is a .def file (1st line
11651 # is EXPORTS), use it as is; otherwise, prepend...
11652 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11653 cp $export_symbols $output_objdir/$soname.def;
11655 echo EXPORTS > $output_objdir/$soname.def;
11656 cat $export_symbols >> $output_objdir/$soname.def;
11658 $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'
11663 darwin* | rhapsody*)
11664 archive_cmds_need_lc_CXX=no
11665 hardcode_direct_CXX=no
11666 hardcode_automatic_CXX=yes
11667 hardcode_shlibpath_var_CXX=unsupported
11668 whole_archive_flag_spec_CXX=''
11669 link_all_deplibs_CXX=yes
11670 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11671 if test "$GXX" = yes ; then
11672 output_verbose_link_cmd='echo'
11673 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11674 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11675 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11676 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11677 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11678 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11679 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11682 case $cc_basename in
11684 output_verbose_link_cmd='echo'
11685 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11686 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11688 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11689 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}'
11699 case $cc_basename in
11701 # FIXME: insert proper C++ library support
11705 # Green Hills C++ Compiler
11706 # FIXME: insert proper C++ library support
11710 # FIXME: insert proper C++ library support
11716 # C++ shared libraries reported to be fairly broken before switch to ELF
11720 archive_cmds_need_lc_CXX=no
11722 freebsd* | dragonfly*)
11723 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11731 hardcode_libdir_separator_CXX=:
11732 export_dynamic_flag_spec_CXX='${wl}-E'
11733 hardcode_direct_CXX=yes
11734 hardcode_minus_L_CXX=yes # Not in the search PATH,
11735 # but as the default
11736 # location of the library.
11738 case $cc_basename in
11740 # FIXME: insert proper C++ library support
11744 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'
11745 # Commands to make compiler produce verbose output that lists
11746 # what "hidden" libraries, object files and flags are used when
11747 # linking a shared library.
11749 # There doesn't appear to be a way to prevent this compiler from
11750 # explicitly linking system object files so we need to strip them
11751 # from the output so that they don't get included in the library
11753 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'
11756 if test "$GXX" = yes; then
11757 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'
11759 # FIXME: insert proper C++ library support
11766 if test $with_gnu_ld = no; then
11767 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11768 hardcode_libdir_separator_CXX=:
11773 export_dynamic_flag_spec_CXX='${wl}-E'
11779 hardcode_direct_CXX=no
11780 hardcode_shlibpath_var_CXX=no
11783 hardcode_direct_CXX=yes
11784 hardcode_minus_L_CXX=yes # Not in the search PATH,
11785 # but as the default
11786 # location of the library.
11790 case $cc_basename in
11792 # FIXME: insert proper C++ library support
11798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11815 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'
11818 if test "$GXX" = yes; then
11819 if test $with_gnu_ld = no; then
11822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11828 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'
11833 # FIXME: insert proper C++ library support
11840 hardcode_direct_CXX=no
11841 hardcode_shlibpath_var_CXX=no
11842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11843 export_dynamic_flag_spec_CXX='${wl}-E'
11844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11845 # Instead, shared libraries are loaded at an image base (0x10000000 by
11846 # default) and relocated if they conflict, which is a slow very memory
11847 # consuming and fragmenting process. To avoid this, we pick a random,
11848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11850 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'
11851 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'
11854 case $cc_basename in
11857 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'
11859 # Archives containing C++ object files must be created using
11860 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11861 # necessary to make sure instantiated templates are included
11863 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11866 if test "$GXX" = yes; then
11867 if test "$with_gnu_ld" = no; then
11868 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'
11870 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'
11873 link_all_deplibs_CXX=yes
11876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11877 hardcode_libdir_separator_CXX=:
11879 linux* | k*bsd*-gnu)
11880 case $cc_basename in
11882 # Kuck and Associates, Inc. (KAI) C++ Compiler
11884 # KCC will only create a shared library if the output file
11885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11886 # to its proper name (with version) after linking.
11887 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'
11888 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'
11889 # Commands to make compiler produce verbose output that lists
11890 # what "hidden" libraries, object files and flags are used when
11891 # linking a shared library.
11893 # There doesn't appear to be a way to prevent this compiler from
11894 # explicitly linking system object files so we need to strip them
11895 # from the output so that they don't get included in the library
11897 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'
11899 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11902 # Archives containing C++ object files must be created using
11903 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11904 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11909 # version 8.0 and above of icpc choke on multiply defined symbols
11910 # if we add $predep_objects and $postdep_objects, however 7.1 and
11911 # earlier do not add the objects themselves.
11912 case `$CC -V 2>&1` in
11914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11915 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'
11917 *) # Version 8.0 or newer
11920 ia64*) tmp_idyn=' -i_dynamic';;
11922 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11923 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'
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11928 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11929 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11932 # Portland Group C++ compiler
11933 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11934 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'
11936 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11937 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11938 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'
11942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943 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'
11945 runpath_var=LD_RUN_PATH
11946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11947 hardcode_libdir_separator_CXX=:
11949 # Commands to make compiler produce verbose output that lists
11950 # what "hidden" libraries, object files and flags are used when
11951 # linking a shared library.
11953 # There doesn't appear to be a way to prevent this compiler from
11954 # explicitly linking system object files so we need to strip them
11955 # from the output so that they don't get included in the library
11957 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'
11960 case `$CC -V 2>&1 | sed 5q` in
11963 no_undefined_flag_CXX=' -zdefs'
11964 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11966 hardcode_libdir_flag_spec_CXX='-R$libdir'
11967 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11969 # Not sure whether something based on
11970 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11972 output_verbose_link_cmd='echo'
11974 # Archives containing C++ object files must be created using
11975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11976 # necessary to make sure instantiated templates are included
11978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11985 # FIXME: insert proper C++ library support
11989 # FIXME: insert proper C++ library support
11993 case $cc_basename in
11995 # FIXME: insert proper C++ library support
11999 # FIXME: insert proper C++ library support
12004 netbsd* | netbsdelf*-gnu)
12005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12006 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12008 hardcode_libdir_flag_spec_CXX='-R$libdir'
12009 hardcode_direct_CXX=yes
12010 hardcode_shlibpath_var_CXX=no
12012 # Workaround some broken pre-1.5 toolchains
12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12016 # C++ shared libraries are fairly broken
12020 if test -f /usr/libexec/ld.so; then
12021 hardcode_direct_CXX=yes
12022 hardcode_shlibpath_var_CXX=no
12023 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12026 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12027 export_dynamic_flag_spec_CXX='${wl}-E'
12028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12030 output_verbose_link_cmd='echo'
12036 case $cc_basename in
12038 # Kuck and Associates, Inc. (KAI) C++ Compiler
12040 # KCC will only create a shared library if the output file
12041 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042 # to its proper name (with version) after linking.
12043 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'
12045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12046 hardcode_libdir_separator_CXX=:
12048 # Archives containing C++ object files must be created using
12049 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12054 # Rational C++ 2.4.1
12055 # FIXME: insert proper C++ library support
12059 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12060 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'
12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12063 hardcode_libdir_separator_CXX=:
12065 # Commands to make compiler produce verbose output that lists
12066 # what "hidden" libraries, object files and flags are used when
12067 # linking a shared library.
12069 # There doesn't appear to be a way to prevent this compiler from
12070 # explicitly linking system object files so we need to strip them
12071 # from the output so that they don't get included in the library
12073 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'
12076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12078 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'
12080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12081 hardcode_libdir_separator_CXX=:
12083 # Commands to make compiler produce verbose output that lists
12084 # what "hidden" libraries, object files and flags are used when
12085 # linking a shared library.
12086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12089 # FIXME: insert proper C++ library support
12096 case $cc_basename in
12098 # Kuck and Associates, Inc. (KAI) C++ Compiler
12100 # KCC will only create a shared library if the output file
12101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12102 # to its proper name (with version) after linking.
12103 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'
12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12106 hardcode_libdir_separator_CXX=:
12108 # Archives containing C++ object files must be created using
12109 # the KAI C++ compiler.
12110 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12113 # Rational C++ 2.4.1
12114 # FIXME: insert proper C++ library support
12118 allow_undefined_flag_CXX=' -expect_unresolved \*'
12119 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'
12120 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12121 echo "-hidden">> $lib.exp~
12122 $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~
12125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12126 hardcode_libdir_separator_CXX=:
12128 # Commands to make compiler produce verbose output that lists
12129 # what "hidden" libraries, object files and flags are used when
12130 # linking a shared library.
12132 # There doesn't appear to be a way to prevent this compiler from
12133 # explicitly linking system object files so we need to strip them
12134 # from the output so that they don't get included in the library
12136 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'
12139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12140 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12141 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'
12143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12144 hardcode_libdir_separator_CXX=:
12146 # Commands to make compiler produce verbose output that lists
12147 # what "hidden" libraries, object files and flags are used when
12148 # linking a shared library.
12149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12152 # FIXME: insert proper C++ library support
12159 # FIXME: insert proper C++ library support
12163 case $cc_basename in
12166 # FIXME: insert proper C++ library support
12171 # FIXME: insert proper C++ library support
12175 # FIXME: insert proper C++ library support
12181 case $cc_basename in
12183 # Sun C++ 4.2, 5.x and Centerline C++
12184 archive_cmds_need_lc_CXX=yes
12185 no_undefined_flag_CXX=' -zdefs'
12186 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12187 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12188 $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'
12190 hardcode_libdir_flag_spec_CXX='-R$libdir'
12191 hardcode_shlibpath_var_CXX=no
12193 solaris2.[0-5] | solaris2.[0-5].*) ;;
12195 # The compiler driver will combine and reorder linker options,
12196 # but understands `-z linker_flag'.
12197 # Supported since Solaris 2.6 (maybe 2.5.1?)
12198 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12201 link_all_deplibs_CXX=yes
12203 output_verbose_link_cmd='echo'
12205 # Archives containing C++ object files must be created using
12206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12207 # necessary to make sure instantiated templates are included
12209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12212 # Green Hills C++ Compiler
12213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12215 # The C++ compiler must be used to create the archive.
12216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12219 # GNU C++ compiler with Solaris linker
12220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222 if $CC --version | grep -v '^2\.7' > /dev/null; then
12223 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12230 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12232 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12234 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12246 solaris2.[0-5] | solaris2.[0-5].*) ;;
12248 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12255 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12256 no_undefined_flag_CXX='${wl}-z,text'
12257 archive_cmds_need_lc_CXX=no
12258 hardcode_shlibpath_var_CXX=no
12259 runpath_var='LD_RUN_PATH'
12261 case $cc_basename in
12263 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12264 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12267 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12272 sysv5* | sco3.2v5* | sco5v6*)
12273 # Note: We can NOT use -z defs as we might desire, because we do not
12274 # link with -lc, and that would cause any symbols used from libc to
12275 # always be unresolved, which means just about no library would
12276 # ever link correctly. If we're not using GNU ld we use -z text
12277 # though, which does catch some bad symbols but isn't as heavy-handed
12279 # For security reasons, it is highly recommended that you always
12280 # use absolute paths for naming shared libraries, and exclude the
12281 # DT_RUNPATH tag from executables and libraries. But doing so
12282 # requires that you compile everything twice, which is a pain.
12283 # So that behaviour is only enabled if SCOABSPATH is set to a
12284 # non-empty value in the environment. Most likely only useful for
12285 # creating official distributions of packages.
12286 # This is a hack until libtool officially supports absolute path
12287 # names for shared libraries.
12288 no_undefined_flag_CXX='${wl}-z,text'
12289 allow_undefined_flag_CXX='${wl}-z,nodefs'
12290 archive_cmds_need_lc_CXX=no
12291 hardcode_shlibpath_var_CXX=no
12292 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12293 hardcode_libdir_separator_CXX=':'
12294 link_all_deplibs_CXX=yes
12295 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12296 runpath_var='LD_RUN_PATH'
12298 case $cc_basename in
12300 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12304 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12310 case $cc_basename in
12312 # NonStop-UX NCC 3.20
12313 # FIXME: insert proper C++ library support
12317 # FIXME: insert proper C++ library support
12323 # FIXME: insert proper C++ library support
12327 # FIXME: insert proper C++ library support
12331 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12332 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12333 test "$ld_shlibs_CXX" = no && can_build_shared=no
12338 cat > conftest.$ac_ext <<EOF
12342 Foo (void) { a = 0; }
12348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12349 (eval $ac_compile) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; then
12353 # Parse the compiler output and extract the necessary
12354 # objects, libraries and library flags.
12356 # Sentinel used to keep track of whether or not we are before
12357 # the conftest object file.
12358 pre_test_object_deps_done=no
12360 # The `*' in the case matches for architectures that use `case' in
12361 # $output_verbose_cmd can trigger glob expansion during the loop
12362 # eval without this substitution.
12363 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12365 for p in `eval $output_verbose_link_cmd`; do
12369 # Some compilers place space between "-{L,R}" and the path.
12370 # Remove the space.
12371 if test $p = "-L" \
12372 || test $p = "-R"; then
12379 if test "$pre_test_object_deps_done" = no; then
12382 # Internal compiler library paths should come after those
12383 # provided the user. The postdeps already come after the
12384 # user supplied libs so there is no need to process them.
12385 if test -z "$compiler_lib_search_path_CXX"; then
12386 compiler_lib_search_path_CXX="${prev}${p}"
12388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12391 # The "-l" case would never come before the object being
12392 # linked, so don't bother handling this case.
12395 if test -z "$postdeps_CXX"; then
12396 postdeps_CXX="${prev}${p}"
12398 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12404 # This assumes that the test object file only shows up
12405 # once in the compiler output.
12406 if test "$p" = "conftest.$objext"; then
12407 pre_test_object_deps_done=yes
12411 if test "$pre_test_object_deps_done" = no; then
12412 if test -z "$predep_objects_CXX"; then
12413 predep_objects_CXX="$p"
12415 predep_objects_CXX="$predep_objects_CXX $p"
12418 if test -z "$postdep_objects_CXX"; then
12419 postdep_objects_CXX="$p"
12421 postdep_objects_CXX="$postdep_objects_CXX $p"
12426 *) ;; # Ignore the rest.
12434 echo "libtool.m4: error: problem compiling CXX test program"
12437 $rm -f confest.$objext
12439 compiler_lib_search_dirs_CXX=
12440 if test -n "$compiler_lib_search_path_CXX"; then
12441 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12444 # PORTME: override above test on systems where it is broken
12447 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12448 # hack all around it, let's just trust "g++" to DTRT.
12449 predep_objects_CXX=
12450 postdep_objects_CXX=
12455 case `$CC -V 2>&1 | sed 5q` in
12459 # The more standards-conforming stlport4 library is
12460 # incompatible with the Cstd library. Avoid specifying
12461 # it if it's in CXXFLAGS. Ignore libCrun as
12462 # -library=stlport4 depends on it.
12463 case " $CXX $CXXFLAGS " in
12464 *" -library=stlport4 "*)
12465 solaris_use_stlport4=yes
12468 if test "$solaris_use_stlport4" != yes; then
12469 postdeps_CXX='-library=Cstd -library=Crun'
12476 case $cc_basename in
12478 # The more standards-conforming stlport4 library is
12479 # incompatible with the Cstd library. Avoid specifying
12480 # it if it's in CXXFLAGS. Ignore libCrun as
12481 # -library=stlport4 depends on it.
12482 case " $CXX $CXXFLAGS " in
12483 *" -library=stlport4 "*)
12484 solaris_use_stlport4=yes
12488 # Adding this requires a known-good setup of shared libraries for
12489 # Sun compiler versions before 5.6, else PIC objects from an old
12490 # archive will be linked into the output, leading to subtle bugs.
12491 if test "$solaris_use_stlport4" != yes; then
12492 postdeps_CXX='-library=Cstd -library=Crun'
12499 case " $postdeps_CXX " in
12500 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12503 lt_prog_compiler_wl_CXX=
12504 lt_prog_compiler_pic_CXX=
12505 lt_prog_compiler_static_CXX=
12507 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12510 # C++ specific cases for pic, static, wl, etc.
12511 if test "$GXX" = yes; then
12512 lt_prog_compiler_wl_CXX='-Wl,'
12513 lt_prog_compiler_static_CXX='-static'
12517 # All AIX code is PIC.
12518 if test "$host_cpu" = ia64; then
12519 # AIX 5 now supports IA64 processor
12520 lt_prog_compiler_static_CXX='-Bstatic'
12524 # FIXME: we need at least 68020 code to build shared libraries, but
12525 # adding the `-m68020' flag to GCC prevents building anything better,
12527 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12530 # PIC is the default for these OSes.
12532 mingw* | cygwin* | os2* | pw32*)
12533 # This hack is so that the source file can tell whether it is being
12534 # built for inclusion in a dll (and should export symbols for example).
12535 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12536 # (--disable-auto-import) libraries
12537 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12539 darwin* | rhapsody*)
12540 # PIC is the default on this platform
12541 # Common symbols not allowed in MH_DYLIB files
12542 lt_prog_compiler_pic_CXX='-fno-common'
12545 # DJGPP does not support shared libraries at all
12546 lt_prog_compiler_pic_CXX=
12549 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12550 # Instead, we relocate shared libraries at runtime.
12553 if test -d /usr/nec; then
12554 lt_prog_compiler_pic_CXX=-Kconform_pic
12558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12559 # not for PA HP-UX.
12564 lt_prog_compiler_pic_CXX='-fPIC'
12569 lt_prog_compiler_pic_CXX='-fPIC'
12575 # All AIX code is PIC.
12576 if test "$host_cpu" = ia64; then
12577 # AIX 5 now supports IA64 processor
12578 lt_prog_compiler_static_CXX='-Bstatic'
12580 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12584 case $cc_basename in
12586 # Green Hills C++ Compiler
12587 # _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"
12592 # PIC is the default on this platform
12593 # Common symbols not allowed in MH_DYLIB files
12594 case $cc_basename in
12596 lt_prog_compiler_pic_CXX='-qnocommon'
12597 lt_prog_compiler_wl_CXX='-Wl,'
12602 case $cc_basename in
12604 lt_prog_compiler_pic_CXX='-KPIC'
12607 # Green Hills C++ Compiler
12608 lt_prog_compiler_pic_CXX='-pic'
12614 freebsd* | dragonfly*)
12615 # FreeBSD uses GNU C++
12617 hpux9* | hpux10* | hpux11*)
12618 case $cc_basename in
12620 lt_prog_compiler_wl_CXX='-Wl,'
12621 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12622 if test "$host_cpu" != ia64; then
12623 lt_prog_compiler_pic_CXX='+Z'
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12634 lt_prog_compiler_pic_CXX='+Z'
12643 # This is c89, which is MS Visual C++ (no shared libs)
12644 # Anyone wants to do a port?
12646 irix5* | irix6* | nonstopux*)
12647 case $cc_basename in
12649 lt_prog_compiler_wl_CXX='-Wl,'
12650 lt_prog_compiler_static_CXX='-non_shared'
12651 # CC pic flag -KPIC is the default.
12657 linux* | k*bsd*-gnu)
12658 case $cc_basename in
12661 lt_prog_compiler_wl_CXX='--backend -Wl,'
12662 lt_prog_compiler_pic_CXX='-fPIC'
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_pic_CXX='-KPIC'
12668 lt_prog_compiler_static_CXX='-static'
12671 # Portland Group C++ compiler.
12672 lt_prog_compiler_wl_CXX='-Wl,'
12673 lt_prog_compiler_pic_CXX='-fpic'
12674 lt_prog_compiler_static_CXX='-Bstatic'
12678 # Make sure the PIC flag is empty. It appears that all Alpha
12679 # Linux and Compaq Tru64 Unix objects are PIC.
12680 lt_prog_compiler_pic_CXX=
12681 lt_prog_compiler_static_CXX='-non_shared'
12684 case `$CC -V 2>&1 | sed 5q` in
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-Bstatic'
12689 lt_prog_compiler_wl_CXX='-Qoption ld '
12700 case $cc_basename in
12702 lt_prog_compiler_pic_CXX='-W c,exportall'
12708 netbsd* | netbsdelf*-gnu)
12710 osf3* | osf4* | osf5*)
12711 case $cc_basename in
12713 lt_prog_compiler_wl_CXX='--backend -Wl,'
12716 # Rational C++ 2.4.1
12717 lt_prog_compiler_pic_CXX='-pic'
12720 # Digital/Compaq C++
12721 lt_prog_compiler_wl_CXX='-Wl,'
12722 # Make sure the PIC flag is empty. It appears that all Alpha
12723 # Linux and Compaq Tru64 Unix objects are PIC.
12724 lt_prog_compiler_pic_CXX=
12725 lt_prog_compiler_static_CXX='-non_shared'
12734 case $cc_basename in
12736 # Sun C++ 4.2, 5.x and Centerline C++
12737 lt_prog_compiler_pic_CXX='-KPIC'
12738 lt_prog_compiler_static_CXX='-Bstatic'
12739 lt_prog_compiler_wl_CXX='-Qoption ld '
12742 # Green Hills C++ Compiler
12743 lt_prog_compiler_pic_CXX='-PIC'
12750 case $cc_basename in
12753 lt_prog_compiler_pic_CXX='-pic'
12754 lt_prog_compiler_static_CXX='-Bstatic'
12758 lt_prog_compiler_pic_CXX='-pic'
12765 case $cc_basename in
12767 # NonStop-UX NCC 3.20
12768 lt_prog_compiler_pic_CXX='-KPIC'
12774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12775 case $cc_basename in
12777 lt_prog_compiler_wl_CXX='-Wl,'
12778 lt_prog_compiler_pic_CXX='-KPIC'
12779 lt_prog_compiler_static_CXX='-Bstatic'
12786 lt_prog_compiler_can_build_shared_CXX=no
12791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12795 # Check to make sure the PIC flag actually works.
12797 if test -n "$lt_prog_compiler_pic_CXX"; then
12799 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12800 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12801 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 lt_cv_prog_compiler_pic_works_CXX=no
12805 ac_outfile=conftest.$ac_objext
12806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12807 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12808 # Insert the option either (1) after the last *FLAGS variable, or
12809 # (2) before a word containing "conftest.", or (3) at the end.
12810 # Note that $ac_compile itself does not contain backslashes and begins
12811 # with a dollar sign (not a hyphen), so the echo should work correctly.
12812 # The option is referenced via a variable to avoid confusing sed.
12813 lt_compile=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
12817 (eval echo "\"\$as_me:12817: $lt_compile\"" >&5)
12818 (eval "$lt_compile" 2>conftest.err)
12820 cat conftest.err >&5
12821 echo "$as_me:12821: \$? = $ac_status" >&5
12822 if (exit $ac_status) && test -s "$ac_outfile"; then
12823 # The compiler can only warn and ignore the option if not recognized
12824 # So say no if there are warnings other than the usual output.
12825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12828 lt_cv_prog_compiler_pic_works_CXX=yes
12834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12835 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12837 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12838 case $lt_prog_compiler_pic_CXX in
12840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12843 lt_prog_compiler_pic_CXX=
12844 lt_prog_compiler_can_build_shared_CXX=no
12849 # For platforms which do not support PIC, -DPIC is meaningless:
12851 lt_prog_compiler_pic_CXX=
12854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12859 # Check to make sure the static flag actually works.
12861 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12862 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12863 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12864 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 lt_cv_prog_compiler_static_works_CXX=no
12868 save_LDFLAGS="$LDFLAGS"
12869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12870 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12872 # The linker can only warn and ignore the option if not recognized
12873 # So say no if there are warnings
12874 if test -s conftest.err; then
12875 # Append any errors to the config.log.
12876 cat conftest.err 1>&5
12877 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12879 if diff conftest.exp conftest.er2 >/dev/null; then
12880 lt_cv_prog_compiler_static_works_CXX=yes
12883 lt_cv_prog_compiler_static_works_CXX=yes
12887 LDFLAGS="$save_LDFLAGS"
12890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12891 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12893 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12896 lt_prog_compiler_static_CXX=
12900 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12902 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 lt_cv_prog_compiler_c_o_CXX=no
12906 $rm -r conftest 2>/dev/null
12910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912 lt_compiler_flag="-o out/conftest2.$ac_objext"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 lt_compile=`echo "$ac_compile" | $SED \
12918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920 -e 's:$: $lt_compiler_flag:'`
12921 (eval echo "\"\$as_me:12921: $lt_compile\"" >&5)
12922 (eval "$lt_compile" 2>out/conftest.err)
12924 cat out/conftest.err >&5
12925 echo "$as_me:12925: \$? = $ac_status" >&5
12926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings
12930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_c_o_CXX=yes
12938 # SGI C++ compiler will create directory out/ii_files/ for
12939 # template instantiation
12940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12941 $rm out/* && rmdir out
12947 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12948 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12951 hard_links="nottested"
12952 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12953 # do not overwrite the value of need_locks provided by the user
12954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12960 ln conftest.a conftest.b 2>&5 || hard_links=no
12961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12962 { echo "$as_me:$LINENO: result: $hard_links" >&5
12963 echo "${ECHO_T}$hard_links" >&6; }
12964 if test "$hard_links" = no; then
12965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12973 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12974 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12979 # If we're using GNU nm, then we don't want the "-C" option.
12980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12982 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'
12984 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'
12988 export_symbols_cmds_CXX="$ltdll_cmds"
12991 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'
12993 linux* | k*bsd*-gnu)
12994 link_all_deplibs_CXX=no
12997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13000 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13002 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13003 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13004 test "$ld_shlibs_CXX" = no && can_build_shared=no
13007 # Do we need to explicitly link libc?
13009 case "x$archive_cmds_need_lc_CXX" in
13011 # Assume -lc should be added
13012 archive_cmds_need_lc_CXX=yes
13014 if test "$enable_shared" = yes && test "$GCC" = yes; then
13015 case $archive_cmds_CXX in
13017 # FIXME: we may have to deal with multi-command sequences.
13020 # Test whether the compiler implicitly links with -lc since on some
13021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13022 # to ld, don't add -lc before -lgcc.
13023 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13024 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029 (eval $ac_compile) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } 2>conftest.err; then
13035 libobjs=conftest.$ac_objext
13037 wl=$lt_prog_compiler_wl_CXX
13038 pic_flag=$lt_prog_compiler_pic_CXX
13044 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13045 allow_undefined_flag_CXX=
13046 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13047 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }
13052 archive_cmds_need_lc_CXX=no
13054 archive_cmds_need_lc_CXX=yes
13056 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13058 cat conftest.err 1>&5
13061 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13062 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13069 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13071 library_names_spec=
13072 libname_spec='lib$name'
13076 postuninstall_cmds=
13080 shlibpath_overrides_runpath=unknown
13082 dynamic_linker="$host_os ld.so"
13083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13085 need_lib_prefix=unknown
13086 hardcode_into_libs=no
13088 # when you set need_version to no, make sure it does not cause -set_version
13089 # flags to be left without arguments
13090 need_version=unknown
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13096 shlibpath_var=LIBPATH
13098 # AIX 3 has no versioning support, so we append a major version to the name.
13099 soname_spec='${libname}${release}${shared_ext}$major'
13106 hardcode_into_libs=yes
13107 if test "$host_cpu" = ia64; then
13108 # AIX 5 supports IA64
13109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13110 shlibpath_var=LD_LIBRARY_PATH
13112 # With GCC up to 2.95.x, collect2 would create an import file
13113 # for dependence libraries. The import file would start with
13114 # the line `#! .'. This would cause the generated library to
13115 # depend on `.', always an invalid library. This was fixed in
13116 # development snapshots of GCC prior to 3.0.
13118 aix4 | aix4.[01] | aix4.[01].*)
13119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13124 can_build_shared=no
13128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13129 # soname into executable. Probably we can add versioning support to
13130 # collect2, so additional links can be useful in future.
13131 if test "$aix_use_runtimelinking" = yes; then
13132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13133 # instead of lib<name>.a to let people know that these are not
13134 # typical AIX shared libraries.
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137 # We preserve .a as extension for shared libraries through AIX4.2
13138 # and later when we are not doing run time linking.
13139 library_names_spec='${libname}${release}.a $libname.a'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LIBPATH
13147 library_names_spec='$libname.ixlibrary $libname.a'
13148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13149 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'
13153 library_names_spec='${libname}${shared_ext}'
13154 dynamic_linker="$host_os ld.so"
13155 shlibpath_var=LIBRARY_PATH
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13167 # the default ld.so.conf also contains /usr/contrib/lib and
13168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13169 # libtool to hard-code these into programs
13172 cygwin* | mingw* | pw32*)
13173 version_type=windows
13178 case $GCC,$host_os in
13179 yes,cygwin* | yes,mingw* | yes,pw32*)
13180 library_names_spec='$libname.dll.a'
13181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13182 postinstall_cmds='base_file=`basename \${file}`~
13183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13184 dldir=$destdir/`dirname \$dlpath`~
13185 test -d \$dldir || mkdir -p \$dldir~
13186 $install_prog $dir/$dlname \$dldir/$dlname~
13187 chmod a+x \$dldir/$dlname'
13188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13189 dlpath=$dir/\$dldll~
13191 shlibpath_overrides_runpath=yes
13195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13200 # MinGW DLLs use traditional 'lib' prefix
13201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13204 # It is most probably a Windows format PATH printed by
13205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13206 # path with ; separators, and with drive letters. We can handle the
13207 # drive letters (cygwin fileutils understands them), so leave them,
13208 # especially as we might pass files found there to a mingw objdump,
13209 # which wouldn't understand a cygwinified path. Ahh.
13210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13216 # pw32 DLLs use 'pw' prefix rather than 'lib'
13217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13226 dynamic_linker='Win32 ld.exe'
13227 # FIXME: first we should search . and the directory the executable is in
13231 darwin* | rhapsody*)
13232 dynamic_linker="$host_os dyld"
13233 version_type=darwin
13236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13237 soname_spec='${libname}${release}${major}$shared_ext'
13238 shlibpath_overrides_runpath=yes
13239 shlibpath_var=DYLD_LIBRARY_PATH
13240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 shlibpath_var=LD_LIBRARY_PATH
13258 freebsd* | dragonfly*)
13259 # DragonFly does not have aout. When/if they implement a new
13260 # versioning mechanism, adjust this.
13261 if test -x /usr/bin/objformat; then
13262 objformat=`/usr/bin/objformat`
13265 freebsd[123]*) objformat=aout ;;
13266 *) objformat=elf ;;
13269 version_type=freebsd-$objformat
13270 case $version_type in
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13281 shlibpath_var=LD_LIBRARY_PATH
13284 shlibpath_overrides_runpath=yes
13286 freebsd3.[01]* | freebsdelf3.[01]*)
13287 shlibpath_overrides_runpath=yes
13288 hardcode_into_libs=yes
13290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13295 *) # from 4.6 on, and DragonFly
13296 shlibpath_overrides_runpath=yes
13297 hardcode_into_libs=yes
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 shlibpath_var=LD_LIBRARY_PATH
13309 hardcode_into_libs=yes
13312 hpux9* | hpux10* | hpux11*)
13313 # Give a soname corresponding to the major version so that dld.sl refuses to
13314 # link against other versions.
13321 hardcode_into_libs=yes
13322 dynamic_linker="$host_os dld.so"
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 if test "X$HPUX_IA64_MODE" = X32; then
13328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13336 hardcode_into_libs=yes
13337 dynamic_linker="$host_os dld.sl"
13338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13347 dynamic_linker="$host_os dld.sl"
13348 shlibpath_var=SHLIB_PATH
13349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13355 postinstall_cmds='chmod 555 $lib'
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=no
13367 hardcode_into_libs=yes
13370 irix5* | irix6* | nonstopux*)
13372 nonstopux*) version_type=nonstopux ;;
13374 if test "$lt_cv_prog_gnu_ld" = yes; then
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13385 irix5* | nonstopux*)
13386 libsuff= shlibsuff=
13389 case $LD in # libtool.m4 will add one of these switches to LD
13390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13391 libsuff= shlibsuff= libmagic=32-bit;;
13392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13393 libsuff=32 shlibsuff=N32 libmagic=N32;;
13394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13396 *) libsuff= shlibsuff= libmagic=never-match;;
13400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13401 shlibpath_overrides_runpath=no
13402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13404 hardcode_into_libs=yes
13407 # No shared lib support for Linux oldld, aout, or coff.
13408 linux*oldld* | linux*aout* | linux*coff*)
13412 # This must be Linux ELF.
13413 linux* | k*bsd*-gnu)
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 # This implies no fast_install, which is unacceptable.
13423 # Some rework will be needed to allow for fast_install
13424 # before this can be enabled.
13425 hardcode_into_libs=yes
13427 # Append ld.so.conf contents to the search path
13428 if test -f /etc/ld.so.conf; then
13429 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13433 # We used to test for /lib/ld.so.1 and disable shared libraries on
13434 # powerpc, because MkLinux only supported shared libraries with the
13435 # GNU dynamic linker. Since this was broken with cross compilers,
13436 # most powerpc-linux boxes support dynamic linking these days and
13437 # people can always --disable-shared, the test was removed, and we
13438 # assume the GNU/Linux dynamic linker is in use.
13439 dynamic_linker='GNU/Linux ld.so'
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13451 dynamic_linker='NetBSD ld.elf_so'
13458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13461 dynamic_linker='NetBSD (a.out) ld.so'
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 dynamic_linker='NetBSD ld.elf_so'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 shlibpath_overrides_runpath=yes
13491 sys_lib_dlsearch_path_spec="/usr/lib"
13493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13495 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13496 *) need_version=no ;;
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13503 openbsd2.[89] | openbsd2.[89].*)
13504 shlibpath_overrides_runpath=no
13507 shlibpath_overrides_runpath=yes
13511 shlibpath_overrides_runpath=yes
13516 libname_spec='$name'
13519 library_names_spec='$libname${shared_ext} $libname.a'
13520 dynamic_linker='OS/2 ld.exe'
13521 shlibpath_var=LIBPATH
13524 osf3* | osf4* | osf5*)
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 soname_spec='${libname}${release}${shared_ext}$major'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=yes
13547 hardcode_into_libs=yes
13548 # ldd complains unless libraries are executable
13549 postinstall_cmds='chmod +x $lib'
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=yes
13558 if test "$with_gnu_ld" = yes; then
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 case $host_vendor in
13571 shlibpath_overrides_runpath=no
13573 export_dynamic_flag_spec='${wl}-Blargedynsym'
13574 runpath_var=LD_RUN_PATH
13582 shlibpath_overrides_runpath=no
13583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13589 if test -d /usr/nec ;then
13591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13592 soname_spec='$libname${shared_ext}.$major'
13593 shlibpath_var=LD_LIBRARY_PATH
13597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13598 version_type=freebsd-elf
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 hardcode_into_libs=yes
13605 if test "$with_gnu_ld" = yes; then
13606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13607 shlibpath_overrides_runpath=no
13609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13610 shlibpath_overrides_runpath=yes
13613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13617 sys_lib_dlsearch_path_spec='/usr/lib'
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13631 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13632 echo "${ECHO_T}$dynamic_linker" >&6; }
13633 test "$dynamic_linker" = no && can_build_shared=no
13635 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13641 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13642 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13650 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13651 if test "$GCC" = yes; then
13652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13655 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13656 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13657 hardcode_action_CXX=
13658 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13659 test -n "$runpath_var_CXX" || \
13660 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13662 # We can hardcode non-existant directories.
13663 if test "$hardcode_direct_CXX" != no &&
13664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13665 # have to relink, otherwise we might link with an installed library
13666 # when we should be linking with a yet-to-be-installed one
13667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13668 test "$hardcode_minus_L_CXX" != no; then
13669 # Linking always hardcodes the temporary library directory.
13670 hardcode_action_CXX=relink
13672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13673 hardcode_action_CXX=immediate
13676 # We cannot hardcode anything, or else we can only hardcode existing
13678 hardcode_action_CXX=unsupported
13680 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13681 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13683 if test "$hardcode_action_CXX" = relink; then
13684 # Fast installation is not supported
13685 enable_fast_install=no
13686 elif test "$shlibpath_overrides_runpath" = yes ||
13687 test "$enable_shared" = no; then
13688 # Fast installation is not necessary
13689 enable_fast_install=needless
13693 # The else clause should only fire when bootstrapping the
13694 # libtool distribution, otherwise you forgot to ship ltmain.sh
13695 # with your package, and you will get complaints that there are
13696 # no rules to generate ltmain.sh.
13697 if test -f "$ltmain"; then
13698 # See if we are running on zsh, and set the options which allow our commands through
13699 # without removal of \ escapes.
13700 if test -n "${ZSH_VERSION+set}" ; then
13701 setopt NO_GLOB_SUBST
13703 # Now quote all the things that may contain metacharacters while being
13704 # careful not to overquote the AC_SUBSTed values. We take copies of the
13705 # variables and quote the copies for generation of the libtool script.
13706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710 deplibs_check_method reload_flag reload_cmds need_locks \
13711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712 lt_cv_sys_global_symbol_to_c_name_address \
13713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714 old_postinstall_cmds old_postuninstall_cmds \
13718 lt_prog_compiler_wl_CXX \
13719 lt_prog_compiler_pic_CXX \
13720 lt_prog_compiler_static_CXX \
13721 lt_prog_compiler_no_builtin_flag_CXX \
13722 export_dynamic_flag_spec_CXX \
13723 thread_safe_flag_spec_CXX \
13724 whole_archive_flag_spec_CXX \
13725 enable_shared_with_static_runtimes_CXX \
13726 old_archive_cmds_CXX \
13727 old_archive_from_new_cmds_CXX \
13728 predep_objects_CXX \
13729 postdep_objects_CXX \
13732 compiler_lib_search_path_CXX \
13733 compiler_lib_search_dirs_CXX \
13735 archive_expsym_cmds_CXX \
13736 postinstall_cmds_CXX \
13737 postuninstall_cmds_CXX \
13738 old_archive_from_expsyms_cmds_CXX \
13739 allow_undefined_flag_CXX \
13740 no_undefined_flag_CXX \
13741 export_symbols_cmds_CXX \
13742 hardcode_libdir_flag_spec_CXX \
13743 hardcode_libdir_flag_spec_ld_CXX \
13744 hardcode_libdir_separator_CXX \
13745 hardcode_automatic_CXX \
13747 module_expsym_cmds_CXX \
13748 lt_cv_prog_compiler_c_o_CXX \
13749 fix_srcfile_path_CXX \
13750 exclude_expsyms_CXX \
13751 include_expsyms_CXX; do
13754 old_archive_cmds_CXX | \
13755 old_archive_from_new_cmds_CXX | \
13756 archive_cmds_CXX | \
13757 archive_expsym_cmds_CXX | \
13758 module_cmds_CXX | \
13759 module_expsym_cmds_CXX | \
13760 old_archive_from_expsyms_cmds_CXX | \
13761 export_symbols_cmds_CXX | \
13762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13763 postinstall_cmds | postuninstall_cmds | \
13764 old_postinstall_cmds | old_postuninstall_cmds | \
13765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13766 # Double-quote double-evaled strings.
13767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13776 *'\$0 --fallback-echo"')
13777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13783 cat <<__EOF__ >> "$cfgfile"
13784 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13788 # Shell to use when invoking shell scripts.
13791 # Whether or not to build shared libraries.
13792 build_libtool_libs=$enable_shared
13794 # Whether or not to build static libraries.
13795 build_old_libs=$enable_static
13797 # Whether or not to add -lc for building shared libraries.
13798 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13800 # Whether or not to disallow shared libs when runtime libs are static
13801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13803 # Whether or not to optimize for fast installation.
13804 fast_install=$enable_fast_install
13807 host_alias=$host_alias
13811 # The build system.
13812 build_alias=$build_alias
13816 # An echo program that does not interpret backslashes.
13821 AR_FLAGS=$lt_AR_FLAGS
13826 # LTCC compiler flags.
13827 LTCFLAGS=$lt_LTCFLAGS
13829 # A language-specific compiler.
13830 CC=$lt_compiler_CXX
13832 # Is the compiler the GNU C compiler?
13838 # The linker used to build libraries.
13841 # Whether we need hard or soft links.
13844 # A BSD-compatible nm program.
13847 # A symbol stripping program
13850 # Used to examine libraries when file_magic_cmd begins "file"
13851 MAGIC_CMD=$MAGIC_CMD
13853 # Used on cygwin: DLL creation program.
13856 # Used on cygwin: object dumper.
13859 # Used on cygwin: assembler.
13862 # The name of the directory that contains temporary libtool files.
13865 # How to create reloadable object files.
13866 reload_flag=$lt_reload_flag
13867 reload_cmds=$lt_reload_cmds
13869 # How to pass a linker flag through the compiler.
13870 wl=$lt_lt_prog_compiler_wl_CXX
13872 # Object file suffix (normally "o").
13873 objext="$ac_objext"
13875 # Old archive suffix (normally "a").
13878 # Shared library suffix (normally ".so").
13879 shrext_cmds='$shrext_cmds'
13881 # Executable file suffix (normally "").
13884 # Additional compiler flags for building library objects.
13885 pic_flag=$lt_lt_prog_compiler_pic_CXX
13888 # What is the maximum length of a command?
13889 max_cmd_len=$lt_cv_sys_max_cmd_len
13891 # Does compiler simultaneously support -c and -o options?
13892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13894 # Must we lock files when doing compilation?
13895 need_locks=$lt_need_locks
13897 # Do we need the lib prefix for modules?
13898 need_lib_prefix=$need_lib_prefix
13900 # Do we need a version for libraries?
13901 need_version=$need_version
13903 # Whether dlopen is supported.
13904 dlopen_support=$enable_dlopen
13906 # Whether dlopen of programs is supported.
13907 dlopen_self=$enable_dlopen_self
13909 # Whether dlopen of statically linked programs is supported.
13910 dlopen_self_static=$enable_dlopen_self_static
13912 # Compiler flag to prevent dynamic linking.
13913 link_static_flag=$lt_lt_prog_compiler_static_CXX
13915 # Compiler flag to turn off builtin functions.
13916 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13918 # Compiler flag to allow reflexive dlopens.
13919 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13921 # Compiler flag to generate shared objects directly from archives.
13922 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13924 # Compiler flag to generate thread-safe objects.
13925 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13927 # Library versioning type.
13928 version_type=$version_type
13930 # Format of library name prefix.
13931 libname_spec=$lt_libname_spec
13933 # List of archive names. First name is the real one, the rest are links.
13934 # The last name is the one that the linker finds with -lNAME.
13935 library_names_spec=$lt_library_names_spec
13937 # The coded name of the library, if different from the real name.
13938 soname_spec=$lt_soname_spec
13940 # Commands used to build and install an old-style archive.
13942 old_archive_cmds=$lt_old_archive_cmds_CXX
13943 old_postinstall_cmds=$lt_old_postinstall_cmds
13944 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13946 # Create an old-style archive from a shared archive.
13947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13949 # Create a temporary old-style archive to link instead of a shared archive.
13950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13952 # Commands used to build and install a shared archive.
13953 archive_cmds=$lt_archive_cmds_CXX
13954 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13955 postinstall_cmds=$lt_postinstall_cmds
13956 postuninstall_cmds=$lt_postuninstall_cmds
13958 # Commands used to build a loadable module (assumed same as above if empty)
13959 module_cmds=$lt_module_cmds_CXX
13960 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13962 # Commands to strip libraries.
13963 old_striplib=$lt_old_striplib
13964 striplib=$lt_striplib
13966 # Dependencies to place before the objects being linked to create a
13968 predep_objects=$lt_predep_objects_CXX
13970 # Dependencies to place after the objects being linked to create a
13972 postdep_objects=$lt_postdep_objects_CXX
13974 # Dependencies to place before the objects being linked to create a
13976 predeps=$lt_predeps_CXX
13978 # Dependencies to place after the objects being linked to create a
13980 postdeps=$lt_postdeps_CXX
13982 # The directories searched by this compiler when creating a shared
13984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13986 # The library search path used internally by the compiler when linking
13987 # a shared library.
13988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13990 # Method to check whether dependent libraries are shared objects.
13991 deplibs_check_method=$lt_deplibs_check_method
13993 # Command to use when deplibs_check_method == file_magic.
13994 file_magic_cmd=$lt_file_magic_cmd
13996 # Flag that allows shared libraries with undefined symbols to be built.
13997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13999 # Flag that forces no undefined symbols.
14000 no_undefined_flag=$lt_no_undefined_flag_CXX
14002 # Commands used to finish a libtool library installation in a directory.
14003 finish_cmds=$lt_finish_cmds
14005 # Same as above, but a single script fragment to be evaled but not shown.
14006 finish_eval=$lt_finish_eval
14008 # Take the output of nm and produce a listing of raw symbols and C names.
14009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14011 # Transform the output of nm in a proper C declaration
14012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14014 # Transform the output of nm in a C name address pair
14015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14017 # This is the shared library runtime path variable.
14018 runpath_var=$runpath_var
14020 # This is the shared library path variable.
14021 shlibpath_var=$shlibpath_var
14023 # Is shlibpath searched before the hard-coded library search path?
14024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14026 # How to hardcode a shared library path into an executable.
14027 hardcode_action=$hardcode_action_CXX
14029 # Whether we should hardcode library paths into libraries.
14030 hardcode_into_libs=$hardcode_into_libs
14032 # Flag to hardcode \$libdir into a binary during linking.
14033 # This must work even if \$libdir does not exist.
14034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14036 # If ld is used when linking, flag to hardcode \$libdir into
14037 # a binary during linking. This must work even if \$libdir does
14039 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14041 # Whether we need a single -rpath flag with a separated argument.
14042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14044 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14045 # resulting binary.
14046 hardcode_direct=$hardcode_direct_CXX
14048 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14049 # resulting binary.
14050 hardcode_minus_L=$hardcode_minus_L_CXX
14052 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14053 # the resulting binary.
14054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14056 # Set to yes if building a shared library automatically hardcodes DIR into the library
14057 # and all subsequent libraries and executables linked against it.
14058 hardcode_automatic=$hardcode_automatic_CXX
14060 # Variables whose values should be saved in libtool wrapper scripts and
14061 # restored at relink time.
14062 variables_saved_for_relink="$variables_saved_for_relink"
14064 # Whether libtool must link a program against all its dependency libraries.
14065 link_all_deplibs=$link_all_deplibs_CXX
14067 # Compile-time system search path for libraries
14068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14070 # Run-time system search path for libraries
14071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14073 # Fix the shell variable \$srcfile for the compiler.
14074 fix_srcfile_path=$lt_fix_srcfile_path
14076 # Set to yes if exported symbols are required.
14077 always_export_symbols=$always_export_symbols_CXX
14079 # The commands to list exported symbols.
14080 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14082 # The commands to extract the exported symbol list from a shared archive.
14083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14085 # Symbols that should not be listed in the preloaded symbols.
14086 exclude_expsyms=$lt_exclude_expsyms_CXX
14088 # Symbols that must always be exported.
14089 include_expsyms=$lt_include_expsyms_CXX
14091 # ### END LIBTOOL TAG CONFIG: $tagname
14097 # If there is no Makefile yet, we rely on a make rule to execute
14098 # `config.status --recheck' to rerun these tests and create the
14099 # libtool script then.
14100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14101 if test -f "$ltmain_in"; then
14102 test -f Makefile && make "$ltmain"
14108 ac_cpp='$CPP $CPPFLAGS'
14109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117 with_gnu_ldcxx=$with_gnu_ld
14118 with_gnu_ld=$lt_save_with_gnu_ld
14119 lt_cv_path_LDCXX=$lt_cv_path_LD
14120 lt_cv_path_LD=$lt_save_path_LD
14121 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14122 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14130 if test -n "$F77" && test "X$F77" != "Xno"; then
14133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14138 archive_cmds_need_lc_F77=no
14139 allow_undefined_flag_F77=
14140 always_export_symbols_F77=no
14141 archive_expsym_cmds_F77=
14142 export_dynamic_flag_spec_F77=
14143 hardcode_direct_F77=no
14144 hardcode_libdir_flag_spec_F77=
14145 hardcode_libdir_flag_spec_ld_F77=
14146 hardcode_libdir_separator_F77=
14147 hardcode_minus_L_F77=no
14148 hardcode_automatic_F77=no
14150 module_expsym_cmds_F77=
14151 link_all_deplibs_F77=unknown
14152 old_archive_cmds_F77=$old_archive_cmds
14153 no_undefined_flag_F77=
14154 whole_archive_flag_spec_F77=
14155 enable_shared_with_static_runtimes_F77=no
14157 # Source file extension for f77 test sources.
14160 # Object file extension for compiled f77 test sources.
14164 # Code to be used in simple compile tests
14165 lt_simple_compile_test_code="\
14171 # Code to be used in simple link tests
14172 lt_simple_link_test_code="\
14177 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14179 # If no C compiler was specified, use CC.
14182 # If no C compiler flags were specified, use CFLAGS.
14183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14185 # Allow CC to be a program name with arguments.
14189 # save warnings/boilerplate of simple test code
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_compiler_boilerplate=`cat conftest.err`
14196 ac_outfile=conftest.$ac_objext
14197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199 _lt_linker_boilerplate=`cat conftest.err`
14203 # Allow CC to be a program name with arguments.
14208 for cc_temp in $compiler""; do
14210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14219 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14220 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14221 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14222 echo "${ECHO_T}$can_build_shared" >&6; }
14224 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14225 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14226 test "$can_build_shared" = "no" && enable_shared=no
14228 # On AIX, shared libraries and static libraries use the same namespace, and
14229 # are all built from PIC.
14232 test "$enable_shared" = yes && enable_static=no
14233 if test -n "$RANLIB"; then
14234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14235 postinstall_cmds='$RANLIB $lib'
14239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14240 test "$enable_shared" = yes && enable_static=no
14244 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14245 echo "${ECHO_T}$enable_shared" >&6; }
14247 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14248 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14249 # Make sure either enable_shared or enable_static is yes.
14250 test "$enable_shared" = yes || enable_static=yes
14251 { echo "$as_me:$LINENO: result: $enable_static" >&5
14252 echo "${ECHO_T}$enable_static" >&6; }
14257 lt_prog_compiler_wl_F77=
14258 lt_prog_compiler_pic_F77=
14259 lt_prog_compiler_static_F77=
14261 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14262 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14264 if test "$GCC" = yes; then
14265 lt_prog_compiler_wl_F77='-Wl,'
14266 lt_prog_compiler_static_F77='-static'
14270 # All AIX code is PIC.
14271 if test "$host_cpu" = ia64; then
14272 # AIX 5 now supports IA64 processor
14273 lt_prog_compiler_static_F77='-Bstatic'
14278 # FIXME: we need at least 68020 code to build shared libraries, but
14279 # adding the `-m68020' flag to GCC prevents building anything better,
14281 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14285 # PIC is the default for these OSes.
14288 mingw* | cygwin* | pw32* | os2*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14292 # (--disable-auto-import) libraries
14293 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14296 darwin* | rhapsody*)
14297 # PIC is the default on this platform
14298 # Common symbols not allowed in MH_DYLIB files
14299 lt_prog_compiler_pic_F77='-fno-common'
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared_F77=no
14315 if test -d /usr/nec; then
14316 lt_prog_compiler_pic_F77=-Kconform_pic
14321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14322 # not for PA HP-UX.
14328 lt_prog_compiler_pic_F77='-fPIC'
14334 lt_prog_compiler_pic_F77='-fPIC'
14338 # PORTME Check for flag to pass linker flags through the system compiler.
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
14344 lt_prog_compiler_static_F77='-Bstatic'
14346 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14350 # PIC is the default on this platform
14351 # Common symbols not allowed in MH_DYLIB files
14352 case $cc_basename in
14354 lt_prog_compiler_pic_F77='-qnocommon'
14355 lt_prog_compiler_wl_F77='-Wl,'
14360 mingw* | cygwin* | pw32* | os2*)
14361 # This hack is so that the source file can tell whether it is being
14362 # built for inclusion in a dll (and should export symbols for example).
14363 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14366 hpux9* | hpux10* | hpux11*)
14367 lt_prog_compiler_wl_F77='-Wl,'
14368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369 # not for PA HP-UX.
14375 lt_prog_compiler_pic_F77='+Z'
14378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14382 irix5* | irix6* | nonstopux*)
14383 lt_prog_compiler_wl_F77='-Wl,'
14384 # PIC (with -KPIC) is the default.
14385 lt_prog_compiler_static_F77='-non_shared'
14389 lt_prog_compiler_pic_F77='-KPIC'
14390 lt_prog_compiler_static_F77='-Bstatic'
14393 linux* | k*bsd*-gnu)
14394 case $cc_basename in
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 lt_prog_compiler_pic_F77='-KPIC'
14398 lt_prog_compiler_static_F77='-static'
14400 pgcc* | pgf77* | pgf90* | pgf95*)
14401 # Portland Group compilers (*not* the Pentium gcc compiler,
14402 # which looks to be a dead project)
14403 lt_prog_compiler_wl_F77='-Wl,'
14404 lt_prog_compiler_pic_F77='-fpic'
14405 lt_prog_compiler_static_F77='-Bstatic'
14408 lt_prog_compiler_wl_F77='-Wl,'
14409 # All Alpha code is PIC.
14410 lt_prog_compiler_static_F77='-non_shared'
14413 case `$CC -V 2>&1 | sed 5q` in
14416 lt_prog_compiler_pic_F77='-KPIC'
14417 lt_prog_compiler_static_F77='-Bstatic'
14418 lt_prog_compiler_wl_F77='-Wl,'
14421 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14422 lt_prog_compiler_pic_F77='-KPIC'
14423 lt_prog_compiler_static_F77='-Bstatic'
14424 lt_prog_compiler_wl_F77=''
14431 osf3* | osf4* | osf5*)
14432 lt_prog_compiler_wl_F77='-Wl,'
14433 # All OSF/1 code is PIC.
14434 lt_prog_compiler_static_F77='-non_shared'
14438 lt_prog_compiler_static_F77='-non_shared'
14442 lt_prog_compiler_pic_F77='-KPIC'
14443 lt_prog_compiler_static_F77='-Bstatic'
14444 case $cc_basename in
14445 f77* | f90* | f95*)
14446 lt_prog_compiler_wl_F77='-Qoption ld ';;
14448 lt_prog_compiler_wl_F77='-Wl,';;
14453 lt_prog_compiler_wl_F77='-Qoption ld '
14454 lt_prog_compiler_pic_F77='-PIC'
14455 lt_prog_compiler_static_F77='-Bstatic'
14458 sysv4 | sysv4.2uw2* | sysv4.3*)
14459 lt_prog_compiler_wl_F77='-Wl,'
14460 lt_prog_compiler_pic_F77='-KPIC'
14461 lt_prog_compiler_static_F77='-Bstatic'
14465 if test -d /usr/nec ;then
14466 lt_prog_compiler_pic_F77='-Kconform_pic'
14467 lt_prog_compiler_static_F77='-Bstatic'
14471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14472 lt_prog_compiler_wl_F77='-Wl,'
14473 lt_prog_compiler_pic_F77='-KPIC'
14474 lt_prog_compiler_static_F77='-Bstatic'
14478 lt_prog_compiler_wl_F77='-Wl,'
14479 lt_prog_compiler_can_build_shared_F77=no
14483 lt_prog_compiler_pic_F77='-pic'
14484 lt_prog_compiler_static_F77='-Bstatic'
14488 lt_prog_compiler_can_build_shared_F77=no
14493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14494 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14497 # Check to make sure the PIC flag actually works.
14499 if test -n "$lt_prog_compiler_pic_F77"; then
14501 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14502 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14503 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 lt_cv_prog_compiler_pic_works_F77=no
14507 ac_outfile=conftest.$ac_objext
14508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14509 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14510 # Insert the option either (1) after the last *FLAGS variable, or
14511 # (2) before a word containing "conftest.", or (3) at the end.
14512 # Note that $ac_compile itself does not contain backslashes and begins
14513 # with a dollar sign (not a hyphen), so the echo should work correctly.
14514 # The option is referenced via a variable to avoid confusing sed.
14515 lt_compile=`echo "$ac_compile" | $SED \
14516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14518 -e 's:$: $lt_compiler_flag:'`
14519 (eval echo "\"\$as_me:14519: $lt_compile\"" >&5)
14520 (eval "$lt_compile" 2>conftest.err)
14522 cat conftest.err >&5
14523 echo "$as_me:14523: \$? = $ac_status" >&5
14524 if (exit $ac_status) && test -s "$ac_outfile"; then
14525 # The compiler can only warn and ignore the option if not recognized
14526 # So say no if there are warnings other than the usual output.
14527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14530 lt_cv_prog_compiler_pic_works_F77=yes
14536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14537 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14539 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14540 case $lt_prog_compiler_pic_F77 in
14542 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14545 lt_prog_compiler_pic_F77=
14546 lt_prog_compiler_can_build_shared_F77=no
14551 # For platforms which do not support PIC, -DPIC is meaningless:
14553 lt_prog_compiler_pic_F77=
14556 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14561 # Check to make sure the static flag actually works.
14563 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14564 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14565 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14566 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 lt_cv_prog_compiler_static_works_F77=no
14570 save_LDFLAGS="$LDFLAGS"
14571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14574 # The linker can only warn and ignore the option if not recognized
14575 # So say no if there are warnings
14576 if test -s conftest.err; then
14577 # Append any errors to the config.log.
14578 cat conftest.err 1>&5
14579 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14581 if diff conftest.exp conftest.er2 >/dev/null; then
14582 lt_cv_prog_compiler_static_works_F77=yes
14585 lt_cv_prog_compiler_static_works_F77=yes
14589 LDFLAGS="$save_LDFLAGS"
14592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14593 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14595 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14598 lt_prog_compiler_static_F77=
14602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14604 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 lt_cv_prog_compiler_c_o_F77=no
14608 $rm -r conftest 2>/dev/null
14612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14614 lt_compiler_flag="-o out/conftest2.$ac_objext"
14615 # Insert the option either (1) after the last *FLAGS variable, or
14616 # (2) before a word containing "conftest.", or (3) at the end.
14617 # Note that $ac_compile itself does not contain backslashes and begins
14618 # with a dollar sign (not a hyphen), so the echo should work correctly.
14619 lt_compile=`echo "$ac_compile" | $SED \
14620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14622 -e 's:$: $lt_compiler_flag:'`
14623 (eval echo "\"\$as_me:14623: $lt_compile\"" >&5)
14624 (eval "$lt_compile" 2>out/conftest.err)
14626 cat out/conftest.err >&5
14627 echo "$as_me:14627: \$? = $ac_status" >&5
14628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14630 # The compiler can only warn and ignore the option if not recognized
14631 # So say no if there are warnings
14632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14635 lt_cv_prog_compiler_c_o_F77=yes
14640 # SGI C++ compiler will create directory out/ii_files/ for
14641 # template instantiation
14642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14643 $rm out/* && rmdir out
14649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14653 hard_links="nottested"
14654 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14655 # do not overwrite the value of need_locks provided by the user
14656 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 ln conftest.a conftest.b 2>&5 || hard_links=no
14663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14664 { echo "$as_me:$LINENO: result: $hard_links" >&5
14665 echo "${ECHO_T}$hard_links" >&6; }
14666 if test "$hard_links" = no; then
14667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14668 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14675 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14679 allow_undefined_flag_F77=
14680 enable_shared_with_static_runtimes_F77=no
14682 archive_expsym_cmds_F77=
14683 old_archive_From_new_cmds_F77=
14684 old_archive_from_expsyms_cmds_F77=
14685 export_dynamic_flag_spec_F77=
14686 whole_archive_flag_spec_F77=
14687 thread_safe_flag_spec_F77=
14688 hardcode_libdir_flag_spec_F77=
14689 hardcode_libdir_flag_spec_ld_F77=
14690 hardcode_libdir_separator_F77=
14691 hardcode_direct_F77=no
14692 hardcode_minus_L_F77=no
14693 hardcode_shlibpath_var_F77=unsupported
14694 link_all_deplibs_F77=unknown
14695 hardcode_automatic_F77=no
14697 module_expsym_cmds_F77=
14698 always_export_symbols_F77=no
14699 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14700 # include_expsyms should be a list of space-separated symbols to be *always*
14701 # included in the symbol list
14702 include_expsyms_F77=
14703 # exclude_expsyms can be an extended regexp of symbols to exclude
14704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14706 # as well as any symbol that contains `d'.
14707 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14709 # platforms (ab)use it in PIC code, but their linkers get confused if
14710 # the symbol is explicitly referenced. Since portable code cannot
14711 # rely on this symbol name, it's probably fine to never include it in
14712 # preloaded symbol tables.
14713 # Exclude shared library initialization/finalization symbols.
14714 extract_expsyms_cmds=
14715 # Just being paranoid about ensuring that cc_basename is set.
14716 for cc_temp in $compiler""; do
14718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14724 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14727 cygwin* | mingw* | pw32*)
14728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14729 # When not using gcc, we currently assume that we are using
14730 # Microsoft Visual C++.
14731 if test "$GCC" != yes; then
14736 # we just hope/assume this is gcc and not c89 (= MSVC++)
14745 if test "$with_gnu_ld" = yes; then
14746 # If archive_cmds runs LD, not CC, wlarc should be empty
14749 # Set some defaults for GNU ld with shared library support. These
14750 # are reset later if shared libraries are not supported. Putting them
14751 # here allows them to be overridden if necessary.
14752 runpath_var=LD_RUN_PATH
14753 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14754 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14755 # ancient GNU ld didn't support --whole-archive et. al.
14756 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14757 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14759 whole_archive_flag_spec_F77=
14761 supports_anon_versioning=no
14762 case `$LD -v 2>/dev/null` in
14763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14766 *\ 2.11.*) ;; # other 2.11 versions
14767 *) supports_anon_versioning=yes ;;
14770 # See if GNU ld supports shared libraries.
14773 # On AIX/PPC, the GNU linker is very broken
14774 if test "$host_cpu" != ia64; then
14778 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14779 *** to be unable to reliably create shared libraries on AIX.
14780 *** Therefore, libtool is disabling shared libraries support. If you
14781 *** really care for shared libraries, you may want to modify your PATH
14782 *** so that a non-GNU linker is found, and then restart.
14789 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)'
14790 hardcode_libdir_flag_spec_F77='-L$libdir'
14791 hardcode_minus_L_F77=yes
14793 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14794 # that the semantics of dynamic libraries on AmigaOS, at least up
14795 # to version 4, is to share data among multiple programs linked
14796 # with the same dynamic library. Since this doesn't match the
14797 # behavior of shared libraries on other platforms, we can't use
14803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804 allow_undefined_flag_F77=unsupported
14805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14806 # support --undefined. This deserves some investigation. FIXME
14807 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 cygwin* | mingw* | pw32*)
14814 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14815 # as there is no search path for DLLs.
14816 hardcode_libdir_flag_spec_F77='-L$libdir'
14817 allow_undefined_flag_F77=unsupported
14818 always_export_symbols_F77=no
14819 enable_shared_with_static_runtimes_F77=yes
14820 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14822 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14824 # If the export-symbols file already is a .def file (1st line
14825 # is EXPORTS), use it as is; otherwise, prepend...
14826 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14827 cp $export_symbols $output_objdir/$soname.def;
14829 echo EXPORTS > $output_objdir/$soname.def;
14830 cat $export_symbols >> $output_objdir/$soname.def;
14832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14839 hardcode_direct_F77=no
14840 hardcode_shlibpath_var_F77=no
14841 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14842 export_dynamic_flag_spec_F77='${wl}-E'
14843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14844 # Instead, shared libraries are loaded at an image base (0x10000000 by
14845 # default) and relocated if they conflict, which is a slow very memory
14846 # consuming and fragmenting process. To avoid this, we pick a random,
14847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14849 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'
14850 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'
14853 gnu* | linux* | k*bsd*-gnu)
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14856 case $cc_basename,$host_cpu in
14857 pgcc*) # Portland Group C compiler
14858 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'
14859 tmp_addflag=' $pic_flag'
14861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14862 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'
14863 tmp_addflag=' $pic_flag -Mnomain' ;;
14864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14865 tmp_addflag=' -i_dynamic' ;;
14866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14867 tmp_addflag=' -i_dynamic -nofor_main' ;;
14868 ifc* | ifort*) # Intel Fortran compiler
14869 tmp_addflag=' -nofor_main' ;;
14871 case `$CC -V 2>&1 | sed 5q` in
14872 *Sun\ C*) # Sun C 5.9
14873 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14874 tmp_sharedflag='-G' ;;
14875 *Sun\ F*) # Sun Fortran 8.3
14876 tmp_sharedflag='-G' ;;
14878 tmp_sharedflag='-shared' ;;
14880 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14882 if test $supports_anon_versioning = yes; then
14883 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14885 $echo "local: *; };" >> $output_objdir/$libname.ver~
14886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14888 link_all_deplibs_F77=no
14894 netbsd* | netbsdelf*-gnu)
14895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14910 *** create shared libraries on Solaris systems. Therefore, libtool
14911 *** is disabling shared libraries support. We urge you to upgrade GNU
14912 *** binutils to release 2.9.1 or newer. Another option is to modify
14913 *** your PATH or compiler configuration so that the native linker is
14914 *** used, and then restart.
14917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14926 case `$LD -v 2>&1` in
14927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14932 *** reliably create shared libraries on SCO systems. Therefore, libtool
14933 *** is disabling shared libraries support. We urge you to upgrade GNU
14934 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14935 *** your PATH or compiler configuration so that the native linker is
14936 *** used, and then restart.
14941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14953 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14955 hardcode_direct_F77=yes
14956 hardcode_shlibpath_var_F77=no
14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14969 if test "$ld_shlibs_F77" = no; then
14971 hardcode_libdir_flag_spec_F77=
14972 export_dynamic_flag_spec_F77=
14973 whole_archive_flag_spec_F77=
14976 # PORTME fill in a description of your system's linker (not GNU ld)
14979 allow_undefined_flag_F77=unsupported
14980 always_export_symbols_F77=yes
14981 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'
14982 # Note: this linker hardcodes the directories in LIBPATH if there
14983 # are no directories specified by -L.
14984 hardcode_minus_L_F77=yes
14985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14986 # Neither direct hardcoding nor static linking is supported with a
14988 hardcode_direct_F77=unsupported
14993 if test "$host_cpu" = ia64; then
14994 # On IA64, the linker does run time linking by default, so we don't
14995 # have to do anything special.
14996 aix_use_runtimelinking=no
14997 exp_sym_flag='-Bexport'
15000 # If we're using GNU nm, then we don't want the "-C" option.
15001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15003 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'
15005 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'
15007 aix_use_runtimelinking=no
15009 # Test if we are trying to use run time linking or normal
15010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15011 # need to do runtime linking.
15012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15013 for ld_flag in $LDFLAGS; do
15014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15015 aix_use_runtimelinking=yes
15022 exp_sym_flag='-bexport'
15023 no_entry_flag='-bnoentry'
15026 # When large executables or shared objects are built, AIX ld can
15027 # have problems creating the table of contents. If linking a library
15028 # or program results in "error TOC overflow" add -mminimal-toc to
15029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15032 archive_cmds_F77=''
15033 hardcode_direct_F77=yes
15034 hardcode_libdir_separator_F77=':'
15035 link_all_deplibs_F77=yes
15037 if test "$GCC" = yes; then
15038 case $host_os in aix4.[012]|aix4.[012].*)
15039 # We only want to do this on AIX 4.2 and lower, the check
15040 # below for broken collect2 doesn't work under 4.3+
15041 collect2name=`${CC} -print-prog-name=collect2`
15042 if test -f "$collect2name" && \
15043 strings "$collect2name" | grep resolve_lib_name >/dev/null
15045 # We have reworked collect2
15048 # We have old collect2
15049 hardcode_direct_F77=unsupported
15050 # It fails to find uninstalled libraries when the uninstalled
15051 # path is not listed in the libpath. Setting hardcode_minus_L
15052 # to unsupported forces relinking
15053 hardcode_minus_L_F77=yes
15054 hardcode_libdir_flag_spec_F77='-L$libdir'
15055 hardcode_libdir_separator_F77=
15059 shared_flag='-shared'
15060 if test "$aix_use_runtimelinking" = yes; then
15061 shared_flag="$shared_flag "'${wl}-G'
15065 if test "$host_cpu" = ia64; then
15066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15067 # chokes on -Wl,-G. The following line is correct:
15070 if test "$aix_use_runtimelinking" = yes; then
15071 shared_flag='${wl}-G'
15073 shared_flag='${wl}-bM:SRE'
15078 # It seems that -bexpall does not export symbols beginning with
15079 # underscore (_), so it is better to generate a list of symbols to export.
15080 always_export_symbols_F77=yes
15081 if test "$aix_use_runtimelinking" = yes; then
15082 # Warning - without using the other runtime loading flags (-brtl),
15083 # -berok will link without error, but may produce a broken library.
15084 allow_undefined_flag_F77='-berok'
15085 # Determine the default libpath from the value encoded in an empty executable.
15086 cat >conftest.$ac_ext <<_ACEOF
15091 rm -f conftest.$ac_objext conftest$ac_exeext
15092 if { (ac_try="$ac_link"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_link") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_f77_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest$ac_exeext &&
15108 $as_test_x conftest$ac_exeext; then
15110 lt_aix_libpath_sed='
15111 /Import File Strings/,/^$/ {
15117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15118 # Check for a 64-bit object if we didn't find anything.
15119 if test -z "$aix_libpath"; then
15120 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15130 conftest$ac_exeext conftest.$ac_ext
15131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15134 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"
15136 if test "$host_cpu" = ia64; then
15137 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15138 allow_undefined_flag_F77="-z nodefs"
15139 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"
15141 # Determine the default libpath from the value encoded in an empty executable.
15142 cat >conftest.$ac_ext <<_ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_f77_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15166 lt_aix_libpath_sed='
15167 /Import File Strings/,/^$/ {
15173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15174 # Check for a 64-bit object if we didn't find anything.
15175 if test -z "$aix_libpath"; then
15176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186 conftest$ac_exeext conftest.$ac_ext
15187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15189 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15190 # Warning - without using the other run time loading flags,
15191 # -berok will link without error, but may produce a broken library.
15192 no_undefined_flag_F77=' ${wl}-bernotok'
15193 allow_undefined_flag_F77=' ${wl}-berok'
15194 # Exported symbols can be pulled into shared objects from archives
15195 whole_archive_flag_spec_F77='$convenience'
15196 archive_cmds_need_lc_F77=yes
15197 # This is similar to how AIX traditionally builds its shared libraries.
15198 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'
15204 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)'
15205 hardcode_libdir_flag_spec_F77='-L$libdir'
15206 hardcode_minus_L_F77=yes
15207 # see comment about different semantics on the GNU ld section
15212 export_dynamic_flag_spec_F77=-rdynamic
15215 cygwin* | mingw* | pw32*)
15216 # When not using gcc, we currently assume that we are using
15217 # Microsoft Visual C++.
15218 # hardcode_libdir_flag_spec is actually meaningless, as there is
15219 # no search path for DLLs.
15220 hardcode_libdir_flag_spec_F77=' '
15221 allow_undefined_flag_F77=unsupported
15222 # Tell ltmain to make .lib files, not .a files.
15224 # Tell ltmain to make .dll files, not .so files.
15226 # FIXME: Setting linknames here is a bad hack.
15227 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15228 # The linker will automatically build a .lib file if we build a DLL.
15229 old_archive_From_new_cmds_F77='true'
15230 # FIXME: Should let the user specify the lib program.
15231 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15232 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15233 enable_shared_with_static_runtimes_F77=yes
15236 darwin* | rhapsody*)
15238 rhapsody* | darwin1.[012])
15239 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15242 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15243 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15245 case ${MACOSX_DEPLOYMENT_TARGET} in
15247 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15250 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15256 archive_cmds_need_lc_F77=no
15257 hardcode_direct_F77=no
15258 hardcode_automatic_F77=yes
15259 hardcode_shlibpath_var_F77=unsupported
15260 whole_archive_flag_spec_F77=''
15261 link_all_deplibs_F77=yes
15262 if test "$GCC" = yes ; then
15263 output_verbose_link_cmd='echo'
15264 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15265 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15266 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15267 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15269 case $cc_basename in
15271 output_verbose_link_cmd='echo'
15272 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15273 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15275 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15276 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}'
15286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_libdir_flag_spec_F77='-L$libdir'
15288 hardcode_shlibpath_var_F77=no
15295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15296 # support. Future versions do this automatically, but an explicit c++rt0.o
15297 # does not break anything, and helps significantly (at the cost of a little
15300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15301 hardcode_libdir_flag_spec_F77='-R$libdir'
15302 hardcode_direct_F77=yes
15303 hardcode_shlibpath_var_F77=no
15306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15309 hardcode_direct_F77=yes
15310 hardcode_minus_L_F77=yes
15311 hardcode_shlibpath_var_F77=no
15314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15315 freebsd* | dragonfly*)
15316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15317 hardcode_libdir_flag_spec_F77='-R$libdir'
15318 hardcode_direct_F77=yes
15319 hardcode_shlibpath_var_F77=no
15323 if test "$GCC" = yes; then
15324 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'
15326 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'
15328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15329 hardcode_libdir_separator_F77=:
15330 hardcode_direct_F77=yes
15332 # hardcode_minus_L: Not really in the search PATH,
15333 # but as the default location of the library.
15334 hardcode_minus_L_F77=yes
15335 export_dynamic_flag_spec_F77='${wl}-E'
15339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15342 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15344 if test "$with_gnu_ld" = no; then
15345 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15346 hardcode_libdir_separator_F77=:
15348 hardcode_direct_F77=yes
15349 export_dynamic_flag_spec_F77='${wl}-E'
15351 # hardcode_minus_L: Not really in the search PATH,
15352 # but as the default location of the library.
15353 hardcode_minus_L_F77=yes
15358 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15361 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15364 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15367 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15379 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15383 if test "$with_gnu_ld" = no; then
15384 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15385 hardcode_libdir_separator_F77=:
15389 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15390 hardcode_direct_F77=no
15391 hardcode_shlibpath_var_F77=no
15394 hardcode_direct_F77=yes
15395 export_dynamic_flag_spec_F77='${wl}-E'
15397 # hardcode_minus_L: Not really in the search PATH,
15398 # but as the default location of the library.
15399 hardcode_minus_L_F77=yes
15405 irix5* | irix6* | nonstopux*)
15406 if test "$GCC" = yes; then
15407 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'
15409 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'
15410 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator_F77=:
15414 link_all_deplibs_F77=yes
15417 netbsd* | netbsdelf*-gnu)
15418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15419 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15421 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15423 hardcode_libdir_flag_spec_F77='-R$libdir'
15424 hardcode_direct_F77=yes
15425 hardcode_shlibpath_var_F77=no
15429 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_direct_F77=yes
15431 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15432 hardcode_libdir_separator_F77=:
15433 hardcode_shlibpath_var_F77=no
15437 if test -f /usr/libexec/ld.so; then
15438 hardcode_direct_F77=yes
15439 hardcode_shlibpath_var_F77=no
15440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15441 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15442 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15444 export_dynamic_flag_spec_F77='${wl}-E'
15447 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15448 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15452 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15463 hardcode_libdir_flag_spec_F77='-L$libdir'
15464 hardcode_minus_L_F77=yes
15465 allow_undefined_flag_F77=unsupported
15466 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'
15467 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15471 if test "$GCC" = yes; then
15472 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15473 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'
15475 allow_undefined_flag_F77=' -expect_unresolved \*'
15476 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'
15478 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15479 hardcode_libdir_separator_F77=:
15482 osf4* | osf5*) # as osf3* with the addition of -msym flag
15483 if test "$GCC" = yes; then
15484 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15485 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'
15486 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15488 allow_undefined_flag_F77=' -expect_unresolved \*'
15489 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'
15490 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~
15491 $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'
15493 # Both c and cxx compiler support -rpath directly
15494 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15496 hardcode_libdir_separator_F77=:
15500 no_undefined_flag_F77=' -z text'
15501 if test "$GCC" = yes; then
15503 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15505 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15508 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15509 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15512 hardcode_libdir_flag_spec_F77='-R$libdir'
15513 hardcode_shlibpath_var_F77=no
15515 solaris2.[0-5] | solaris2.[0-5].*) ;;
15517 # The compiler driver will combine and reorder linker options,
15518 # but understands `-z linker_flag'. GCC discards it without `$wl',
15519 # but is careful enough not to reorder.
15520 # Supported since Solaris 2.6 (maybe 2.5.1?)
15521 if test "$GCC" = yes; then
15522 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15524 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15528 link_all_deplibs_F77=yes
15532 if test "x$host_vendor" = xsequent; then
15533 # Use $CC to link under sequent, because it throws in some extra .o
15534 # files that make .init and .fini sections work.
15535 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_libdir_flag_spec_F77='-L$libdir'
15540 hardcode_direct_F77=yes
15541 hardcode_minus_L_F77=yes
15542 hardcode_shlibpath_var_F77=no
15546 case $host_vendor in
15548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_direct_F77=yes # is this really true???
15552 ## LD is ld it makes a PLAMLIB
15553 ## CC just makes a GrossModule.
15554 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15555 reload_cmds_F77='$CC -r -o $output$reload_objs'
15556 hardcode_direct_F77=no
15559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15563 runpath_var='LD_RUN_PATH'
15564 hardcode_shlibpath_var_F77=no
15568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_shlibpath_var_F77=no
15570 export_dynamic_flag_spec_F77='-Bexport'
15574 if test -d /usr/nec; then
15575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_shlibpath_var_F77=no
15577 runpath_var=LD_RUN_PATH
15578 hardcode_runpath_var=yes
15583 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15584 no_undefined_flag_F77='${wl}-z,text'
15585 archive_cmds_need_lc_F77=no
15586 hardcode_shlibpath_var_F77=no
15587 runpath_var='LD_RUN_PATH'
15589 if test "$GCC" = yes; then
15590 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 sysv5* | sco3.2v5* | sco5v6*)
15599 # Note: We can NOT use -z defs as we might desire, because we do not
15600 # link with -lc, and that would cause any symbols used from libc to
15601 # always be unresolved, which means just about no library would
15602 # ever link correctly. If we're not using GNU ld we use -z text
15603 # though, which does catch some bad symbols but isn't as heavy-handed
15605 no_undefined_flag_F77='${wl}-z,text'
15606 allow_undefined_flag_F77='${wl}-z,nodefs'
15607 archive_cmds_need_lc_F77=no
15608 hardcode_shlibpath_var_F77=no
15609 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15610 hardcode_libdir_separator_F77=':'
15611 link_all_deplibs_F77=yes
15612 export_dynamic_flag_spec_F77='${wl}-Bexport'
15613 runpath_var='LD_RUN_PATH'
15615 if test "$GCC" = yes; then
15616 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15619 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_libdir_flag_spec_F77='-L$libdir'
15627 hardcode_shlibpath_var_F77=no
15636 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15637 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15638 test "$ld_shlibs_F77" = no && can_build_shared=no
15641 # Do we need to explicitly link libc?
15643 case "x$archive_cmds_need_lc_F77" in
15645 # Assume -lc should be added
15646 archive_cmds_need_lc_F77=yes
15648 if test "$enable_shared" = yes && test "$GCC" = yes; then
15649 case $archive_cmds_F77 in
15651 # FIXME: we may have to deal with multi-command sequences.
15654 # Test whether the compiler implicitly links with -lc since on some
15655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15656 # to ld, don't add -lc before -lgcc.
15657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } 2>conftest.err; then
15669 libobjs=conftest.$ac_objext
15671 wl=$lt_prog_compiler_wl_F77
15672 pic_flag=$lt_prog_compiler_pic_F77
15678 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15679 allow_undefined_flag_F77=
15680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15681 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }
15686 archive_cmds_need_lc_F77=no
15688 archive_cmds_need_lc_F77=yes
15690 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15692 cat conftest.err 1>&5
15695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15696 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15705 library_names_spec=
15706 libname_spec='lib$name'
15710 postuninstall_cmds=
15714 shlibpath_overrides_runpath=unknown
15716 dynamic_linker="$host_os ld.so"
15717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15719 need_lib_prefix=unknown
15720 hardcode_into_libs=no
15722 # when you set need_version to no, make sure it does not cause -set_version
15723 # flags to be left without arguments
15724 need_version=unknown
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15730 shlibpath_var=LIBPATH
15732 # AIX 3 has no versioning support, so we append a major version to the name.
15733 soname_spec='${libname}${release}${shared_ext}$major'
15740 hardcode_into_libs=yes
15741 if test "$host_cpu" = ia64; then
15742 # AIX 5 supports IA64
15743 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15744 shlibpath_var=LD_LIBRARY_PATH
15746 # With GCC up to 2.95.x, collect2 would create an import file
15747 # for dependence libraries. The import file would start with
15748 # the line `#! .'. This would cause the generated library to
15749 # depend on `.', always an invalid library. This was fixed in
15750 # development snapshots of GCC prior to 3.0.
15752 aix4 | aix4.[01] | aix4.[01].*)
15753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15755 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15758 can_build_shared=no
15762 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15763 # soname into executable. Probably we can add versioning support to
15764 # collect2, so additional links can be useful in future.
15765 if test "$aix_use_runtimelinking" = yes; then
15766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15767 # instead of lib<name>.a to let people know that these are not
15768 # typical AIX shared libraries.
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 # We preserve .a as extension for shared libraries through AIX4.2
15772 # and later when we are not doing run time linking.
15773 library_names_spec='${libname}${release}.a $libname.a'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LIBPATH
15781 library_names_spec='$libname.ixlibrary $libname.a'
15782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15783 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'
15787 library_names_spec='${libname}${shared_ext}'
15788 dynamic_linker="$host_os ld.so"
15789 shlibpath_var=LIBRARY_PATH
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15796 soname_spec='${libname}${release}${shared_ext}$major'
15797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15801 # the default ld.so.conf also contains /usr/contrib/lib and
15802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15803 # libtool to hard-code these into programs
15806 cygwin* | mingw* | pw32*)
15807 version_type=windows
15812 case $GCC,$host_os in
15813 yes,cygwin* | yes,mingw* | yes,pw32*)
15814 library_names_spec='$libname.dll.a'
15815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15816 postinstall_cmds='base_file=`basename \${file}`~
15817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15818 dldir=$destdir/`dirname \$dlpath`~
15819 test -d \$dldir || mkdir -p \$dldir~
15820 $install_prog $dir/$dlname \$dldir/$dlname~
15821 chmod a+x \$dldir/$dlname'
15822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15823 dlpath=$dir/\$dldll~
15825 shlibpath_overrides_runpath=yes
15829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15834 # MinGW DLLs use traditional 'lib' prefix
15835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15838 # It is most probably a Windows format PATH printed by
15839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15840 # path with ; separators, and with drive letters. We can handle the
15841 # drive letters (cygwin fileutils understands them), so leave them,
15842 # especially as we might pass files found there to a mingw objdump,
15843 # which wouldn't understand a cygwinified path. Ahh.
15844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15850 # pw32 DLLs use 'pw' prefix rather than 'lib'
15851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15860 dynamic_linker='Win32 ld.exe'
15861 # FIXME: first we should search . and the directory the executable is in
15865 darwin* | rhapsody*)
15866 dynamic_linker="$host_os dyld"
15867 version_type=darwin
15870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15871 soname_spec='${libname}${release}${major}$shared_ext'
15872 shlibpath_overrides_runpath=yes
15873 shlibpath_var=DYLD_LIBRARY_PATH
15874 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 shlibpath_var=LD_LIBRARY_PATH
15892 freebsd* | dragonfly*)
15893 # DragonFly does not have aout. When/if they implement a new
15894 # versioning mechanism, adjust this.
15895 if test -x /usr/bin/objformat; then
15896 objformat=`/usr/bin/objformat`
15899 freebsd[123]*) objformat=aout ;;
15900 *) objformat=elf ;;
15903 version_type=freebsd-$objformat
15904 case $version_type in
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15915 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=yes
15920 freebsd3.[01]* | freebsdelf3.[01]*)
15921 shlibpath_overrides_runpath=yes
15922 hardcode_into_libs=yes
15924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15926 shlibpath_overrides_runpath=no
15927 hardcode_into_libs=yes
15929 *) # from 4.6 on, and DragonFly
15930 shlibpath_overrides_runpath=yes
15931 hardcode_into_libs=yes
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 hardcode_into_libs=yes
15946 hpux9* | hpux10* | hpux11*)
15947 # Give a soname corresponding to the major version so that dld.sl refuses to
15948 # link against other versions.
15955 hardcode_into_libs=yes
15956 dynamic_linker="$host_os dld.so"
15957 shlibpath_var=LD_LIBRARY_PATH
15958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 if test "X$HPUX_IA64_MODE" = X32; then
15962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15970 hardcode_into_libs=yes
15971 dynamic_linker="$host_os dld.sl"
15972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15981 dynamic_linker="$host_os dld.sl"
15982 shlibpath_var=SHLIB_PATH
15983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15989 postinstall_cmds='chmod 555 $lib'
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=no
16001 hardcode_into_libs=yes
16004 irix5* | irix6* | nonstopux*)
16006 nonstopux*) version_type=nonstopux ;;
16008 if test "$lt_cv_prog_gnu_ld" = yes; then
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16019 irix5* | nonstopux*)
16020 libsuff= shlibsuff=
16023 case $LD in # libtool.m4 will add one of these switches to LD
16024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16025 libsuff= shlibsuff= libmagic=32-bit;;
16026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16027 libsuff=32 shlibsuff=N32 libmagic=N32;;
16028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16030 *) libsuff= shlibsuff= libmagic=never-match;;
16034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16035 shlibpath_overrides_runpath=no
16036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16038 hardcode_into_libs=yes
16041 # No shared lib support for Linux oldld, aout, or coff.
16042 linux*oldld* | linux*aout* | linux*coff*)
16046 # This must be Linux ELF.
16047 linux* | k*bsd*-gnu)
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 # This implies no fast_install, which is unacceptable.
16057 # Some rework will be needed to allow for fast_install
16058 # before this can be enabled.
16059 hardcode_into_libs=yes
16061 # Append ld.so.conf contents to the search path
16062 if test -f /etc/ld.so.conf; then
16063 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16067 # We used to test for /lib/ld.so.1 and disable shared libraries on
16068 # powerpc, because MkLinux only supported shared libraries with the
16069 # GNU dynamic linker. Since this was broken with cross compilers,
16070 # most powerpc-linux boxes support dynamic linking these days and
16071 # people can always --disable-shared, the test was removed, and we
16072 # assume the GNU/Linux dynamic linker is in use.
16073 dynamic_linker='GNU/Linux ld.so'
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=no
16084 hardcode_into_libs=yes
16085 dynamic_linker='NetBSD ld.elf_so'
16092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16095 dynamic_linker='NetBSD (a.out) ld.so'
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 dynamic_linker='NetBSD ld.elf_so'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16103 hardcode_into_libs=yes
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 shlibpath_overrides_runpath=yes
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=yes
16125 sys_lib_dlsearch_path_spec="/usr/lib"
16127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16130 *) need_version=no ;;
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 shlibpath_var=LD_LIBRARY_PATH
16135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16137 openbsd2.[89] | openbsd2.[89].*)
16138 shlibpath_overrides_runpath=no
16141 shlibpath_overrides_runpath=yes
16145 shlibpath_overrides_runpath=yes
16150 libname_spec='$name'
16153 library_names_spec='$libname${shared_ext} $libname.a'
16154 dynamic_linker='OS/2 ld.exe'
16155 shlibpath_var=LIBPATH
16158 osf3* | osf4* | osf5*)
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16182 # ldd complains unless libraries are executable
16183 postinstall_cmds='chmod +x $lib'
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=yes
16192 if test "$with_gnu_ld" = yes; then
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 case $host_vendor in
16205 shlibpath_overrides_runpath=no
16207 export_dynamic_flag_spec='${wl}-Blargedynsym'
16208 runpath_var=LD_RUN_PATH
16216 shlibpath_overrides_runpath=no
16217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16223 if test -d /usr/nec ;then
16225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16226 soname_spec='$libname${shared_ext}.$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16232 version_type=freebsd-elf
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 hardcode_into_libs=yes
16239 if test "$with_gnu_ld" = yes; then
16240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16241 shlibpath_overrides_runpath=no
16243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16244 shlibpath_overrides_runpath=yes
16247 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16251 sys_lib_dlsearch_path_spec='/usr/lib'
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16265 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16266 echo "${ECHO_T}$dynamic_linker" >&6; }
16267 test "$dynamic_linker" = no && can_build_shared=no
16269 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16276 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16282 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16285 if test "$GCC" = yes; then
16286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16289 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16291 hardcode_action_F77=
16292 if test -n "$hardcode_libdir_flag_spec_F77" || \
16293 test -n "$runpath_var_F77" || \
16294 test "X$hardcode_automatic_F77" = "Xyes" ; then
16296 # We can hardcode non-existant directories.
16297 if test "$hardcode_direct_F77" != no &&
16298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16299 # have to relink, otherwise we might link with an installed library
16300 # when we should be linking with a yet-to-be-installed one
16301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16302 test "$hardcode_minus_L_F77" != no; then
16303 # Linking always hardcodes the temporary library directory.
16304 hardcode_action_F77=relink
16306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16307 hardcode_action_F77=immediate
16310 # We cannot hardcode anything, or else we can only hardcode existing
16312 hardcode_action_F77=unsupported
16314 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16315 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16317 if test "$hardcode_action_F77" = relink; then
16318 # Fast installation is not supported
16319 enable_fast_install=no
16320 elif test "$shlibpath_overrides_runpath" = yes ||
16321 test "$enable_shared" = no; then
16322 # Fast installation is not necessary
16323 enable_fast_install=needless
16327 # The else clause should only fire when bootstrapping the
16328 # libtool distribution, otherwise you forgot to ship ltmain.sh
16329 # with your package, and you will get complaints that there are
16330 # no rules to generate ltmain.sh.
16331 if test -f "$ltmain"; then
16332 # See if we are running on zsh, and set the options which allow our commands through
16333 # without removal of \ escapes.
16334 if test -n "${ZSH_VERSION+set}" ; then
16335 setopt NO_GLOB_SUBST
16337 # Now quote all the things that may contain metacharacters while being
16338 # careful not to overquote the AC_SUBSTed values. We take copies of the
16339 # variables and quote the copies for generation of the libtool script.
16340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16344 deplibs_check_method reload_flag reload_cmds need_locks \
16345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16346 lt_cv_sys_global_symbol_to_c_name_address \
16347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16348 old_postinstall_cmds old_postuninstall_cmds \
16352 lt_prog_compiler_wl_F77 \
16353 lt_prog_compiler_pic_F77 \
16354 lt_prog_compiler_static_F77 \
16355 lt_prog_compiler_no_builtin_flag_F77 \
16356 export_dynamic_flag_spec_F77 \
16357 thread_safe_flag_spec_F77 \
16358 whole_archive_flag_spec_F77 \
16359 enable_shared_with_static_runtimes_F77 \
16360 old_archive_cmds_F77 \
16361 old_archive_from_new_cmds_F77 \
16362 predep_objects_F77 \
16363 postdep_objects_F77 \
16366 compiler_lib_search_path_F77 \
16367 compiler_lib_search_dirs_F77 \
16369 archive_expsym_cmds_F77 \
16370 postinstall_cmds_F77 \
16371 postuninstall_cmds_F77 \
16372 old_archive_from_expsyms_cmds_F77 \
16373 allow_undefined_flag_F77 \
16374 no_undefined_flag_F77 \
16375 export_symbols_cmds_F77 \
16376 hardcode_libdir_flag_spec_F77 \
16377 hardcode_libdir_flag_spec_ld_F77 \
16378 hardcode_libdir_separator_F77 \
16379 hardcode_automatic_F77 \
16381 module_expsym_cmds_F77 \
16382 lt_cv_prog_compiler_c_o_F77 \
16383 fix_srcfile_path_F77 \
16384 exclude_expsyms_F77 \
16385 include_expsyms_F77; do
16388 old_archive_cmds_F77 | \
16389 old_archive_from_new_cmds_F77 | \
16390 archive_cmds_F77 | \
16391 archive_expsym_cmds_F77 | \
16392 module_cmds_F77 | \
16393 module_expsym_cmds_F77 | \
16394 old_archive_from_expsyms_cmds_F77 | \
16395 export_symbols_cmds_F77 | \
16396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16397 postinstall_cmds | postuninstall_cmds | \
16398 old_postinstall_cmds | old_postuninstall_cmds | \
16399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16400 # Double-quote double-evaled strings.
16401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16410 *'\$0 --fallback-echo"')
16411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16417 cat <<__EOF__ >> "$cfgfile"
16418 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16422 # Shell to use when invoking shell scripts.
16425 # Whether or not to build shared libraries.
16426 build_libtool_libs=$enable_shared
16428 # Whether or not to build static libraries.
16429 build_old_libs=$enable_static
16431 # Whether or not to add -lc for building shared libraries.
16432 build_libtool_need_lc=$archive_cmds_need_lc_F77
16434 # Whether or not to disallow shared libs when runtime libs are static
16435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16437 # Whether or not to optimize for fast installation.
16438 fast_install=$enable_fast_install
16441 host_alias=$host_alias
16445 # The build system.
16446 build_alias=$build_alias
16450 # An echo program that does not interpret backslashes.
16455 AR_FLAGS=$lt_AR_FLAGS
16460 # LTCC compiler flags.
16461 LTCFLAGS=$lt_LTCFLAGS
16463 # A language-specific compiler.
16464 CC=$lt_compiler_F77
16466 # Is the compiler the GNU C compiler?
16472 # The linker used to build libraries.
16475 # Whether we need hard or soft links.
16478 # A BSD-compatible nm program.
16481 # A symbol stripping program
16484 # Used to examine libraries when file_magic_cmd begins "file"
16485 MAGIC_CMD=$MAGIC_CMD
16487 # Used on cygwin: DLL creation program.
16490 # Used on cygwin: object dumper.
16493 # Used on cygwin: assembler.
16496 # The name of the directory that contains temporary libtool files.
16499 # How to create reloadable object files.
16500 reload_flag=$lt_reload_flag
16501 reload_cmds=$lt_reload_cmds
16503 # How to pass a linker flag through the compiler.
16504 wl=$lt_lt_prog_compiler_wl_F77
16506 # Object file suffix (normally "o").
16507 objext="$ac_objext"
16509 # Old archive suffix (normally "a").
16512 # Shared library suffix (normally ".so").
16513 shrext_cmds='$shrext_cmds'
16515 # Executable file suffix (normally "").
16518 # Additional compiler flags for building library objects.
16519 pic_flag=$lt_lt_prog_compiler_pic_F77
16522 # What is the maximum length of a command?
16523 max_cmd_len=$lt_cv_sys_max_cmd_len
16525 # Does compiler simultaneously support -c and -o options?
16526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16528 # Must we lock files when doing compilation?
16529 need_locks=$lt_need_locks
16531 # Do we need the lib prefix for modules?
16532 need_lib_prefix=$need_lib_prefix
16534 # Do we need a version for libraries?
16535 need_version=$need_version
16537 # Whether dlopen is supported.
16538 dlopen_support=$enable_dlopen
16540 # Whether dlopen of programs is supported.
16541 dlopen_self=$enable_dlopen_self
16543 # Whether dlopen of statically linked programs is supported.
16544 dlopen_self_static=$enable_dlopen_self_static
16546 # Compiler flag to prevent dynamic linking.
16547 link_static_flag=$lt_lt_prog_compiler_static_F77
16549 # Compiler flag to turn off builtin functions.
16550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16552 # Compiler flag to allow reflexive dlopens.
16553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16555 # Compiler flag to generate shared objects directly from archives.
16556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16558 # Compiler flag to generate thread-safe objects.
16559 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16561 # Library versioning type.
16562 version_type=$version_type
16564 # Format of library name prefix.
16565 libname_spec=$lt_libname_spec
16567 # List of archive names. First name is the real one, the rest are links.
16568 # The last name is the one that the linker finds with -lNAME.
16569 library_names_spec=$lt_library_names_spec
16571 # The coded name of the library, if different from the real name.
16572 soname_spec=$lt_soname_spec
16574 # Commands used to build and install an old-style archive.
16576 old_archive_cmds=$lt_old_archive_cmds_F77
16577 old_postinstall_cmds=$lt_old_postinstall_cmds
16578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16580 # Create an old-style archive from a shared archive.
16581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16583 # Create a temporary old-style archive to link instead of a shared archive.
16584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16586 # Commands used to build and install a shared archive.
16587 archive_cmds=$lt_archive_cmds_F77
16588 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16589 postinstall_cmds=$lt_postinstall_cmds
16590 postuninstall_cmds=$lt_postuninstall_cmds
16592 # Commands used to build a loadable module (assumed same as above if empty)
16593 module_cmds=$lt_module_cmds_F77
16594 module_expsym_cmds=$lt_module_expsym_cmds_F77
16596 # Commands to strip libraries.
16597 old_striplib=$lt_old_striplib
16598 striplib=$lt_striplib
16600 # Dependencies to place before the objects being linked to create a
16602 predep_objects=$lt_predep_objects_F77
16604 # Dependencies to place after the objects being linked to create a
16606 postdep_objects=$lt_postdep_objects_F77
16608 # Dependencies to place before the objects being linked to create a
16610 predeps=$lt_predeps_F77
16612 # Dependencies to place after the objects being linked to create a
16614 postdeps=$lt_postdeps_F77
16616 # The directories searched by this compiler when creating a shared
16618 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16620 # The library search path used internally by the compiler when linking
16621 # a shared library.
16622 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16624 # Method to check whether dependent libraries are shared objects.
16625 deplibs_check_method=$lt_deplibs_check_method
16627 # Command to use when deplibs_check_method == file_magic.
16628 file_magic_cmd=$lt_file_magic_cmd
16630 # Flag that allows shared libraries with undefined symbols to be built.
16631 allow_undefined_flag=$lt_allow_undefined_flag_F77
16633 # Flag that forces no undefined symbols.
16634 no_undefined_flag=$lt_no_undefined_flag_F77
16636 # Commands used to finish a libtool library installation in a directory.
16637 finish_cmds=$lt_finish_cmds
16639 # Same as above, but a single script fragment to be evaled but not shown.
16640 finish_eval=$lt_finish_eval
16642 # Take the output of nm and produce a listing of raw symbols and C names.
16643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16645 # Transform the output of nm in a proper C declaration
16646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16648 # Transform the output of nm in a C name address pair
16649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16651 # This is the shared library runtime path variable.
16652 runpath_var=$runpath_var
16654 # This is the shared library path variable.
16655 shlibpath_var=$shlibpath_var
16657 # Is shlibpath searched before the hard-coded library search path?
16658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16660 # How to hardcode a shared library path into an executable.
16661 hardcode_action=$hardcode_action_F77
16663 # Whether we should hardcode library paths into libraries.
16664 hardcode_into_libs=$hardcode_into_libs
16666 # Flag to hardcode \$libdir into a binary during linking.
16667 # This must work even if \$libdir does not exist.
16668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16670 # If ld is used when linking, flag to hardcode \$libdir into
16671 # a binary during linking. This must work even if \$libdir does
16673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16675 # Whether we need a single -rpath flag with a separated argument.
16676 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16678 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16679 # resulting binary.
16680 hardcode_direct=$hardcode_direct_F77
16682 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16683 # resulting binary.
16684 hardcode_minus_L=$hardcode_minus_L_F77
16686 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16687 # the resulting binary.
16688 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16690 # Set to yes if building a shared library automatically hardcodes DIR into the library
16691 # and all subsequent libraries and executables linked against it.
16692 hardcode_automatic=$hardcode_automatic_F77
16694 # Variables whose values should be saved in libtool wrapper scripts and
16695 # restored at relink time.
16696 variables_saved_for_relink="$variables_saved_for_relink"
16698 # Whether libtool must link a program against all its dependency libraries.
16699 link_all_deplibs=$link_all_deplibs_F77
16701 # Compile-time system search path for libraries
16702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16704 # Run-time system search path for libraries
16705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16707 # Fix the shell variable \$srcfile for the compiler.
16708 fix_srcfile_path=$lt_fix_srcfile_path
16710 # Set to yes if exported symbols are required.
16711 always_export_symbols=$always_export_symbols_F77
16713 # The commands to list exported symbols.
16714 export_symbols_cmds=$lt_export_symbols_cmds_F77
16716 # The commands to extract the exported symbol list from a shared archive.
16717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16719 # Symbols that should not be listed in the preloaded symbols.
16720 exclude_expsyms=$lt_exclude_expsyms_F77
16722 # Symbols that must always be exported.
16723 include_expsyms=$lt_include_expsyms_F77
16725 # ### END LIBTOOL TAG CONFIG: $tagname
16731 # If there is no Makefile yet, we rely on a make rule to execute
16732 # `config.status --recheck' to rerun these tests and create the
16733 # libtool script then.
16734 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16735 if test -f "$ltmain_in"; then
16736 test -f Makefile && make "$ltmain"
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16755 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16758 # Source file extension for Java test sources.
16761 # Object file extension for compiled Java test sources.
16765 # Code to be used in simple compile tests
16766 lt_simple_compile_test_code="class foo {}"
16768 # Code to be used in simple link tests
16769 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16771 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16773 # If no C compiler was specified, use CC.
16776 # If no C compiler flags were specified, use CFLAGS.
16777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16779 # Allow CC to be a program name with arguments.
16783 # save warnings/boilerplate of simple test code
16784 ac_outfile=conftest.$ac_objext
16785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787 _lt_compiler_boilerplate=`cat conftest.err`
16790 ac_outfile=conftest.$ac_objext
16791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16793 _lt_linker_boilerplate=`cat conftest.err`
16797 # Allow CC to be a program name with arguments.
16802 for cc_temp in $compiler""; do
16804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16813 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16814 archive_cmds_need_lc_GCJ=no
16816 old_archive_cmds_GCJ=$old_archive_cmds
16819 lt_prog_compiler_no_builtin_flag_GCJ=
16821 if test "$GCC" = yes; then
16822 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16825 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16826 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16827 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 lt_cv_prog_compiler_rtti_exceptions=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="-fno-rtti -fno-exceptions"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16846 cat conftest.err >&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_rtti_exceptions=yes
16860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16861 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16863 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16864 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16871 lt_prog_compiler_wl_GCJ=
16872 lt_prog_compiler_pic_GCJ=
16873 lt_prog_compiler_static_GCJ=
16875 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16876 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16878 if test "$GCC" = yes; then
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 lt_prog_compiler_static_GCJ='-static'
16884 # All AIX code is PIC.
16885 if test "$host_cpu" = ia64; then
16886 # AIX 5 now supports IA64 processor
16887 lt_prog_compiler_static_GCJ='-Bstatic'
16892 # FIXME: we need at least 68020 code to build shared libraries, but
16893 # adding the `-m68020' flag to GCC prevents building anything better,
16895 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16899 # PIC is the default for these OSes.
16902 mingw* | cygwin* | pw32* | os2*)
16903 # This hack is so that the source file can tell whether it is being
16904 # built for inclusion in a dll (and should export symbols for example).
16905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16906 # (--disable-auto-import) libraries
16910 darwin* | rhapsody*)
16911 # PIC is the default on this platform
16912 # Common symbols not allowed in MH_DYLIB files
16913 lt_prog_compiler_pic_GCJ='-fno-common'
16917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16918 # Instead, we relocate shared libraries at runtime.
16922 # Just because we use GCC doesn't mean we suddenly get shared libraries
16923 # on systems that don't support them.
16924 lt_prog_compiler_can_build_shared_GCJ=no
16929 if test -d /usr/nec; then
16930 lt_prog_compiler_pic_GCJ=-Kconform_pic
16935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16936 # not for PA HP-UX.
16942 lt_prog_compiler_pic_GCJ='-fPIC'
16948 lt_prog_compiler_pic_GCJ='-fPIC'
16952 # PORTME Check for flag to pass linker flags through the system compiler.
16955 lt_prog_compiler_wl_GCJ='-Wl,'
16956 if test "$host_cpu" = ia64; then
16957 # AIX 5 now supports IA64 processor
16958 lt_prog_compiler_static_GCJ='-Bstatic'
16960 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16964 # PIC is the default on this platform
16965 # Common symbols not allowed in MH_DYLIB files
16966 case $cc_basename in
16968 lt_prog_compiler_pic_GCJ='-qnocommon'
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16974 mingw* | cygwin* | pw32* | os2*)
16975 # This hack is so that the source file can tell whether it is being
16976 # built for inclusion in a dll (and should export symbols for example).
16980 hpux9* | hpux10* | hpux11*)
16981 lt_prog_compiler_wl_GCJ='-Wl,'
16982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983 # not for PA HP-UX.
16989 lt_prog_compiler_pic_GCJ='+Z'
16992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16993 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16996 irix5* | irix6* | nonstopux*)
16997 lt_prog_compiler_wl_GCJ='-Wl,'
16998 # PIC (with -KPIC) is the default.
16999 lt_prog_compiler_static_GCJ='-non_shared'
17003 lt_prog_compiler_pic_GCJ='-KPIC'
17004 lt_prog_compiler_static_GCJ='-Bstatic'
17007 linux* | k*bsd*-gnu)
17008 case $cc_basename in
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 lt_prog_compiler_pic_GCJ='-KPIC'
17012 lt_prog_compiler_static_GCJ='-static'
17014 pgcc* | pgf77* | pgf90* | pgf95*)
17015 # Portland Group compilers (*not* the Pentium gcc compiler,
17016 # which looks to be a dead project)
17017 lt_prog_compiler_wl_GCJ='-Wl,'
17018 lt_prog_compiler_pic_GCJ='-fpic'
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17022 lt_prog_compiler_wl_GCJ='-Wl,'
17023 # All Alpha code is PIC.
17024 lt_prog_compiler_static_GCJ='-non_shared'
17027 case `$CC -V 2>&1 | sed 5q` in
17030 lt_prog_compiler_pic_GCJ='-KPIC'
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17035 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17036 lt_prog_compiler_pic_GCJ='-KPIC'
17037 lt_prog_compiler_static_GCJ='-Bstatic'
17038 lt_prog_compiler_wl_GCJ=''
17045 osf3* | osf4* | osf5*)
17046 lt_prog_compiler_wl_GCJ='-Wl,'
17047 # All OSF/1 code is PIC.
17048 lt_prog_compiler_static_GCJ='-non_shared'
17052 lt_prog_compiler_static_GCJ='-non_shared'
17056 lt_prog_compiler_pic_GCJ='-KPIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17058 case $cc_basename in
17059 f77* | f90* | f95*)
17060 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17062 lt_prog_compiler_wl_GCJ='-Wl,';;
17067 lt_prog_compiler_wl_GCJ='-Qoption ld '
17068 lt_prog_compiler_pic_GCJ='-PIC'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17072 sysv4 | sysv4.2uw2* | sysv4.3*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 lt_prog_compiler_pic_GCJ='-KPIC'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17079 if test -d /usr/nec ;then
17080 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 lt_prog_compiler_pic_GCJ='-KPIC'
17088 lt_prog_compiler_static_GCJ='-Bstatic'
17092 lt_prog_compiler_wl_GCJ='-Wl,'
17093 lt_prog_compiler_can_build_shared_GCJ=no
17097 lt_prog_compiler_pic_GCJ='-pic'
17098 lt_prog_compiler_static_GCJ='-Bstatic'
17102 lt_prog_compiler_can_build_shared_GCJ=no
17107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17108 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17111 # Check to make sure the PIC flag actually works.
17113 if test -n "$lt_prog_compiler_pic_GCJ"; then
17115 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17116 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17117 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 lt_cv_prog_compiler_pic_works_GCJ=no
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17123 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17124 # Insert the option either (1) after the last *FLAGS variable, or
17125 # (2) before a word containing "conftest.", or (3) at the end.
17126 # Note that $ac_compile itself does not contain backslashes and begins
17127 # with a dollar sign (not a hyphen), so the echo should work correctly.
17128 # The option is referenced via a variable to avoid confusing sed.
17129 lt_compile=`echo "$ac_compile" | $SED \
17130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17132 -e 's:$: $lt_compiler_flag:'`
17133 (eval echo "\"\$as_me:17133: $lt_compile\"" >&5)
17134 (eval "$lt_compile" 2>conftest.err)
17136 cat conftest.err >&5
17137 echo "$as_me:17137: \$? = $ac_status" >&5
17138 if (exit $ac_status) && test -s "$ac_outfile"; then
17139 # The compiler can only warn and ignore the option if not recognized
17140 # So say no if there are warnings other than the usual output.
17141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17144 lt_cv_prog_compiler_pic_works_GCJ=yes
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17153 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17154 case $lt_prog_compiler_pic_GCJ in
17156 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17159 lt_prog_compiler_pic_GCJ=
17160 lt_prog_compiler_can_build_shared_GCJ=no
17165 # For platforms which do not support PIC, -DPIC is meaningless:
17167 lt_prog_compiler_pic_GCJ=
17170 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17175 # Check to make sure the static flag actually works.
17177 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17178 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17179 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17180 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 lt_cv_prog_compiler_static_works_GCJ=no
17184 save_LDFLAGS="$LDFLAGS"
17185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17188 # The linker can only warn and ignore the option if not recognized
17189 # So say no if there are warnings
17190 if test -s conftest.err; then
17191 # Append any errors to the config.log.
17192 cat conftest.err 1>&5
17193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17195 if diff conftest.exp conftest.er2 >/dev/null; then
17196 lt_cv_prog_compiler_static_works_GCJ=yes
17199 lt_cv_prog_compiler_static_works_GCJ=yes
17203 LDFLAGS="$save_LDFLAGS"
17206 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17207 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17209 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17212 lt_prog_compiler_static_GCJ=
17216 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17217 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17218 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 lt_cv_prog_compiler_c_o_GCJ=no
17222 $rm -r conftest 2>/dev/null
17226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17228 lt_compiler_flag="-o out/conftest2.$ac_objext"
17229 # Insert the option either (1) after the last *FLAGS variable, or
17230 # (2) before a word containing "conftest.", or (3) at the end.
17231 # Note that $ac_compile itself does not contain backslashes and begins
17232 # with a dollar sign (not a hyphen), so the echo should work correctly.
17233 lt_compile=`echo "$ac_compile" | $SED \
17234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17236 -e 's:$: $lt_compiler_flag:'`
17237 (eval echo "\"\$as_me:17237: $lt_compile\"" >&5)
17238 (eval "$lt_compile" 2>out/conftest.err)
17240 cat out/conftest.err >&5
17241 echo "$as_me:17241: \$? = $ac_status" >&5
17242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17244 # The compiler can only warn and ignore the option if not recognized
17245 # So say no if there are warnings
17246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17249 lt_cv_prog_compiler_c_o_GCJ=yes
17254 # SGI C++ compiler will create directory out/ii_files/ for
17255 # template instantiation
17256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17257 $rm out/* && rmdir out
17263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17267 hard_links="nottested"
17268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17269 # do not overwrite the value of need_locks provided by the user
17270 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17276 ln conftest.a conftest.b 2>&5 || hard_links=no
17277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17278 { echo "$as_me:$LINENO: result: $hard_links" >&5
17279 echo "${ECHO_T}$hard_links" >&6; }
17280 if test "$hard_links" = no; then
17281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17289 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17293 allow_undefined_flag_GCJ=
17294 enable_shared_with_static_runtimes_GCJ=no
17296 archive_expsym_cmds_GCJ=
17297 old_archive_From_new_cmds_GCJ=
17298 old_archive_from_expsyms_cmds_GCJ=
17299 export_dynamic_flag_spec_GCJ=
17300 whole_archive_flag_spec_GCJ=
17301 thread_safe_flag_spec_GCJ=
17302 hardcode_libdir_flag_spec_GCJ=
17303 hardcode_libdir_flag_spec_ld_GCJ=
17304 hardcode_libdir_separator_GCJ=
17305 hardcode_direct_GCJ=no
17306 hardcode_minus_L_GCJ=no
17307 hardcode_shlibpath_var_GCJ=unsupported
17308 link_all_deplibs_GCJ=unknown
17309 hardcode_automatic_GCJ=no
17311 module_expsym_cmds_GCJ=
17312 always_export_symbols_GCJ=no
17313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17314 # include_expsyms should be a list of space-separated symbols to be *always*
17315 # included in the symbol list
17316 include_expsyms_GCJ=
17317 # exclude_expsyms can be an extended regexp of symbols to exclude
17318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17320 # as well as any symbol that contains `d'.
17321 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17323 # platforms (ab)use it in PIC code, but their linkers get confused if
17324 # the symbol is explicitly referenced. Since portable code cannot
17325 # rely on this symbol name, it's probably fine to never include it in
17326 # preloaded symbol tables.
17327 # Exclude shared library initialization/finalization symbols.
17328 extract_expsyms_cmds=
17329 # Just being paranoid about ensuring that cc_basename is set.
17330 for cc_temp in $compiler""; do
17332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17341 cygwin* | mingw* | pw32*)
17342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17343 # When not using gcc, we currently assume that we are using
17344 # Microsoft Visual C++.
17345 if test "$GCC" != yes; then
17350 # we just hope/assume this is gcc and not c89 (= MSVC++)
17359 if test "$with_gnu_ld" = yes; then
17360 # If archive_cmds runs LD, not CC, wlarc should be empty
17363 # Set some defaults for GNU ld with shared library support. These
17364 # are reset later if shared libraries are not supported. Putting them
17365 # here allows them to be overridden if necessary.
17366 runpath_var=LD_RUN_PATH
17367 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17368 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17369 # ancient GNU ld didn't support --whole-archive et. al.
17370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17371 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17373 whole_archive_flag_spec_GCJ=
17375 supports_anon_versioning=no
17376 case `$LD -v 2>/dev/null` in
17377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17380 *\ 2.11.*) ;; # other 2.11 versions
17381 *) supports_anon_versioning=yes ;;
17384 # See if GNU ld supports shared libraries.
17387 # On AIX/PPC, the GNU linker is very broken
17388 if test "$host_cpu" != ia64; then
17392 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17393 *** to be unable to reliably create shared libraries on AIX.
17394 *** Therefore, libtool is disabling shared libraries support. If you
17395 *** really care for shared libraries, you may want to modify your PATH
17396 *** so that a non-GNU linker is found, and then restart.
17403 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)'
17404 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17405 hardcode_minus_L_GCJ=yes
17407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17408 # that the semantics of dynamic libraries on AmigaOS, at least up
17409 # to version 4, is to share data among multiple programs linked
17410 # with the same dynamic library. Since this doesn't match the
17411 # behavior of shared libraries on other platforms, we can't use
17417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418 allow_undefined_flag_GCJ=unsupported
17419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17420 # support --undefined. This deserves some investigation. FIXME
17421 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427 cygwin* | mingw* | pw32*)
17428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17429 # as there is no search path for DLLs.
17430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17431 allow_undefined_flag_GCJ=unsupported
17432 always_export_symbols_GCJ=no
17433 enable_shared_with_static_runtimes_GCJ=yes
17434 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17438 # If the export-symbols file already is a .def file (1st line
17439 # is EXPORTS), use it as is; otherwise, prepend...
17440 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 cp $export_symbols $output_objdir/$soname.def;
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
17446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17453 hardcode_direct_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17456 export_dynamic_flag_spec_GCJ='${wl}-E'
17457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17458 # Instead, shared libraries are loaded at an image base (0x10000000 by
17459 # default) and relocated if they conflict, which is a slow very memory
17460 # consuming and fragmenting process. To avoid this, we pick a random,
17461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17463 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'
17464 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'
17467 gnu* | linux* | k*bsd*-gnu)
17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17470 case $cc_basename,$host_cpu in
17471 pgcc*) # Portland Group C compiler
17472 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'
17473 tmp_addflag=' $pic_flag'
17475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17476 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'
17477 tmp_addflag=' $pic_flag -Mnomain' ;;
17478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17479 tmp_addflag=' -i_dynamic' ;;
17480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17481 tmp_addflag=' -i_dynamic -nofor_main' ;;
17482 ifc* | ifort*) # Intel Fortran compiler
17483 tmp_addflag=' -nofor_main' ;;
17485 case `$CC -V 2>&1 | sed 5q` in
17486 *Sun\ C*) # Sun C 5.9
17487 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17488 tmp_sharedflag='-G' ;;
17489 *Sun\ F*) # Sun Fortran 8.3
17490 tmp_sharedflag='-G' ;;
17492 tmp_sharedflag='-shared' ;;
17494 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496 if test $supports_anon_versioning = yes; then
17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17499 $echo "local: *; };" >> $output_objdir/$libname.ver~
17500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17502 link_all_deplibs_GCJ=no
17508 netbsd* | netbsdelf*-gnu)
17509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17510 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17519 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17523 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17524 *** create shared libraries on Solaris systems. Therefore, libtool
17525 *** is disabling shared libraries support. We urge you to upgrade GNU
17526 *** binutils to release 2.9.1 or newer. Another option is to modify
17527 *** your PATH or compiler configuration so that the native linker is
17528 *** used, and then restart.
17531 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17540 case `$LD -v 2>&1` in
17541 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17545 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17546 *** reliably create shared libraries on SCO systems. Therefore, libtool
17547 *** is disabling shared libraries support. We urge you to upgrade GNU
17548 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17549 *** your PATH or compiler configuration so that the native linker is
17550 *** used, and then restart.
17555 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17556 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17567 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_direct_GCJ=yes
17570 hardcode_shlibpath_var_GCJ=no
17574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17583 if test "$ld_shlibs_GCJ" = no; then
17585 hardcode_libdir_flag_spec_GCJ=
17586 export_dynamic_flag_spec_GCJ=
17587 whole_archive_flag_spec_GCJ=
17590 # PORTME fill in a description of your system's linker (not GNU ld)
17593 allow_undefined_flag_GCJ=unsupported
17594 always_export_symbols_GCJ=yes
17595 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'
17596 # Note: this linker hardcodes the directories in LIBPATH if there
17597 # are no directories specified by -L.
17598 hardcode_minus_L_GCJ=yes
17599 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17600 # Neither direct hardcoding nor static linking is supported with a
17602 hardcode_direct_GCJ=unsupported
17607 if test "$host_cpu" = ia64; then
17608 # On IA64, the linker does run time linking by default, so we don't
17609 # have to do anything special.
17610 aix_use_runtimelinking=no
17611 exp_sym_flag='-Bexport'
17614 # If we're using GNU nm, then we don't want the "-C" option.
17615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17616 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17617 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'
17619 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'
17621 aix_use_runtimelinking=no
17623 # Test if we are trying to use run time linking or normal
17624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17625 # need to do runtime linking.
17626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17627 for ld_flag in $LDFLAGS; do
17628 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17629 aix_use_runtimelinking=yes
17636 exp_sym_flag='-bexport'
17637 no_entry_flag='-bnoentry'
17640 # When large executables or shared objects are built, AIX ld can
17641 # have problems creating the table of contents. If linking a library
17642 # or program results in "error TOC overflow" add -mminimal-toc to
17643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17646 archive_cmds_GCJ=''
17647 hardcode_direct_GCJ=yes
17648 hardcode_libdir_separator_GCJ=':'
17649 link_all_deplibs_GCJ=yes
17651 if test "$GCC" = yes; then
17652 case $host_os in aix4.[012]|aix4.[012].*)
17653 # We only want to do this on AIX 4.2 and lower, the check
17654 # below for broken collect2 doesn't work under 4.3+
17655 collect2name=`${CC} -print-prog-name=collect2`
17656 if test -f "$collect2name" && \
17657 strings "$collect2name" | grep resolve_lib_name >/dev/null
17659 # We have reworked collect2
17662 # We have old collect2
17663 hardcode_direct_GCJ=unsupported
17664 # It fails to find uninstalled libraries when the uninstalled
17665 # path is not listed in the libpath. Setting hardcode_minus_L
17666 # to unsupported forces relinking
17667 hardcode_minus_L_GCJ=yes
17668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17669 hardcode_libdir_separator_GCJ=
17673 shared_flag='-shared'
17674 if test "$aix_use_runtimelinking" = yes; then
17675 shared_flag="$shared_flag "'${wl}-G'
17679 if test "$host_cpu" = ia64; then
17680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17681 # chokes on -Wl,-G. The following line is correct:
17684 if test "$aix_use_runtimelinking" = yes; then
17685 shared_flag='${wl}-G'
17687 shared_flag='${wl}-bM:SRE'
17692 # It seems that -bexpall does not export symbols beginning with
17693 # underscore (_), so it is better to generate a list of symbols to export.
17694 always_export_symbols_GCJ=yes
17695 if test "$aix_use_runtimelinking" = yes; then
17696 # Warning - without using the other runtime loading flags (-brtl),
17697 # -berok will link without error, but may produce a broken library.
17698 allow_undefined_flag_GCJ='-berok'
17699 # Determine the default libpath from the value encoded in an empty executable.
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17734 lt_aix_libpath_sed='
17735 /Import File Strings/,/^$/ {
17741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17742 # Check for a 64-bit object if we didn't find anything.
17743 if test -z "$aix_libpath"; then
17744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17754 conftest$ac_exeext conftest.$ac_ext
17755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17758 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"
17760 if test "$host_cpu" = ia64; then
17761 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17762 allow_undefined_flag_GCJ="-z nodefs"
17763 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"
17765 # Determine the default libpath from the value encoded in an empty executable.
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext &&
17798 $as_test_x conftest$ac_exeext; then
17800 lt_aix_libpath_sed='
17801 /Import File Strings/,/^$/ {
17807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17808 # Check for a 64-bit object if we didn't find anything.
17809 if test -z "$aix_libpath"; then
17810 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17820 conftest$ac_exeext conftest.$ac_ext
17821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17823 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17824 # Warning - without using the other run time loading flags,
17825 # -berok will link without error, but may produce a broken library.
17826 no_undefined_flag_GCJ=' ${wl}-bernotok'
17827 allow_undefined_flag_GCJ=' ${wl}-berok'
17828 # Exported symbols can be pulled into shared objects from archives
17829 whole_archive_flag_spec_GCJ='$convenience'
17830 archive_cmds_need_lc_GCJ=yes
17831 # This is similar to how AIX traditionally builds its shared libraries.
17832 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'
17838 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)'
17839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17840 hardcode_minus_L_GCJ=yes
17841 # see comment about different semantics on the GNU ld section
17846 export_dynamic_flag_spec_GCJ=-rdynamic
17849 cygwin* | mingw* | pw32*)
17850 # When not using gcc, we currently assume that we are using
17851 # Microsoft Visual C++.
17852 # hardcode_libdir_flag_spec is actually meaningless, as there is
17853 # no search path for DLLs.
17854 hardcode_libdir_flag_spec_GCJ=' '
17855 allow_undefined_flag_GCJ=unsupported
17856 # Tell ltmain to make .lib files, not .a files.
17858 # Tell ltmain to make .dll files, not .so files.
17860 # FIXME: Setting linknames here is a bad hack.
17861 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17862 # The linker will automatically build a .lib file if we build a DLL.
17863 old_archive_From_new_cmds_GCJ='true'
17864 # FIXME: Should let the user specify the lib program.
17865 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17866 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17867 enable_shared_with_static_runtimes_GCJ=yes
17870 darwin* | rhapsody*)
17872 rhapsody* | darwin1.[012])
17873 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17876 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17877 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17879 case ${MACOSX_DEPLOYMENT_TARGET} in
17881 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17884 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17890 archive_cmds_need_lc_GCJ=no
17891 hardcode_direct_GCJ=no
17892 hardcode_automatic_GCJ=yes
17893 hardcode_shlibpath_var_GCJ=unsupported
17894 whole_archive_flag_spec_GCJ=''
17895 link_all_deplibs_GCJ=yes
17896 if test "$GCC" = yes ; then
17897 output_verbose_link_cmd='echo'
17898 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17899 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17900 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17901 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17903 case $cc_basename in
17905 output_verbose_link_cmd='echo'
17906 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17907 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17909 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17910 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}'
17920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17922 hardcode_shlibpath_var_GCJ=no
17929 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17930 # support. Future versions do this automatically, but an explicit c++rt0.o
17931 # does not break anything, and helps significantly (at the cost of a little
17934 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17935 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17936 hardcode_direct_GCJ=yes
17937 hardcode_shlibpath_var_GCJ=no
17940 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17942 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17943 hardcode_direct_GCJ=yes
17944 hardcode_minus_L_GCJ=yes
17945 hardcode_shlibpath_var_GCJ=no
17948 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17949 freebsd* | dragonfly*)
17950 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17951 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17952 hardcode_direct_GCJ=yes
17953 hardcode_shlibpath_var_GCJ=no
17957 if test "$GCC" = yes; then
17958 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'
17960 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'
17962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17963 hardcode_libdir_separator_GCJ=:
17964 hardcode_direct_GCJ=yes
17966 # hardcode_minus_L: Not really in the search PATH,
17967 # but as the default location of the library.
17968 hardcode_minus_L_GCJ=yes
17969 export_dynamic_flag_spec_GCJ='${wl}-E'
17973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17974 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17978 if test "$with_gnu_ld" = no; then
17979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17980 hardcode_libdir_separator_GCJ=:
17982 hardcode_direct_GCJ=yes
17983 export_dynamic_flag_spec_GCJ='${wl}-E'
17985 # hardcode_minus_L: Not really in the search PATH,
17986 # but as the default location of the library.
17987 hardcode_minus_L_GCJ=yes
17992 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17995 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17998 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18007 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18013 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18017 if test "$with_gnu_ld" = no; then
18018 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18019 hardcode_libdir_separator_GCJ=:
18023 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18024 hardcode_direct_GCJ=no
18025 hardcode_shlibpath_var_GCJ=no
18028 hardcode_direct_GCJ=yes
18029 export_dynamic_flag_spec_GCJ='${wl}-E'
18031 # hardcode_minus_L: Not really in the search PATH,
18032 # but as the default location of the library.
18033 hardcode_minus_L_GCJ=yes
18039 irix5* | irix6* | nonstopux*)
18040 if test "$GCC" = yes; then
18041 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'
18043 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'
18044 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18047 hardcode_libdir_separator_GCJ=:
18048 link_all_deplibs_GCJ=yes
18051 netbsd* | netbsdelf*-gnu)
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18055 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18058 hardcode_direct_GCJ=yes
18059 hardcode_shlibpath_var_GCJ=no
18063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064 hardcode_direct_GCJ=yes
18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18066 hardcode_libdir_separator_GCJ=:
18067 hardcode_shlibpath_var_GCJ=no
18071 if test -f /usr/libexec/ld.so; then
18072 hardcode_direct_GCJ=yes
18073 hardcode_shlibpath_var_GCJ=no
18074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18075 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18097 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18098 hardcode_minus_L_GCJ=yes
18099 allow_undefined_flag_GCJ=unsupported
18100 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'
18101 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18105 if test "$GCC" = yes; then
18106 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18107 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'
18109 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18110 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'
18112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113 hardcode_libdir_separator_GCJ=:
18116 osf4* | osf5*) # as osf3* with the addition of -msym flag
18117 if test "$GCC" = yes; then
18118 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18119 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'
18120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18122 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18123 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'
18124 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~
18125 $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'
18127 # Both c and cxx compiler support -rpath directly
18128 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18130 hardcode_libdir_separator_GCJ=:
18134 no_undefined_flag_GCJ=' -z text'
18135 if test "$GCC" = yes; then
18137 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18139 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18142 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18146 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18147 hardcode_shlibpath_var_GCJ=no
18149 solaris2.[0-5] | solaris2.[0-5].*) ;;
18151 # The compiler driver will combine and reorder linker options,
18152 # but understands `-z linker_flag'. GCC discards it without `$wl',
18153 # but is careful enough not to reorder.
18154 # Supported since Solaris 2.6 (maybe 2.5.1?)
18155 if test "$GCC" = yes; then
18156 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18158 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18162 link_all_deplibs_GCJ=yes
18166 if test "x$host_vendor" = xsequent; then
18167 # Use $CC to link under sequent, because it throws in some extra .o
18168 # files that make .init and .fini sections work.
18169 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18171 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18174 hardcode_direct_GCJ=yes
18175 hardcode_minus_L_GCJ=yes
18176 hardcode_shlibpath_var_GCJ=no
18180 case $host_vendor in
18182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18183 hardcode_direct_GCJ=yes # is this really true???
18186 ## LD is ld it makes a PLAMLIB
18187 ## CC just makes a GrossModule.
18188 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18189 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18190 hardcode_direct_GCJ=no
18193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18194 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18197 runpath_var='LD_RUN_PATH'
18198 hardcode_shlibpath_var_GCJ=no
18202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 hardcode_shlibpath_var_GCJ=no
18204 export_dynamic_flag_spec_GCJ='-Bexport'
18208 if test -d /usr/nec; then
18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_shlibpath_var_GCJ=no
18211 runpath_var=LD_RUN_PATH
18212 hardcode_runpath_var=yes
18217 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18218 no_undefined_flag_GCJ='${wl}-z,text'
18219 archive_cmds_need_lc_GCJ=no
18220 hardcode_shlibpath_var_GCJ=no
18221 runpath_var='LD_RUN_PATH'
18223 if test "$GCC" = yes; then
18224 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18227 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18232 sysv5* | sco3.2v5* | sco5v6*)
18233 # Note: We can NOT use -z defs as we might desire, because we do not
18234 # link with -lc, and that would cause any symbols used from libc to
18235 # always be unresolved, which means just about no library would
18236 # ever link correctly. If we're not using GNU ld we use -z text
18237 # though, which does catch some bad symbols but isn't as heavy-handed
18239 no_undefined_flag_GCJ='${wl}-z,text'
18240 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18241 archive_cmds_need_lc_GCJ=no
18242 hardcode_shlibpath_var_GCJ=no
18243 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18244 hardcode_libdir_separator_GCJ=':'
18245 link_all_deplibs_GCJ=yes
18246 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18247 runpath_var='LD_RUN_PATH'
18249 if test "$GCC" = yes; then
18250 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18251 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18253 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18261 hardcode_shlibpath_var_GCJ=no
18270 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18271 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18272 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18275 # Do we need to explicitly link libc?
18277 case "x$archive_cmds_need_lc_GCJ" in
18279 # Assume -lc should be added
18280 archive_cmds_need_lc_GCJ=yes
18282 if test "$enable_shared" = yes && test "$GCC" = yes; then
18283 case $archive_cmds_GCJ in
18285 # FIXME: we may have to deal with multi-command sequences.
18288 # Test whether the compiler implicitly links with -lc since on some
18289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18290 # to ld, don't add -lc before -lgcc.
18291 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297 (eval $ac_compile) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } 2>conftest.err; then
18303 libobjs=conftest.$ac_objext
18305 wl=$lt_prog_compiler_wl_GCJ
18306 pic_flag=$lt_prog_compiler_pic_GCJ
18312 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18313 allow_undefined_flag_GCJ=
18314 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18315 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }
18320 archive_cmds_need_lc_GCJ=no
18322 archive_cmds_need_lc_GCJ=yes
18324 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18326 cat conftest.err 1>&5
18329 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18330 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18337 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18338 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18339 library_names_spec=
18340 libname_spec='lib$name'
18344 postuninstall_cmds=
18348 shlibpath_overrides_runpath=unknown
18350 dynamic_linker="$host_os ld.so"
18351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18353 need_lib_prefix=unknown
18354 hardcode_into_libs=no
18356 # when you set need_version to no, make sure it does not cause -set_version
18357 # flags to be left without arguments
18358 need_version=unknown
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18364 shlibpath_var=LIBPATH
18366 # AIX 3 has no versioning support, so we append a major version to the name.
18367 soname_spec='${libname}${release}${shared_ext}$major'
18374 hardcode_into_libs=yes
18375 if test "$host_cpu" = ia64; then
18376 # AIX 5 supports IA64
18377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18378 shlibpath_var=LD_LIBRARY_PATH
18380 # With GCC up to 2.95.x, collect2 would create an import file
18381 # for dependence libraries. The import file would start with
18382 # the line `#! .'. This would cause the generated library to
18383 # depend on `.', always an invalid library. This was fixed in
18384 # development snapshots of GCC prior to 3.0.
18386 aix4 | aix4.[01] | aix4.[01].*)
18387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18392 can_build_shared=no
18396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18397 # soname into executable. Probably we can add versioning support to
18398 # collect2, so additional links can be useful in future.
18399 if test "$aix_use_runtimelinking" = yes; then
18400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18401 # instead of lib<name>.a to let people know that these are not
18402 # typical AIX shared libraries.
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18405 # We preserve .a as extension for shared libraries through AIX4.2
18406 # and later when we are not doing run time linking.
18407 library_names_spec='${libname}${release}.a $libname.a'
18408 soname_spec='${libname}${release}${shared_ext}$major'
18410 shlibpath_var=LIBPATH
18415 library_names_spec='$libname.ixlibrary $libname.a'
18416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18417 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'
18421 library_names_spec='${libname}${shared_ext}'
18422 dynamic_linker="$host_os ld.so"
18423 shlibpath_var=LIBRARY_PATH
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18435 # the default ld.so.conf also contains /usr/contrib/lib and
18436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18437 # libtool to hard-code these into programs
18440 cygwin* | mingw* | pw32*)
18441 version_type=windows
18446 case $GCC,$host_os in
18447 yes,cygwin* | yes,mingw* | yes,pw32*)
18448 library_names_spec='$libname.dll.a'
18449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18450 postinstall_cmds='base_file=`basename \${file}`~
18451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18452 dldir=$destdir/`dirname \$dlpath`~
18453 test -d \$dldir || mkdir -p \$dldir~
18454 $install_prog $dir/$dlname \$dldir/$dlname~
18455 chmod a+x \$dldir/$dlname'
18456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18457 dlpath=$dir/\$dldll~
18459 shlibpath_overrides_runpath=yes
18463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18465 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18468 # MinGW DLLs use traditional 'lib' prefix
18469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18471 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18472 # It is most probably a Windows format PATH printed by
18473 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18474 # path with ; separators, and with drive letters. We can handle the
18475 # drive letters (cygwin fileutils understands them), so leave them,
18476 # especially as we might pass files found there to a mingw objdump,
18477 # which wouldn't understand a cygwinified path. Ahh.
18478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18484 # pw32 DLLs use 'pw' prefix rather than 'lib'
18485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18491 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18494 dynamic_linker='Win32 ld.exe'
18495 # FIXME: first we should search . and the directory the executable is in
18499 darwin* | rhapsody*)
18500 dynamic_linker="$host_os dyld"
18501 version_type=darwin
18504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18505 soname_spec='${libname}${release}${major}$shared_ext'
18506 shlibpath_overrides_runpath=yes
18507 shlibpath_var=DYLD_LIBRARY_PATH
18508 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 shlibpath_var=LD_LIBRARY_PATH
18526 freebsd* | dragonfly*)
18527 # DragonFly does not have aout. When/if they implement a new
18528 # versioning mechanism, adjust this.
18529 if test -x /usr/bin/objformat; then
18530 objformat=`/usr/bin/objformat`
18533 freebsd[123]*) objformat=aout ;;
18534 *) objformat=elf ;;
18537 version_type=freebsd-$objformat
18538 case $version_type in
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18549 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes
18554 freebsd3.[01]* | freebsdelf3.[01]*)
18555 shlibpath_overrides_runpath=yes
18556 hardcode_into_libs=yes
18558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18560 shlibpath_overrides_runpath=no
18561 hardcode_into_libs=yes
18563 *) # from 4.6 on, and DragonFly
18564 shlibpath_overrides_runpath=yes
18565 hardcode_into_libs=yes
18574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 shlibpath_var=LD_LIBRARY_PATH
18577 hardcode_into_libs=yes
18580 hpux9* | hpux10* | hpux11*)
18581 # Give a soname corresponding to the major version so that dld.sl refuses to
18582 # link against other versions.
18589 hardcode_into_libs=yes
18590 dynamic_linker="$host_os dld.so"
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 if test "X$HPUX_IA64_MODE" = X32; then
18596 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18598 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18604 hardcode_into_libs=yes
18605 dynamic_linker="$host_os dld.sl"
18606 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18615 dynamic_linker="$host_os dld.sl"
18616 shlibpath_var=SHLIB_PATH
18617 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18623 postinstall_cmds='chmod 555 $lib'
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 shlibpath_overrides_runpath=no
18635 hardcode_into_libs=yes
18638 irix5* | irix6* | nonstopux*)
18640 nonstopux*) version_type=nonstopux ;;
18642 if test "$lt_cv_prog_gnu_ld" = yes; then
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18653 irix5* | nonstopux*)
18654 libsuff= shlibsuff=
18657 case $LD in # libtool.m4 will add one of these switches to LD
18658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18659 libsuff= shlibsuff= libmagic=32-bit;;
18660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18661 libsuff=32 shlibsuff=N32 libmagic=N32;;
18662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18664 *) libsuff= shlibsuff= libmagic=never-match;;
18668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18669 shlibpath_overrides_runpath=no
18670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18672 hardcode_into_libs=yes
18675 # No shared lib support for Linux oldld, aout, or coff.
18676 linux*oldld* | linux*aout* | linux*coff*)
18680 # This must be Linux ELF.
18681 linux* | k*bsd*-gnu)
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=no
18690 # This implies no fast_install, which is unacceptable.
18691 # Some rework will be needed to allow for fast_install
18692 # before this can be enabled.
18693 hardcode_into_libs=yes
18695 # Append ld.so.conf contents to the search path
18696 if test -f /etc/ld.so.conf; then
18697 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18701 # We used to test for /lib/ld.so.1 and disable shared libraries on
18702 # powerpc, because MkLinux only supported shared libraries with the
18703 # GNU dynamic linker. Since this was broken with cross compilers,
18704 # most powerpc-linux boxes support dynamic linking these days and
18705 # people can always --disable-shared, the test was removed, and we
18706 # assume the GNU/Linux dynamic linker is in use.
18707 dynamic_linker='GNU/Linux ld.so'
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath=no
18718 hardcode_into_libs=yes
18719 dynamic_linker='NetBSD ld.elf_so'
18726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18729 dynamic_linker='NetBSD (a.out) ld.so'
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 dynamic_linker='NetBSD ld.elf_so'
18735 shlibpath_var=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath=yes
18737 hardcode_into_libs=yes
18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743 shlibpath_var=LD_LIBRARY_PATH
18744 shlibpath_overrides_runpath=yes
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=yes
18759 sys_lib_dlsearch_path_spec="/usr/lib"
18761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18763 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18764 *) need_version=no ;;
18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18771 openbsd2.[89] | openbsd2.[89].*)
18772 shlibpath_overrides_runpath=no
18775 shlibpath_overrides_runpath=yes
18779 shlibpath_overrides_runpath=yes
18784 libname_spec='$name'
18787 library_names_spec='$libname${shared_ext} $libname.a'
18788 dynamic_linker='OS/2 ld.exe'
18789 shlibpath_var=LIBPATH
18792 osf3* | osf4* | osf5*)
18796 soname_spec='${libname}${release}${shared_ext}$major'
18797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798 shlibpath_var=LD_LIBRARY_PATH
18799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18816 # ldd complains unless libraries are executable
18817 postinstall_cmds='chmod +x $lib'
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=yes
18826 if test "$with_gnu_ld" = yes; then
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 soname_spec='${libname}${release}${shared_ext}$major'
18836 shlibpath_var=LD_LIBRARY_PATH
18837 case $host_vendor in
18839 shlibpath_overrides_runpath=no
18841 export_dynamic_flag_spec='${wl}-Blargedynsym'
18842 runpath_var=LD_RUN_PATH
18850 shlibpath_overrides_runpath=no
18851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18857 if test -d /usr/nec ;then
18859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860 soname_spec='$libname${shared_ext}.$major'
18861 shlibpath_var=LD_LIBRARY_PATH
18865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18866 version_type=freebsd-elf
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 hardcode_into_libs=yes
18873 if test "$with_gnu_ld" = yes; then
18874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18875 shlibpath_overrides_runpath=no
18877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18878 shlibpath_overrides_runpath=yes
18881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18885 sys_lib_dlsearch_path_spec='/usr/lib'
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 soname_spec='${libname}${release}${shared_ext}$major'
18892 shlibpath_var=LD_LIBRARY_PATH
18899 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18900 echo "${ECHO_T}$dynamic_linker" >&6; }
18901 test "$dynamic_linker" = no && can_build_shared=no
18903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18909 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18919 if test "$GCC" = yes; then
18920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18923 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18924 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18925 hardcode_action_GCJ=
18926 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18927 test -n "$runpath_var_GCJ" || \
18928 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18930 # We can hardcode non-existant directories.
18931 if test "$hardcode_direct_GCJ" != no &&
18932 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18933 # have to relink, otherwise we might link with an installed library
18934 # when we should be linking with a yet-to-be-installed one
18935 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18936 test "$hardcode_minus_L_GCJ" != no; then
18937 # Linking always hardcodes the temporary library directory.
18938 hardcode_action_GCJ=relink
18940 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18941 hardcode_action_GCJ=immediate
18944 # We cannot hardcode anything, or else we can only hardcode existing
18946 hardcode_action_GCJ=unsupported
18948 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18949 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18951 if test "$hardcode_action_GCJ" = relink; then
18952 # Fast installation is not supported
18953 enable_fast_install=no
18954 elif test "$shlibpath_overrides_runpath" = yes ||
18955 test "$enable_shared" = no; then
18956 # Fast installation is not necessary
18957 enable_fast_install=needless
18961 # The else clause should only fire when bootstrapping the
18962 # libtool distribution, otherwise you forgot to ship ltmain.sh
18963 # with your package, and you will get complaints that there are
18964 # no rules to generate ltmain.sh.
18965 if test -f "$ltmain"; then
18966 # See if we are running on zsh, and set the options which allow our commands through
18967 # without removal of \ escapes.
18968 if test -n "${ZSH_VERSION+set}" ; then
18969 setopt NO_GLOB_SUBST
18971 # Now quote all the things that may contain metacharacters while being
18972 # careful not to overquote the AC_SUBSTed values. We take copies of the
18973 # variables and quote the copies for generation of the libtool script.
18974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18978 deplibs_check_method reload_flag reload_cmds need_locks \
18979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18980 lt_cv_sys_global_symbol_to_c_name_address \
18981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18982 old_postinstall_cmds old_postuninstall_cmds \
18986 lt_prog_compiler_wl_GCJ \
18987 lt_prog_compiler_pic_GCJ \
18988 lt_prog_compiler_static_GCJ \
18989 lt_prog_compiler_no_builtin_flag_GCJ \
18990 export_dynamic_flag_spec_GCJ \
18991 thread_safe_flag_spec_GCJ \
18992 whole_archive_flag_spec_GCJ \
18993 enable_shared_with_static_runtimes_GCJ \
18994 old_archive_cmds_GCJ \
18995 old_archive_from_new_cmds_GCJ \
18996 predep_objects_GCJ \
18997 postdep_objects_GCJ \
19000 compiler_lib_search_path_GCJ \
19001 compiler_lib_search_dirs_GCJ \
19003 archive_expsym_cmds_GCJ \
19004 postinstall_cmds_GCJ \
19005 postuninstall_cmds_GCJ \
19006 old_archive_from_expsyms_cmds_GCJ \
19007 allow_undefined_flag_GCJ \
19008 no_undefined_flag_GCJ \
19009 export_symbols_cmds_GCJ \
19010 hardcode_libdir_flag_spec_GCJ \
19011 hardcode_libdir_flag_spec_ld_GCJ \
19012 hardcode_libdir_separator_GCJ \
19013 hardcode_automatic_GCJ \
19015 module_expsym_cmds_GCJ \
19016 lt_cv_prog_compiler_c_o_GCJ \
19017 fix_srcfile_path_GCJ \
19018 exclude_expsyms_GCJ \
19019 include_expsyms_GCJ; do
19022 old_archive_cmds_GCJ | \
19023 old_archive_from_new_cmds_GCJ | \
19024 archive_cmds_GCJ | \
19025 archive_expsym_cmds_GCJ | \
19026 module_cmds_GCJ | \
19027 module_expsym_cmds_GCJ | \
19028 old_archive_from_expsyms_cmds_GCJ | \
19029 export_symbols_cmds_GCJ | \
19030 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19031 postinstall_cmds | postuninstall_cmds | \
19032 old_postinstall_cmds | old_postuninstall_cmds | \
19033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19034 # Double-quote double-evaled strings.
19035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19044 *'\$0 --fallback-echo"')
19045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19051 cat <<__EOF__ >> "$cfgfile"
19052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19056 # Shell to use when invoking shell scripts.
19059 # Whether or not to build shared libraries.
19060 build_libtool_libs=$enable_shared
19062 # Whether or not to build static libraries.
19063 build_old_libs=$enable_static
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19068 # Whether or not to disallow shared libs when runtime libs are static
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19071 # Whether or not to optimize for fast installation.
19072 fast_install=$enable_fast_install
19075 host_alias=$host_alias
19079 # The build system.
19080 build_alias=$build_alias
19084 # An echo program that does not interpret backslashes.
19089 AR_FLAGS=$lt_AR_FLAGS
19094 # LTCC compiler flags.
19095 LTCFLAGS=$lt_LTCFLAGS
19097 # A language-specific compiler.
19098 CC=$lt_compiler_GCJ
19100 # Is the compiler the GNU C compiler?
19106 # The linker used to build libraries.
19109 # Whether we need hard or soft links.
19112 # A BSD-compatible nm program.
19115 # A symbol stripping program
19118 # Used to examine libraries when file_magic_cmd begins "file"
19119 MAGIC_CMD=$MAGIC_CMD
19121 # Used on cygwin: DLL creation program.
19124 # Used on cygwin: object dumper.
19127 # Used on cygwin: assembler.
19130 # The name of the directory that contains temporary libtool files.
19133 # How to create reloadable object files.
19134 reload_flag=$lt_reload_flag
19135 reload_cmds=$lt_reload_cmds
19137 # How to pass a linker flag through the compiler.
19138 wl=$lt_lt_prog_compiler_wl_GCJ
19140 # Object file suffix (normally "o").
19141 objext="$ac_objext"
19143 # Old archive suffix (normally "a").
19146 # Shared library suffix (normally ".so").
19147 shrext_cmds='$shrext_cmds'
19149 # Executable file suffix (normally "").
19152 # Additional compiler flags for building library objects.
19153 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19156 # What is the maximum length of a command?
19157 max_cmd_len=$lt_cv_sys_max_cmd_len
19159 # Does compiler simultaneously support -c and -o options?
19160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19162 # Must we lock files when doing compilation?
19163 need_locks=$lt_need_locks
19165 # Do we need the lib prefix for modules?
19166 need_lib_prefix=$need_lib_prefix
19168 # Do we need a version for libraries?
19169 need_version=$need_version
19171 # Whether dlopen is supported.
19172 dlopen_support=$enable_dlopen
19174 # Whether dlopen of programs is supported.
19175 dlopen_self=$enable_dlopen_self
19177 # Whether dlopen of statically linked programs is supported.
19178 dlopen_self_static=$enable_dlopen_self_static
19180 # Compiler flag to prevent dynamic linking.
19181 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19183 # Compiler flag to turn off builtin functions.
19184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19186 # Compiler flag to allow reflexive dlopens.
19187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19189 # Compiler flag to generate shared objects directly from archives.
19190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19192 # Compiler flag to generate thread-safe objects.
19193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19195 # Library versioning type.
19196 version_type=$version_type
19198 # Format of library name prefix.
19199 libname_spec=$lt_libname_spec
19201 # List of archive names. First name is the real one, the rest are links.
19202 # The last name is the one that the linker finds with -lNAME.
19203 library_names_spec=$lt_library_names_spec
19205 # The coded name of the library, if different from the real name.
19206 soname_spec=$lt_soname_spec
19208 # Commands used to build and install an old-style archive.
19210 old_archive_cmds=$lt_old_archive_cmds_GCJ
19211 old_postinstall_cmds=$lt_old_postinstall_cmds
19212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214 # Create an old-style archive from a shared archive.
19215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19217 # Create a temporary old-style archive to link instead of a shared archive.
19218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19220 # Commands used to build and install a shared archive.
19221 archive_cmds=$lt_archive_cmds_GCJ
19222 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19223 postinstall_cmds=$lt_postinstall_cmds
19224 postuninstall_cmds=$lt_postuninstall_cmds
19226 # Commands used to build a loadable module (assumed same as above if empty)
19227 module_cmds=$lt_module_cmds_GCJ
19228 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19230 # Commands to strip libraries.
19231 old_striplib=$lt_old_striplib
19232 striplib=$lt_striplib
19234 # Dependencies to place before the objects being linked to create a
19236 predep_objects=$lt_predep_objects_GCJ
19238 # Dependencies to place after the objects being linked to create a
19240 postdep_objects=$lt_postdep_objects_GCJ
19242 # Dependencies to place before the objects being linked to create a
19244 predeps=$lt_predeps_GCJ
19246 # Dependencies to place after the objects being linked to create a
19248 postdeps=$lt_postdeps_GCJ
19250 # The directories searched by this compiler when creating a shared
19252 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19254 # The library search path used internally by the compiler when linking
19255 # a shared library.
19256 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19258 # Method to check whether dependent libraries are shared objects.
19259 deplibs_check_method=$lt_deplibs_check_method
19261 # Command to use when deplibs_check_method == file_magic.
19262 file_magic_cmd=$lt_file_magic_cmd
19264 # Flag that allows shared libraries with undefined symbols to be built.
19265 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19267 # Flag that forces no undefined symbols.
19268 no_undefined_flag=$lt_no_undefined_flag_GCJ
19270 # Commands used to finish a libtool library installation in a directory.
19271 finish_cmds=$lt_finish_cmds
19273 # Same as above, but a single script fragment to be evaled but not shown.
19274 finish_eval=$lt_finish_eval
19276 # Take the output of nm and produce a listing of raw symbols and C names.
19277 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19279 # Transform the output of nm in a proper C declaration
19280 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19282 # Transform the output of nm in a C name address pair
19283 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19285 # This is the shared library runtime path variable.
19286 runpath_var=$runpath_var
19288 # This is the shared library path variable.
19289 shlibpath_var=$shlibpath_var
19291 # Is shlibpath searched before the hard-coded library search path?
19292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19294 # How to hardcode a shared library path into an executable.
19295 hardcode_action=$hardcode_action_GCJ
19297 # Whether we should hardcode library paths into libraries.
19298 hardcode_into_libs=$hardcode_into_libs
19300 # Flag to hardcode \$libdir into a binary during linking.
19301 # This must work even if \$libdir does not exist.
19302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19304 # If ld is used when linking, flag to hardcode \$libdir into
19305 # a binary during linking. This must work even if \$libdir does
19307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19309 # Whether we need a single -rpath flag with a separated argument.
19310 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19312 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19313 # resulting binary.
19314 hardcode_direct=$hardcode_direct_GCJ
19316 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19317 # resulting binary.
19318 hardcode_minus_L=$hardcode_minus_L_GCJ
19320 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19321 # the resulting binary.
19322 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19324 # Set to yes if building a shared library automatically hardcodes DIR into the library
19325 # and all subsequent libraries and executables linked against it.
19326 hardcode_automatic=$hardcode_automatic_GCJ
19328 # Variables whose values should be saved in libtool wrapper scripts and
19329 # restored at relink time.
19330 variables_saved_for_relink="$variables_saved_for_relink"
19332 # Whether libtool must link a program against all its dependency libraries.
19333 link_all_deplibs=$link_all_deplibs_GCJ
19335 # Compile-time system search path for libraries
19336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19338 # Run-time system search path for libraries
19339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19341 # Fix the shell variable \$srcfile for the compiler.
19342 fix_srcfile_path=$lt_fix_srcfile_path
19344 # Set to yes if exported symbols are required.
19345 always_export_symbols=$always_export_symbols_GCJ
19347 # The commands to list exported symbols.
19348 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19350 # The commands to extract the exported symbol list from a shared archive.
19351 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19353 # Symbols that should not be listed in the preloaded symbols.
19354 exclude_expsyms=$lt_exclude_expsyms_GCJ
19356 # Symbols that must always be exported.
19357 include_expsyms=$lt_include_expsyms_GCJ
19359 # ### END LIBTOOL TAG CONFIG: $tagname
19365 # If there is no Makefile yet, we rely on a make rule to execute
19366 # `config.status --recheck' to rerun these tests and create the
19367 # libtool script then.
19368 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19369 if test -f "$ltmain_in"; then
19370 test -f Makefile && make "$ltmain"
19376 ac_cpp='$CPP $CPPFLAGS'
19377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391 # Source file extension for RC test sources.
19394 # Object file extension for compiled RC test sources.
19398 # Code to be used in simple compile tests
19399 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19401 # Code to be used in simple link tests
19402 lt_simple_link_test_code="$lt_simple_compile_test_code"
19404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19406 # If no C compiler was specified, use CC.
19409 # If no C compiler flags were specified, use CFLAGS.
19410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19412 # Allow CC to be a program name with arguments.
19416 # save warnings/boilerplate of simple test code
19417 ac_outfile=conftest.$ac_objext
19418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19420 _lt_compiler_boilerplate=`cat conftest.err`
19423 ac_outfile=conftest.$ac_objext
19424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19426 _lt_linker_boilerplate=`cat conftest.err`
19430 # Allow CC to be a program name with arguments.
19435 for cc_temp in $compiler""; do
19437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19445 lt_cv_prog_compiler_c_o_RC=yes
19447 # The else clause should only fire when bootstrapping the
19448 # libtool distribution, otherwise you forgot to ship ltmain.sh
19449 # with your package, and you will get complaints that there are
19450 # no rules to generate ltmain.sh.
19451 if test -f "$ltmain"; then
19452 # See if we are running on zsh, and set the options which allow our commands through
19453 # without removal of \ escapes.
19454 if test -n "${ZSH_VERSION+set}" ; then
19455 setopt NO_GLOB_SUBST
19457 # Now quote all the things that may contain metacharacters while being
19458 # careful not to overquote the AC_SUBSTed values. We take copies of the
19459 # variables and quote the copies for generation of the libtool script.
19460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19464 deplibs_check_method reload_flag reload_cmds need_locks \
19465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19466 lt_cv_sys_global_symbol_to_c_name_address \
19467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19468 old_postinstall_cmds old_postuninstall_cmds \
19472 lt_prog_compiler_wl_RC \
19473 lt_prog_compiler_pic_RC \
19474 lt_prog_compiler_static_RC \
19475 lt_prog_compiler_no_builtin_flag_RC \
19476 export_dynamic_flag_spec_RC \
19477 thread_safe_flag_spec_RC \
19478 whole_archive_flag_spec_RC \
19479 enable_shared_with_static_runtimes_RC \
19480 old_archive_cmds_RC \
19481 old_archive_from_new_cmds_RC \
19482 predep_objects_RC \
19483 postdep_objects_RC \
19486 compiler_lib_search_path_RC \
19487 compiler_lib_search_dirs_RC \
19489 archive_expsym_cmds_RC \
19490 postinstall_cmds_RC \
19491 postuninstall_cmds_RC \
19492 old_archive_from_expsyms_cmds_RC \
19493 allow_undefined_flag_RC \
19494 no_undefined_flag_RC \
19495 export_symbols_cmds_RC \
19496 hardcode_libdir_flag_spec_RC \
19497 hardcode_libdir_flag_spec_ld_RC \
19498 hardcode_libdir_separator_RC \
19499 hardcode_automatic_RC \
19501 module_expsym_cmds_RC \
19502 lt_cv_prog_compiler_c_o_RC \
19503 fix_srcfile_path_RC \
19504 exclude_expsyms_RC \
19505 include_expsyms_RC; do
19508 old_archive_cmds_RC | \
19509 old_archive_from_new_cmds_RC | \
19510 archive_cmds_RC | \
19511 archive_expsym_cmds_RC | \
19513 module_expsym_cmds_RC | \
19514 old_archive_from_expsyms_cmds_RC | \
19515 export_symbols_cmds_RC | \
19516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19517 postinstall_cmds | postuninstall_cmds | \
19518 old_postinstall_cmds | old_postuninstall_cmds | \
19519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19520 # Double-quote double-evaled strings.
19521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19530 *'\$0 --fallback-echo"')
19531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19537 cat <<__EOF__ >> "$cfgfile"
19538 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19542 # Shell to use when invoking shell scripts.
19545 # Whether or not to build shared libraries.
19546 build_libtool_libs=$enable_shared
19548 # Whether or not to build static libraries.
19549 build_old_libs=$enable_static
19551 # Whether or not to add -lc for building shared libraries.
19552 build_libtool_need_lc=$archive_cmds_need_lc_RC
19554 # Whether or not to disallow shared libs when runtime libs are static
19555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19557 # Whether or not to optimize for fast installation.
19558 fast_install=$enable_fast_install
19561 host_alias=$host_alias
19565 # The build system.
19566 build_alias=$build_alias
19570 # An echo program that does not interpret backslashes.
19575 AR_FLAGS=$lt_AR_FLAGS
19580 # LTCC compiler flags.
19581 LTCFLAGS=$lt_LTCFLAGS
19583 # A language-specific compiler.
19586 # Is the compiler the GNU C compiler?
19592 # The linker used to build libraries.
19595 # Whether we need hard or soft links.
19598 # A BSD-compatible nm program.
19601 # A symbol stripping program
19604 # Used to examine libraries when file_magic_cmd begins "file"
19605 MAGIC_CMD=$MAGIC_CMD
19607 # Used on cygwin: DLL creation program.
19610 # Used on cygwin: object dumper.
19613 # Used on cygwin: assembler.
19616 # The name of the directory that contains temporary libtool files.
19619 # How to create reloadable object files.
19620 reload_flag=$lt_reload_flag
19621 reload_cmds=$lt_reload_cmds
19623 # How to pass a linker flag through the compiler.
19624 wl=$lt_lt_prog_compiler_wl_RC
19626 # Object file suffix (normally "o").
19627 objext="$ac_objext"
19629 # Old archive suffix (normally "a").
19632 # Shared library suffix (normally ".so").
19633 shrext_cmds='$shrext_cmds'
19635 # Executable file suffix (normally "").
19638 # Additional compiler flags for building library objects.
19639 pic_flag=$lt_lt_prog_compiler_pic_RC
19642 # What is the maximum length of a command?
19643 max_cmd_len=$lt_cv_sys_max_cmd_len
19645 # Does compiler simultaneously support -c and -o options?
19646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19648 # Must we lock files when doing compilation?
19649 need_locks=$lt_need_locks
19651 # Do we need the lib prefix for modules?
19652 need_lib_prefix=$need_lib_prefix
19654 # Do we need a version for libraries?
19655 need_version=$need_version
19657 # Whether dlopen is supported.
19658 dlopen_support=$enable_dlopen
19660 # Whether dlopen of programs is supported.
19661 dlopen_self=$enable_dlopen_self
19663 # Whether dlopen of statically linked programs is supported.
19664 dlopen_self_static=$enable_dlopen_self_static
19666 # Compiler flag to prevent dynamic linking.
19667 link_static_flag=$lt_lt_prog_compiler_static_RC
19669 # Compiler flag to turn off builtin functions.
19670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19672 # Compiler flag to allow reflexive dlopens.
19673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19675 # Compiler flag to generate shared objects directly from archives.
19676 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19678 # Compiler flag to generate thread-safe objects.
19679 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19681 # Library versioning type.
19682 version_type=$version_type
19684 # Format of library name prefix.
19685 libname_spec=$lt_libname_spec
19687 # List of archive names. First name is the real one, the rest are links.
19688 # The last name is the one that the linker finds with -lNAME.
19689 library_names_spec=$lt_library_names_spec
19691 # The coded name of the library, if different from the real name.
19692 soname_spec=$lt_soname_spec
19694 # Commands used to build and install an old-style archive.
19696 old_archive_cmds=$lt_old_archive_cmds_RC
19697 old_postinstall_cmds=$lt_old_postinstall_cmds
19698 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19700 # Create an old-style archive from a shared archive.
19701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19703 # Create a temporary old-style archive to link instead of a shared archive.
19704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19706 # Commands used to build and install a shared archive.
19707 archive_cmds=$lt_archive_cmds_RC
19708 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19709 postinstall_cmds=$lt_postinstall_cmds
19710 postuninstall_cmds=$lt_postuninstall_cmds
19712 # Commands used to build a loadable module (assumed same as above if empty)
19713 module_cmds=$lt_module_cmds_RC
19714 module_expsym_cmds=$lt_module_expsym_cmds_RC
19716 # Commands to strip libraries.
19717 old_striplib=$lt_old_striplib
19718 striplib=$lt_striplib
19720 # Dependencies to place before the objects being linked to create a
19722 predep_objects=$lt_predep_objects_RC
19724 # Dependencies to place after the objects being linked to create a
19726 postdep_objects=$lt_postdep_objects_RC
19728 # Dependencies to place before the objects being linked to create a
19730 predeps=$lt_predeps_RC
19732 # Dependencies to place after the objects being linked to create a
19734 postdeps=$lt_postdeps_RC
19736 # The directories searched by this compiler when creating a shared
19738 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19740 # The library search path used internally by the compiler when linking
19741 # a shared library.
19742 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19744 # Method to check whether dependent libraries are shared objects.
19745 deplibs_check_method=$lt_deplibs_check_method
19747 # Command to use when deplibs_check_method == file_magic.
19748 file_magic_cmd=$lt_file_magic_cmd
19750 # Flag that allows shared libraries with undefined symbols to be built.
19751 allow_undefined_flag=$lt_allow_undefined_flag_RC
19753 # Flag that forces no undefined symbols.
19754 no_undefined_flag=$lt_no_undefined_flag_RC
19756 # Commands used to finish a libtool library installation in a directory.
19757 finish_cmds=$lt_finish_cmds
19759 # Same as above, but a single script fragment to be evaled but not shown.
19760 finish_eval=$lt_finish_eval
19762 # Take the output of nm and produce a listing of raw symbols and C names.
19763 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19765 # Transform the output of nm in a proper C declaration
19766 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19768 # Transform the output of nm in a C name address pair
19769 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19771 # This is the shared library runtime path variable.
19772 runpath_var=$runpath_var
19774 # This is the shared library path variable.
19775 shlibpath_var=$shlibpath_var
19777 # Is shlibpath searched before the hard-coded library search path?
19778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19780 # How to hardcode a shared library path into an executable.
19781 hardcode_action=$hardcode_action_RC
19783 # Whether we should hardcode library paths into libraries.
19784 hardcode_into_libs=$hardcode_into_libs
19786 # Flag to hardcode \$libdir into a binary during linking.
19787 # This must work even if \$libdir does not exist.
19788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19790 # If ld is used when linking, flag to hardcode \$libdir into
19791 # a binary during linking. This must work even if \$libdir does
19793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19795 # Whether we need a single -rpath flag with a separated argument.
19796 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19798 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19799 # resulting binary.
19800 hardcode_direct=$hardcode_direct_RC
19802 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19803 # resulting binary.
19804 hardcode_minus_L=$hardcode_minus_L_RC
19806 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19807 # the resulting binary.
19808 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19810 # Set to yes if building a shared library automatically hardcodes DIR into the library
19811 # and all subsequent libraries and executables linked against it.
19812 hardcode_automatic=$hardcode_automatic_RC
19814 # Variables whose values should be saved in libtool wrapper scripts and
19815 # restored at relink time.
19816 variables_saved_for_relink="$variables_saved_for_relink"
19818 # Whether libtool must link a program against all its dependency libraries.
19819 link_all_deplibs=$link_all_deplibs_RC
19821 # Compile-time system search path for libraries
19822 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19824 # Run-time system search path for libraries
19825 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19827 # Fix the shell variable \$srcfile for the compiler.
19828 fix_srcfile_path=$lt_fix_srcfile_path
19830 # Set to yes if exported symbols are required.
19831 always_export_symbols=$always_export_symbols_RC
19833 # The commands to list exported symbols.
19834 export_symbols_cmds=$lt_export_symbols_cmds_RC
19836 # The commands to extract the exported symbol list from a shared archive.
19837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19839 # Symbols that should not be listed in the preloaded symbols.
19840 exclude_expsyms=$lt_exclude_expsyms_RC
19842 # Symbols that must always be exported.
19843 include_expsyms=$lt_include_expsyms_RC
19845 # ### END LIBTOOL TAG CONFIG: $tagname
19851 # If there is no Makefile yet, we rely on a make rule to execute
19852 # `config.status --recheck' to rerun these tests and create the
19853 # libtool script then.
19854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19855 if test -f "$ltmain_in"; then
19856 test -f Makefile && make "$ltmain"
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19872 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19873 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19874 { (exit 1); exit 1; }; }
19878 # Append the new tag name to the list of available tags.
19879 if test -n "$tagname" ; then
19880 available_tags="$available_tags $tagname"
19886 # Now substitute the updated list of available tags.
19887 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19888 mv "${ofile}T" "$ofile"
19892 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19893 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19894 { (exit 1); exit 1; }; }
19900 # This can be used to rebuild libtool when needed
19901 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19903 # Always use our own libtool.
19904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19906 # Prevent multiple expansion
19928 # Checks for header files.
19929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19931 if test "${ac_cv_header_stdc+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 #include <stdlib.h>
19941 #include <stdarg.h>
19942 #include <string.h>
19953 rm -f conftest.$ac_objext
19954 if { (ac_try="$ac_compile"
19955 case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_compile") 2>conftest.er1
19962 grep -v '^ *+' conftest.er1 >conftest.err
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && {
19967 test -z "$ac_c_werror_flag" ||
19968 test ! -s conftest.err
19969 } && test -s conftest.$ac_objext; then
19970 ac_cv_header_stdc=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_header_stdc=no
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 if test $ac_cv_header_stdc = yes; then
19981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 #include <string.h>
19991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19992 $EGREP "memchr" >/dev/null 2>&1; then
19995 ac_cv_header_stdc=no
20001 if test $ac_cv_header_stdc = yes; then
20002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <stdlib.h>
20012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20013 $EGREP "free" >/dev/null 2>&1; then
20016 ac_cv_header_stdc=no
20022 if test $ac_cv_header_stdc = yes; then
20023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20024 if test "$cross_compiling" = yes; then
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20034 #include <stdlib.h>
20035 #if ((' ' & 0x0FF) == 0x020)
20036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20039 # define ISLOWER(c) \
20040 (('a' <= (c) && (c) <= 'i') \
20041 || ('j' <= (c) && (c) <= 'r') \
20042 || ('s' <= (c) && (c) <= 'z'))
20043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20051 for (i = 0; i < 256; i++)
20052 if (XOR (islower (i), ISLOWER (i))
20053 || toupper (i) != TOUPPER (i))
20058 rm -f conftest$ac_exeext
20059 if { (ac_try="$ac_link"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_link") 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20080 echo "$as_me: program exited with status $ac_status" >&5
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ( exit $ac_status )
20085 ac_cv_header_stdc=no
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20095 if test $ac_cv_header_stdc = yes; then
20097 cat >>confdefs.h <<\_ACEOF
20098 #define STDC_HEADERS 1
20107 for ac_header in fcntl.h stdlib.h string.h unistd.h
20109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 ac_res=`eval echo '${'$as_ac_Header'}'`
20117 { echo "$as_me:$LINENO: result: $ac_res" >&5
20118 echo "${ECHO_T}$ac_res" >&6; }
20120 # Is the header compilable?
20121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 $ac_includes_default
20130 #include <$ac_header>
20132 rm -f conftest.$ac_objext
20133 if { (ac_try="$ac_compile"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest.$ac_objext; then
20149 ac_header_compiler=yes
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_header_compiler=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159 echo "${ECHO_T}$ac_header_compiler" >&6; }
20161 # Is the header present?
20162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 #include <$ac_header>
20172 if { (ac_try="$ac_cpp conftest.$ac_ext"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20188 ac_header_preproc=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20196 rm -f conftest.err conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 echo "${ECHO_T}$ac_header_preproc" >&6; }
20200 # So? What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20207 ac_header_preproc=yes
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20223 ## -------------------------------------------- ##
20224 ## Report this to sebastian.marsching@suphp.org ##
20225 ## -------------------------------------------- ##
20227 ) | sed "s/^/$as_me: WARNING: /" >&2
20230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 eval "$as_ac_Header=\$ac_header_preproc"
20237 ac_res=`eval echo '${'$as_ac_Header'}'`
20238 { echo "$as_me:$LINENO: result: $ac_res" >&5
20239 echo "${ECHO_T}$ac_res" >&6; }
20242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20257 if test "$ac_cv_emxos2" = "yes"; then
20258 # Scripts don't pass test -x on OS/2
20264 { echo "$as_me:$LINENO: checking for APR" >&5
20265 echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
20267 # Check whether --with-apr was given.
20268 if test "${with_apr+set}" = set; then
20270 if test "$withval" = "no" || test "$withval" = "yes"; then
20271 { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
20272 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
20273 { (exit 1); exit 1; }; }
20276 if $TEST_X "$withval/bin/apr-config"; then
20278 apr_config="$withval/bin/apr-config"
20279 elif $TEST_X "$withval/apr-config"; then
20281 apr_config="$withval/apr-config"
20282 elif $TEST_X "$withval/bin/apr-1-config"; then
20284 apr_config="$withval/bin/apr-1-config"
20285 elif $TEST_X "$withval/apr-1-config"; then
20287 apr_config="$withval/apr-1-config"
20288 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
20290 apr_config="$withval"
20293 if test "$apr_found" != "yes"; then
20294 { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20295 build directory, or an apr-config file." >&5
20296 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20297 build directory, or an apr-config file." >&2;}
20298 { (exit 1); exit 1; }; }
20303 if test -d ""; then
20304 apr_temp_abs_srcdir="`cd && pwd`"
20305 apr_found="reconfig"
20306 if test -n ""; then
20307 apr_config="/apr-config"
20309 apr_config="/apr-config"
20312 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
20313 if apr-config --help > /dev/null 2>&1 ; then
20315 apr_config="apr-config"
20317 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
20318 if $TEST_X "$lookdir/bin/apr-config"; then
20320 apr_config="$lookdir/bin/apr-config"
20330 { echo "$as_me:$LINENO: result: $apr_found" >&5
20331 echo "${ECHO_T}$apr_found" >&6; }
20334 # Determine Apache version and find apxs
20336 { echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
20337 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6; }
20339 # Check whether --with-apxs was given.
20340 if test "${with_apxs+set}" = set; then
20341 withval=$with_apxs;
20342 if test "$withval" = "yes"; then
20351 if test -z "$APXS"; then
20355 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
20356 for i in /usr/sbin /usr/local/apache/bin ; do
20357 if test -f "$i/apxs"; then
20363 if test -n "$APXS"; then
20366 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
20367 | grep "Server version" \
20371 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
20372 if test "$major_version" = "2.0" -o "$major_version" = "2.2"; then
20373 APACHE_VERSION_2=true
20374 APACHE_VERSION_1_3=false
20376 APACHE_VERSION_2=false
20377 APACHE_VERSION_1_3=true
20382 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
20383 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
20384 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20385 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
20387 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
20388 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
20394 { echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
20395 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6; }
20400 { echo "$as_me:$LINENO: result: no" >&5
20401 echo "${ECHO_T}no" >&6; }
20404 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20405 if test x"${apr_found}" = xyes ; then \
20406 APR_INCLUDEDIR=`${apr_config} --includedir`
20408 APR_CPPFLAGS=`${apr_config} --cppflags`
20411 { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
20412 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
20413 { (exit 1); exit 1; }; }
20419 { echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
20420 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6; }
20422 # Check whether --with-setid-mode was given.
20423 if test "${with_setid_mode+set}" = set; then
20424 withval=$with_setid_mode;
20425 if test "$withval" = "yes"; then
20426 SETID_MODE="paranoid"
20428 SETID_MODE="$withval"
20434 if test -z "$SETID_MODE" ; then
20435 SETID_MODE="paranoid"
20438 if test -n "$SETID_MODE"; then
20439 case "$SETID_MODE" in
20441 OPT_APACHEMOD_USERGROUP_DEF=""
20444 cat >>confdefs.h <<\_ACEOF
20445 #define OPT_USERGROUP_OWNER 1
20450 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20453 cat >>confdefs.h <<\_ACEOF
20454 #define OPT_USERGROUP_FORCE 1
20459 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20462 cat >>confdefs.h <<\_ACEOF
20463 #define OPT_USERGROUP_PARANOID 1
20468 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
20469 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
20470 { (exit 1); exit 1; }; }
20473 { echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
20474 echo "${ECHO_T}ok - using $SETID_MODE" >&6; }
20478 # Checkpath (docroot) option
20481 # Check whether --enable-checkpath was given.
20482 if test "${enable_checkpath+set}" = set; then
20483 enableval=$enable_checkpath;
20484 if test "$enableval" = "no"; then
20487 cat >>confdefs.h <<\_ACEOF
20488 #define OPT_DISABLE_CHECKPATH 1
20500 # Check whether --with-min-uid was given.
20501 if test "${with_min_uid+set}" = set; then
20502 withval=$with_min_uid;
20503 if test "$withval" -a ! "$withval" = "yes" ; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define OPT_MIN_UID $withval
20514 cat >>confdefs.h <<\_ACEOF
20515 #define OPT_MIN_UID 100
20525 # Check whether --with-min-gid was given.
20526 if test "${with_min_gid+set}" = set; then
20527 withval=$with_min_gid;
20528 if test "$withval" -a ! "$withval" = "yes" ; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define OPT_MIN_GID $withval
20539 cat >>confdefs.h <<\_ACEOF
20540 #define OPT_MIN_GID 100
20551 # Check whether --with-apache-user was given.
20552 if test "${with_apache_user+set}" = set; then
20553 withval=$with_apache_user;
20554 if test "$withval" -a ! "$withval" = "yes" ; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define OPT_APACHE_USER "$withval"
20565 cat >>confdefs.h <<_ACEOF
20566 #define OPT_APACHE_USER "wwwrun"
20576 # Check whether --with-logfile was given.
20577 if test "${with_logfile+set}" = set; then
20578 withval=$with_logfile;
20579 if test "$withval" -a ! "$withval" = "yes" ; then
20581 cat >>confdefs.h <<_ACEOF
20582 #define OPT_LOGFILE "$withval"
20590 cat >>confdefs.h <<_ACEOF
20591 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
20599 # Conditional building of Apache module
20600 if test x"$APACHE_VERSION_1_3" = xtrue; then
20602 COND_AP13_FALSE='#'
20608 if test x"$APACHE_VERSION_2" = xtrue; then
20610 COND_AP20_FALSE='#'
20617 # Conditionally include UserGroup support
20618 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
20619 COND_APUSERGROUP_TRUE=
20620 COND_APUSERGROUP_FALSE='#'
20622 COND_APUSERGROUP_TRUE='#'
20623 COND_APUSERGROUP_FALSE=
20627 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
20629 cat >confcache <<\_ACEOF
20630 # This file is a shell script that caches the results of configure
20631 # tests run on this system so they can be shared between configure
20632 # scripts and configure runs, see configure's option --config-cache.
20633 # It is not useful on other systems. If it contains results you don't
20634 # want to keep, you may remove or edit it.
20636 # config.status only pays attention to the cache file if you give it
20637 # the --recheck option to rerun configure.
20639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20641 # following values.
20645 # The following way of writing the cache mishandles newlines in values,
20646 # but we know of no workaround that is simple, portable, and efficient.
20647 # So, we kill variables containing newlines.
20648 # Ultrix sh set writes to stderr and can't be redirected directly,
20649 # and sets the high bit in the cache file unless we assign to the vars.
20651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20652 eval ac_val=\$$ac_var
20656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20660 _ | IFS | as_nl) ;; #(
20661 *) $as_unset $ac_var ;;
20667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20668 *${as_nl}ac_space=\ *)
20669 # `set' does not quote correctly, so add quotes (double-quote
20670 # substitution turns \\\\ into \\, and sed turns \\ into \).
20673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20676 # `set' quotes correctly as required by POSIX, so do not add quotes.
20677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20691 if test -w "$cache_file"; then
20692 test "x$cache_file" != "x/dev/null" &&
20693 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20694 echo "$as_me: updating cache $cache_file" >&6;}
20695 cat confcache >$cache_file
20697 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20698 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20704 # Let make expand exec_prefix.
20705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20707 DEFS=-DHAVE_CONFIG_H
20711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20712 # 1. Remove the extension, and $U if already installed.
20713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20714 ac_i=`echo "$ac_i" | sed "$ac_script"`
20715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20716 # will be set to the directory where LIBOBJS objects are built.
20717 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20718 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20720 LIBOBJS=$ac_libobjs
20722 LTLIBOBJS=$ac_ltlibobjs
20725 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20727 Usually this means the macro was only invoked conditionally." >&5
20728 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20729 Usually this means the macro was only invoked conditionally." >&2;}
20730 { (exit 1); exit 1; }; }
20732 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20734 Usually this means the macro was only invoked conditionally." >&5
20735 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20736 Usually this means the macro was only invoked conditionally." >&2;}
20737 { (exit 1); exit 1; }; }
20739 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20740 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20741 Usually this means the macro was only invoked conditionally." >&5
20742 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20743 Usually this means the macro was only invoked conditionally." >&2;}
20744 { (exit 1); exit 1; }; }
20746 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
20747 { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
20748 Usually this means the macro was only invoked conditionally." >&5
20749 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
20750 Usually this means the macro was only invoked conditionally." >&2;}
20751 { (exit 1); exit 1; }; }
20753 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
20754 { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
20755 Usually this means the macro was only invoked conditionally." >&5
20756 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
20757 Usually this means the macro was only invoked conditionally." >&2;}
20758 { (exit 1); exit 1; }; }
20760 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
20761 { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
20762 Usually this means the macro was only invoked conditionally." >&5
20763 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
20764 Usually this means the macro was only invoked conditionally." >&2;}
20765 { (exit 1); exit 1; }; }
20768 : ${CONFIG_STATUS=./config.status}
20769 ac_clean_files_save=$ac_clean_files
20770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20773 cat >$CONFIG_STATUS <<_ACEOF
20775 # Generated by $as_me.
20776 # Run this file to recreate the current configuration.
20777 # Compiler output produced by configure, useful for debugging
20778 # configure, is in config.log if it exists.
20781 ac_cs_recheck=false
20783 SHELL=\${CONFIG_SHELL-$SHELL}
20786 cat >>$CONFIG_STATUS <<\_ACEOF
20787 ## --------------------- ##
20788 ## M4sh Initialization. ##
20789 ## --------------------- ##
20791 # Be more Bourne compatible
20792 DUALCASE=1; export DUALCASE # for MKS sh
20793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20797 # is contrary to our usage. Disable this feature.
20798 alias -g '${1+"$@"}'='"$@"'
20799 setopt NO_GLOB_SUBST
20801 case `(set -o) 2>/dev/null` in
20802 *posix*) set -o posix ;;
20811 # Avoid depending upon Character Ranges.
20812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20815 as_cr_digits='0123456789'
20816 as_cr_alnum=$as_cr_Letters$as_cr_digits
20818 # The user is always right.
20819 if test "${PATH_SEPARATOR+set}" != set; then
20820 echo "#! /bin/sh" >conf$$.sh
20821 echo "exit 0" >>conf$$.sh
20823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20831 # Support unset when possible.
20832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20840 # We need space, tab and new line, in precisely that order. Quoting is
20841 # there to prevent editors from complaining about space-tab.
20842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20843 # splitting by setting IFS to empty value.)
20848 # Find who we are. Look in the path if we contain no directory separator.
20850 *[\\/]* ) as_myself=$0 ;;
20851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20852 for as_dir in $PATH
20855 test -z "$as_dir" && as_dir=.
20856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20862 # We did not find ourselves, most probably we were run as `sh COMMAND'
20863 # in which case we are not to be found in the path.
20864 if test "x$as_myself" = x; then
20867 if test ! -f "$as_myself"; then
20868 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20869 { (exit 1); exit 1; }
20872 # Work around bugs in pre-3.0 UWIN ksh.
20873 for as_var in ENV MAIL MAILPATH
20874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20884 LC_TELEPHONE LC_TIME
20886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20887 eval $as_var=C; export $as_var
20889 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20893 # Required to use basename.
20894 if expr a : '\(a\)' >/dev/null 2>&1 &&
20895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20902 as_basename=basename
20908 # Name of the executable.
20909 as_me=`$as_basename -- "$0" ||
20910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20911 X"$0" : 'X\(//\)$' \| \
20912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20914 sed '/^.*\/\([^/][^/]*\)\/*$/{
20933 as_lineno_1=$LINENO
20934 as_lineno_2=$LINENO
20935 test "x$as_lineno_1" != "x$as_lineno_2" &&
20936 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20939 # uniformly replaced by the line number. The first 'sed' inserts a
20940 # line-number line after each line using $LINENO; the second 'sed'
20941 # does the real work. The second script uses 'N' to pair each
20942 # line-number line with the line containing $LINENO, and appends
20943 # trailing '-' during substitution so that $LINENO is not a special
20944 # case at line end.
20945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20946 # scripts with optimization help from Paolo Bonzini. Blame Lee
20947 # E. McMahon (1931-1989) for sed's syntax. :-)
20959 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20962 ' >$as_me.lineno &&
20963 chmod +x "$as_me.lineno" ||
20964 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20965 { (exit 1); exit 1; }; }
20967 # Don't try to exec as it changes $[0], causing all sort of problems
20968 # (the dirname of $[0] is not the place where we might find the
20969 # original and so on. Autoconf is especially sensitive to this).
20970 . "./$as_me.lineno"
20971 # Exit status is that of the last command.
20976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20982 ECHO_C= ECHO_N= ECHO_T=
20983 case `echo -n x` in
20985 case `echo 'x\c'` in
20986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20993 if expr a : '\(a\)' >/dev/null 2>&1 &&
20994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21000 rm -f conf$$ conf$$.exe conf$$.file
21001 if test -d conf$$.dir; then
21002 rm -f conf$$.dir/conf$$.file
21008 if ln -s conf$$.file conf$$ 2>/dev/null; then
21010 # ... but there are two gotchas:
21011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21013 # In both cases, we have to default to `cp -p'.
21014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21016 elif ln conf$$.file conf$$ 2>/dev/null; then
21021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21022 rmdir conf$$.dir 2>/dev/null
21024 if mkdir -p . 2>/dev/null; then
21027 test -d ./-p && rmdir ./-p
21031 if test -x / >/dev/null 2>&1; then
21032 as_test_x='test -x'
21034 if ls -dL / >/dev/null 2>&1; then
21041 if test -d "$1"; then
21047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21048 ???[sx]*):;;*)false;;esac;fi
21052 as_executable_p=$as_test_x
21054 # Sed expression to map a string onto a valid CPP name.
21055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21057 # Sed expression to map a string onto a valid variable name.
21058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21063 # Save the log message, to keep $[0] and so on meaningful, and to
21064 # report actual input values of CONFIG_FILES etc. instead of their
21065 # values after options handling.
21067 This file was extended by suPHP $as_me 0.7.1, which was
21068 generated by GNU Autoconf 2.61. Invocation command line was
21070 CONFIG_FILES = $CONFIG_FILES
21071 CONFIG_HEADERS = $CONFIG_HEADERS
21072 CONFIG_LINKS = $CONFIG_LINKS
21073 CONFIG_COMMANDS = $CONFIG_COMMANDS
21076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21081 cat >>$CONFIG_STATUS <<_ACEOF
21082 # Files that config.status was made for.
21083 config_files="$ac_config_files"
21084 config_headers="$ac_config_headers"
21085 config_commands="$ac_config_commands"
21089 cat >>$CONFIG_STATUS <<\_ACEOF
21091 \`$as_me' instantiates files from templates according to the
21092 current configuration.
21094 Usage: $0 [OPTIONS] [FILE]...
21096 -h, --help print this help, then exit
21097 -V, --version print version number and configuration settings, then exit
21098 -q, --quiet do not print progress messages
21099 -d, --debug don't remove temporary files
21100 --recheck update $as_me by reconfiguring in the same conditions
21101 --file=FILE[:TEMPLATE]
21102 instantiate the configuration file FILE
21103 --header=FILE[:TEMPLATE]
21104 instantiate the configuration header FILE
21106 Configuration files:
21109 Configuration headers:
21112 Configuration commands:
21115 Report bugs to <bug-autoconf@gnu.org>."
21118 cat >>$CONFIG_STATUS <<_ACEOF
21120 suPHP config.status 0.7.1
21121 configured by $0, generated by GNU Autoconf 2.61,
21122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21124 Copyright (C) 2006 Free Software Foundation, Inc.
21125 This config.status script is free software; the Free Software Foundation
21126 gives unlimited permission to copy, distribute and modify it."
21134 cat >>$CONFIG_STATUS <<\_ACEOF
21135 # If no file are specified by the user, then we need to provide default
21136 # value. By we need to know if files were specified by the user.
21142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21154 # Handling of the options.
21155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21158 echo "$ac_cs_version"; exit ;;
21159 --debug | --debu | --deb | --de | --d | -d )
21161 --file | --fil | --fi | --f )
21163 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21164 ac_need_defaults=false;;
21165 --header | --heade | --head | --hea )
21167 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21168 ac_need_defaults=false;;
21170 # Conflict between --help and --header
21171 { echo "$as_me: error: ambiguous option: $1
21172 Try \`$0 --help' for more information." >&2
21173 { (exit 1); exit 1; }; };;
21174 --help | --hel | -h )
21175 echo "$ac_cs_usage"; exit ;;
21176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21177 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21180 # This is an error.
21181 -*) { echo "$as_me: error: unrecognized option: $1
21182 Try \`$0 --help' for more information." >&2
21183 { (exit 1); exit 1; }; } ;;
21185 *) ac_config_targets="$ac_config_targets $1"
21186 ac_need_defaults=false ;;
21192 ac_configure_extra_args=
21194 if $ac_cs_silent; then
21196 ac_configure_extra_args="$ac_configure_extra_args --silent"
21200 cat >>$CONFIG_STATUS <<_ACEOF
21201 if \$ac_cs_recheck; then
21202 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21203 CONFIG_SHELL=$SHELL
21204 export CONFIG_SHELL
21205 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21209 cat >>$CONFIG_STATUS <<\_ACEOF
21213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21214 ## Running $as_me. ##
21220 cat >>$CONFIG_STATUS <<_ACEOF
21224 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21228 cat >>$CONFIG_STATUS <<\_ACEOF
21230 # Handling of arguments.
21231 for ac_config_target in $ac_config_targets
21233 case $ac_config_target in
21234 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21235 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21237 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21238 "src/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
21239 "src/apache2/Makefile") CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
21241 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21243 { (exit 1); exit 1; }; };;
21248 # If the user did not use the arguments to specify the items to instantiate,
21249 # then the envvar interface is used. Set only those that are not.
21250 # We use the long form for the default assignment because of an extremely
21251 # bizarre bug on SunOS 4.1.3.
21252 if $ac_need_defaults; then
21253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21254 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21255 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21258 # Have a temporary directory for convenience. Make it in the build tree
21259 # simply because there is no reason against having it here, and in addition,
21260 # creating and moving files from /tmp can sometimes cause problems.
21261 # Hook for its removal unless debugging.
21262 # Note that there is a small window in which the directory will not be cleaned:
21263 # after its creation but before its name has been assigned to `$tmp'.
21267 trap 'exit_status=$?
21268 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21270 trap '{ (exit 1); exit 1; }' 1 2 13 15
21272 # Create a (secure) tmp directory for tmp files.
21275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21276 test -n "$tmp" && test -d "$tmp"
21279 tmp=./conf$$-$RANDOM
21280 (umask 077 && mkdir "$tmp")
21283 echo "$me: cannot create a temporary directory in ." >&2
21284 { (exit 1); exit 1; }
21288 # Set up the sed scripts for CONFIG_FILES section.
21291 # No need to generate the scripts if there are no CONFIG_FILES.
21292 # This happens for instance when ./config.status config.h
21293 if test -n "$CONFIG_FILES"; then
21300 for ac_last_try in false false false false false :; do
21301 cat >conf$$subs.sed <<_ACEOF
21302 SHELL!$SHELL$ac_delim
21303 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21304 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21305 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21306 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21307 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21308 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21309 exec_prefix!$exec_prefix$ac_delim
21310 prefix!$prefix$ac_delim
21311 program_transform_name!$program_transform_name$ac_delim
21312 bindir!$bindir$ac_delim
21313 sbindir!$sbindir$ac_delim
21314 libexecdir!$libexecdir$ac_delim
21315 datarootdir!$datarootdir$ac_delim
21316 datadir!$datadir$ac_delim
21317 sysconfdir!$sysconfdir$ac_delim
21318 sharedstatedir!$sharedstatedir$ac_delim
21319 localstatedir!$localstatedir$ac_delim
21320 includedir!$includedir$ac_delim
21321 oldincludedir!$oldincludedir$ac_delim
21322 docdir!$docdir$ac_delim
21323 infodir!$infodir$ac_delim
21324 htmldir!$htmldir$ac_delim
21325 dvidir!$dvidir$ac_delim
21326 pdfdir!$pdfdir$ac_delim
21327 psdir!$psdir$ac_delim
21328 libdir!$libdir$ac_delim
21329 localedir!$localedir$ac_delim
21330 mandir!$mandir$ac_delim
21331 DEFS!$DEFS$ac_delim
21332 ECHO_C!$ECHO_C$ac_delim
21333 ECHO_N!$ECHO_N$ac_delim
21334 ECHO_T!$ECHO_T$ac_delim
21335 LIBS!$LIBS$ac_delim
21336 build_alias!$build_alias$ac_delim
21337 host_alias!$host_alias$ac_delim
21338 target_alias!$target_alias$ac_delim
21339 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21340 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21341 INSTALL_DATA!$INSTALL_DATA$ac_delim
21342 am__isrc!$am__isrc$ac_delim
21343 CYGPATH_W!$CYGPATH_W$ac_delim
21344 PACKAGE!$PACKAGE$ac_delim
21345 VERSION!$VERSION$ac_delim
21346 ACLOCAL!$ACLOCAL$ac_delim
21347 AUTOCONF!$AUTOCONF$ac_delim
21348 AUTOMAKE!$AUTOMAKE$ac_delim
21349 AUTOHEADER!$AUTOHEADER$ac_delim
21350 MAKEINFO!$MAKEINFO$ac_delim
21351 install_sh!$install_sh$ac_delim
21352 STRIP!$STRIP$ac_delim
21353 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21354 mkdir_p!$mkdir_p$ac_delim
21356 SET_MAKE!$SET_MAKE$ac_delim
21357 am__leading_dot!$am__leading_dot$ac_delim
21358 AMTAR!$AMTAR$ac_delim
21359 am__tar!$am__tar$ac_delim
21360 am__untar!$am__untar$ac_delim
21362 CFLAGS!$CFLAGS$ac_delim
21363 LDFLAGS!$LDFLAGS$ac_delim
21364 CPPFLAGS!$CPPFLAGS$ac_delim
21365 ac_ct_CC!$ac_ct_CC$ac_delim
21366 EXEEXT!$EXEEXT$ac_delim
21367 OBJEXT!$OBJEXT$ac_delim
21368 DEPDIR!$DEPDIR$ac_delim
21369 am__include!$am__include$ac_delim
21370 am__quote!$am__quote$ac_delim
21371 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21372 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21373 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21374 CCDEPMODE!$CCDEPMODE$ac_delim
21375 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21376 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21378 CXXFLAGS!$CXXFLAGS$ac_delim
21379 ac_ct_CXX!$ac_ct_CXX$ac_delim
21380 CXXDEPMODE!$CXXDEPMODE$ac_delim
21381 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21382 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21383 build!$build$ac_delim
21384 build_cpu!$build_cpu$ac_delim
21385 build_vendor!$build_vendor$ac_delim
21386 build_os!$build_os$ac_delim
21387 host!$host$ac_delim
21388 host_cpu!$host_cpu$ac_delim
21389 host_vendor!$host_vendor$ac_delim
21390 host_os!$host_os$ac_delim
21392 GREP!$GREP$ac_delim
21393 EGREP!$EGREP$ac_delim
21394 LN_S!$LN_S$ac_delim
21395 ECHO!$ECHO$ac_delim
21397 RANLIB!$RANLIB$ac_delim
21398 DSYMUTIL!$DSYMUTIL$ac_delim
21401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21403 elif $ac_last_try; then
21404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21405 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21406 { (exit 1); exit 1; }; }
21408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21412 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21413 if test -n "$ac_eof"; then
21414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21415 ac_eof=`expr $ac_eof + 1`
21418 cat >>$CONFIG_STATUS <<_ACEOF
21419 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21423 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21424 s/^/s,@/; s/!/@,|#_!!_#|/
21427 s/'"$ac_delim"'$/,g/; t
21429 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21430 ' >>$CONFIG_STATUS <conf$$subs.sed
21431 rm -f conf$$subs.sed
21432 cat >>$CONFIG_STATUS <<_ACEOF
21438 for ac_last_try in false false false false false :; do
21439 cat >conf$$subs.sed <<_ACEOF
21440 NMEDIT!$NMEDIT$ac_delim
21442 CXXCPP!$CXXCPP$ac_delim
21444 FFLAGS!$FFLAGS$ac_delim
21445 ac_ct_F77!$ac_ct_F77$ac_delim
21446 LIBTOOL!$LIBTOOL$ac_delim
21447 APXS!$APXS$ac_delim
21448 APACHE_VERSION_1_3!$APACHE_VERSION_1_3$ac_delim
21449 APACHE_VERSION_2!$APACHE_VERSION_2$ac_delim
21450 APXS_INCLUDEDIR!$APXS_INCLUDEDIR$ac_delim
21451 APXS_LIBEXECDIR!$APXS_LIBEXECDIR$ac_delim
21452 APXS_EXTRA_CFLAGS!$APXS_EXTRA_CFLAGS$ac_delim
21453 APR_INCLUDEDIR!$APR_INCLUDEDIR$ac_delim
21454 APR_CPPFLAGS!$APR_CPPFLAGS$ac_delim
21455 OPT_APACHEMOD_USERGROUP_DEF!$OPT_APACHEMOD_USERGROUP_DEF$ac_delim
21456 COND_AP13_TRUE!$COND_AP13_TRUE$ac_delim
21457 COND_AP13_FALSE!$COND_AP13_FALSE$ac_delim
21458 COND_AP20_TRUE!$COND_AP20_TRUE$ac_delim
21459 COND_AP20_FALSE!$COND_AP20_FALSE$ac_delim
21460 COND_APUSERGROUP_TRUE!$COND_APUSERGROUP_TRUE$ac_delim
21461 COND_APUSERGROUP_FALSE!$COND_APUSERGROUP_FALSE$ac_delim
21462 LIBOBJS!$LIBOBJS$ac_delim
21463 LTLIBOBJS!$LTLIBOBJS$ac_delim
21466 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
21468 elif $ac_last_try; then
21469 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21470 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21471 { (exit 1); exit 1; }; }
21473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21477 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21478 if test -n "$ac_eof"; then
21479 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21480 ac_eof=`expr $ac_eof + 1`
21483 cat >>$CONFIG_STATUS <<_ACEOF
21484 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21488 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21489 s/^/s,@/; s/!/@,|#_!!_#|/
21492 s/'"$ac_delim"'$/,g/; t
21494 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21495 ' >>$CONFIG_STATUS <conf$$subs.sed
21496 rm -f conf$$subs.sed
21497 cat >>$CONFIG_STATUS <<_ACEOF
21504 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21505 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21506 # trailing colons and then remove the whole line if VPATH becomes empty
21507 # (actually we leave an empty line to preserve line numbers).
21508 if test "x$srcdir" = x.; then
21509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21510 s/:*\$(srcdir):*/:/
21511 s/:*\${srcdir}:*/:/
21513 s/^\([^=]*=[ ]*\):*/\1/
21519 cat >>$CONFIG_STATUS <<\_ACEOF
21520 fi # test -n "$CONFIG_FILES"
21523 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21526 :[FHLC]) ac_mode=$ac_tag; continue;;
21528 case $ac_mode$ac_tag in
21530 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21531 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21532 { (exit 1); exit 1; }; };;
21533 :[FH]-) ac_tag=-:-;;
21534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21551 -) ac_f="$tmp/stdin";;
21552 *) # Look for the file first in the build tree, then in the source tree
21553 # (if the path is not absolute). The absolute path cannot be DOS-style,
21554 # because $ac_f cannot contain `:'.
21558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21560 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21561 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21562 { (exit 1); exit 1; }; };;
21564 ac_file_inputs="$ac_file_inputs $ac_f"
21567 # Let's still pretend it is `configure' which instantiates (i.e., don't
21568 # use $as_me), people would be surprised to read:
21569 # /* config.h. Generated by config.status. */
21570 configure_input="Generated from "`IFS=:
21571 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21572 if test x"$ac_file" != x-; then
21573 configure_input="$ac_file. $configure_input"
21574 { echo "$as_me:$LINENO: creating $ac_file" >&5
21575 echo "$as_me: creating $ac_file" >&6;}
21579 *:-:* | *:-) cat >"$tmp/stdin";;
21584 ac_dir=`$as_dirname -- "$ac_file" ||
21585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21586 X"$ac_file" : 'X\(//\)[^/]' \| \
21587 X"$ac_file" : 'X\(//\)$' \| \
21588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21594 /^X\(\/\/\)[^/].*/{
21609 -*) as_dir=./$as_dir;;
21611 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21615 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21616 *) as_qdir=$as_dir;;
21618 as_dirs="'$as_qdir' $as_dirs"
21619 as_dir=`$as_dirname -- "$as_dir" ||
21620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$as_dir" : 'X\(//\)[^/]' \| \
21622 X"$as_dir" : 'X\(//\)$' \| \
21623 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21629 /^X\(\/\/\)[^/].*/{
21642 test -d "$as_dir" && break
21644 test -z "$as_dirs" || eval "mkdir $as_dirs"
21645 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21646 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21647 { (exit 1); exit 1; }; }; }
21651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21653 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21654 # A ".." for each directory in $ac_dir_suffix.
21655 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21656 case $ac_top_builddir_sub in
21657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21661 ac_abs_top_builddir=$ac_pwd
21662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21663 # for backward compatibility:
21664 ac_top_builddir=$ac_top_build_prefix
21667 .) # We are building in place.
21669 ac_top_srcdir=$ac_top_builddir_sub
21670 ac_abs_top_srcdir=$ac_pwd ;;
21671 [\\/]* | ?:[\\/]* ) # Absolute name.
21672 ac_srcdir=$srcdir$ac_dir_suffix;
21673 ac_top_srcdir=$srcdir
21674 ac_abs_top_srcdir=$srcdir ;;
21675 *) # Relative name.
21676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21677 ac_top_srcdir=$ac_top_build_prefix$srcdir
21678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21693 ac_MKDIR_P=$MKDIR_P
21695 [\\/$]* | ?:[\\/]* ) ;;
21696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21700 cat >>$CONFIG_STATUS <<\_ACEOF
21701 # If the template does not know about datarootdir, expand it.
21702 # FIXME: This hack should be removed a few years after 2.60.
21703 ac_datarootdir_hack=; ac_datarootdir_seen=
21705 case `sed -n '/datarootdir/ {
21714 ' $ac_file_inputs` in
21715 *datarootdir*) ac_datarootdir_seen=yes;;
21716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21717 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21718 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21720 cat >>$CONFIG_STATUS <<_ACEOF
21721 ac_datarootdir_hack='
21722 s&@datadir@&$datadir&g
21723 s&@docdir@&$docdir&g
21724 s&@infodir@&$infodir&g
21725 s&@localedir@&$localedir&g
21726 s&@mandir@&$mandir&g
21727 s&\\\${datarootdir}&$datarootdir&g' ;;
21731 # Neutralize VPATH when `$srcdir' = `.'.
21732 # Shell code in configure.ac might set extrasub.
21733 # FIXME: do we really want to maintain this feature?
21734 cat >>$CONFIG_STATUS <<_ACEOF
21738 cat >>$CONFIG_STATUS <<\_ACEOF
21740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21741 s&@configure_input@&$configure_input&;t t
21742 s&@top_builddir@&$ac_top_builddir_sub&;t t
21743 s&@srcdir@&$ac_srcdir&;t t
21744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21745 s&@top_srcdir@&$ac_top_srcdir&;t t
21746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21747 s&@builddir@&$ac_builddir&;t t
21748 s&@abs_builddir@&$ac_abs_builddir&;t t
21749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21750 s&@INSTALL@&$ac_INSTALL&;t t
21751 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21752 $ac_datarootdir_hack
21753 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21756 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21758 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21759 which seems to be undefined. Please make sure it is defined." >&5
21760 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21761 which seems to be undefined. Please make sure it is defined." >&2;}
21765 -) cat "$tmp/out"; rm -f "$tmp/out";;
21766 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21775 # Transform confdefs.h into a sed script `conftest.defines', that
21776 # substitutes the proper values into config.h.in to produce config.h.
21777 rm -f conftest.defines conftest.tail
21778 # First, append a space to every undef/define line, to ease matching.
21779 echo 's/$/ /' >conftest.defines
21780 # Then, protect against being on the right side of a sed subst, or in
21781 # an unquoted here document, in config.status. If some macros were
21782 # called several times there might be several #defines for the same
21783 # symbol, which is useless. But do not sort them, since the last
21784 # AC_DEFINE must be honored.
21785 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21786 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21787 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21788 # PARAMS is the parameter list in the macro definition--in most cases, it's
21789 # just an empty string.
21790 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21791 ac_dB='\\)[ (].*,\\1define\\2'
21799 s/^[ ]*#[ ]*define[ ][ ]*//
21804 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21805 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21806 ' >>conftest.defines
21808 # Remove the space that was appended to ease matching.
21809 # Then replace #undef with comments. This is necessary, for
21810 # example, in the case of _POSIX_SOURCE, which is predefined and required
21811 # on some systems where configure will not decide to define it.
21812 # (The regexp can be short, since the line contains either #define or #undef.)
21814 s,^[ #]*u.*,/* & */,' >>conftest.defines
21816 # Break up conftest.defines:
21817 ac_max_sed_lines=50
21819 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21820 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21821 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21823 ac_in='$ac_file_inputs'
21824 ac_out='"$tmp/out1"'
21825 ac_nxt='"$tmp/out2"'
21829 # Write a here document:
21830 cat >>$CONFIG_STATUS <<_ACEOF
21831 # First, check the format of the line:
21832 cat >"\$tmp/defines.sed" <<\\CEOF
21833 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21834 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21838 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21840 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21841 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21842 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21843 grep . conftest.tail >/dev/null || break
21844 rm -f conftest.defines
21845 mv conftest.tail conftest.defines
21847 rm -f conftest.defines conftest.tail
21849 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21850 cat >>$CONFIG_STATUS <<\_ACEOF
21851 if test x"$ac_file" != x-; then
21852 echo "/* $configure_input */" >"$tmp/config.h"
21853 cat "$ac_result" >>"$tmp/config.h"
21854 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21856 echo "$as_me: $ac_file is unchanged" >&6;}
21859 mv "$tmp/config.h" $ac_file
21862 echo "/* $configure_input */"
21866 # Compute $ac_file's index in $config_headers.
21869 for _am_header in $config_headers :; do
21870 case $_am_header in
21871 $_am_arg | $_am_arg:* )
21874 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21877 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21878 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$_am_arg" : 'X\(//\)[^/]' \| \
21880 X"$_am_arg" : 'X\(//\)$' \| \
21881 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21887 /^X\(\/\/\)[^/].*/{
21899 s/.*/./; q'`/stamp-h$_am_stamp_count
21902 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21903 echo "$as_me: executing $ac_file commands" >&6;}
21908 case $ac_file$ac_mode in
21909 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21910 # Strip MF so we end up with the name of the file.
21911 mf=`echo "$mf" | sed -e 's/:.*$//'`
21912 # Check whether this is an Automake generated Makefile or not.
21913 # We used to match only the files named `Makefile.in', but
21914 # some people rename them; so instead we look at the file content.
21915 # Grep'ing the first line is not enough: some people post-process
21916 # each Makefile.in and add a new line on top of each file to say so.
21917 # Grep'ing the whole file is not good either: AIX grep has a line
21918 # limit of 2048, but all sed's we know have understand at least 4000.
21919 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21920 dirpart=`$as_dirname -- "$mf" ||
21921 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21922 X"$mf" : 'X\(//\)[^/]' \| \
21923 X"$mf" : 'X\(//\)$' \| \
21924 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21930 /^X\(\/\/\)[^/].*/{
21946 # Extract the definition of DEPDIR, am__include, and am__quote
21947 # from the Makefile without running `make'.
21948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21949 test -z "$DEPDIR" && continue
21950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21951 test -z "am__include" && continue
21952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21953 # When using ansi2knr, U may be empty or an underscore; expand it
21954 U=`sed -n 's/^U = //p' < "$mf"`
21955 # Find all dependency output files, they are included files with
21956 # $(DEPDIR) in their names. We invoke sed twice because it is the
21957 # simplest approach to changing $(DEPDIR) to its actual value in the
21959 for file in `sed -n "
21960 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21962 # Make sure the directory exists.
21963 test -f "$dirpart/$file" && continue
21964 fdir=`$as_dirname -- "$file" ||
21965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21966 X"$file" : 'X\(//\)[^/]' \| \
21967 X"$file" : 'X\(//\)$' \| \
21968 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21974 /^X\(\/\/\)[^/].*/{
21987 { as_dir=$dirpart/$fdir
21989 -*) as_dir=./$as_dir;;
21991 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21995 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21996 *) as_qdir=$as_dir;;
21998 as_dirs="'$as_qdir' $as_dirs"
21999 as_dir=`$as_dirname -- "$as_dir" ||
22000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001 X"$as_dir" : 'X\(//\)[^/]' \| \
22002 X"$as_dir" : 'X\(//\)$' \| \
22003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22009 /^X\(\/\/\)[^/].*/{
22022 test -d "$as_dir" && break
22024 test -z "$as_dirs" || eval "mkdir $as_dirs"
22025 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22026 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22027 { (exit 1); exit 1; }; }; }
22028 # echo "creating $dirpart/$file"
22029 echo '# dummy' > "$dirpart/$file"
22038 { (exit 0); exit 0; }
22040 chmod +x $CONFIG_STATUS
22041 ac_clean_files=$ac_clean_files_save
22044 # configure is writing to config.log, and then calls config.status.
22045 # config.status does its own redirection, appending to config.log.
22046 # Unfortunately, on DOS this fails, as config.log is still kept open
22047 # by configure, so config.status won't be able to write to it; its
22048 # output is simply discarded. So we exec the FD to /dev/null,
22049 # effectively closing config.log, so it can be properly (re)opened and
22050 # appended to by config.status. When coming back to configure, we
22051 # need to make the FD available again.
22052 if test "$no_create" != yes; then
22054 ac_config_status_args=
22055 test "$silent" = yes &&
22056 ac_config_status_args="$ac_config_status_args --quiet"
22058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22061 # would make configure fail if this is the last instruction.
22062 $ac_cs_success || { (exit 1); exit 1; }
22066 if test "$APXS" = "/notfound/"; then
22067 { echo "$as_me:$LINENO: WARNING:
22068 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22069 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22070 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22072 echo "$as_me: WARNING:
22073 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22074 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22075 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!