2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for HP Linux Imaging and Printing 3.12.4.
5 # Report bugs to <3.12.4>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='HP Linux Imaging and Printing'
752 PACKAGE_TARNAME='hplip'
753 PACKAGE_VERSION='3.12.4'
754 PACKAGE_STRING='HP Linux Imaging and Printing 3.12.4'
755 PACKAGE_BUGREPORT='3.12.4'
757 # Factoring default headers for most tests.
758 ac_includes_default="\
760 #ifdef HAVE_SYS_TYPES_H
761 # include <sys/types.h>
763 #ifdef HAVE_SYS_STAT_H
764 # include <sys/stat.h>
770 # ifdef HAVE_STDLIB_H
775 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
780 #ifdef HAVE_STRINGS_H
781 # include <strings.h>
783 #ifdef HAVE_INTTYPES_H
784 # include <inttypes.h>
793 ac_subst_vars='am__EXEEXT_FALSE
805 epm_print_only_exclude
815 epm_foomatic_drv_install
817 epm_foomatic_ppd_install
818 epm_foomatic_rip_hplip_install
823 APDK_AUTO_INCLUDE_FLAG
832 foomatic_rip_hplip_install
870 POLICYKIT_INSTALL_FALSE
871 POLICYKIT_INSTALL_TRUE
878 CUPS_PPD_INSTALL_FALSE
879 CUPS_PPD_INSTALL_TRUE
880 CUPS_DRV_INSTALL_FALSE
881 CUPS_DRV_INSTALL_TRUE
882 FOOMATIC_DRV_INSTALL_FALSE
883 FOOMATIC_DRV_INSTALL_TRUE
884 FOOMATIC_PPD_INSTALL_FALSE
885 FOOMATIC_PPD_INSTALL_TRUE
908 HPCUPS_ONLY_BUILD_FALSE
909 HPCUPS_ONLY_BUILD_TRUE
912 HPIJS_ONLY_BUILD_FALSE
913 HPIJS_ONLY_BUILD_TRUE
971 INSTALL_STRIP_PROGRAM
1013 program_transform_name
1025 enable_option_checking
1027 enable_dependency_tracking
1035 enable_hpijs_only_build
1037 enable_hpcups_only_build
1038 enable_hpijs_install
1039 enable_hpcups_install
1041 enable_network_build
1048 enable_udev_acl_rules
1057 enable_foomatic_ppd_install
1059 enable_foomatic_drv_install
1060 enable_cups_drv_install
1061 enable_cups_ppd_install
1062 enable_foomatic_rip_hplip_install
1067 ac_precious_vars='build_alias
1089 # Initialize some variables set by options.
1091 ac_init_version=false
1092 ac_unrecognized_opts=
1093 ac_unrecognized_sep=
1094 # The variables have the same names as the options, with
1095 # dashes changed to underlines.
1096 cache_file=/dev/null
1103 program_transform_name=s,x,x,
1111 # Installation directory options.
1112 # These are left unexpanded so users can "make install exec_prefix=/foo"
1113 # and all the variables that are supposed to be based on exec_prefix
1114 # by default will actually change.
1115 # Use braces instead of parens because sh, perl, etc. also accept them.
1116 # (The list follows the same order as the GNU Coding Standards.)
1117 bindir='${exec_prefix}/bin'
1118 sbindir='${exec_prefix}/sbin'
1119 libexecdir='${exec_prefix}/libexec'
1120 datarootdir='${prefix}/share'
1121 datadir='${datarootdir}'
1122 sysconfdir='${prefix}/etc'
1123 sharedstatedir='${prefix}/com'
1124 localstatedir='${prefix}/var'
1125 includedir='${prefix}/include'
1126 oldincludedir='/usr/include'
1127 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1128 infodir='${datarootdir}/info'
1133 libdir='${exec_prefix}/lib'
1134 localedir='${datarootdir}/locale'
1135 mandir='${datarootdir}/man'
1141 # If the previous option needs an argument, assign it.
1142 if test -n "$ac_prev"; then
1143 eval $ac_prev=\$ac_option
1149 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1153 # Accept the important Cygnus configure options, so we can diagnose typos.
1155 case $ac_dashdash$ac_option in
1159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1162 bindir=$ac_optarg ;;
1164 -build | --build | --buil | --bui | --bu)
1165 ac_prev=build_alias ;;
1166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1167 build_alias=$ac_optarg ;;
1169 -cache-file | --cache-file | --cache-fil | --cache-fi \
1170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1171 ac_prev=cache_file ;;
1172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1174 cache_file=$ac_optarg ;;
1176 --config-cache | -C)
1177 cache_file=config.cache ;;
1179 -datadir | --datadir | --datadi | --datad)
1181 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1182 datadir=$ac_optarg ;;
1184 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1185 | --dataroo | --dataro | --datar)
1186 ac_prev=datarootdir ;;
1187 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1188 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1189 datarootdir=$ac_optarg ;;
1191 -disable-* | --disable-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1196 { (exit 1); exit 1; }; }
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "enable_$ac_useropt"
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1206 eval enable_$ac_useropt=no ;;
1208 -docdir | --docdir | --docdi | --doc | --do)
1210 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1211 docdir=$ac_optarg ;;
1213 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1215 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1216 dvidir=$ac_optarg ;;
1218 -enable-* | --enable-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1228 "enable_$ac_useropt"
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval enable_$ac_useropt=\$ac_optarg ;;
1235 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1236 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1237 | --exec | --exe | --ex)
1238 ac_prev=exec_prefix ;;
1239 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1240 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1241 | --exec=* | --exe=* | --ex=*)
1242 exec_prefix=$ac_optarg ;;
1244 -gas | --gas | --ga | --g)
1245 # Obsolete; use --with-gas.
1248 -help | --help | --hel | --he | -h)
1249 ac_init_help=long ;;
1250 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1251 ac_init_help=recursive ;;
1252 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1253 ac_init_help=short ;;
1255 -host | --host | --hos | --ho)
1256 ac_prev=host_alias ;;
1257 -host=* | --host=* | --hos=* | --ho=*)
1258 host_alias=$ac_optarg ;;
1260 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1262 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1264 htmldir=$ac_optarg ;;
1266 -includedir | --includedir | --includedi | --included | --include \
1267 | --includ | --inclu | --incl | --inc)
1268 ac_prev=includedir ;;
1269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1270 | --includ=* | --inclu=* | --incl=* | --inc=*)
1271 includedir=$ac_optarg ;;
1273 -infodir | --infodir | --infodi | --infod | --info | --inf)
1275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1276 infodir=$ac_optarg ;;
1278 -libdir | --libdir | --libdi | --libd)
1280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1281 libdir=$ac_optarg ;;
1283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1284 | --libexe | --libex | --libe)
1285 ac_prev=libexecdir ;;
1286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1287 | --libexe=* | --libex=* | --libe=*)
1288 libexecdir=$ac_optarg ;;
1290 -localedir | --localedir | --localedi | --localed | --locale)
1291 ac_prev=localedir ;;
1292 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1293 localedir=$ac_optarg ;;
1295 -localstatedir | --localstatedir | --localstatedi | --localstated \
1296 | --localstate | --localstat | --localsta | --localst | --locals)
1297 ac_prev=localstatedir ;;
1298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1299 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1300 localstatedir=$ac_optarg ;;
1302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1305 mandir=$ac_optarg ;;
1307 -nfp | --nfp | --nf)
1308 # Obsolete; use --without-fp.
1311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1312 | --no-cr | --no-c | -n)
1315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1321 | --oldin | --oldi | --old | --ol | --o)
1322 ac_prev=oldincludedir ;;
1323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1326 oldincludedir=$ac_optarg ;;
1328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1331 prefix=$ac_optarg ;;
1333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1334 | --program-pre | --program-pr | --program-p)
1335 ac_prev=program_prefix ;;
1336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1338 program_prefix=$ac_optarg ;;
1340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1341 | --program-suf | --program-su | --program-s)
1342 ac_prev=program_suffix ;;
1343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1345 program_suffix=$ac_optarg ;;
1347 -program-transform-name | --program-transform-name \
1348 | --program-transform-nam | --program-transform-na \
1349 | --program-transform-n | --program-transform- \
1350 | --program-transform | --program-transfor \
1351 | --program-transfo | --program-transf \
1352 | --program-trans | --program-tran \
1353 | --progr-tra | --program-tr | --program-t)
1354 ac_prev=program_transform_name ;;
1355 -program-transform-name=* | --program-transform-name=* \
1356 | --program-transform-nam=* | --program-transform-na=* \
1357 | --program-transform-n=* | --program-transform-=* \
1358 | --program-transform=* | --program-transfor=* \
1359 | --program-transfo=* | --program-transf=* \
1360 | --program-trans=* | --program-tran=* \
1361 | --progr-tra=* | --program-tr=* | --program-t=*)
1362 program_transform_name=$ac_optarg ;;
1364 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1366 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1367 pdfdir=$ac_optarg ;;
1369 -psdir | --psdir | --psdi | --psd | --ps)
1371 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1375 | -silent | --silent | --silen | --sile | --sil)
1378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1382 sbindir=$ac_optarg ;;
1384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1386 | --sharedst | --shareds | --shared | --share | --shar \
1388 ac_prev=sharedstatedir ;;
1389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1393 sharedstatedir=$ac_optarg ;;
1395 -site | --site | --sit)
1397 -site=* | --site=* | --sit=*)
1400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1403 srcdir=$ac_optarg ;;
1405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1406 | --syscon | --sysco | --sysc | --sys | --sy)
1407 ac_prev=sysconfdir ;;
1408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1410 sysconfdir=$ac_optarg ;;
1412 -target | --target | --targe | --targ | --tar | --ta | --t)
1413 ac_prev=target_alias ;;
1414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1415 target_alias=$ac_optarg ;;
1417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1420 -version | --version | --versio | --versi | --vers | -V)
1421 ac_init_version=: ;;
1424 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1428 { (exit 1); exit 1; }; }
1429 ac_useropt_orig=$ac_useropt
1430 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1431 case $ac_user_opts in
1435 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1436 ac_unrecognized_sep=', ';;
1438 eval with_$ac_useropt=\$ac_optarg ;;
1440 -without-* | --without-*)
1441 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1442 # Reject names that are not valid shell variable names.
1443 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1444 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1445 { (exit 1); exit 1; }; }
1446 ac_useropt_orig=$ac_useropt
1447 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1448 case $ac_user_opts in
1452 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1453 ac_unrecognized_sep=', ';;
1455 eval with_$ac_useropt=no ;;
1458 # Obsolete; use --with-x.
1461 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1462 | --x-incl | --x-inc | --x-in | --x-i)
1463 ac_prev=x_includes ;;
1464 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1465 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1466 x_includes=$ac_optarg ;;
1468 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1469 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1470 ac_prev=x_libraries ;;
1471 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1472 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1473 x_libraries=$ac_optarg ;;
1475 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1476 Try \`$0 --help' for more information." >&2
1477 { (exit 1); exit 1; }; }
1481 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1482 # Reject names that are not valid shell variable names.
1483 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1484 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1485 { (exit 1); exit 1; }; }
1486 eval $ac_envvar=\$ac_optarg
1487 export $ac_envvar ;;
1490 # FIXME: should be removed in autoconf 3.0.
1491 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1492 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1493 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1494 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1500 if test -n "$ac_prev"; then
1501 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1502 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1503 { (exit 1); exit 1; }; }
1506 if test -n "$ac_unrecognized_opts"; then
1507 case $enable_option_checking in
1509 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1510 { (exit 1); exit 1; }; } ;;
1511 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1515 # Check all directory arguments for consistency.
1516 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1517 datadir sysconfdir sharedstatedir localstatedir includedir \
1518 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1519 libdir localedir mandir
1521 eval ac_val=\$$ac_var
1522 # Remove trailing slashes.
1525 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1526 eval $ac_var=\$ac_val;;
1528 # Be sure to have absolute directory names.
1530 [\\/$]* | ?:[\\/]* ) continue;;
1531 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1533 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1534 { (exit 1); exit 1; }; }
1537 # There might be people who depend on the old broken behavior: `$host'
1538 # used to hold the argument of --host etc.
1539 # FIXME: To remove some day.
1542 target=$target_alias
1544 # FIXME: To remove some day.
1545 if test "x$host_alias" != x; then
1546 if test "x$build_alias" = x; then
1547 cross_compiling=maybe
1548 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1549 If a cross compiler is detected then cross compile mode will be used." >&2
1550 elif test "x$build_alias" != "x$host_alias"; then
1556 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1558 test "$silent" = yes && exec 6>/dev/null
1561 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1562 ac_ls_di=`ls -di .` &&
1563 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1564 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1565 { (exit 1); exit 1; }; }
1566 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1567 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1568 { (exit 1); exit 1; }; }
1571 # Find the source files, if location was not specified.
1572 if test -z "$srcdir"; then
1573 ac_srcdir_defaulted=yes
1574 # Try the directory containing this script, then the parent directory.
1575 ac_confdir=`$as_dirname -- "$as_myself" ||
1576 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1577 X"$as_myself" : 'X\(//\)[^/]' \| \
1578 X"$as_myself" : 'X\(//\)$' \| \
1579 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1580 $as_echo X"$as_myself" |
1581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599 if test ! -r "$srcdir/$ac_unique_file"; then
1603 ac_srcdir_defaulted=no
1605 if test ! -r "$srcdir/$ac_unique_file"; then
1606 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1607 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1608 { (exit 1); exit 1; }; }
1610 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1612 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1613 { (exit 1); exit 1; }; }
1615 # When building in place, set srcdir=.
1616 if test "$ac_abs_confdir" = "$ac_pwd"; then
1619 # Remove unnecessary trailing slashes from srcdir.
1620 # Double slashes in file names in object file debugging info
1621 # mess up M-x gdb in Emacs.
1623 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1625 for ac_var in $ac_precious_vars; do
1626 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1627 eval ac_env_${ac_var}_value=\$${ac_var}
1628 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1629 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1633 # Report the --help message.
1635 if test "$ac_init_help" = "long"; then
1636 # Omit some internal or obsolete options to make the list less imposing.
1637 # This message is too long to be a string in the A/UX 3.1 sh.
1639 \`configure' configures HP Linux Imaging and Printing 3.12.4 to adapt to many kinds of systems.
1641 Usage: $0 [OPTION]... [VAR=VALUE]...
1643 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1644 VAR=VALUE. See below for descriptions of some of the useful variables.
1646 Defaults for the options are specified in brackets.
1649 -h, --help display this help and exit
1650 --help=short display options specific to this package
1651 --help=recursive display the short help of all the included packages
1652 -V, --version display version information and exit
1653 -q, --quiet, --silent do not print \`checking...' messages
1654 --cache-file=FILE cache test results in FILE [disabled]
1655 -C, --config-cache alias for \`--cache-file=config.cache'
1656 -n, --no-create do not create output files
1657 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1659 Installation directories:
1660 --prefix=PREFIX install architecture-independent files in PREFIX
1661 [$ac_default_prefix]
1662 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1665 By default, \`make install' will install all the files in
1666 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1667 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1668 for instance \`--prefix=\$HOME'.
1670 For better control, use the options below.
1672 Fine tuning of the installation directories:
1673 --bindir=DIR user executables [EPREFIX/bin]
1674 --sbindir=DIR system admin executables [EPREFIX/sbin]
1675 --libexecdir=DIR program executables [EPREFIX/libexec]
1676 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1677 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1678 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1679 --libdir=DIR object code libraries [EPREFIX/lib]
1680 --includedir=DIR C header files [PREFIX/include]
1681 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1682 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1683 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1684 --infodir=DIR info documentation [DATAROOTDIR/info]
1685 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1686 --mandir=DIR man documentation [DATAROOTDIR/man]
1687 --docdir=DIR documentation root [DATAROOTDIR/doc/hplip]
1688 --htmldir=DIR html documentation [DOCDIR]
1689 --dvidir=DIR dvi documentation [DOCDIR]
1690 --pdfdir=DIR pdf documentation [DOCDIR]
1691 --psdir=DIR ps documentation [DOCDIR]
1697 --program-prefix=PREFIX prepend PREFIX to installed program names
1698 --program-suffix=SUFFIX append SUFFIX to installed program names
1699 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1702 --build=BUILD configure for building on BUILD [guessed]
1703 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1707 if test -n "$ac_init_help"; then
1708 case $ac_init_help in
1709 short | recursive ) echo "Configuration of HP Linux Imaging and Printing 3.12.4:";;
1714 --disable-option-checking ignore unrecognized --enable/--with options
1715 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1716 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1717 --enable-static[=PKGS] build static libraries [default=no]
1718 --disable-dependency-tracking speeds up one-time build
1719 --enable-dependency-tracking do not reject slow dependency extractors
1720 --enable-shared[=PKGS] build shared libraries [default=yes]
1721 --enable-fast-install[=PKGS]
1722 optimize for fast installation [default=yes]
1723 --disable-libtool-lock avoid locking (might break parallel builds)
1724 --enable-doc-build enable documentation build (default=yes)
1725 --enable-hpijs-only-build enable hpijs only build (default=yes)
1726 --enable-lite-build enable lite build, print & scan only (default=no)
1727 --enable-hpcups-only-build enable hpcups only build, print only (default=no)
1728 --enable-hpijs-install enable hpijs install (default=no)
1729 --enable-hpcups-install enable hpcups install (default=yes)
1730 --enable-new-hpcups enable new hpcups install (default=no)
1731 --enable-network-build enable network build (default=yes)
1732 --enable-pp-build enable parallel port build (default=no)
1733 --enable-scan-build enable scanner build (default=yes)
1734 --enable-gui-build enable gui build (default=yes)
1735 --enable-fax-build enable fax build (default=yes)
1736 --enable-dbus-build enable dbus build (default=yes)
1737 --enable-cups11-build enable cups 1.1.x build (default=no)
1738 --enable-udev-acl-rules enable udev acl rules (default=no)
1739 --enable-shadow-build enable shadow build (default=no)
1740 --enable-foomatic-ppd-install enable foomatic static ppd install (default=no), uses hpppddir
1741 --enable-foomatic-drv-install enable foomatic dynamic ppd install (default=no), uses drvdir and hpppddir
1742 --enable-cups-drv-install enable cups dynamic ppd install (default=yes), uses drvdir and hpppddir
1743 --enable-cups-ppd-install enable cups static ppd install (default=no), uses hpppddir
1744 --enable-foomatic-rip-hplip-install enable foomatic-rip-hplip install (default=no), uses cupsfilterdir
1745 --enable-qt4 enable qt4 (default=yes)
1746 --enable-qt3 enable qt3 (default=no)
1747 --enable-policykit enable PolicyKit (default=no)
1750 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1751 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1752 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1753 --with-pic try to use only PIC/non-PIC objects [default=use
1755 --with-tags[=TAGS] include additional configurations [automatic]
1756 --with-cupsbackenddir=DIR
1757 set cups backend install directory
1758 default=/usr/lib/cups/backend
1759 --with-cupsfilterdir=DIR
1760 set cups filter install directory
1761 default=/usr/lib/cups/filter
1762 --with-icondir=DIR set hplip.desktop install directory
1763 default=/usr/share/applications
1764 --with-systraydir=DIR set hplip-systray.desktop install directory
1765 default=/etc/xdg/autostart
1766 --with-hpppddir=DIR set hp ppd install directory
1767 default=datadir/ppd/HP
1768 --with-mimedir=DIR set cups mime.types location default=abs_mimedir
1769 --with-docdir=DIR set hplip documentation directory
1771 --with-drvdir=DIR set cups drv install directory
1772 default=datadir/cups/drv/hp
1774 Some influential environment variables:
1775 CXX C++ compiler command
1776 CXXFLAGS C++ compiler flags
1777 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1778 nonstandard directory <lib dir>
1779 LIBS libraries to pass to the linker, e.g. -l<library>
1780 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1781 you have headers in a nonstandard directory <include dir>
1782 CC C compiler command
1783 CFLAGS C compiler flags
1785 CXXCPP C++ preprocessor
1786 F77 Fortran 77 compiler command
1787 FFLAGS Fortran 77 compiler flags
1788 PYTHON Python interpreter/compiler command
1790 path to Python.h C header file
1791 PKG_CONFIG path to pkg-config utility
1792 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1793 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1795 Use these variables to override the choices made by `configure' or to help
1796 it to find libraries and programs with nonstandard names/locations.
1798 Report bugs to <3.12.4>.
1803 if test "$ac_init_help" = "recursive"; then
1804 # If there are subdirs, report their specific --help.
1805 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1806 test -d "$ac_dir" ||
1807 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1815 # A ".." for each directory in $ac_dir_suffix.
1816 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1817 case $ac_top_builddir_sub in
1818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1822 ac_abs_top_builddir=$ac_pwd
1823 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1824 # for backward compatibility:
1825 ac_top_builddir=$ac_top_build_prefix
1828 .) # We are building in place.
1830 ac_top_srcdir=$ac_top_builddir_sub
1831 ac_abs_top_srcdir=$ac_pwd ;;
1832 [\\/]* | ?:[\\/]* ) # Absolute name.
1833 ac_srcdir=$srcdir$ac_dir_suffix;
1834 ac_top_srcdir=$srcdir
1835 ac_abs_top_srcdir=$srcdir ;;
1837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1838 ac_top_srcdir=$ac_top_build_prefix$srcdir
1839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1843 cd "$ac_dir" || { ac_status=$?; continue; }
1844 # Check for guested configure.
1845 if test -f "$ac_srcdir/configure.gnu"; then
1847 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1848 elif test -f "$ac_srcdir/configure"; then
1850 $SHELL "$ac_srcdir/configure" --help=recursive
1852 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1854 cd "$ac_pwd" || { ac_status=$?; break; }
1858 test -n "$ac_init_help" && exit $ac_status
1859 if $ac_init_version; then
1861 HP Linux Imaging and Printing configure 3.12.4
1862 generated by GNU Autoconf 2.63
1864 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1865 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1866 This configure script is free software; the Free Software Foundation
1867 gives unlimited permission to copy, distribute and modify it.
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1875 It was created by HP Linux Imaging and Printing $as_me 3.12.4, which was
1876 generated by GNU Autoconf 2.63. Invocation command line was
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_must_keep_next=false
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1952 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 -* ) ac_must_keep_next=true ;;
1968 ac_configure_args="$ac_configure_args '$ac_arg'"
1973 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1974 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1987 ## ---------------- ##
1988 ## Cache variables. ##
1989 ## ---------------- ##
1992 # The following way of writing the cache mishandles newlines in values,
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1999 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) $as_unset $ac_var ;;
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##
2030 for ac_var in $ac_subst_vars
2032 eval ac_val=\$$ac_var
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 $as_echo "$ac_var='\''$ac_val'\''"
2040 if test -n "$ac_subst_files"; then
2042 ## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##
2047 for ac_var in $ac_subst_files
2049 eval ac_val=\$$ac_var
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 $as_echo "$ac_var='\''$ac_val'\''"
2058 if test -s confdefs.h; then
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2084 # Predefined preprocessor variables.
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 # Let the site file select an alternate cache file if it wants to.
2112 # Prefer an explicitly selected file to automatically selected ones.
2115 if test -n "$CONFIG_SITE"; then
2116 ac_site_file1=$CONFIG_SITE
2117 elif test "x$prefix" != xNONE; then
2118 ac_site_file1=$prefix/share/config.site
2119 ac_site_file2=$prefix/etc/config.site
2121 ac_site_file1=$ac_default_prefix/share/config.site
2122 ac_site_file2=$ac_default_prefix/etc/config.site
2124 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2126 test "x$ac_site_file" = xNONE && continue
2127 if test -r "$ac_site_file"; then
2128 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2130 sed 's/^/| /' "$ac_site_file" >&5
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special
2137 # files actually), so we avoid doing that.
2138 if test -f "$cache_file"; then
2139 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2140 $as_echo "$as_me: loading cache $cache_file" >&6;}
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2147 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2148 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 # Check that the precious variables saved in the cache have kept the same
2154 ac_cache_corrupted=false
2155 for ac_var in $ac_precious_vars; do
2156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2157 eval ac_new_set=\$ac_env_${ac_var}_set
2158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2159 eval ac_new_val=\$ac_env_${ac_var}_value
2160 case $ac_old_set,$ac_new_set in
2162 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2166 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2171 if test "x$ac_old_val" != "x$ac_new_val"; then
2172 # differences in whitespace do not lead to failure.
2173 ac_old_val_w=`echo x $ac_old_val`
2174 ac_new_val_w=`echo x $ac_new_val`
2175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2176 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2178 ac_cache_corrupted=:
2180 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2182 eval $ac_var=\$ac_old_val
2184 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2186 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2190 # Pass precious variables to config.status.
2191 if test "$ac_new_set" = set; then
2193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 *) ac_arg=$ac_var=$ac_new_val ;;
2196 case " $ac_configure_args " in
2197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2198 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2202 if $ac_cache_corrupted; then
2203 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2207 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2208 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2209 { (exit 1); exit 1; }; }
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2243 #AM_INIT_AUTOMAKE([1.9 foreign])
2244 am__api_version='1.11'
2247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2250 ac_install_sh="$ac_aux_dir/install-sh -c"
2252 elif test -f "$ac_dir/install.sh"; then
2254 ac_install_sh="$ac_aux_dir/install.sh -c"
2256 elif test -f "$ac_dir/shtool"; then
2258 ac_install_sh="$ac_aux_dir/shtool install -c"
2262 if test -z "$ac_aux_dir"; then
2263 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if test "${ac_cv_path_install+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2304 ./ | .// | /cC/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2346 rm -rf conftest.one conftest.two conftest.dir
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2359 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2374 echo timestamp > conftest.file
2375 # Reject unsafe characters in $srcdir or the absolute working directory
2376 # name. Accept space and tab only in the latter.
2380 *[\\\"\#\$\&\'\`$am_lf]*)
2381 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2382 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2383 { (exit 1); exit 1; }; };;
2386 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2387 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2388 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2389 { (exit 1); exit 1; }; };;
2392 # Do `set' in a subshell so we don't clobber the current shell's
2393 # arguments. Must try -L first in case configure is actually a
2394 # symlink; some systems play weird games with the mod time of symlinks
2395 # (eg FreeBSD returns the mod time of the symlink's containing
2398 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399 if test "$*" = "X"; then
2401 set X `ls -t "$srcdir/configure" conftest.file`
2404 if test "$*" != "X $srcdir/configure conftest.file" \
2405 && test "$*" != "X conftest.file $srcdir/configure"; then
2407 # If neither matched, then we have a broken ls. This can happen
2408 # if, for instance, CONFIG_SHELL is bash and it inherits a
2409 # broken ls alias from the environment. This has actually
2410 # happened. Such a system could not be considered "sane".
2411 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2412 alias in your environment" >&5
2413 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" >&2;}
2415 { (exit 1); exit 1; }; }
2418 test "$2" = conftest.file
2424 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2425 Check your system clock" >&5
2426 $as_echo "$as_me: error: newly created file is older than distributed files!
2427 Check your system clock" >&2;}
2428 { (exit 1); exit 1; }; }
2430 { $as_echo "$as_me:$LINENO: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2445 if test x"${MISSING+set}" != xset; then
2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2458 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 if test x"${install_sh}" != xset; then
2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2467 install_sh="\${SHELL} $am_aux_dir/install-sh"
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_STRIP+set}" = set; then
2482 $as_echo_n "(cached) " >&6
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2509 { $as_echo "$as_me:$LINENO: result: no" >&5
2510 $as_echo "no" >&6; }
2515 if test -z "$ac_cv_prog_STRIP"; then
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2522 $as_echo_n "(cached) " >&6
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2549 { $as_echo "$as_me:$LINENO: result: no" >&5
2550 $as_echo "no" >&6; }
2553 if test "x$ac_ct_STRIP" = x; then
2556 case $cross_compiling:$ac_tool_warned in
2558 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2565 STRIP="$ac_cv_prog_STRIP"
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2571 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574 if test "${ac_cv_path_mkdir+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 test -z "$as_dir" && as_dir=.
2582 for ac_prog in mkdir gmkdir; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586 'mkdir (GNU coreutils) '* | \
2587 'mkdir (coreutils) '* | \
2588 'mkdir (fileutils) '4.1*)
2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 if test "${ac_cv_path_mkdir+set}" = set; then
2600 MKDIR_P="$ac_cv_path_mkdir -p"
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for MKDIR_P within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 test -d ./--version && rmdir ./--version
2607 MKDIR_P="$ac_install_sh -d"
2610 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2615 [\\/$]* | ?:[\\/]*) ;;
2616 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 for ac_prog in gawk mawk nawk awk
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_AWK+set}" = set; then
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2653 { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2658 test -n "$AWK" && break
2661 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2666 $as_echo_n "(cached) " >&6
2668 cat >conftest.make <<\_ACEOF
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:$LINENO: result: yes" >&5
2684 $as_echo "yes" >&6; }
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2699 rmdir .tst 2>/dev/null
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703 # is not polluted with repeated "-I."
2704 am__isrc=' -I$(srcdir)'
2705 # test to see if srcdir already configured
2706 if test -f $srcdir/config.status; then
2707 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2708 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2709 { (exit 1); exit 1; }; }
2713 # test whether we have cygpath
2714 if test -z "$CYGPATH_W"; then
2715 if (cygpath --version) >/dev/null 2>/dev/null; then
2716 CYGPATH_W='cygpath -w'
2723 # Define the identity of the package.
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE "$PACKAGE"
2733 cat >>confdefs.h <<_ACEOF
2734 #define VERSION "$VERSION"
2737 # Some tools Automake needs.
2739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753 # We need awk for the "check" target. The system "awk" is bad on
2755 # Always define AMTAR for backward compatibility.
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2765 # Check whether --enable-static was given.
2766 if test "${enable_static+set}" = set; then
2767 enableval=$enable_static; p=${PACKAGE-default}
2769 yes) enable_static=yes ;;
2770 no) enable_static=no ;;
2773 # Look at the argument we got. We use all the common list separators.
2774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2775 for pkg in $enableval; do
2777 if test "X$pkg" = "X$p"; then
2791 # Checks for programs.
2793 ac_cpp='$CXXCPP $CPPFLAGS'
2794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2797 if test -z "$CXX"; then
2798 if test -n "$CCC"; then
2801 if test -n "$ac_tool_prefix"; then
2802 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_CXX+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$CXX"; then
2812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CXX"; then
2833 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2834 $as_echo "$CXX" >&6; }
2836 { $as_echo "$as_me:$LINENO: result: no" >&5
2837 $as_echo "no" >&6; }
2841 test -n "$CXX" && break
2844 if test -z "$CXX"; then
2846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$ac_ct_CXX"; then
2856 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_CXX="$ac_prog"
2866 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2876 if test -n "$ac_ct_CXX"; then
2877 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2878 $as_echo "$ac_ct_CXX" >&6; }
2880 { $as_echo "$as_me:$LINENO: result: no" >&5
2881 $as_echo "no" >&6; }
2885 test -n "$ac_ct_CXX" && break
2888 if test "x$ac_ct_CXX" = x; then
2891 case $cross_compiling:$ac_tool_warned in
2893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2903 # Provide some information about the compiler.
2904 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2907 { (ac_try="$ac_compiler --version >&5"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913 $as_echo "$ac_try_echo") >&5
2914 (eval "$ac_compiler --version >&5") 2>&5
2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -v >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924 $as_echo "$ac_try_echo") >&5
2925 (eval "$ac_compiler -v >&5") 2>&5
2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (ac_try="$ac_compiler -V >&5"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2935 $as_echo "$ac_try_echo") >&5
2936 (eval "$ac_compiler -V >&5") 2>&5
2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2961 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2962 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2969 for ac_file in $ac_files
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2978 if { (ac_try="$ac_link_default"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2984 $as_echo "$ac_try_echo") >&5
2985 (eval "$ac_link_default") 2>&5
2987 $as_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 | *.dSYM | *.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 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3026 $as_echo "$ac_file" >&6; }
3027 if test -z "$ac_file"; then
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3034 See \`config.log' for more details." >&5
3035 $as_echo "$as_me: error: C++ compiler cannot create executables
3036 See \`config.log' for more details." >&2;}
3037 { (exit 77); exit 77; }; }; }
3040 ac_exeext=$ac_cv_exeext
3042 # Check that the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3045 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3046 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3047 # If not cross compiling, check that we can run a simple program.
3048 if test "$cross_compiling" != yes; then
3049 if { ac_try='./$ac_file'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056 (eval "$ac_try") 2>&5
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3062 if test "$cross_compiling" = maybe; then
3065 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&5
3070 $as_echo "$as_me: error: cannot run C++ compiled programs.
3071 If you meant to cross compile, use \`--host'.
3072 See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }; }
3077 { $as_echo "$as_me:$LINENO: result: yes" >&5
3078 $as_echo "yes" >&6; }
3080 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3081 ac_clean_files=$ac_clean_files_save
3082 # Check that the compiler produces executables we can run. If not, either
3083 # the compiler is broken, or we cross compile.
3084 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3085 $as_echo_n "checking whether we are cross compiling... " >&6; }
3086 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3087 $as_echo "$cross_compiling" >&6; }
3089 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3090 $as_echo_n "checking for suffix of executables... " >&6; }
3091 if { (ac_try="$ac_link"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3097 $as_echo "$ac_try_echo") >&5
3098 (eval "$ac_link") 2>&5
3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; then
3102 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3103 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3104 # work properly (i.e., refer to `conftest.exe'), while it won't with
3106 for ac_file in conftest.exe conftest conftest.*; do
3107 test -f "$ac_file" || continue
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3110 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3119 See \`config.log' for more details." >&5
3120 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }; }
3125 rm -f conftest$ac_cv_exeext
3126 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3127 $as_echo "$ac_cv_exeext" >&6; }
3129 rm -f conftest.$ac_ext
3130 EXEEXT=$ac_cv_exeext
3132 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3133 $as_echo_n "checking for suffix of object files... " >&6; }
3134 if test "${ac_cv_objext+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3152 rm -f conftest.o conftest.obj
3153 if { (ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159 $as_echo "$ac_try_echo") >&5
3160 (eval "$ac_compile") 2>&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details." >&5
3180 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3191 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3196 cat >conftest.$ac_ext <<_ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_cxx_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3255 if test "${ac_cv_prog_cxx_g+set}" = set; then
3256 $as_echo_n "(cached) " >&6
3258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3259 ac_cxx_werror_flag=yes
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_cxx_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cxx_g=yes
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_cxx_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && {
3371 test -z "$ac_cxx_werror_flag" ||
3372 test ! -s conftest.err
3373 } && test -s conftest.$ac_objext; then
3374 ac_cv_prog_cxx_g=yes
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3391 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3392 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3393 if test "$ac_test_CXXFLAGS" = set; then
3394 CXXFLAGS=$ac_save_CXXFLAGS
3395 elif test $ac_cv_prog_cxx_g = yes; then
3396 if test "$GXX" = yes; then
3402 if test "$GXX" = yes; then
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 DEPDIR="${am__leading_dot}deps"
3415 ac_config_commands="$ac_config_commands depfiles"
3418 am_make=${MAKE-make}
3419 cat > confinc << 'END'
3421 @echo this is the am__doit target
3424 # If we don't find an include directive, just comment out the code.
3425 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3426 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3430 # First try GNU make style include.
3431 echo "include confinc" > confmf
3432 # Ignore all kinds of additional output from `make'.
3433 case `$am_make -s -f confmf 2> /dev/null` in #(
3434 *the\ am__doit\ target*)
3440 # Now try BSD make style include.
3441 if test "$am__include" = "#"; then
3442 echo '.include "confinc"' > confmf
3443 case `$am_make -s -f confmf 2> /dev/null` in #(
3444 *the\ am__doit\ target*)
3445 am__include=.include
3453 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3454 $as_echo "$_am_result" >&6; }
3455 rm -f confinc confmf
3457 # Check whether --enable-dependency-tracking was given.
3458 if test "${enable_dependency_tracking+set}" = set; then
3459 enableval=$enable_dependency_tracking;
3462 if test "x$enable_dependency_tracking" != xno; then
3463 am_depcomp="$ac_aux_dir/depcomp"
3466 if test "x$enable_dependency_tracking" != xno; then
3476 depcc="$CXX" am_compiler_list=
3478 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3479 $as_echo_n "checking dependency style of $depcc... " >&6; }
3480 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3484 # We make a subdir and do the tests there. Otherwise we can end up
3485 # making bogus files that we don't know about and never remove. For
3486 # instance it was reported that on HP-UX the gcc test will end up
3487 # making a dummy file named `D' -- because `-MD' means `put the output
3490 # Copy depcomp to subdir because otherwise we won't find it if we're
3491 # using a relative directory.
3492 cp "$am_depcomp" conftest.dir
3494 # We will build objects and dependencies in a subdirectory because
3495 # it helps to detect inapplicable dependency modes. For instance
3496 # both Tru64's cc and ICC support -MD to output dependencies as a
3497 # side effect of compilation, but ICC will put the dependencies in
3498 # the current directory while Tru64 will put them in the object
3502 am_cv_CXX_dependencies_compiler_type=none
3503 if test "$am_compiler_list" = ""; then
3504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3507 case " $depcc " in #(
3508 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3511 for depmode in $am_compiler_list; do
3512 # Setup a source with many dependencies, because some compilers
3513 # like to wrap large dependency lists on column 80 (with \), and
3514 # we should not choose a depcomp mode which is confused by this.
3516 # We need to recreate these files for each test, as the compiler may
3517 # overwrite some of them when testing with obscure command lines.
3518 # This happens at least with the AIX C compiler.
3520 for i in 1 2 3 4 5 6; do
3521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3522 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3523 # Solaris 8's {/usr,}/bin/sh.
3524 touch sub/conftst$i.h
3526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3528 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3529 # mode. It turns out that the SunPro C++ compiler does not properly
3530 # handle `-M -o', and we need to detect this. Also, some Intel
3531 # versions had trouble with output in subdirs
3532 am__obj=sub/conftest.${OBJEXT-o}
3533 am__minus_obj="-o $am__obj"
3536 # This depmode causes a compiler race in universal mode.
3537 test "$am__universal" = false || continue
3540 # after this tag, mechanisms are not by side-effect, so they'll
3541 # only be used when explicitly requested
3542 if test "x$enable_dependency_tracking" = xyes; then
3548 msvisualcpp | msvcmsys)
3549 # This compiler won't grok `-c -o', but also, the minuso test has
3550 # not run yet. These depmodes are late enough in the game, and
3551 # so weak that their functioning should not be impacted.
3552 am__obj=conftest.${OBJEXT-o}
3557 if depmode=$depmode \
3558 source=sub/conftest.c object=$am__obj \
3559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3560 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3561 >/dev/null 2>conftest.err &&
3562 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566 # icc doesn't choke on unknown options, it will just issue warnings
3567 # or remarks (even with -Werror). So we grep stderr for any message
3568 # that says an option was ignored or not supported.
3569 # When given -MP, icc 7.0 and 7.1 complain thusly:
3570 # icc: Command line warning: ignoring option '-M'; no argument required
3571 # The diagnosis changed in icc 8.0:
3572 # icc: Command line remark: option '-MP' not supported
3573 if (grep 'ignoring option' conftest.err ||
3574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575 am_cv_CXX_dependencies_compiler_type=$depmode
3584 am_cv_CXX_dependencies_compiler_type=none
3588 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3589 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3590 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3593 test "x$enable_dependency_tracking" != xno \
3594 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3595 am__fastdepCXX_TRUE=
3596 am__fastdepCXX_FALSE='#'
3598 am__fastdepCXX_TRUE='#'
3599 am__fastdepCXX_FALSE=
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_CC+set}" = set; then
3614 $as_echo_n "(cached) " >&6
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:$LINENO: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$ac_cv_prog_CC"; then
3649 # Extract the first word of "gcc", so it can be a program name with args.
3650 set dummy gcc; ac_word=$2
3651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC="gcc"
3667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3681 { $as_echo "$as_me:$LINENO: result: no" >&5
3682 $as_echo "no" >&6; }
3685 if test "x$ac_ct_CC" = x; then
3688 case $cross_compiling:$ac_tool_warned in
3690 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692 ac_tool_warned=yes ;;
3700 if test -z "$CC"; then
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}cc; ac_word=$2
3704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if test "${ac_cv_prog_CC+set}" = set; then
3707 $as_echo_n "(cached) " >&6
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC="$CC" # Let the user override the test.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_CC="${ac_tool_prefix}cc"
3720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3734 { $as_echo "$as_me:$LINENO: result: no" >&5
3735 $as_echo "no" >&6; }
3741 if test -z "$CC"; then
3742 # Extract the first word of "cc", so it can be a program name with args.
3743 set dummy cc; ac_word=$2
3744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_CC+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3761 ac_prog_rejected=yes
3765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 if test $ac_prog_rejected = yes; then
3773 # We found a bogon in the path, so make sure we never use it.
3774 set dummy $ac_cv_prog_CC
3776 if test $# != 0; then
3777 # We chose a different compiler from the bogus one.
3778 # However, it has the same basename, so the bogon will be chosen
3779 # first if we set CC to just the basename; use the full file name.
3781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3787 if test -n "$CC"; then
3788 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3791 { $as_echo "$as_me:$LINENO: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$CC"; then
3798 if test -n "$ac_tool_prefix"; then
3799 for ac_prog in cl.exe
3801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 if test -n "$CC"; then
3830 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3831 $as_echo "$CC" >&6; }
3833 { $as_echo "$as_me:$LINENO: result: no" >&5
3834 $as_echo "no" >&6; }
3838 test -n "$CC" && break
3841 if test -z "$CC"; then
3843 for ac_prog in cl.exe
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3850 $as_echo_n "(cached) " >&6
3852 if test -n "$ac_ct_CC"; then
3853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_prog_ac_ct_CC="$ac_prog"
3863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3873 if test -n "$ac_ct_CC"; then
3874 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3875 $as_echo "$ac_ct_CC" >&6; }
3877 { $as_echo "$as_me:$LINENO: result: no" >&5
3878 $as_echo "no" >&6; }
3882 test -n "$ac_ct_CC" && break
3885 if test "x$ac_ct_CC" = x; then
3888 case $cross_compiling:$ac_tool_warned in
3890 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3892 ac_tool_warned=yes ;;
3901 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3904 See \`config.log' for more details." >&5
3905 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }; }
3909 # Provide some information about the compiler.
3910 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3913 { (ac_try="$ac_compiler --version >&5"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919 $as_echo "$ac_try_echo") >&5
3920 (eval "$ac_compiler --version >&5") 2>&5
3922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }
3924 { (ac_try="$ac_compiler -v >&5"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3930 $as_echo "$ac_try_echo") >&5
3931 (eval "$ac_compiler -v >&5") 2>&5
3933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }
3935 { (ac_try="$ac_compiler -V >&5"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942 (eval "$ac_compiler -V >&5") 2>&5
3944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }
3947 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3949 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3950 $as_echo_n "(cached) " >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002 if test $ac_compiler_gnu = yes; then
4007 ac_test_CFLAGS=${CFLAGS+set}
4008 ac_save_CFLAGS=$CFLAGS
4009 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4011 if test "${ac_cv_prog_cc_g+set}" = set; then
4012 $as_echo_n "(cached) " >&6
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && {
4048 test -z "$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 } && test -s conftest.$ac_objext; then
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4119 $as_echo "$ac_try_echo") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4158 if test "$GCC" = yes; then
4164 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if test "${ac_cv_prog_cc_c89+set}" = set; then
4167 $as_echo_n "(cached) " >&6
4169 ac_cv_prog_cc_c89=no
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239 $as_echo "$ac_try_echo") >&5
4240 (eval "$ac_compile") 2>conftest.er1
4242 grep -v '^ *+' conftest.er1 >conftest.err
4244 cat conftest.err >&5
4245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && {
4247 test -z "$ac_c_werror_flag" ||
4248 test ! -s conftest.err
4249 } && test -s conftest.$ac_objext; then
4250 ac_cv_prog_cc_c89=$ac_arg
4252 $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4258 rm -f core conftest.err conftest.$ac_objext
4259 test "x$ac_cv_prog_cc_c89" != "xno" && break
4261 rm -f conftest.$ac_ext
4266 case "x$ac_cv_prog_cc_c89" in
4268 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4269 $as_echo "none needed" >&6; } ;;
4271 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4272 $as_echo "unsupported" >&6; } ;;
4274 CC="$CC $ac_cv_prog_cc_c89"
4275 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4276 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 depcc="$CC" am_compiler_list=
4288 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4289 $as_echo_n "checking dependency style of $depcc... " >&6; }
4290 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4294 # We make a subdir and do the tests there. Otherwise we can end up
4295 # making bogus files that we don't know about and never remove. For
4296 # instance it was reported that on HP-UX the gcc test will end up
4297 # making a dummy file named `D' -- because `-MD' means `put the output
4300 # Copy depcomp to subdir because otherwise we won't find it if we're
4301 # using a relative directory.
4302 cp "$am_depcomp" conftest.dir
4304 # We will build objects and dependencies in a subdirectory because
4305 # it helps to detect inapplicable dependency modes. For instance
4306 # both Tru64's cc and ICC support -MD to output dependencies as a
4307 # side effect of compilation, but ICC will put the dependencies in
4308 # the current directory while Tru64 will put them in the object
4312 am_cv_CC_dependencies_compiler_type=none
4313 if test "$am_compiler_list" = ""; then
4314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4317 case " $depcc " in #(
4318 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4321 for depmode in $am_compiler_list; do
4322 # Setup a source with many dependencies, because some compilers
4323 # like to wrap large dependency lists on column 80 (with \), and
4324 # we should not choose a depcomp mode which is confused by this.
4326 # We need to recreate these files for each test, as the compiler may
4327 # overwrite some of them when testing with obscure command lines.
4328 # This happens at least with the AIX C compiler.
4330 for i in 1 2 3 4 5 6; do
4331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4333 # Solaris 8's {/usr,}/bin/sh.
4334 touch sub/conftst$i.h
4336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4339 # mode. It turns out that the SunPro C++ compiler does not properly
4340 # handle `-M -o', and we need to detect this. Also, some Intel
4341 # versions had trouble with output in subdirs
4342 am__obj=sub/conftest.${OBJEXT-o}
4343 am__minus_obj="-o $am__obj"
4346 # This depmode causes a compiler race in universal mode.
4347 test "$am__universal" = false || continue
4350 # after this tag, mechanisms are not by side-effect, so they'll
4351 # only be used when explicitly requested
4352 if test "x$enable_dependency_tracking" = xyes; then
4358 msvisualcpp | msvcmsys)
4359 # This compiler won't grok `-c -o', but also, the minuso test has
4360 # not run yet. These depmodes are late enough in the game, and
4361 # so weak that their functioning should not be impacted.
4362 am__obj=conftest.${OBJEXT-o}
4367 if depmode=$depmode \
4368 source=sub/conftest.c object=$am__obj \
4369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4371 >/dev/null 2>conftest.err &&
4372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4376 # icc doesn't choke on unknown options, it will just issue warnings
4377 # or remarks (even with -Werror). So we grep stderr for any message
4378 # that says an option was ignored or not supported.
4379 # When given -MP, icc 7.0 and 7.1 complain thusly:
4380 # icc: Command line warning: ignoring option '-M'; no argument required
4381 # The diagnosis changed in icc 8.0:
4382 # icc: Command line remark: option '-MP' not supported
4383 if (grep 'ignoring option' conftest.err ||
4384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4385 am_cv_CC_dependencies_compiler_type=$depmode
4394 am_cv_CC_dependencies_compiler_type=none
4398 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4399 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4400 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4403 test "x$enable_dependency_tracking" != xno \
4404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4406 am__fastdepCC_FALSE='#'
4408 am__fastdepCC_TRUE='#'
4409 am__fastdepCC_FALSE=
4413 # Find a good install program. We prefer a C program (faster),
4414 # so one script is as good as another. But avoid the broken or
4415 # incompatible versions:
4416 # SysV /etc/install, /usr/sbin/install
4417 # SunOS /usr/etc/install
4418 # IRIX /sbin/install
4420 # AmigaOS /C/install, which installs bootblocks on floppy discs
4421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424 # OS/2's system install, which has a completely different semantic
4425 # ./install, which can be erroneously created by make from ./install.sh.
4426 # Reject install programs that cannot install multiple files.
4427 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4429 if test -z "$INSTALL"; then
4430 if test "${ac_cv_path_install+set}" = set; then
4431 $as_echo_n "(cached) " >&6
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 # Account for people who put trailing slashes in PATH elements.
4440 ./ | .// | /cC/* | \
4441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4442 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4445 # OSF1 and SCO ODT 3.0 have their own names for install.
4446 # Don't use installbsd from OSF since it installs stuff as root
4448 for ac_prog in ginstall scoinst install; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4451 if test $ac_prog = install &&
4452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4453 # AIX install. It has an incompatible calling convention.
4455 elif test $ac_prog = install &&
4456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4457 # program-specific install script used by HP pwplus--don't use.
4460 rm -rf conftest.one conftest.two conftest.dir
4461 echo one > conftest.one
4462 echo two > conftest.two
4464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4465 test -s conftest.one && test -s conftest.two &&
4466 test -s conftest.dir/conftest.one &&
4467 test -s conftest.dir/conftest.two
4469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4482 rm -rf conftest.one conftest.two conftest.dir
4485 if test "${ac_cv_path_install+set}" = set; then
4486 INSTALL=$ac_cv_path_install
4488 # As a last resort, use the slow shell script. Don't cache a
4489 # value for INSTALL within a source directory, because that will
4490 # break other packages using the cache if that directory is
4491 # removed, or if the value is a relative name.
4492 INSTALL=$ac_install_sh
4495 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4496 $as_echo "$INSTALL" >&6; }
4498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4499 # It thinks the first close brace ends the variable substitution.
4500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4506 # Check whether --enable-shared was given.
4507 if test "${enable_shared+set}" = set; then
4508 enableval=$enable_shared; p=${PACKAGE-default}
4510 yes) enable_shared=yes ;;
4511 no) enable_shared=no ;;
4514 # Look at the argument we got. We use all the common list separators.
4515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4516 for pkg in $enableval; do
4518 if test "X$pkg" = "X$p"; then
4530 # Check whether --enable-fast-install was given.
4531 if test "${enable_fast_install+set}" = set; then
4532 enableval=$enable_fast_install; p=${PACKAGE-default}
4534 yes) enable_fast_install=yes ;;
4535 no) enable_fast_install=no ;;
4537 enable_fast_install=no
4538 # Look at the argument we got. We use all the common list separators.
4539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4540 for pkg in $enableval; do
4542 if test "X$pkg" = "X$p"; then
4543 enable_fast_install=yes
4550 enable_fast_install=yes
4554 # Make sure we can run config.sub.
4555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4556 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4557 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4558 { (exit 1); exit 1; }; }
4560 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4561 $as_echo_n "checking build system type... " >&6; }
4562 if test "${ac_cv_build+set}" = set; then
4563 $as_echo_n "(cached) " >&6
4565 ac_build_alias=$build_alias
4566 test "x$ac_build_alias" = x &&
4567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4568 test "x$ac_build_alias" = x &&
4569 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4570 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4571 { (exit 1); exit 1; }; }
4572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4573 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4574 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4575 { (exit 1); exit 1; }; }
4578 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4579 $as_echo "$ac_cv_build" >&6; }
4580 case $ac_cv_build in
4582 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4583 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4584 { (exit 1); exit 1; }; };;
4587 ac_save_IFS=$IFS; IFS='-'
4593 # Remember, the first character of IFS is used to create $*,
4594 # except with old shells:
4597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4600 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4601 $as_echo_n "checking host system type... " >&6; }
4602 if test "${ac_cv_host+set}" = set; then
4603 $as_echo_n "(cached) " >&6
4605 if test "x$host_alias" = x; then
4606 ac_cv_host=$ac_cv_build
4608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4609 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4610 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4611 { (exit 1); exit 1; }; }
4615 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4616 $as_echo "$ac_cv_host" >&6; }
4619 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4620 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4621 { (exit 1); exit 1; }; };;
4624 ac_save_IFS=$IFS; IFS='-'
4630 # Remember, the first character of IFS is used to create $*,
4631 # except with old shells:
4634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4637 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4638 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639 if test "${lt_cv_path_SED+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4642 # Loop through the user's path and test for sed and gsed.
4643 # Then use that list of sed's as ones to test for truncation.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for lt_ac_prog in sed gsed; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4652 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4660 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4661 # along with /bin/sed that truncates output.
4662 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4663 test ! -f $lt_ac_sed && continue
4664 cat /dev/null > conftest.in
4666 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4667 # Check for GNU sed and select it if it is found.
4668 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4669 lt_cv_path_SED=$lt_ac_sed
4673 cat conftest.in conftest.in >conftest.tmp
4674 mv conftest.tmp conftest.in
4675 cp conftest.in conftest.nl
4677 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4678 cmp -s conftest.out conftest.nl || break
4679 # 10000 chars as input seems more than enough
4680 test $lt_ac_count -gt 10 && break
4681 lt_ac_count=`expr $lt_ac_count + 1`
4682 if test $lt_ac_count -gt $lt_ac_max; then
4683 lt_ac_max=$lt_ac_count
4684 lt_cv_path_SED=$lt_ac_sed
4693 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4694 $as_echo "$SED" >&6; }
4696 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4697 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4698 if test "${ac_cv_path_GREP+set}" = set; then
4699 $as_echo_n "(cached) " >&6
4701 if test -z "$GREP"; then
4702 ac_path_GREP_found=false
4703 # Loop through the user's path and test for each of PROGNAME-LIST
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708 test -z "$as_dir" && as_dir=.
4709 for ac_prog in grep ggrep; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4712 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4713 # Check for GNU ac_path_GREP and select it if it is found.
4714 # Check for GNU $ac_path_GREP
4715 case `"$ac_path_GREP" --version 2>&1` in
4717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4720 $as_echo_n 0123456789 >"conftest.in"
4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
4724 mv "conftest.tmp" "conftest.in"
4725 cp "conftest.in" "conftest.nl"
4726 $as_echo 'GREP' >> "conftest.nl"
4727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729 ac_count=`expr $ac_count + 1`
4730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4731 # Best one so far, save it but keep looking for a better one
4732 ac_cv_path_GREP="$ac_path_GREP"
4733 ac_path_GREP_max=$ac_count
4735 # 10*(2^10) chars as input seems more than enough
4736 test $ac_count -gt 10 && break
4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 $ac_path_GREP_found && break 3
4746 if test -z "$ac_cv_path_GREP"; then
4747 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4748 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4749 { (exit 1); exit 1; }; }
4752 ac_cv_path_GREP=$GREP
4756 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4757 $as_echo "$ac_cv_path_GREP" >&6; }
4758 GREP="$ac_cv_path_GREP"
4761 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4762 $as_echo_n "checking for egrep... " >&6; }
4763 if test "${ac_cv_path_EGREP+set}" = set; then
4764 $as_echo_n "(cached) " >&6
4766 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4767 then ac_cv_path_EGREP="$GREP -E"
4769 if test -z "$EGREP"; then
4770 ac_path_EGREP_found=false
4771 # Loop through the user's path and test for each of PROGNAME-LIST
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776 test -z "$as_dir" && as_dir=.
4777 for ac_prog in egrep; do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4780 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4781 # Check for GNU ac_path_EGREP and select it if it is found.
4782 # Check for GNU $ac_path_EGREP
4783 case `"$ac_path_EGREP" --version 2>&1` in
4785 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4788 $as_echo_n 0123456789 >"conftest.in"
4791 cat "conftest.in" "conftest.in" >"conftest.tmp"
4792 mv "conftest.tmp" "conftest.in"
4793 cp "conftest.in" "conftest.nl"
4794 $as_echo 'EGREP' >> "conftest.nl"
4795 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797 ac_count=`expr $ac_count + 1`
4798 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4799 # Best one so far, save it but keep looking for a better one
4800 ac_cv_path_EGREP="$ac_path_EGREP"
4801 ac_path_EGREP_max=$ac_count
4803 # 10*(2^10) chars as input seems more than enough
4804 test $ac_count -gt 10 && break
4806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809 $ac_path_EGREP_found && break 3
4814 if test -z "$ac_cv_path_EGREP"; then
4815 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4816 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4817 { (exit 1); exit 1; }; }
4820 ac_cv_path_EGREP=$EGREP
4825 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4826 $as_echo "$ac_cv_path_EGREP" >&6; }
4827 EGREP="$ac_cv_path_EGREP"
4831 # Check whether --with-gnu-ld was given.
4832 if test "${with_gnu_ld+set}" = set; then
4833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4839 if test "$GCC" = yes; then
4840 # Check if gcc -print-prog-name=ld gives a path.
4841 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4842 $as_echo_n "checking for ld used by $CC... " >&6; }
4845 # gcc leaves a trailing carriage return which upsets mingw
4846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4851 # Accept absolute paths.
4853 re_direlt='/[^/][^/]*/\.\./'
4854 # Canonicalize the pathname of ld
4855 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4856 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4857 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4859 test -z "$LD" && LD="$ac_prog"
4862 # If it fails, then pretend we aren't using GCC.
4866 # If it is relative, then search for the first ld in PATH.
4870 elif test "$with_gnu_ld" = yes; then
4871 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4872 $as_echo_n "checking for GNU ld... " >&6; }
4874 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4875 $as_echo_n "checking for non-GNU ld... " >&6; }
4877 if test "${lt_cv_path_LD+set}" = set; then
4878 $as_echo_n "(cached) " >&6
4880 if test -z "$LD"; then
4881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4882 for ac_dir in $PATH; do
4884 test -z "$ac_dir" && ac_dir=.
4885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4886 lt_cv_path_LD="$ac_dir/$ac_prog"
4887 # Check to see if the program is GNU ld. I'd rather use --version,
4888 # but apparently some variants of GNU ld only accept -v.
4889 # Break only if it was the GNU/non-GNU ld that we prefer.
4890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4891 *GNU* | *'with BFD'*)
4892 test "$with_gnu_ld" != no && break
4895 test "$with_gnu_ld" != yes && break
4902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4907 if test -n "$LD"; then
4908 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4909 $as_echo "$LD" >&6; }
4911 { $as_echo "$as_me:$LINENO: result: no" >&5
4912 $as_echo "no" >&6; }
4914 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4915 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4916 { (exit 1); exit 1; }; }
4917 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4919 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4920 $as_echo_n "(cached) " >&6
4922 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4923 case `$LD -v 2>&1 </dev/null` in
4924 *GNU* | *'with BFD'*)
4925 lt_cv_prog_gnu_ld=yes
4928 lt_cv_prog_gnu_ld=no
4932 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4934 with_gnu_ld=$lt_cv_prog_gnu_ld
4937 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4939 if test "${lt_cv_ld_reload_flag+set}" = set; then
4940 $as_echo_n "(cached) " >&6
4942 lt_cv_ld_reload_flag='-r'
4944 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4946 reload_flag=$lt_cv_ld_reload_flag
4947 case $reload_flag in
4949 *) reload_flag=" $reload_flag" ;;
4951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4954 if test "$GCC" = yes; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4962 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4963 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4964 if test "${lt_cv_path_NM+set}" = set; then
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$NM"; then
4968 # Let the user override the test.
4971 lt_nm_to_check="${ac_tool_prefix}nm"
4972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4973 lt_nm_to_check="$lt_nm_to_check nm"
4975 for lt_tmp_nm in $lt_nm_to_check; do
4976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4979 test -z "$ac_dir" && ac_dir=.
4980 tmp_nm="$ac_dir/$lt_tmp_nm"
4981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4982 # Check to see if the nm accepts a BSD-compat flag.
4983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4984 # nm: unknown option "B" ignored
4985 # Tru64's nm complains that /dev/null is an invalid object file
4986 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4987 */dev/null* | *'Invalid file or object type'*)
4988 lt_cv_path_NM="$tmp_nm -B"
4992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4994 lt_cv_path_NM="$tmp_nm -p"
4998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4999 continue # so that we can try to find one that supports BSD flags
5008 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5011 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5012 $as_echo "$lt_cv_path_NM" >&6; }
5015 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5018 if test "$LN_S" = "ln -s"; then
5019 { $as_echo "$as_me:$LINENO: result: yes" >&5
5020 $as_echo "yes" >&6; }
5022 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5026 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5027 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5028 if test "${lt_cv_deplibs_check_method+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5031 lt_cv_file_magic_cmd='$MAGIC_CMD'
5032 lt_cv_file_magic_test_file=
5033 lt_cv_deplibs_check_method='unknown'
5034 # Need to set the preceding variable on all platforms that support
5035 # interlibrary dependencies.
5036 # 'none' -- dependencies not supported.
5037 # `unknown' -- same as none, but documents that we really don't know.
5038 # 'pass_all' -- all dependencies passed with no checks.
5039 # 'test_compile' -- check by making test program.
5040 # 'file_magic [[regex]]' -- check by looking for files in library path
5041 # which responds to the $file_magic_cmd with a given extended regex.
5042 # If you have `file' or equivalent on your system and you're not sure
5043 # whether `pass_all' will *always* work, you probably want this one.
5047 lt_cv_deplibs_check_method=pass_all
5051 lt_cv_deplibs_check_method=pass_all
5055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5056 lt_cv_file_magic_cmd='/usr/bin/file -L'
5057 lt_cv_file_magic_test_file=/shlib/libc.so
5061 # func_win32_libid is a shell function defined in ltmain.sh
5062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5063 lt_cv_file_magic_cmd='func_win32_libid'
5067 # Base MSYS/MinGW do not provide the 'file' command needed by
5068 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5069 # unless we find 'file', for example because we are cross-compiling.
5070 if ( file / ) >/dev/null 2>&1; then
5071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5072 lt_cv_file_magic_cmd='func_win32_libid'
5074 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5075 lt_cv_file_magic_cmd='$OBJDUMP -f'
5079 darwin* | rhapsody*)
5080 lt_cv_deplibs_check_method=pass_all
5083 freebsd* | dragonfly*)
5084 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5087 # Not sure whether the presence of OpenBSD here was a mistake.
5088 # Let's accept both of them until this is cleared up.
5089 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5090 lt_cv_file_magic_cmd=/usr/bin/file
5091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5095 lt_cv_deplibs_check_method=pass_all
5100 lt_cv_deplibs_check_method=pass_all
5103 hpux10.20* | hpux11*)
5104 lt_cv_file_magic_cmd=/usr/bin/file
5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5111 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]'
5112 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5116 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5122 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5126 irix5* | irix6* | nonstopux*)
5128 *-32|*"-32 ") libmagic=32-bit;;
5129 *-n32|*"-n32 ") libmagic=N32;;
5130 *-64|*"-64 ") libmagic=64-bit;;
5131 *) libmagic=never-match;;
5133 lt_cv_deplibs_check_method=pass_all
5136 # This must be Linux ELF.
5137 linux* | k*bsd*-gnu)
5138 lt_cv_deplibs_check_method=pass_all
5142 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5151 lt_cv_file_magic_cmd=/usr/bin/file
5152 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5156 lt_cv_deplibs_check_method=unknown
5160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5167 osf3* | osf4* | osf5*)
5168 lt_cv_deplibs_check_method=pass_all
5172 lt_cv_deplibs_check_method=pass_all
5176 lt_cv_deplibs_check_method=pass_all
5180 case $host_vendor in
5182 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]'
5183 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5186 lt_cv_deplibs_check_method=pass_all
5189 lt_cv_file_magic_cmd='/bin/file'
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5193 lt_cv_file_magic_cmd='/bin/file'
5194 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5195 lt_cv_file_magic_test_file=/lib/libc.so
5198 lt_cv_deplibs_check_method=pass_all
5201 lt_cv_deplibs_check_method=pass_all
5206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5207 lt_cv_deplibs_check_method=pass_all
5212 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5213 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5214 file_magic_cmd=$lt_cv_file_magic_cmd
5215 deplibs_check_method=$lt_cv_deplibs_check_method
5216 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5221 # If no C compiler was specified, use CC.
5224 # If no C compiler flags were specified, use CFLAGS.
5225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5227 # Allow CC to be a program name with arguments.
5231 # Check whether --enable-libtool-lock was given.
5232 if test "${enable_libtool_lock+set}" = set; then
5233 enableval=$enable_libtool_lock;
5236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5238 # Some flags need to be propagated to the compiler or linker for good
5242 # Find out which ABI we are using.
5243 echo 'int i;' > conftest.$ac_ext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; then
5249 case `/usr/bin/file conftest.$ac_objext` in
5261 # Find out which ABI we are using.
5262 echo '#line 5262 "configure"' > conftest.$ac_ext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>&5
5266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; then
5268 if test "$lt_cv_prog_gnu_ld" = yes; then
5269 case `/usr/bin/file conftest.$ac_objext` in
5271 LD="${LD-ld} -melf32bsmip"
5274 LD="${LD-ld} -melf32bmipn32"
5277 LD="${LD-ld} -melf64bmip"
5281 case `/usr/bin/file conftest.$ac_objext` in
5297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5298 s390*-*linux*|sparc*-*linux*)
5299 # Find out which ABI we are using.
5300 echo 'int i;' > conftest.$ac_ext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; then
5306 case `/usr/bin/file conftest.o` in
5309 x86_64-*kfreebsd*-gnu)
5310 LD="${LD-ld} -m elf_i386_fbsd"
5313 LD="${LD-ld} -m elf_i386"
5315 ppc64-*linux*|powerpc64-*linux*)
5316 LD="${LD-ld} -m elf32ppclinux"
5319 LD="${LD-ld} -m elf_s390"
5322 LD="${LD-ld} -m elf32_sparc"
5329 x86_64-*kfreebsd*-gnu)
5330 LD="${LD-ld} -m elf_x86_64_fbsd"
5333 LD="${LD-ld} -m elf_x86_64"
5335 ppc*-*linux*|powerpc*-*linux*)
5336 LD="${LD-ld} -m elf64ppc"
5339 LD="${LD-ld} -m elf64_s390"
5342 LD="${LD-ld} -m elf64_sparc"
5352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5353 SAVE_CFLAGS="$CFLAGS"
5354 CFLAGS="$CFLAGS -belf"
5355 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5356 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5357 if test "${lt_cv_cc_needs_belf+set}" = set; then
5358 $as_echo_n "(cached) " >&6
5361 ac_cpp='$CPP $CPPFLAGS'
5362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366 cat >conftest.$ac_ext <<_ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (ac_try="$ac_link"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388 $as_echo "$ac_try_echo") >&5
5389 (eval "$ac_link") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest$ac_exeext && {
5399 test "$cross_compiling" = yes ||
5400 $as_test_x conftest$ac_exeext
5402 lt_cv_cc_needs_belf=yes
5404 $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 lt_cv_cc_needs_belf=no
5410 rm -rf conftest.dSYM
5411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5412 conftest$ac_exeext conftest.$ac_ext
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5422 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5424 CFLAGS="$SAVE_CFLAGS"
5428 # Find out which ABI we are using.
5429 echo 'int i;' > conftest.$ac_ext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; then
5435 case `/usr/bin/file conftest.o` in
5437 case $lt_cv_prog_gnu_ld in
5438 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5454 need_locks="$enable_libtool_lock"
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5464 # On Suns, sometimes $CPP names a directory.
5465 if test -n "$CPP" && test -d "$CPP"; then
5468 if test -z "$CPP"; then
5469 if test "${ac_cv_prog_CPP+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 # Double quotes because CPP needs to be expanded
5473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5476 for ac_c_preproc_warn_flag in '' yes
5478 # Use a header file that comes with gcc, so configuring glibc
5479 # with a fresh cross-compiler works.
5480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5481 # <limits.h> exists even on freestanding compilers.
5482 # On the NeXT, cc -E runs the code through the compiler's parser,
5483 # not just through cpp. "Syntax error" is here to catch this case.
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5491 # include <limits.h>
5493 # include <assert.h>
5497 if { (ac_try="$ac_cpp conftest.$ac_ext"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5503 $as_echo "$ac_try_echo") >&5
5504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev/null && {
5511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5516 $as_echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5519 # Broken: fails on valid input.
5523 rm -f conftest.err conftest.$ac_ext
5525 # OK, works on sane cases. Now check whether nonexistent headers
5526 # can be detected and how.
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <ac_nonexistent.h>
5535 if { (ac_try="$ac_cpp conftest.$ac_ext"
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5541 $as_echo "$ac_try_echo") >&5
5542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null && {
5549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5552 # Broken: success on invalid input.
5555 $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 # Passes both tests.
5563 rm -f conftest.err conftest.$ac_ext
5566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567 rm -f conftest.err conftest.$ac_ext
5568 if $ac_preproc_ok; then
5580 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5581 $as_echo "$CPP" >&6; }
5583 for ac_c_preproc_warn_flag in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 # include <limits.h>
5600 # include <assert.h>
5604 if { (ac_try="$ac_cpp conftest.$ac_ext"
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610 $as_echo "$ac_try_echo") >&5
5611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5613 grep -v '^ *+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } >/dev/null && {
5618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5623 $as_echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 # Broken: fails on valid input.
5630 rm -f conftest.err conftest.$ac_ext
5632 # OK, works on sane cases. Now check whether nonexistent headers
5633 # can be detected and how.
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <ac_nonexistent.h>
5642 if { (ac_try="$ac_cpp conftest.$ac_ext"
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648 $as_echo "$ac_try_echo") >&5
5649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } >/dev/null && {
5656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5659 # Broken: success on invalid input.
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 # Passes both tests.
5670 rm -f conftest.err conftest.$ac_ext
5673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674 rm -f conftest.err conftest.$ac_ext
5675 if $ac_preproc_ok; then
5678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5681 See \`config.log' for more details." >&5
5682 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5683 See \`config.log' for more details." >&2;}
5684 { (exit 1); exit 1; }; }; }
5688 ac_cpp='$CPP $CPPFLAGS'
5689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5695 $as_echo_n "checking for ANSI C header files... " >&6; }
5696 if test "${ac_cv_header_stdc+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_header_stdc=yes
5738 $as_echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_header_stdc=no
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 if test $ac_cv_header_stdc = yes; then
5747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758 $EGREP "memchr" >/dev/null 2>&1; then
5761 ac_cv_header_stdc=no
5767 if test $ac_cv_header_stdc = yes; then
5768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "free" >/dev/null 2>&1; then
5782 ac_cv_header_stdc=no
5788 if test $ac_cv_header_stdc = yes; then
5789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5790 if test "$cross_compiling" = yes; then
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5801 #if ((' ' & 0x0FF) == 0x020)
5802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5805 # define ISLOWER(c) \
5806 (('a' <= (c) && (c) <= 'i') \
5807 || ('j' <= (c) && (c) <= 'r') \
5808 || ('s' <= (c) && (c) <= 'z'))
5809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5817 for (i = 0; i < 256; i++)
5818 if (XOR (islower (i), ISLOWER (i))
5819 || toupper (i) != TOUPPER (i))
5824 rm -f conftest$ac_exeext
5825 if { (ac_try="$ac_link"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5831 $as_echo "$ac_try_echo") >&5
5832 (eval "$ac_link") 2>&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836 { (case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_try") 2>&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5848 $as_echo "$as_me: program exited with status $ac_status" >&5
5849 $as_echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_header_stdc=no
5855 rm -rf conftest.dSYM
5856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5863 $as_echo "$ac_cv_header_stdc" >&6; }
5864 if test $ac_cv_header_stdc = yes; then
5866 cat >>confdefs.h <<\_ACEOF
5867 #define STDC_HEADERS 1
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5883 inttypes.h stdint.h unistd.h
5885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5887 $as_echo_n "checking for $ac_header... " >&6; }
5888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5889 $as_echo_n "(cached) " >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5899 #include <$ac_header>
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 eval "$as_ac_Header=yes"
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 eval "$as_ac_Header=no"
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 ac_res=`eval 'as_val=${'$as_ac_Header'}
5930 $as_echo "$as_val"'`
5931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5932 $as_echo "$ac_res" >&6; }
5933 as_val=`eval 'as_val=${'$as_ac_Header'}
5934 $as_echo "$as_val"'`
5935 if test "x$as_val" = x""yes; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 for ac_header in dlfcn.h
5948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5951 $as_echo_n "checking for $ac_header... " >&6; }
5952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5953 $as_echo_n "(cached) " >&6
5955 ac_res=`eval 'as_val=${'$as_ac_Header'}
5956 $as_echo "$as_val"'`
5957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5958 $as_echo "$ac_res" >&6; }
5960 # Is the header compilable?
5961 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5962 $as_echo_n "checking $ac_header usability... " >&6; }
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 #include <$ac_header>
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979 $as_echo "$ac_try_echo") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest.$ac_objext; then
5990 ac_header_compiler=yes
5992 $as_echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 ac_header_compiler=no
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6000 $as_echo "$ac_header_compiler" >&6; }
6002 # Is the header present?
6003 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6004 $as_echo_n "checking $ac_header presence... " >&6; }
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <$ac_header>
6013 if { (ac_try="$ac_cpp conftest.$ac_ext"
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6022 grep -v '^ *+' conftest.er1 >conftest.err
6024 cat conftest.err >&5
6025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } >/dev/null && {
6027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6030 ac_header_preproc=yes
6032 $as_echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_header_preproc=no
6038 rm -f conftest.err conftest.$ac_ext
6039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6040 $as_echo "$ac_header_preproc" >&6; }
6042 # So? What about this header?
6043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6046 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6049 ac_header_preproc=yes
6052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6053 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6055 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6057 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6059 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6063 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6065 ## --------------------- ##
6066 ## Report this to 3.12.4 ##
6067 ## --------------------- ##
6069 ) | sed "s/^/$as_me: WARNING: /" >&2
6072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6073 $as_echo_n "checking for $ac_header... " >&6; }
6074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6075 $as_echo_n "(cached) " >&6
6077 eval "$as_ac_Header=\$ac_header_preproc"
6079 ac_res=`eval 'as_val=${'$as_ac_Header'}
6080 $as_echo "$as_val"'`
6081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6082 $as_echo "$ac_res" >&6; }
6085 as_val=`eval 'as_val=${'$as_ac_Header'}
6086 $as_echo "$as_val"'`
6087 if test "x$as_val" = x""yes; then
6088 cat >>confdefs.h <<_ACEOF
6089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6099 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6100 (test "X$CXX" != "Xg++"))) ; then
6102 ac_cpp='$CXXCPP $CPPFLAGS'
6103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6106 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6107 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6108 if test -z "$CXXCPP"; then
6109 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6110 $as_echo_n "(cached) " >&6
6112 # Double quotes because CXXCPP needs to be expanded
6113 for CXXCPP in "$CXX -E" "/lib/cpp"
6116 for ac_cxx_preproc_warn_flag in '' yes
6118 # Use a header file that comes with gcc, so configuring glibc
6119 # with a fresh cross-compiler works.
6120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6121 # <limits.h> exists even on freestanding compilers.
6122 # On the NeXT, cc -E runs the code through the compiler's parser,
6123 # not just through cpp. "Syntax error" is here to catch this case.
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6131 # include <limits.h>
6133 # include <assert.h>
6137 if { (ac_try="$ac_cpp conftest.$ac_ext"
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null && {
6151 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6152 test ! -s conftest.err
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 # Broken: fails on valid input.
6163 rm -f conftest.err conftest.$ac_ext
6165 # OK, works on sane cases. Now check whether nonexistent headers
6166 # can be detected and how.
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <ac_nonexistent.h>
6175 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6181 $as_echo "$ac_try_echo") >&5
6182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null && {
6189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6190 test ! -s conftest.err
6192 # Broken: success on invalid input.
6195 $as_echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 # Passes both tests.
6203 rm -f conftest.err conftest.$ac_ext
6206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6207 rm -f conftest.err conftest.$ac_ext
6208 if $ac_preproc_ok; then
6213 ac_cv_prog_CXXCPP=$CXXCPP
6216 CXXCPP=$ac_cv_prog_CXXCPP
6218 ac_cv_prog_CXXCPP=$CXXCPP
6220 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6221 $as_echo "$CXXCPP" >&6; }
6223 for ac_cxx_preproc_warn_flag in '' yes
6225 # Use a header file that comes with gcc, so configuring glibc
6226 # with a fresh cross-compiler works.
6227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 # <limits.h> exists even on freestanding compilers.
6229 # On the NeXT, cc -E runs the code through the compiler's parser,
6230 # not just through cpp. "Syntax error" is here to catch this case.
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6238 # include <limits.h>
6240 # include <assert.h>
6244 if { (ac_try="$ac_cpp conftest.$ac_ext"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6250 $as_echo "$ac_try_echo") >&5
6251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null && {
6258 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6259 test ! -s conftest.err
6263 $as_echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 # Broken: fails on valid input.
6270 rm -f conftest.err conftest.$ac_ext
6272 # OK, works on sane cases. Now check whether nonexistent headers
6273 # can be detected and how.
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <ac_nonexistent.h>
6282 if { (ac_try="$ac_cpp conftest.$ac_ext"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null && {
6296 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6297 test ! -s conftest.err
6299 # Broken: success on invalid input.
6302 $as_echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 # Passes both tests.
6310 rm -f conftest.err conftest.$ac_ext
6313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6314 rm -f conftest.err conftest.$ac_ext
6315 if $ac_preproc_ok; then
6318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6320 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6321 See \`config.log' for more details." >&5
6322 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6323 See \`config.log' for more details." >&2;}
6324 { (exit 1); exit 1; }; }; }
6328 ac_cpp='$CXXCPP $CPPFLAGS'
6329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6338 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6340 if test -n "$ac_tool_prefix"; then
6341 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
6343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_F77+set}" = set; then
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$F77"; then
6351 ac_cv_prog_F77="$F77" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 if test -n "$F77"; then
6372 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6373 $as_echo "$F77" >&6; }
6375 { $as_echo "$as_me:$LINENO: result: no" >&5
6376 $as_echo "no" >&6; }
6380 test -n "$F77" && break
6383 if test -z "$F77"; then
6385 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
6387 # Extract the first word of "$ac_prog", so it can be a program name with args.
6388 set dummy $ac_prog; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$ac_ct_F77"; then
6395 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_F77="$ac_prog"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6415 if test -n "$ac_ct_F77"; then
6416 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6417 $as_echo "$ac_ct_F77" >&6; }
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6424 test -n "$ac_ct_F77" && break
6427 if test "x$ac_ct_F77" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6441 # Provide some information about the compiler.
6442 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6445 { (ac_try="$ac_compiler --version >&5"
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6451 $as_echo "$ac_try_echo") >&5
6452 (eval "$ac_compiler --version >&5") 2>&5
6454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }
6456 { (ac_try="$ac_compiler -v >&5"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6462 $as_echo "$ac_try_echo") >&5
6463 (eval "$ac_compiler -v >&5") 2>&5
6465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }
6467 { (ac_try="$ac_compiler -V >&5"
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6473 $as_echo "$ac_try_echo") >&5
6474 (eval "$ac_compiler -V >&5") 2>&5
6476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }
6480 # If we don't use `.F' as extension, the preprocessor is not run on the
6481 # input file. (Note that this only needs to work for GNU compilers.)
6484 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6485 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6486 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6487 $as_echo_n "(cached) " >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_f77_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest.$ac_objext; then
6517 $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6527 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6528 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6530 ac_test_FFLAGS=${FFLAGS+set}
6531 ac_save_FFLAGS=$FFLAGS
6533 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6534 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6535 if test "${ac_cv_prog_f77_g+set}" = set; then
6536 $as_echo_n "(cached) " >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_f77_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_cv_prog_f77_g=yes
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6574 $as_echo "$ac_cv_prog_f77_g" >&6; }
6575 if test "$ac_test_FFLAGS" = set; then
6576 FFLAGS=$ac_save_FFLAGS
6577 elif test $ac_cv_prog_f77_g = yes; then
6578 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6584 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6591 if test $ac_compiler_gnu = yes; then
6597 ac_cpp='$CPP $CPPFLAGS'
6598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6605 # find the maximum length of command line arguments
6606 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6608 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6609 $as_echo_n "(cached) " >&6
6616 # On DJGPP, this test can blow up pretty badly due to problems in libc
6617 # (any single argument exceeding 2000 bytes causes a buffer overrun
6618 # during glob expansion). Even if it were fixed, the result of this
6619 # check would be larger than it should be.
6620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6624 # Under GNU Hurd, this test is not required because there is
6625 # no limit to the length of command line arguments.
6626 # Libtool will interpret -1 as no limit whatsoever
6627 lt_cv_sys_max_cmd_len=-1;
6631 # On Win9x/ME, this test blows up -- it succeeds, but takes
6632 # about 5 minutes as the teststring grows exponentially.
6633 # Worse, since 9x/ME are not pre-emptively multitasking,
6634 # you end up with a "frozen" computer, even though with patience
6635 # the test eventually succeeds (with a max line length of 256k).
6636 # Instead, let's just punt: use the minimum linelength reported by
6637 # all of the supported platforms: 8192 (on NT/2K/XP).
6638 lt_cv_sys_max_cmd_len=8192;
6642 # On AmigaOS with pdksh, this test takes hours, literally.
6643 # So we just punt and use a minimum line length of 8192.
6644 lt_cv_sys_max_cmd_len=8192;
6647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6648 # This has been around since 386BSD, at least. Likely further.
6649 if test -x /sbin/sysctl; then
6650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6651 elif test -x /usr/sbin/sysctl; then
6652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6656 # And add a safety zone
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6663 lt_cv_sys_max_cmd_len=196608
6667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6669 # nice to cause kernel panics so lets avoid the loop below.
6670 # First set a reasonable default.
6671 lt_cv_sys_max_cmd_len=16384
6673 if test -x /sbin/sysconfig; then
6674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6680 lt_cv_sys_max_cmd_len=102400
6682 sysv5* | sco5v6* | sysv4.2uw2*)
6683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6684 if test -n "$kargmax"; then
6685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6687 lt_cv_sys_max_cmd_len=32768
6691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6692 if test -n "$lt_cv_sys_max_cmd_len"; then
6693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6696 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6697 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6698 = "XX$teststring") >/dev/null 2>&1 &&
6699 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6700 lt_cv_sys_max_cmd_len=$new_result &&
6701 test $i != 17 # 1/2 MB should be enough
6704 teststring=$teststring$teststring
6707 # Add a significant safety factor because C++ compilers can tack on massive
6708 # amounts of additional arguments before passing them to the linker.
6709 # It appears as though 1/2 is a usable value.
6710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6717 if test -n $lt_cv_sys_max_cmd_len ; then
6718 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6719 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6721 { $as_echo "$as_me:$LINENO: result: none" >&5
6722 $as_echo "none" >&6; }
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Transform an extracted symbol line into a proper C declaration
6746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6748 # Transform an extracted symbol line into symbol name and symbol address
6749 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'"
6751 # Define system-specific variables.
6756 cygwin* | mingw* | pw32*)
6757 symcode='[ABCDGISTW]'
6759 hpux*) # Its linker distinguishes data from code symbols
6760 if test "$host_cpu" = ia64; then
6761 symcode='[ABCDEGRST]'
6763 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6764 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'"
6766 linux* | k*bsd*-gnu)
6767 if test "$host_cpu" = ia64; then
6768 symcode='[ABCDGIRSTW]'
6769 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6770 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'"
6774 symcode='[BCDEGRST]'
6777 symcode='[BCDEGQRST]'
6788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6796 # Handle CRLF in mingw tool chain
6800 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6804 # If we're using GNU nm, then use its standard symbol codes.
6805 case `$NM -V 2>&1` in
6806 *GNU* | *'with BFD'*)
6807 symcode='[ABCDGIRSTW]' ;;
6810 # Try without a prefix undercore, then with it.
6811 for ac_symprfx in "" "_"; do
6813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6814 symxfrm="\\1 $ac_symprfx\\2 \\2"
6816 # Write the raw and C identifiers.
6817 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6819 # Check to see that the pipe works correctly.
6823 cat > conftest.$ac_ext <<EOF
6828 void nm_test_func(){}
6832 int main(){nm_test_var='a';nm_test_func();return(0);}
6835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6836 (eval $ac_compile) 2>&5
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; then
6840 # Now try to grab the symbols.
6842 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6843 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && test -s "$nlist"; then
6847 # Try sorting and uniquifying the output.
6848 if sort "$nlist" | uniq > "$nlist"T; then
6849 mv -f "$nlist"T "$nlist"
6854 # Make sure that we snagged all the symbols we need.
6855 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6856 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6857 cat <<EOF > conftest.$ac_ext
6863 # Now generate the symbol file.
6864 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6866 cat <<EOF >> conftest.$ac_ext
6867 #if defined (__STDC__) && __STDC__
6868 # define lt_ptr_t void *
6870 # define lt_ptr_t char *
6874 /* The mapping between symbol names and symbols. */
6879 lt_preloaded_symbols[] =
6882 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6883 cat <<\EOF >> conftest.$ac_ext
6891 # Now try linking the two files.
6892 mv conftest.$ac_objext conftstm.$ac_objext
6893 lt_save_LIBS="$LIBS"
6894 lt_save_CFLAGS="$CFLAGS"
6895 LIBS="conftstm.$ac_objext"
6896 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6904 LIBS="$lt_save_LIBS"
6905 CFLAGS="$lt_save_CFLAGS"
6907 echo "cannot find nm_test_func in $nlist" >&5
6910 echo "cannot find nm_test_var in $nlist" >&5
6913 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6916 echo "$progname: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 rm -rf conftest* conftst*
6921 # Do not use the global_symbol_pipe unless it works.
6922 if test "$pipe_works" = yes; then
6925 lt_cv_sys_global_symbol_pipe=
6931 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6932 lt_cv_sys_global_symbol_to_cdecl=
6934 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6935 { $as_echo "$as_me:$LINENO: result: failed" >&5
6936 $as_echo "failed" >&6; }
6938 { $as_echo "$as_me:$LINENO: result: ok" >&5
6939 $as_echo "ok" >&6; }
6942 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6943 $as_echo_n "checking for objdir... " >&6; }
6944 if test "${lt_cv_objdir+set}" = set; then
6945 $as_echo_n "(cached) " >&6
6947 rm -f .libs 2>/dev/null
6948 mkdir .libs 2>/dev/null
6949 if test -d .libs; then
6952 # MS-DOS does not allow filenames that begin with a dot.
6955 rmdir .libs 2>/dev/null
6957 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6958 $as_echo "$lt_cv_objdir" >&6; }
6959 objdir=$lt_cv_objdir
6967 # AIX sometimes has problems with the GCC collect2 program. For some
6968 # reason, if we set the COLLECT_NAMES environment variable, the problems
6969 # vanish in a puff of smoke.
6970 if test "X${COLLECT_NAMES+set}" != Xset; then
6972 export COLLECT_NAMES
6977 # Sed substitution that helps us do robust quoting. It backslashifies
6978 # metacharacters that are still active within double-quoted strings.
6979 Xsed='sed -e 1s/^X//'
6980 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6982 # Same as above, but do not quote variable references.
6983 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6985 # Sed substitution to delay expansion of an escaped shell variable in a
6986 # double_quote_subst'ed string.
6987 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6989 # Sed substitution to avoid accidental globbing in evaled expressions
6990 no_glob_subst='s/\*/\\\*/g'
6996 default_ofile=libtool
6997 can_build_shared=yes
6999 # All known linkers require a `.a' archive for static linking (except MSVC,
7000 # which needs '.lib').
7002 ltmain="$ac_aux_dir/ltmain.sh"
7003 ofile="$default_ofile"
7004 with_gnu_ld="$lt_cv_prog_gnu_ld"
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}ar; ac_word=$2
7009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_AR+set}" = set; then
7012 $as_echo_n "(cached) " >&6
7014 if test -n "$AR"; then
7015 ac_cv_prog_AR="$AR" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_AR="${ac_tool_prefix}ar"
7025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 if test -n "$AR"; then
7036 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7037 $as_echo "$AR" >&6; }
7039 { $as_echo "$as_me:$LINENO: result: no" >&5
7040 $as_echo "no" >&6; }
7045 if test -z "$ac_cv_prog_AR"; then
7047 # Extract the first word of "ar", so it can be a program name with args.
7048 set dummy ar; ac_word=$2
7049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7054 if test -n "$ac_ct_AR"; then
7055 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_AR="ar"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7075 if test -n "$ac_ct_AR"; then
7076 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7077 $as_echo "$ac_ct_AR" >&6; }
7079 { $as_echo "$as_me:$LINENO: result: no" >&5
7080 $as_echo "no" >&6; }
7083 if test "x$ac_ct_AR" = x; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_RANLIB+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7106 if test -n "$RANLIB"; then
7107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 RANLIB=$ac_cv_prog_RANLIB
7127 if test -n "$RANLIB"; then
7128 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7129 $as_echo "$RANLIB" >&6; }
7131 { $as_echo "$as_me:$LINENO: result: no" >&5
7132 $as_echo "no" >&6; }
7137 if test -z "$ac_cv_prog_RANLIB"; then
7138 ac_ct_RANLIB=$RANLIB
7139 # Extract the first word of "ranlib", so it can be a program name with args.
7140 set dummy ranlib; ac_word=$2
7141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7144 $as_echo_n "(cached) " >&6
7146 if test -n "$ac_ct_RANLIB"; then
7147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_ac_ct_RANLIB="ranlib"
7157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7167 if test -n "$ac_ct_RANLIB"; then
7168 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7169 $as_echo "$ac_ct_RANLIB" >&6; }
7171 { $as_echo "$as_me:$LINENO: result: no" >&5
7172 $as_echo "no" >&6; }
7175 if test "x$ac_ct_RANLIB" = x; then
7178 case $cross_compiling:$ac_tool_warned in
7180 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7184 RANLIB=$ac_ct_RANLIB
7187 RANLIB="$ac_cv_prog_RANLIB"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}strip; ac_word=$2
7193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_STRIP+set}" = set; then
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$STRIP"; then
7199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 STRIP=$ac_cv_prog_STRIP
7219 if test -n "$STRIP"; then
7220 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7221 $as_echo "$STRIP" >&6; }
7223 { $as_echo "$as_me:$LINENO: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_STRIP"; then
7231 # Extract the first word of "strip", so it can be a program name with args.
7232 set dummy strip; ac_word=$2
7233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$ac_ct_STRIP"; then
7239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_STRIP="strip"
7249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7259 if test -n "$ac_ct_STRIP"; then
7260 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7261 $as_echo "$ac_ct_STRIP" >&6; }
7263 { $as_echo "$as_me:$LINENO: result: no" >&5
7264 $as_echo "no" >&6; }
7267 if test "x$ac_ct_STRIP" = x; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7279 STRIP="$ac_cv_prog_STRIP"
7284 old_CFLAGS="$CFLAGS"
7286 # Set sane defaults for various variables
7287 test -z "$AR" && AR=ar
7288 test -z "$AR_FLAGS" && AR_FLAGS=cru
7289 test -z "$AS" && AS=as
7290 test -z "$CC" && CC=cc
7291 test -z "$LTCC" && LTCC=$CC
7292 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7293 test -z "$DLLTOOL" && DLLTOOL=dlltool
7294 test -z "$LD" && LD=ld
7295 test -z "$LN_S" && LN_S="ln -s"
7296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7297 test -z "$NM" && NM=nm
7298 test -z "$SED" && SED=sed
7299 test -z "$OBJDUMP" && OBJDUMP=objdump
7300 test -z "$RANLIB" && RANLIB=:
7301 test -z "$STRIP" && STRIP=:
7302 test -z "$ac_objext" && ac_objext=o
7304 # Determine commands to create old-style static archives.
7305 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7306 old_postinstall_cmds='chmod 644 $oldlib'
7307 old_postuninstall_cmds=
7309 if test -n "$RANLIB"; then
7312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7321 for cc_temp in $compiler""; do
7323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7332 # Only perform the check for file, if the check method requires it
7333 case $deplibs_check_method in
7335 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7336 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7337 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7339 $as_echo_n "(cached) " >&6
7343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7346 lt_save_MAGIC_CMD="$MAGIC_CMD"
7347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7349 for ac_dir in $ac_dummy; do
7351 test -z "$ac_dir" && ac_dir=.
7352 if test -f $ac_dir/${ac_tool_prefix}file; then
7353 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7354 if test -n "$file_magic_test_file"; then
7355 case $deplibs_check_method in
7357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7360 $EGREP "$file_magic_regex" > /dev/null; then
7365 *** Warning: the command libtool uses to detect shared libraries,
7366 *** $file_magic_cmd, produces output that libtool cannot recognize.
7367 *** The result is that libtool may fail to recognize shared libraries
7368 *** as such. This will affect the creation of libtool libraries that
7369 *** depend on shared libraries, but programs linked with such libtool
7370 *** libraries will work regardless of this problem. Nevertheless, you
7371 *** may want to report the problem to your system manager and/or to
7372 *** bug-libtool@gnu.org
7382 MAGIC_CMD="$lt_save_MAGIC_CMD"
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if test -n "$MAGIC_CMD"; then
7389 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7390 $as_echo "$MAGIC_CMD" >&6; }
7392 { $as_echo "$as_me:$LINENO: result: no" >&5
7393 $as_echo "no" >&6; }
7396 if test -z "$lt_cv_path_MAGIC_CMD"; then
7397 if test -n "$ac_tool_prefix"; then
7398 { $as_echo "$as_me:$LINENO: checking for file" >&5
7399 $as_echo_n "checking for file... " >&6; }
7400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7401 $as_echo_n "(cached) " >&6
7405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408 lt_save_MAGIC_CMD="$MAGIC_CMD"
7409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411 for ac_dir in $ac_dummy; do
7413 test -z "$ac_dir" && ac_dir=.
7414 if test -f $ac_dir/file; then
7415 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7416 if test -n "$file_magic_test_file"; then
7417 case $deplibs_check_method in
7419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422 $EGREP "$file_magic_regex" > /dev/null; then
7427 *** Warning: the command libtool uses to detect shared libraries,
7428 *** $file_magic_cmd, produces output that libtool cannot recognize.
7429 *** The result is that libtool may fail to recognize shared libraries
7430 *** as such. This will affect the creation of libtool libraries that
7431 *** depend on shared libraries, but programs linked with such libtool
7432 *** libraries will work regardless of this problem. Nevertheless, you
7433 *** may want to report the problem to your system manager and/or to
7434 *** bug-libtool@gnu.org
7444 MAGIC_CMD="$lt_save_MAGIC_CMD"
7449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450 if test -n "$MAGIC_CMD"; then
7451 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7452 $as_echo "$MAGIC_CMD" >&6; }
7454 { $as_echo "$as_me:$LINENO: result: no" >&5
7455 $as_echo "no" >&6; }
7469 rhapsody* | darwin*)
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7478 if test -n "$DSYMUTIL"; then
7479 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7499 if test -n "$DSYMUTIL"; then
7500 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7501 $as_echo "$DSYMUTIL" >&6; }
7503 { $as_echo "$as_me:$LINENO: result: no" >&5
7504 $as_echo "no" >&6; }
7509 if test -z "$ac_cv_prog_DSYMUTIL"; then
7510 ac_ct_DSYMUTIL=$DSYMUTIL
7511 # Extract the first word of "dsymutil", so it can be a program name with args.
7512 set dummy dsymutil; ac_word=$2
7513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$ac_ct_DSYMUTIL"; then
7519 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7539 if test -n "$ac_ct_DSYMUTIL"; then
7540 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7541 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7543 { $as_echo "$as_me:$LINENO: result: no" >&5
7544 $as_echo "no" >&6; }
7547 if test "x$ac_ct_DSYMUTIL" = x; then
7550 case $cross_compiling:$ac_tool_warned in
7552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7556 DSYMUTIL=$ac_ct_DSYMUTIL
7559 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$NMEDIT"; then
7571 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 NMEDIT=$ac_cv_prog_NMEDIT
7591 if test -n "$NMEDIT"; then
7592 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7593 $as_echo "$NMEDIT" >&6; }
7595 { $as_echo "$as_me:$LINENO: result: no" >&5
7596 $as_echo "no" >&6; }
7601 if test -z "$ac_cv_prog_NMEDIT"; then
7602 ac_ct_NMEDIT=$NMEDIT
7603 # Extract the first word of "nmedit", so it can be a program name with args.
7604 set dummy nmedit; ac_word=$2
7605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$ac_ct_NMEDIT"; then
7611 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7631 if test -n "$ac_ct_NMEDIT"; then
7632 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7633 $as_echo "$ac_ct_NMEDIT" >&6; }
7635 { $as_echo "$as_me:$LINENO: result: no" >&5
7636 $as_echo "no" >&6; }
7639 if test "x$ac_ct_NMEDIT" = x; then
7642 case $cross_compiling:$ac_tool_warned in
7644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7648 NMEDIT=$ac_ct_NMEDIT
7651 NMEDIT="$ac_cv_prog_NMEDIT"
7655 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7656 $as_echo_n "checking for -single_module linker flag... " >&6; }
7657 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7658 $as_echo_n "(cached) " >&6
7660 lt_cv_apple_cc_single_mod=no
7661 if test -z "${LT_MULTI_MODULE}"; then
7662 # By default we will add the -single_module flag. You can override
7663 # by either setting the environment variable LT_MULTI_MODULE
7664 # non-empty at configure time, or by adding -multi_module to the
7666 echo "int foo(void){return 1;}" > conftest.c
7667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7668 -dynamiclib ${wl}-single_module conftest.c
7669 if test -f libconftest.dylib; then
7670 lt_cv_apple_cc_single_mod=yes
7671 rm -rf libconftest.dylib*
7676 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7677 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7678 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7679 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7680 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7683 lt_cv_ld_exported_symbols_list=no
7684 save_LDFLAGS=$LDFLAGS
7685 echo "_main" > conftest.sym
7686 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7687 cat >conftest.$ac_ext <<_ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (ac_try="$ac_link"
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7709 $as_echo "$ac_try_echo") >&5
7710 (eval "$ac_link") 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest$ac_exeext && {
7720 test "$cross_compiling" = yes ||
7721 $as_test_x conftest$ac_exeext
7723 lt_cv_ld_exported_symbols_list=yes
7725 $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 lt_cv_ld_exported_symbols_list=no
7731 rm -rf conftest.dSYM
7732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7733 conftest$ac_exeext conftest.$ac_ext
7734 LDFLAGS="$save_LDFLAGS"
7737 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7738 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7740 rhapsody* | darwin1.[0123])
7741 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7743 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7745 # if running on 10.5 or later, the deployment target defaults
7746 # to the OS version, if on x86, and 10.4, the deployment
7747 # target defaults to 10.4. Don't you love it?
7748 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7749 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7750 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7752 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7754 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7758 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7759 _lt_dar_single_mod='$single_module'
7761 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7762 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7764 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7766 if test "$DSYMUTIL" != ":"; then
7767 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7778 # Check whether --enable-libtool-lock was given.
7779 if test "${enable_libtool_lock+set}" = set; then
7780 enableval=$enable_libtool_lock;
7783 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7786 # Check whether --with-pic was given.
7787 if test "${with_pic+set}" = set; then
7788 withval=$with_pic; pic_mode="$withval"
7793 test -z "$pic_mode" && pic_mode=default
7795 # Use C for the default configuration in the libtool script
7799 ac_cpp='$CPP $CPPFLAGS'
7800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805 # Source file extension for C test sources.
7808 # Object file extension for compiled C test sources.
7812 # Code to be used in simple compile tests
7813 lt_simple_compile_test_code="int some_variable = 0;"
7815 # Code to be used in simple link tests
7816 lt_simple_link_test_code='int main(){return(0);}'
7819 # If no C compiler was specified, use CC.
7822 # If no C compiler flags were specified, use CFLAGS.
7823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7825 # Allow CC to be a program name with arguments.
7829 # save warnings/boilerplate of simple test code
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7833 _lt_compiler_boilerplate=`cat conftest.err`
7836 ac_outfile=conftest.$ac_objext
7837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7839 _lt_linker_boilerplate=`cat conftest.err`
7844 lt_prog_compiler_no_builtin_flag=
7846 if test "$GCC" = yes; then
7847 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7850 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7851 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7852 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7853 $as_echo_n "(cached) " >&6
7855 lt_cv_prog_compiler_rtti_exceptions=no
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858 lt_compiler_flag="-fno-rtti -fno-exceptions"
7859 # Insert the option either (1) after the last *FLAGS variable, or
7860 # (2) before a word containing "conftest.", or (3) at the end.
7861 # Note that $ac_compile itself does not contain backslashes and begins
7862 # with a dollar sign (not a hyphen), so the echo should work correctly.
7863 # The option is referenced via a variable to avoid confusing sed.
7864 lt_compile=`echo "$ac_compile" | $SED \
7865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867 -e 's:$: $lt_compiler_flag:'`
7868 (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869 (eval "$lt_compile" 2>conftest.err)
7871 cat conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 if (exit $ac_status) && test -s "$ac_outfile"; then
7874 # The compiler can only warn and ignore the option if not recognized
7875 # So say no if there are warnings other than the usual output.
7876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7879 lt_cv_prog_compiler_rtti_exceptions=yes
7885 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7886 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7888 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7889 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7896 lt_prog_compiler_wl=
7897 lt_prog_compiler_pic=
7898 lt_prog_compiler_static=
7900 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7901 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7903 if test "$GCC" = yes; then
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_static='-static'
7909 # All AIX code is PIC.
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 now supports IA64 processor
7912 lt_prog_compiler_static='-Bstatic'
7917 # FIXME: we need at least 68020 code to build shared libraries, but
7918 # adding the `-m68020' flag to GCC prevents building anything better,
7920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7924 # PIC is the default for these OSes.
7927 mingw* | cygwin* | pw32* | os2*)
7928 # This hack is so that the source file can tell whether it is being
7929 # built for inclusion in a dll (and should export symbols for example).
7930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7931 # (--disable-auto-import) libraries
7932 lt_prog_compiler_pic='-DDLL_EXPORT'
7935 darwin* | rhapsody*)
7936 # PIC is the default on this platform
7937 # Common symbols not allowed in MH_DYLIB files
7938 lt_prog_compiler_pic='-fno-common'
7942 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7943 # Instead, we relocate shared libraries at runtime.
7947 # Just because we use GCC doesn't mean we suddenly get shared libraries
7948 # on systems that don't support them.
7949 lt_prog_compiler_can_build_shared=no
7954 if test -d /usr/nec; then
7955 lt_prog_compiler_pic=-Kconform_pic
7960 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7967 lt_prog_compiler_pic='-fPIC'
7973 lt_prog_compiler_pic='-fPIC'
7977 # PORTME Check for flag to pass linker flags through the system compiler.
7980 lt_prog_compiler_wl='-Wl,'
7981 if test "$host_cpu" = ia64; then
7982 # AIX 5 now supports IA64 processor
7983 lt_prog_compiler_static='-Bstatic'
7985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7989 # PIC is the default on this platform
7990 # Common symbols not allowed in MH_DYLIB files
7991 case $cc_basename in
7993 lt_prog_compiler_pic='-qnocommon'
7994 lt_prog_compiler_wl='-Wl,'
7999 mingw* | cygwin* | pw32* | os2*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 hpux9* | hpux10* | hpux11*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8014 lt_prog_compiler_pic='+Z'
8017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 irix5* | irix6* | nonstopux*)
8022 lt_prog_compiler_wl='-Wl,'
8023 # PIC (with -KPIC) is the default.
8024 lt_prog_compiler_static='-non_shared'
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-Bstatic'
8032 linux* | k*bsd*-gnu)
8033 case $cc_basename in
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-static'
8039 pgcc* | pgf77* | pgf90* | pgf95*)
8040 # Portland Group compilers (*not* the Pentium gcc compiler,
8041 # which looks to be a dead project)
8042 lt_prog_compiler_wl='-Wl,'
8043 lt_prog_compiler_pic='-fpic'
8044 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_wl='-Wl,'
8048 # All Alpha code is PIC.
8049 lt_prog_compiler_static='-non_shared'
8052 case `$CC -V 2>&1 | sed 5q` in
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 lt_prog_compiler_wl='-Wl,'
8060 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8061 lt_prog_compiler_pic='-KPIC'
8062 lt_prog_compiler_static='-Bstatic'
8063 lt_prog_compiler_wl=''
8070 osf3* | osf4* | osf5*)
8071 lt_prog_compiler_wl='-Wl,'
8072 # All OSF/1 code is PIC.
8073 lt_prog_compiler_static='-non_shared'
8077 lt_prog_compiler_static='-non_shared'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 case $cc_basename in
8085 lt_prog_compiler_wl='-Qoption ld ';;
8087 lt_prog_compiler_wl='-Wl,';;
8092 lt_prog_compiler_wl='-Qoption ld '
8093 lt_prog_compiler_pic='-PIC'
8094 lt_prog_compiler_static='-Bstatic'
8097 sysv4 | sysv4.2uw2* | sysv4.3*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-Bstatic'
8104 if test -d /usr/nec ;then
8105 lt_prog_compiler_pic='-Kconform_pic'
8106 lt_prog_compiler_static='-Bstatic'
8110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_can_build_shared=no
8122 lt_prog_compiler_pic='-pic'
8123 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_can_build_shared=no
8132 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8133 $as_echo "$lt_prog_compiler_pic" >&6; }
8136 # Check to make sure the PIC flag actually works.
8138 if test -n "$lt_prog_compiler_pic"; then
8140 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8141 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8142 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8143 $as_echo_n "(cached) " >&6
8145 lt_cv_prog_compiler_pic_works=no
8146 ac_outfile=conftest.$ac_objext
8147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8149 # Insert the option either (1) after the last *FLAGS variable, or
8150 # (2) before a word containing "conftest.", or (3) at the end.
8151 # Note that $ac_compile itself does not contain backslashes and begins
8152 # with a dollar sign (not a hyphen), so the echo should work correctly.
8153 # The option is referenced via a variable to avoid confusing sed.
8154 lt_compile=`echo "$ac_compile" | $SED \
8155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157 -e 's:$: $lt_compiler_flag:'`
8158 (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
8159 (eval "$lt_compile" 2>conftest.err)
8161 cat conftest.err >&5
8162 echo "$as_me:8162: \$? = $ac_status" >&5
8163 if (exit $ac_status) && test -s "$ac_outfile"; then
8164 # The compiler can only warn and ignore the option if not recognized
8165 # So say no if there are warnings other than the usual output.
8166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8169 lt_cv_prog_compiler_pic_works=yes
8175 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8176 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8178 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8179 case $lt_prog_compiler_pic in
8181 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8184 lt_prog_compiler_pic=
8185 lt_prog_compiler_can_build_shared=no
8190 # For platforms which do not support PIC, -DPIC is meaningless:
8192 lt_prog_compiler_pic=
8195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8200 # Check to make sure the static flag actually works.
8202 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8203 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8204 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8205 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8206 $as_echo_n "(cached) " >&6
8208 lt_cv_prog_compiler_static_works=no
8209 save_LDFLAGS="$LDFLAGS"
8210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8211 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8213 # The linker can only warn and ignore the option if not recognized
8214 # So say no if there are warnings
8215 if test -s conftest.err; then
8216 # Append any errors to the config.log.
8217 cat conftest.err 1>&5
8218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8220 if diff conftest.exp conftest.er2 >/dev/null; then
8221 lt_cv_prog_compiler_static_works=yes
8224 lt_cv_prog_compiler_static_works=yes
8228 LDFLAGS="$save_LDFLAGS"
8231 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8232 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8234 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8237 lt_prog_compiler_static=
8241 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8242 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8243 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8244 $as_echo_n "(cached) " >&6
8246 lt_cv_prog_compiler_c_o=no
8247 $rm -r conftest 2>/dev/null
8251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8253 lt_compiler_flag="-o out/conftest2.$ac_objext"
8254 # Insert the option either (1) after the last *FLAGS variable, or
8255 # (2) before a word containing "conftest.", or (3) at the end.
8256 # Note that $ac_compile itself does not contain backslashes and begins
8257 # with a dollar sign (not a hyphen), so the echo should work correctly.
8258 lt_compile=`echo "$ac_compile" | $SED \
8259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8261 -e 's:$: $lt_compiler_flag:'`
8262 (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
8263 (eval "$lt_compile" 2>out/conftest.err)
8265 cat out/conftest.err >&5
8266 echo "$as_me:8266: \$? = $ac_status" >&5
8267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8269 # The compiler can only warn and ignore the option if not recognized
8270 # So say no if there are warnings
8271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8274 lt_cv_prog_compiler_c_o=yes
8279 # SGI C++ compiler will create directory out/ii_files/ for
8280 # template instantiation
8281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8282 $rm out/* && rmdir out
8288 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8289 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8292 hard_links="nottested"
8293 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8294 # do not overwrite the value of need_locks provided by the user
8295 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8296 $as_echo_n "checking if we can lock with hard links... " >&6; }
8299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8301 ln conftest.a conftest.b 2>&5 || hard_links=no
8302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8303 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8304 $as_echo "$hard_links" >&6; }
8305 if test "$hard_links" = no; then
8306 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8307 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8314 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8318 allow_undefined_flag=
8319 enable_shared_with_static_runtimes=no
8321 archive_expsym_cmds=
8322 old_archive_From_new_cmds=
8323 old_archive_from_expsyms_cmds=
8324 export_dynamic_flag_spec=
8325 whole_archive_flag_spec=
8326 thread_safe_flag_spec=
8327 hardcode_libdir_flag_spec=
8328 hardcode_libdir_flag_spec_ld=
8329 hardcode_libdir_separator=
8332 hardcode_shlibpath_var=unsupported
8333 link_all_deplibs=unknown
8334 hardcode_automatic=no
8337 always_export_symbols=no
8338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8339 # include_expsyms should be a list of space-separated symbols to be *always*
8340 # included in the symbol list
8342 # exclude_expsyms can be an extended regexp of symbols to exclude
8343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8345 # as well as any symbol that contains `d'.
8346 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8348 # platforms (ab)use it in PIC code, but their linkers get confused if
8349 # the symbol is explicitly referenced. Since portable code cannot
8350 # rely on this symbol name, it's probably fine to never include it in
8351 # preloaded symbol tables.
8352 # Exclude shared library initialization/finalization symbols.
8353 extract_expsyms_cmds=
8354 # Just being paranoid about ensuring that cc_basename is set.
8355 for cc_temp in $compiler""; do
8357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8366 cygwin* | mingw* | pw32*)
8367 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8368 # When not using gcc, we currently assume that we are using
8369 # Microsoft Visual C++.
8370 if test "$GCC" != yes; then
8375 # we just hope/assume this is gcc and not c89 (= MSVC++)
8384 if test "$with_gnu_ld" = yes; then
8385 # If archive_cmds runs LD, not CC, wlarc should be empty
8388 # Set some defaults for GNU ld with shared library support. These
8389 # are reset later if shared libraries are not supported. Putting them
8390 # here allows them to be overridden if necessary.
8391 runpath_var=LD_RUN_PATH
8392 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8393 export_dynamic_flag_spec='${wl}--export-dynamic'
8394 # ancient GNU ld didn't support --whole-archive et. al.
8395 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8396 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8398 whole_archive_flag_spec=
8400 supports_anon_versioning=no
8401 case `$LD -v 2>/dev/null` in
8402 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8403 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8404 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8405 *\ 2.11.*) ;; # other 2.11 versions
8406 *) supports_anon_versioning=yes ;;
8409 # See if GNU ld supports shared libraries.
8412 # On AIX/PPC, the GNU linker is very broken
8413 if test "$host_cpu" != ia64; then
8417 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8418 *** to be unable to reliably create shared libraries on AIX.
8419 *** Therefore, libtool is disabling shared libraries support. If you
8420 *** really care for shared libraries, you may want to modify your PATH
8421 *** so that a non-GNU linker is found, and then restart.
8428 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)'
8429 hardcode_libdir_flag_spec='-L$libdir'
8430 hardcode_minus_L=yes
8432 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8433 # that the semantics of dynamic libraries on AmigaOS, at least up
8434 # to version 4, is to share data among multiple programs linked
8435 # with the same dynamic library. Since this doesn't match the
8436 # behavior of shared libraries on other platforms, we can't use
8442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8443 allow_undefined_flag=unsupported
8444 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8445 # support --undefined. This deserves some investigation. FIXME
8446 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 cygwin* | mingw* | pw32*)
8453 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8454 # as there is no search path for DLLs.
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 allow_undefined_flag=unsupported
8457 always_export_symbols=no
8458 enable_shared_with_static_runtimes=yes
8459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8461 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8463 # If the export-symbols file already is a .def file (1st line
8464 # is EXPORTS), use it as is; otherwise, prepend...
8465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8466 cp $export_symbols $output_objdir/$soname.def;
8468 echo EXPORTS > $output_objdir/$soname.def;
8469 cat $export_symbols >> $output_objdir/$soname.def;
8471 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8479 hardcode_shlibpath_var=no
8480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8481 export_dynamic_flag_spec='${wl}-E'
8482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8483 # Instead, shared libraries are loaded at an image base (0x10000000 by
8484 # default) and relocated if they conflict, which is a slow very memory
8485 # consuming and fragmenting process. To avoid this, we pick a random,
8486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8489 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'
8492 gnu* | linux* | k*bsd*-gnu)
8493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8495 case $cc_basename,$host_cpu in
8496 pgcc*) # Portland Group C compiler
8497 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'
8498 tmp_addflag=' $pic_flag'
8500 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8501 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'
8502 tmp_addflag=' $pic_flag -Mnomain' ;;
8503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8504 tmp_addflag=' -i_dynamic' ;;
8505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8506 tmp_addflag=' -i_dynamic -nofor_main' ;;
8507 ifc* | ifort*) # Intel Fortran compiler
8508 tmp_addflag=' -nofor_main' ;;
8510 case `$CC -V 2>&1 | sed 5q` in
8511 *Sun\ C*) # Sun C 5.9
8512 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'
8513 tmp_sharedflag='-G' ;;
8514 *Sun\ F*) # Sun Fortran 8.3
8515 tmp_sharedflag='-G' ;;
8517 tmp_sharedflag='-shared' ;;
8519 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8521 if test $supports_anon_versioning = yes; then
8522 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8524 $echo "local: *; };" >> $output_objdir/$libname.ver~
8525 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8534 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8547 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8548 *** create shared libraries on Solaris systems. Therefore, libtool
8549 *** is disabling shared libraries support. We urge you to upgrade GNU
8550 *** binutils to release 2.9.1 or newer. Another option is to modify
8551 *** your PATH or compiler configuration so that the native linker is
8552 *** used, and then restart.
8555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8564 case `$LD -v 2>&1` in
8565 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8569 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8570 *** reliably create shared libraries on SCO systems. Therefore, libtool
8571 *** is disabling shared libraries support. We urge you to upgrade GNU
8572 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8573 *** your PATH or compiler configuration so that the native linker is
8574 *** used, and then restart.
8579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8580 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8591 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8594 hardcode_shlibpath_var=no
8598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8607 if test "$ld_shlibs" = no; then
8609 hardcode_libdir_flag_spec=
8610 export_dynamic_flag_spec=
8611 whole_archive_flag_spec=
8614 # PORTME fill in a description of your system's linker (not GNU ld)
8617 allow_undefined_flag=unsupported
8618 always_export_symbols=yes
8619 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'
8620 # Note: this linker hardcodes the directories in LIBPATH if there
8621 # are no directories specified by -L.
8622 hardcode_minus_L=yes
8623 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8624 # Neither direct hardcoding nor static linking is supported with a
8626 hardcode_direct=unsupported
8631 if test "$host_cpu" = ia64; then
8632 # On IA64, the linker does run time linking by default, so we don't
8633 # have to do anything special.
8634 aix_use_runtimelinking=no
8635 exp_sym_flag='-Bexport'
8638 # If we're using GNU nm, then we don't want the "-C" option.
8639 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8640 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8641 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'
8643 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'
8645 aix_use_runtimelinking=no
8647 # Test if we are trying to use run time linking or normal
8648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8649 # need to do runtime linking.
8650 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8651 for ld_flag in $LDFLAGS; do
8652 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8653 aix_use_runtimelinking=yes
8660 exp_sym_flag='-bexport'
8661 no_entry_flag='-bnoentry'
8664 # When large executables or shared objects are built, AIX ld can
8665 # have problems creating the table of contents. If linking a library
8666 # or program results in "error TOC overflow" add -mminimal-toc to
8667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8672 hardcode_libdir_separator=':'
8673 link_all_deplibs=yes
8675 if test "$GCC" = yes; then
8676 case $host_os in aix4.[012]|aix4.[012].*)
8677 # We only want to do this on AIX 4.2 and lower, the check
8678 # below for broken collect2 doesn't work under 4.3+
8679 collect2name=`${CC} -print-prog-name=collect2`
8680 if test -f "$collect2name" && \
8681 strings "$collect2name" | grep resolve_lib_name >/dev/null
8683 # We have reworked collect2
8686 # We have old collect2
8687 hardcode_direct=unsupported
8688 # It fails to find uninstalled libraries when the uninstalled
8689 # path is not listed in the libpath. Setting hardcode_minus_L
8690 # to unsupported forces relinking
8691 hardcode_minus_L=yes
8692 hardcode_libdir_flag_spec='-L$libdir'
8693 hardcode_libdir_separator=
8697 shared_flag='-shared'
8698 if test "$aix_use_runtimelinking" = yes; then
8699 shared_flag="$shared_flag "'${wl}-G'
8703 if test "$host_cpu" = ia64; then
8704 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8705 # chokes on -Wl,-G. The following line is correct:
8708 if test "$aix_use_runtimelinking" = yes; then
8709 shared_flag='${wl}-G'
8711 shared_flag='${wl}-bM:SRE'
8716 # It seems that -bexpall does not export symbols beginning with
8717 # underscore (_), so it is better to generate a list of symbols to export.
8718 always_export_symbols=yes
8719 if test "$aix_use_runtimelinking" = yes; then
8720 # Warning - without using the other runtime loading flags (-brtl),
8721 # -berok will link without error, but may produce a broken library.
8722 allow_undefined_flag='-berok'
8723 # Determine the default libpath from the value encoded in an empty executable.
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747 (eval "$ac_link") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && {
8754 test -z "$ac_c_werror_flag" ||
8755 test ! -s conftest.err
8756 } && test -s conftest$ac_exeext && {
8757 test "$cross_compiling" = yes ||
8758 $as_test_x conftest$ac_exeext
8761 lt_aix_libpath_sed='
8762 /Import File Strings/,/^$/ {
8768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8769 # Check for a 64-bit object if we didn't find anything.
8770 if test -z "$aix_libpath"; then
8771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -rf conftest.dSYM
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8786 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"
8788 if test "$host_cpu" = ia64; then
8789 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8790 allow_undefined_flag="-z nodefs"
8791 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"
8793 # Determine the default libpath from the value encoded in an empty executable.
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (ac_try="$ac_link"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_link") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext && {
8827 test "$cross_compiling" = yes ||
8828 $as_test_x conftest$ac_exeext
8831 lt_aix_libpath_sed='
8832 /Import File Strings/,/^$/ {
8838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839 # Check for a 64-bit object if we didn't find anything.
8840 if test -z "$aix_libpath"; then
8841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8850 rm -rf conftest.dSYM
8851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8852 conftest$ac_exeext conftest.$ac_ext
8853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8855 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856 # Warning - without using the other run time loading flags,
8857 # -berok will link without error, but may produce a broken library.
8858 no_undefined_flag=' ${wl}-bernotok'
8859 allow_undefined_flag=' ${wl}-berok'
8860 # Exported symbols can be pulled into shared objects from archives
8861 whole_archive_flag_spec='$convenience'
8862 archive_cmds_need_lc=yes
8863 # This is similar to how AIX traditionally builds its shared libraries.
8864 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'
8870 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)'
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_minus_L=yes
8873 # see comment about different semantics on the GNU ld section
8878 export_dynamic_flag_spec=-rdynamic
8881 cygwin* | mingw* | pw32*)
8882 # When not using gcc, we currently assume that we are using
8883 # Microsoft Visual C++.
8884 # hardcode_libdir_flag_spec is actually meaningless, as there is
8885 # no search path for DLLs.
8886 hardcode_libdir_flag_spec=' '
8887 allow_undefined_flag=unsupported
8888 # Tell ltmain to make .lib files, not .a files.
8890 # Tell ltmain to make .dll files, not .so files.
8892 # FIXME: Setting linknames here is a bad hack.
8893 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8894 # The linker will automatically build a .lib file if we build a DLL.
8895 old_archive_From_new_cmds='true'
8896 # FIXME: Should let the user specify the lib program.
8897 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8898 fix_srcfile_path='`cygpath -w "$srcfile"`'
8899 enable_shared_with_static_runtimes=yes
8902 darwin* | rhapsody*)
8904 rhapsody* | darwin1.[012])
8905 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8908 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8909 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8911 case ${MACOSX_DEPLOYMENT_TARGET} in
8913 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8916 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8922 archive_cmds_need_lc=no
8924 hardcode_automatic=yes
8925 hardcode_shlibpath_var=unsupported
8926 whole_archive_flag_spec=''
8927 link_all_deplibs=yes
8928 if test "$GCC" = yes ; then
8929 output_verbose_link_cmd='echo'
8930 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8931 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8932 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}"
8933 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}"
8935 case $cc_basename in
8937 output_verbose_link_cmd='echo'
8938 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8939 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8940 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8941 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}'
8942 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}'
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_shlibpath_var=no
8961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8962 # support. Future versions do this automatically, but an explicit c++rt0.o
8963 # does not break anything, and helps significantly (at the cost of a little
8966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8967 hardcode_libdir_flag_spec='-R$libdir'
8969 hardcode_shlibpath_var=no
8972 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8976 hardcode_minus_L=yes
8977 hardcode_shlibpath_var=no
8980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8981 freebsd* | dragonfly*)
8982 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8983 hardcode_libdir_flag_spec='-R$libdir'
8985 hardcode_shlibpath_var=no
8989 if test "$GCC" = yes; then
8990 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'
8992 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'
8994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8995 hardcode_libdir_separator=:
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L=yes
9001 export_dynamic_flag_spec='${wl}-E'
9005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9006 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9010 if test "$with_gnu_ld" = no; then
9011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9012 hardcode_libdir_separator=:
9015 export_dynamic_flag_spec='${wl}-E'
9017 # hardcode_minus_L: Not really in the search PATH,
9018 # but as the default location of the library.
9019 hardcode_minus_L=yes
9024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9027 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9039 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9049 if test "$with_gnu_ld" = no; then
9050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9051 hardcode_libdir_separator=:
9055 hardcode_libdir_flag_spec_ld='+b $libdir'
9057 hardcode_shlibpath_var=no
9061 export_dynamic_flag_spec='${wl}-E'
9063 # hardcode_minus_L: Not really in the search PATH,
9064 # but as the default location of the library.
9065 hardcode_minus_L=yes
9071 irix5* | irix6* | nonstopux*)
9072 if test "$GCC" = yes; then
9073 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'
9075 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'
9076 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9079 hardcode_libdir_separator=:
9080 link_all_deplibs=yes
9084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9089 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_shlibpath_var=no
9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9098 hardcode_libdir_separator=:
9099 hardcode_shlibpath_var=no
9103 if test -f /usr/libexec/ld.so; then
9105 hardcode_shlibpath_var=no
9106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110 export_dynamic_flag_spec='${wl}-E'
9113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9115 hardcode_libdir_flag_spec='-R$libdir'
9118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_minus_L=yes
9131 allow_undefined_flag=unsupported
9132 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'
9133 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9137 if test "$GCC" = yes; then
9138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9139 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'
9141 allow_undefined_flag=' -expect_unresolved \*'
9142 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'
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 hardcode_libdir_separator=:
9148 osf4* | osf5*) # as osf3* with the addition of -msym flag
9149 if test "$GCC" = yes; then
9150 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9151 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'
9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9154 allow_undefined_flag=' -expect_unresolved \*'
9155 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'
9156 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9157 $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'
9159 # Both c and cxx compiler support -rpath directly
9160 hardcode_libdir_flag_spec='-rpath $libdir'
9162 hardcode_libdir_separator=:
9166 no_undefined_flag=' -z text'
9167 if test "$GCC" = yes; then
9169 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9170 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9171 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9174 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9176 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9178 hardcode_libdir_flag_spec='-R$libdir'
9179 hardcode_shlibpath_var=no
9181 solaris2.[0-5] | solaris2.[0-5].*) ;;
9183 # The compiler driver will combine and reorder linker options,
9184 # but understands `-z linker_flag'. GCC discards it without `$wl',
9185 # but is careful enough not to reorder.
9186 # Supported since Solaris 2.6 (maybe 2.5.1?)
9187 if test "$GCC" = yes; then
9188 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9190 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9194 link_all_deplibs=yes
9198 if test "x$host_vendor" = xsequent; then
9199 # Use $CC to link under sequent, because it throws in some extra .o
9200 # files that make .init and .fini sections work.
9201 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9208 hardcode_shlibpath_var=no
9212 case $host_vendor in
9214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_direct=yes # is this really true???
9218 ## LD is ld it makes a PLAMLIB
9219 ## CC just makes a GrossModule.
9220 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9221 reload_cmds='$CC -r -o $output$reload_objs'
9225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9229 runpath_var='LD_RUN_PATH'
9230 hardcode_shlibpath_var=no
9234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235 hardcode_shlibpath_var=no
9236 export_dynamic_flag_spec='-Bexport'
9240 if test -d /usr/nec; then
9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_shlibpath_var=no
9243 runpath_var=LD_RUN_PATH
9244 hardcode_runpath_var=yes
9249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9250 no_undefined_flag='${wl}-z,text'
9251 archive_cmds_need_lc=no
9252 hardcode_shlibpath_var=no
9253 runpath_var='LD_RUN_PATH'
9255 if test "$GCC" = yes; then
9256 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 sysv5* | sco3.2v5* | sco5v6*)
9265 # Note: We can NOT use -z defs as we might desire, because we do not
9266 # link with -lc, and that would cause any symbols used from libc to
9267 # always be unresolved, which means just about no library would
9268 # ever link correctly. If we're not using GNU ld we use -z text
9269 # though, which does catch some bad symbols but isn't as heavy-handed
9271 no_undefined_flag='${wl}-z,text'
9272 allow_undefined_flag='${wl}-z,nodefs'
9273 archive_cmds_need_lc=no
9274 hardcode_shlibpath_var=no
9275 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9276 hardcode_libdir_separator=':'
9277 link_all_deplibs=yes
9278 export_dynamic_flag_spec='${wl}-Bexport'
9279 runpath_var='LD_RUN_PATH'
9281 if test "$GCC" = yes; then
9282 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_shlibpath_var=no
9302 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9303 $as_echo "$ld_shlibs" >&6; }
9304 test "$ld_shlibs" = no && can_build_shared=no
9307 # Do we need to explicitly link libc?
9309 case "x$archive_cmds_need_lc" in
9311 # Assume -lc should be added
9312 archive_cmds_need_lc=yes
9314 if test "$enable_shared" = yes && test "$GCC" = yes; then
9315 case $archive_cmds in
9317 # FIXME: we may have to deal with multi-command sequences.
9320 # Test whether the compiler implicitly links with -lc since on some
9321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9322 # to ld, don't add -lc before -lgcc.
9323 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>&5
9331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } 2>conftest.err; then
9335 libobjs=conftest.$ac_objext
9337 wl=$lt_prog_compiler_wl
9338 pic_flag=$lt_prog_compiler_pic
9344 lt_save_allow_undefined_flag=$allow_undefined_flag
9345 allow_undefined_flag=
9346 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9347 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }
9352 archive_cmds_need_lc=no
9354 archive_cmds_need_lc=yes
9356 allow_undefined_flag=$lt_save_allow_undefined_flag
9358 cat conftest.err 1>&5
9361 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9362 $as_echo "$archive_cmds_need_lc" >&6; }
9369 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9372 libname_spec='lib$name'
9380 shlibpath_overrides_runpath=unknown
9382 dynamic_linker="$host_os ld.so"
9383 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9385 if test "$GCC" = yes; then
9387 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9388 *) lt_awk_arg="/^libraries:/" ;;
9390 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9391 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9392 # if the path contains ";" then we assume it to be the separator
9393 # otherwise default to the standard path separator (i.e. ":") - it is
9394 # assumed that no part of a normal pathname contains ";" but that should
9395 # okay in the real world where ";" in dirpaths is itself problematic.
9396 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9398 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9400 # Ok, now we have the path, separated by spaces, we can step through it
9401 # and add multilib dir if necessary.
9402 lt_tmp_lt_search_path_spec=
9403 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9404 for lt_sys_path in $lt_search_path_spec; do
9405 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9408 test -d "$lt_sys_path" && \
9409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9412 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9413 BEGIN {RS=" "; FS="/|\n";} {
9416 for (lt_i = NF; lt_i > 0; lt_i--) {
9417 if ($lt_i != "" && $lt_i != ".") {
9418 if ($lt_i == "..") {
9421 if (lt_count == 0) {
9422 lt_foo="/" $lt_i lt_foo;
9429 if (lt_foo != "") { lt_freq[lt_foo]++; }
9430 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9432 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9436 need_lib_prefix=unknown
9437 hardcode_into_libs=no
9439 # when you set need_version to no, make sure it does not cause -set_version
9440 # flags to be left without arguments
9441 need_version=unknown
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9447 shlibpath_var=LIBPATH
9449 # AIX 3 has no versioning support, so we append a major version to the name.
9450 soname_spec='${libname}${release}${shared_ext}$major'
9457 hardcode_into_libs=yes
9458 if test "$host_cpu" = ia64; then
9459 # AIX 5 supports IA64
9460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9461 shlibpath_var=LD_LIBRARY_PATH
9463 # With GCC up to 2.95.x, collect2 would create an import file
9464 # for dependence libraries. The import file would start with
9465 # the line `#! .'. This would cause the generated library to
9466 # depend on `.', always an invalid library. This was fixed in
9467 # development snapshots of GCC prior to 3.0.
9469 aix4 | aix4.[01] | aix4.[01].*)
9470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9480 # soname into executable. Probably we can add versioning support to
9481 # collect2, so additional links can be useful in future.
9482 if test "$aix_use_runtimelinking" = yes; then
9483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9484 # instead of lib<name>.a to let people know that these are not
9485 # typical AIX shared libraries.
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 # We preserve .a as extension for shared libraries through AIX4.2
9489 # and later when we are not doing run time linking.
9490 library_names_spec='${libname}${release}.a $libname.a'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LIBPATH
9498 library_names_spec='$libname.ixlibrary $libname.a'
9499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9500 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9504 library_names_spec='${libname}${shared_ext}'
9505 dynamic_linker="$host_os ld.so"
9506 shlibpath_var=LIBRARY_PATH
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9518 # the default ld.so.conf also contains /usr/contrib/lib and
9519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9520 # libtool to hard-code these into programs
9523 cygwin* | mingw* | pw32*)
9524 version_type=windows
9529 case $GCC,$host_os in
9530 yes,cygwin* | yes,mingw* | yes,pw32*)
9531 library_names_spec='$libname.dll.a'
9532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9533 postinstall_cmds='base_file=`basename \${file}`~
9534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9535 dldir=$destdir/`dirname \$dlpath`~
9536 test -d \$dldir || mkdir -p \$dldir~
9537 $install_prog $dir/$dlname \$dldir/$dlname~
9538 chmod a+x \$dldir/$dlname'
9539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9540 dlpath=$dir/\$dldll~
9542 shlibpath_overrides_runpath=yes
9546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9551 # MinGW DLLs use traditional 'lib' prefix
9552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9555 # It is most probably a Windows format PATH printed by
9556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9557 # path with ; separators, and with drive letters. We can handle the
9558 # drive letters (cygwin fileutils understands them), so leave them,
9559 # especially as we might pass files found there to a mingw objdump,
9560 # which wouldn't understand a cygwinified path. Ahh.
9561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9567 # pw32 DLLs use 'pw' prefix rather than 'lib'
9568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9577 dynamic_linker='Win32 ld.exe'
9578 # FIXME: first we should search . and the directory the executable is in
9582 darwin* | rhapsody*)
9583 dynamic_linker="$host_os dyld"
9587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9588 soname_spec='${libname}${release}${major}$shared_ext'
9589 shlibpath_overrides_runpath=yes
9590 shlibpath_var=DYLD_LIBRARY_PATH
9591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9610 freebsd* | dragonfly*)
9611 # DragonFly does not have aout. When/if they implement a new
9612 # versioning mechanism, adjust this.
9613 if test -x /usr/bin/objformat; then
9614 objformat=`/usr/bin/objformat`
9617 freebsd[123]*) objformat=aout ;;
9621 version_type=freebsd-$objformat
9622 case $version_type in
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9633 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9638 freebsd3.[01]* | freebsdelf3.[01]*)
9639 shlibpath_overrides_runpath=yes
9640 hardcode_into_libs=yes
9642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9644 shlibpath_overrides_runpath=no
9645 hardcode_into_libs=yes
9647 *) # from 4.6 on, and DragonFly
9648 shlibpath_overrides_runpath=yes
9649 hardcode_into_libs=yes
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 hardcode_into_libs=yes
9664 hpux9* | hpux10* | hpux11*)
9665 # Give a soname corresponding to the major version so that dld.sl refuses to
9666 # link against other versions.
9673 hardcode_into_libs=yes
9674 dynamic_linker="$host_os dld.so"
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 if test "X$HPUX_IA64_MODE" = X32; then
9680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9688 hardcode_into_libs=yes
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9699 dynamic_linker="$host_os dld.sl"
9700 shlibpath_var=SHLIB_PATH
9701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9706 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9707 postinstall_cmds='chmod 555 $lib'
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=no
9719 hardcode_into_libs=yes
9722 irix5* | irix6* | nonstopux*)
9724 nonstopux*) version_type=nonstopux ;;
9726 if test "$lt_cv_prog_gnu_ld" = yes; then
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9737 irix5* | nonstopux*)
9741 case $LD in # libtool.m4 will add one of these switches to LD
9742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9743 libsuff= shlibsuff= libmagic=32-bit;;
9744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9745 libsuff=32 shlibsuff=N32 libmagic=N32;;
9746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9747 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9748 *) libsuff= shlibsuff= libmagic=never-match;;
9752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9753 shlibpath_overrides_runpath=no
9754 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9755 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9756 hardcode_into_libs=yes
9759 # No shared lib support for Linux oldld, aout, or coff.
9760 linux*oldld* | linux*aout* | linux*coff*)
9764 # This must be Linux ELF.
9765 linux* | k*bsd*-gnu)
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=no
9774 # This implies no fast_install, which is unacceptable.
9775 # Some rework will be needed to allow for fast_install
9776 # before this can be enabled.
9777 hardcode_into_libs=yes
9778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9781 # Append ld.so.conf contents to the search path
9782 if test -f /etc/ld.so.conf; then
9783 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' ' '`
9784 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9787 # We used to test for /lib/ld.so.1 and disable shared libraries on
9788 # powerpc, because MkLinux only supported shared libraries with the
9789 # GNU dynamic linker. Since this was broken with cross compilers,
9790 # most powerpc-linux boxes support dynamic linking these days and
9791 # people can always --disable-shared, the test was removed, and we
9792 # assume the GNU/Linux dynamic linker is in use.
9793 dynamic_linker='GNU/Linux ld.so'
9800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803 dynamic_linker='NetBSD (a.out) ld.so'
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 dynamic_linker='NetBSD ld.elf_so'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9811 hardcode_into_libs=yes
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=yes
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 shlibpath_overrides_runpath=yes
9833 sys_lib_dlsearch_path_spec="/usr/lib"
9835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9838 *) need_version=no ;;
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9845 openbsd2.[89] | openbsd2.[89].*)
9846 shlibpath_overrides_runpath=no
9849 shlibpath_overrides_runpath=yes
9853 shlibpath_overrides_runpath=yes
9858 libname_spec='$name'
9861 library_names_spec='$libname${shared_ext} $libname.a'
9862 dynamic_linker='OS/2 ld.exe'
9863 shlibpath_var=LIBPATH
9866 osf3* | osf4* | osf5*)
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9890 # ldd complains unless libraries are executable
9891 postinstall_cmds='chmod +x $lib'
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 if test "$with_gnu_ld" = yes; then
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 case $host_vendor in
9913 shlibpath_overrides_runpath=no
9915 export_dynamic_flag_spec='${wl}-Blargedynsym'
9916 runpath_var=LD_RUN_PATH
9924 shlibpath_overrides_runpath=no
9925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9931 if test -d /usr/nec ;then
9933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9934 soname_spec='$libname${shared_ext}.$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9939 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9940 version_type=freebsd-elf
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 hardcode_into_libs=yes
9947 if test "$with_gnu_ld" = yes; then
9948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9949 shlibpath_overrides_runpath=no
9951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9952 shlibpath_overrides_runpath=yes
9955 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9959 sys_lib_dlsearch_path_spec='/usr/lib'
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9973 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9974 $as_echo "$dynamic_linker" >&6; }
9975 test "$dynamic_linker" = no && can_build_shared=no
9977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9978 $as_echo_n "(cached) " >&6
9980 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9983 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9985 $as_echo_n "(cached) " >&6
9987 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9993 if test "$GCC" = yes; then
9994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9997 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9998 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10000 if test -n "$hardcode_libdir_flag_spec" || \
10001 test -n "$runpath_var" || \
10002 test "X$hardcode_automatic" = "Xyes" ; then
10004 # We can hardcode non-existant directories.
10005 if test "$hardcode_direct" != no &&
10006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10007 # have to relink, otherwise we might link with an installed library
10008 # when we should be linking with a yet-to-be-installed one
10009 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10010 test "$hardcode_minus_L" != no; then
10011 # Linking always hardcodes the temporary library directory.
10012 hardcode_action=relink
10014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10015 hardcode_action=immediate
10018 # We cannot hardcode anything, or else we can only hardcode existing
10020 hardcode_action=unsupported
10022 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10023 $as_echo "$hardcode_action" >&6; }
10025 if test "$hardcode_action" = relink; then
10026 # Fast installation is not supported
10027 enable_fast_install=no
10028 elif test "$shlibpath_overrides_runpath" = yes ||
10029 test "$enable_shared" = no; then
10030 # Fast installation is not necessary
10031 enable_fast_install=needless
10036 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10038 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10039 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10040 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10041 { $as_echo "$as_me:$LINENO: result: yes" >&5
10042 $as_echo "yes" >&6; }
10044 # FIXME - insert some real tests, host_os isn't really good enough
10047 if test -n "$STRIP" ; then
10048 striplib="$STRIP -x"
10049 old_striplib="$STRIP -S"
10050 { $as_echo "$as_me:$LINENO: result: yes" >&5
10051 $as_echo "yes" >&6; }
10053 { $as_echo "$as_me:$LINENO: result: no" >&5
10054 $as_echo "no" >&6; }
10058 { $as_echo "$as_me:$LINENO: result: no" >&5
10059 $as_echo "no" >&6; }
10064 if test "x$enable_dlopen" != xyes; then
10065 enable_dlopen=unknown
10066 enable_dlopen_self=unknown
10067 enable_dlopen_self_static=unknown
10074 lt_cv_dlopen="load_add_on"
10076 lt_cv_dlopen_self=yes
10080 lt_cv_dlopen="LoadLibrary"
10085 lt_cv_dlopen="dlopen"
10090 # if libdl is installed we need to link against it
10091 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10092 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10094 $as_echo_n "(cached) " >&6
10096 ac_check_lib_save_LIBS=$LIBS
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext && {
10138 test "$cross_compiling" = yes ||
10139 $as_test_x conftest$ac_exeext
10141 ac_cv_lib_dl_dlopen=yes
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_dl_dlopen=no
10149 rm -rf conftest.dSYM
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10152 LIBS=$ac_check_lib_save_LIBS
10154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10156 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10160 lt_cv_dlopen="dyld"
10162 lt_cv_dlopen_self=yes
10169 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10170 $as_echo_n "checking for shl_load... " >&6; }
10171 if test "${ac_cv_func_shl_load+set}" = set; then
10172 $as_echo_n "(cached) " >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10182 #define shl_load innocuous_shl_load
10184 /* System header to define __stub macros and hopefully few prototypes,
10185 which can conflict with char shl_load (); below.
10186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187 <limits.h> exists even on freestanding compilers. */
10190 # include <limits.h>
10192 # include <assert.h>
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined __stub_shl_load || defined __stub___shl_load
10214 return shl_load ();
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10226 $as_echo "$ac_try_echo") >&5
10227 (eval "$ac_link") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && {
10234 test -z "$ac_c_werror_flag" ||
10235 test ! -s conftest.err
10236 } && test -s conftest$ac_exeext && {
10237 test "$cross_compiling" = yes ||
10238 $as_test_x conftest$ac_exeext
10240 ac_cv_func_shl_load=yes
10242 $as_echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_func_shl_load=no
10248 rm -rf conftest.dSYM
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10252 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10253 $as_echo "$ac_cv_func_shl_load" >&6; }
10254 if test "x$ac_cv_func_shl_load" = x""yes; then
10255 lt_cv_dlopen="shl_load"
10257 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10258 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10259 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10262 ac_check_lib_save_LIBS=$LIBS
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10281 return shl_load ();
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext && {
10304 test "$cross_compiling" = yes ||
10305 $as_test_x conftest$ac_exeext
10307 ac_cv_lib_dld_shl_load=yes
10309 $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_dld_shl_load=no
10315 rm -rf conftest.dSYM
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10321 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10322 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10323 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10325 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10326 $as_echo_n "checking for dlopen... " >&6; }
10327 if test "${ac_cv_func_dlopen+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10338 #define dlopen innocuous_dlopen
10340 /* System header to define __stub macros and hopefully few prototypes,
10341 which can conflict with char dlopen (); below.
10342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10343 <limits.h> exists even on freestanding compilers. */
10346 # include <limits.h>
10348 # include <assert.h>
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10360 /* The GNU C library defines this for functions which it implements
10361 to always fail with ENOSYS. Some functions are actually named
10362 something starting with __ and the normal name is an alias. */
10363 #if defined __stub_dlopen || defined __stub___dlopen
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10382 $as_echo "$ac_try_echo") >&5
10383 (eval "$ac_link") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && {
10390 test -z "$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 } && test -s conftest$ac_exeext && {
10393 test "$cross_compiling" = yes ||
10394 $as_test_x conftest$ac_exeext
10396 ac_cv_func_dlopen=yes
10398 $as_echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_cv_func_dlopen=no
10404 rm -rf conftest.dSYM
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10406 conftest$ac_exeext conftest.$ac_ext
10408 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10409 $as_echo "$ac_cv_func_dlopen" >&6; }
10410 if test "x$ac_cv_func_dlopen" = x""yes; then
10411 lt_cv_dlopen="dlopen"
10413 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10415 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10416 $as_echo_n "(cached) " >&6
10418 ac_check_lib_save_LIBS=$LIBS
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10427 /* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10449 $as_echo "$ac_try_echo") >&5
10450 (eval "$ac_link") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext && {
10460 test "$cross_compiling" = yes ||
10461 $as_test_x conftest$ac_exeext
10463 ac_cv_lib_dl_dlopen=yes
10465 $as_echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_lib_dl_dlopen=no
10471 rm -rf conftest.dSYM
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10478 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10481 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10482 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10483 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10484 $as_echo_n "(cached) " >&6
10486 ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-lsvld $LIBS"
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10517 $as_echo "$ac_try_echo") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest$ac_exeext && {
10528 test "$cross_compiling" = yes ||
10529 $as_test_x conftest$ac_exeext
10531 ac_cv_lib_svld_dlopen=yes
10533 $as_echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_cv_lib_svld_dlopen=no
10539 rm -rf conftest.dSYM
10540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10545 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10546 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10549 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10550 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10552 $as_echo_n "(cached) " >&6
10554 ac_check_lib_save_LIBS=$LIBS
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10573 return dld_link ();
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586 (eval "$ac_link") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest$ac_exeext && {
10596 test "$cross_compiling" = yes ||
10597 $as_test_x conftest$ac_exeext
10599 ac_cv_lib_dld_dld_link=yes
10601 $as_echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_cv_lib_dld_dld_link=no
10607 rm -rf conftest.dSYM
10608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10613 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10614 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10636 if test "x$lt_cv_dlopen" != xno; then
10642 case $lt_cv_dlopen in
10644 save_CPPFLAGS="$CPPFLAGS"
10645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10647 save_LDFLAGS="$LDFLAGS"
10648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10651 LIBS="$lt_cv_dlopen_libs $LIBS"
10653 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10654 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10655 if test "${lt_cv_dlopen_self+set}" = set; then
10656 $as_echo_n "(cached) " >&6
10658 if test "$cross_compiling" = yes; then :
10659 lt_cv_dlopen_self=cross
10661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10662 lt_status=$lt_dlunknown
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10664 "configure"
10665 #include "confdefs.h"
10674 # define LT_DLGLOBAL RTLD_GLOBAL
10677 # define LT_DLGLOBAL DL_GLOBAL
10679 # define LT_DLGLOBAL 0
10683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10684 find out it does not work in some platform. */
10685 #ifndef LT_DLLAZY_OR_NOW
10687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10690 # define LT_DLLAZY_OR_NOW DL_LAZY
10693 # define LT_DLLAZY_OR_NOW RTLD_NOW
10696 # define LT_DLLAZY_OR_NOW DL_NOW
10698 # define LT_DLLAZY_OR_NOW 0
10706 extern "C" void exit (int);
10709 void fnord() { int i=42;}
10712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10713 int status = $lt_dlunknown;
10717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10719 /* dlclose (self); */
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10732 (./conftest; exit; ) >&5 2>/dev/null
10734 case x$lt_status in
10735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10740 # compilation failed
10741 lt_cv_dlopen_self=no
10748 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10749 $as_echo "$lt_cv_dlopen_self" >&6; }
10751 if test "x$lt_cv_dlopen_self" = xyes; then
10752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10753 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10755 if test "${lt_cv_dlopen_self_static+set}" = set; then
10756 $as_echo_n "(cached) " >&6
10758 if test "$cross_compiling" = yes; then :
10759 lt_cv_dlopen_self_static=cross
10761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10762 lt_status=$lt_dlunknown
10763 cat > conftest.$ac_ext <<EOF
10764 #line 10764 "configure"
10765 #include "confdefs.h"
10774 # define LT_DLGLOBAL RTLD_GLOBAL
10777 # define LT_DLGLOBAL DL_GLOBAL
10779 # define LT_DLGLOBAL 0
10783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10784 find out it does not work in some platform. */
10785 #ifndef LT_DLLAZY_OR_NOW
10787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10790 # define LT_DLLAZY_OR_NOW DL_LAZY
10793 # define LT_DLLAZY_OR_NOW RTLD_NOW
10796 # define LT_DLLAZY_OR_NOW DL_NOW
10798 # define LT_DLLAZY_OR_NOW 0
10806 extern "C" void exit (int);
10809 void fnord() { int i=42;}
10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813 int status = $lt_dlunknown;
10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10819 /* dlclose (self); */
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10832 (./conftest; exit; ) >&5 2>/dev/null
10834 case x$lt_status in
10835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10840 # compilation failed
10841 lt_cv_dlopen_self_static=no
10848 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10849 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10852 CPPFLAGS="$save_CPPFLAGS"
10853 LDFLAGS="$save_LDFLAGS"
10858 case $lt_cv_dlopen_self in
10859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10860 *) enable_dlopen_self=unknown ;;
10863 case $lt_cv_dlopen_self_static in
10864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10865 *) enable_dlopen_self_static=unknown ;;
10870 # Report which library types will actually be built
10871 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10872 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10873 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10874 $as_echo "$can_build_shared" >&6; }
10876 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10877 $as_echo_n "checking whether to build shared libraries... " >&6; }
10878 test "$can_build_shared" = "no" && enable_shared=no
10880 # On AIX, shared libraries and static libraries use the same namespace, and
10881 # are all built from PIC.
10884 test "$enable_shared" = yes && enable_static=no
10885 if test -n "$RANLIB"; then
10886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10887 postinstall_cmds='$RANLIB $lib'
10892 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10893 test "$enable_shared" = yes && enable_static=no
10897 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10898 $as_echo "$enable_shared" >&6; }
10900 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10901 $as_echo_n "checking whether to build static libraries... " >&6; }
10902 # Make sure either enable_shared or enable_static is yes.
10903 test "$enable_shared" = yes || enable_static=yes
10904 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10905 $as_echo "$enable_static" >&6; }
10907 # The else clause should only fire when bootstrapping the
10908 # libtool distribution, otherwise you forgot to ship ltmain.sh
10909 # with your package, and you will get complaints that there are
10910 # no rules to generate ltmain.sh.
10911 if test -f "$ltmain"; then
10912 # See if we are running on zsh, and set the options which allow our commands through
10913 # without removal of \ escapes.
10914 if test -n "${ZSH_VERSION+set}" ; then
10915 setopt NO_GLOB_SUBST
10917 # Now quote all the things that may contain metacharacters while being
10918 # careful not to overquote the AC_SUBSTed values. We take copies of the
10919 # variables and quote the copies for generation of the libtool script.
10920 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10922 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10923 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10924 deplibs_check_method reload_flag reload_cmds need_locks \
10925 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10926 lt_cv_sys_global_symbol_to_c_name_address \
10927 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10928 old_postinstall_cmds old_postuninstall_cmds \
10932 lt_prog_compiler_wl \
10933 lt_prog_compiler_pic \
10934 lt_prog_compiler_static \
10935 lt_prog_compiler_no_builtin_flag \
10936 export_dynamic_flag_spec \
10937 thread_safe_flag_spec \
10938 whole_archive_flag_spec \
10939 enable_shared_with_static_runtimes \
10941 old_archive_from_new_cmds \
10946 compiler_lib_search_path \
10947 compiler_lib_search_dirs \
10949 archive_expsym_cmds \
10951 postuninstall_cmds \
10952 old_archive_from_expsyms_cmds \
10953 allow_undefined_flag \
10954 no_undefined_flag \
10955 export_symbols_cmds \
10956 hardcode_libdir_flag_spec \
10957 hardcode_libdir_flag_spec_ld \
10958 hardcode_libdir_separator \
10959 hardcode_automatic \
10961 module_expsym_cmds \
10962 lt_cv_prog_compiler_c_o \
10965 include_expsyms; do
10968 old_archive_cmds | \
10969 old_archive_from_new_cmds | \
10971 archive_expsym_cmds | \
10973 module_expsym_cmds | \
10974 old_archive_from_expsyms_cmds | \
10975 export_symbols_cmds | \
10976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10977 postinstall_cmds | postuninstall_cmds | \
10978 old_postinstall_cmds | old_postuninstall_cmds | \
10979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10980 # Double-quote double-evaled strings.
10981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10990 *'\$0 --fallback-echo"')
10991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10995 cfgfile="${ofile}T"
10996 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10998 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10999 $as_echo "$as_me: creating $ofile" >&6;}
11001 cat <<__EOF__ >> "$cfgfile"
11004 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11005 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11009 # Free Software Foundation, Inc.
11011 # This file is part of GNU Libtool:
11012 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11014 # This program is free software; you can redistribute it and/or modify
11015 # it under the terms of the GNU General Public License as published by
11016 # the Free Software Foundation; either version 2 of the License, or
11017 # (at your option) any later version.
11019 # This program is distributed in the hope that it will be useful, but
11020 # WITHOUT ANY WARRANTY; without even the implied warranty of
11021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11022 # General Public License for more details.
11024 # You should have received a copy of the GNU General Public License
11025 # along with this program; if not, write to the Free Software
11026 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11028 # As a special exception to the GNU General Public License, if you
11029 # distribute this file as part of a program that contains a
11030 # configuration script generated by Autoconf, you may include it under
11031 # the same distribution terms that you use for the rest of that program.
11033 # A sed program that does not truncate output.
11036 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11037 Xsed="$SED -e 1s/^X//"
11039 # The HP-UX ksh and POSIX shell print the target directory to stdout
11040 # if CDPATH is set.
11041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11043 # The names of the tagged configurations supported by this script.
11046 # ### BEGIN LIBTOOL CONFIG
11048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11050 # Shell to use when invoking shell scripts.
11053 # Whether or not to build shared libraries.
11054 build_libtool_libs=$enable_shared
11056 # Whether or not to build static libraries.
11057 build_old_libs=$enable_static
11059 # Whether or not to add -lc for building shared libraries.
11060 build_libtool_need_lc=$archive_cmds_need_lc
11062 # Whether or not to disallow shared libs when runtime libs are static
11063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11065 # Whether or not to optimize for fast installation.
11066 fast_install=$enable_fast_install
11069 host_alias=$host_alias
11073 # The build system.
11074 build_alias=$build_alias
11078 # An echo program that does not interpret backslashes.
11083 AR_FLAGS=$lt_AR_FLAGS
11088 # LTCC compiler flags.
11089 LTCFLAGS=$lt_LTCFLAGS
11091 # A language-specific compiler.
11094 # Is the compiler the GNU C compiler?
11100 # The linker used to build libraries.
11103 # Whether we need hard or soft links.
11106 # A BSD-compatible nm program.
11109 # A symbol stripping program
11112 # Used to examine libraries when file_magic_cmd begins "file"
11113 MAGIC_CMD=$MAGIC_CMD
11115 # Used on cygwin: DLL creation program.
11118 # Used on cygwin: object dumper.
11121 # Used on cygwin: assembler.
11124 # The name of the directory that contains temporary libtool files.
11127 # How to create reloadable object files.
11128 reload_flag=$lt_reload_flag
11129 reload_cmds=$lt_reload_cmds
11131 # How to pass a linker flag through the compiler.
11132 wl=$lt_lt_prog_compiler_wl
11134 # Object file suffix (normally "o").
11135 objext="$ac_objext"
11137 # Old archive suffix (normally "a").
11140 # Shared library suffix (normally ".so").
11141 shrext_cmds='$shrext_cmds'
11143 # Executable file suffix (normally "").
11146 # Additional compiler flags for building library objects.
11147 pic_flag=$lt_lt_prog_compiler_pic
11150 # What is the maximum length of a command?
11151 max_cmd_len=$lt_cv_sys_max_cmd_len
11153 # Does compiler simultaneously support -c and -o options?
11154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11156 # Must we lock files when doing compilation?
11157 need_locks=$lt_need_locks
11159 # Do we need the lib prefix for modules?
11160 need_lib_prefix=$need_lib_prefix
11162 # Do we need a version for libraries?
11163 need_version=$need_version
11165 # Whether dlopen is supported.
11166 dlopen_support=$enable_dlopen
11168 # Whether dlopen of programs is supported.
11169 dlopen_self=$enable_dlopen_self
11171 # Whether dlopen of statically linked programs is supported.
11172 dlopen_self_static=$enable_dlopen_self_static
11174 # Compiler flag to prevent dynamic linking.
11175 link_static_flag=$lt_lt_prog_compiler_static
11177 # Compiler flag to turn off builtin functions.
11178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11180 # Compiler flag to allow reflexive dlopens.
11181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11183 # Compiler flag to generate shared objects directly from archives.
11184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11186 # Compiler flag to generate thread-safe objects.
11187 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11189 # Library versioning type.
11190 version_type=$version_type
11192 # Format of library name prefix.
11193 libname_spec=$lt_libname_spec
11195 # List of archive names. First name is the real one, the rest are links.
11196 # The last name is the one that the linker finds with -lNAME.
11197 library_names_spec=$lt_library_names_spec
11199 # The coded name of the library, if different from the real name.
11200 soname_spec=$lt_soname_spec
11202 # Commands used to build and install an old-style archive.
11204 old_archive_cmds=$lt_old_archive_cmds
11205 old_postinstall_cmds=$lt_old_postinstall_cmds
11206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11208 # Create an old-style archive from a shared archive.
11209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11211 # Create a temporary old-style archive to link instead of a shared archive.
11212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11214 # Commands used to build and install a shared archive.
11215 archive_cmds=$lt_archive_cmds
11216 archive_expsym_cmds=$lt_archive_expsym_cmds
11217 postinstall_cmds=$lt_postinstall_cmds
11218 postuninstall_cmds=$lt_postuninstall_cmds
11220 # Commands used to build a loadable module (assumed same as above if empty)
11221 module_cmds=$lt_module_cmds
11222 module_expsym_cmds=$lt_module_expsym_cmds
11224 # Commands to strip libraries.
11225 old_striplib=$lt_old_striplib
11226 striplib=$lt_striplib
11228 # Dependencies to place before the objects being linked to create a
11230 predep_objects=$lt_predep_objects
11232 # Dependencies to place after the objects being linked to create a
11234 postdep_objects=$lt_postdep_objects
11236 # Dependencies to place before the objects being linked to create a
11238 predeps=$lt_predeps
11240 # Dependencies to place after the objects being linked to create a
11242 postdeps=$lt_postdeps
11244 # The directories searched by this compiler when creating a shared
11246 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11248 # The library search path used internally by the compiler when linking
11249 # a shared library.
11250 compiler_lib_search_path=$lt_compiler_lib_search_path
11252 # Method to check whether dependent libraries are shared objects.
11253 deplibs_check_method=$lt_deplibs_check_method
11255 # Command to use when deplibs_check_method == file_magic.
11256 file_magic_cmd=$lt_file_magic_cmd
11258 # Flag that allows shared libraries with undefined symbols to be built.
11259 allow_undefined_flag=$lt_allow_undefined_flag
11261 # Flag that forces no undefined symbols.
11262 no_undefined_flag=$lt_no_undefined_flag
11264 # Commands used to finish a libtool library installation in a directory.
11265 finish_cmds=$lt_finish_cmds
11267 # Same as above, but a single script fragment to be evaled but not shown.
11268 finish_eval=$lt_finish_eval
11270 # Take the output of nm and produce a listing of raw symbols and C names.
11271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11273 # Transform the output of nm in a proper C declaration
11274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11276 # Transform the output of nm in a C name address pair
11277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11279 # This is the shared library runtime path variable.
11280 runpath_var=$runpath_var
11282 # This is the shared library path variable.
11283 shlibpath_var=$shlibpath_var
11285 # Is shlibpath searched before the hard-coded library search path?
11286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11288 # How to hardcode a shared library path into an executable.
11289 hardcode_action=$hardcode_action
11291 # Whether we should hardcode library paths into libraries.
11292 hardcode_into_libs=$hardcode_into_libs
11294 # Flag to hardcode \$libdir into a binary during linking.
11295 # This must work even if \$libdir does not exist.
11296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11298 # If ld is used when linking, flag to hardcode \$libdir into
11299 # a binary during linking. This must work even if \$libdir does
11301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11303 # Whether we need a single -rpath flag with a separated argument.
11304 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11307 # resulting binary.
11308 hardcode_direct=$hardcode_direct
11310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11311 # resulting binary.
11312 hardcode_minus_L=$hardcode_minus_L
11314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11315 # the resulting binary.
11316 hardcode_shlibpath_var=$hardcode_shlibpath_var
11318 # Set to yes if building a shared library automatically hardcodes DIR into the library
11319 # and all subsequent libraries and executables linked against it.
11320 hardcode_automatic=$hardcode_automatic
11322 # Variables whose values should be saved in libtool wrapper scripts and
11323 # restored at relink time.
11324 variables_saved_for_relink="$variables_saved_for_relink"
11326 # Whether libtool must link a program against all its dependency libraries.
11327 link_all_deplibs=$link_all_deplibs
11329 # Compile-time system search path for libraries
11330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11332 # Run-time system search path for libraries
11333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11335 # Fix the shell variable \$srcfile for the compiler.
11336 fix_srcfile_path=$lt_fix_srcfile_path
11338 # Set to yes if exported symbols are required.
11339 always_export_symbols=$always_export_symbols
11341 # The commands to list exported symbols.
11342 export_symbols_cmds=$lt_export_symbols_cmds
11344 # The commands to extract the exported symbol list from a shared archive.
11345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11347 # Symbols that should not be listed in the preloaded symbols.
11348 exclude_expsyms=$lt_exclude_expsyms
11350 # Symbols that must always be exported.
11351 include_expsyms=$lt_include_expsyms
11353 # ### END LIBTOOL CONFIG
11360 cat <<\EOF >> "$cfgfile"
11362 # AIX sometimes has problems with the GCC collect2 program. For some
11363 # reason, if we set the COLLECT_NAMES environment variable, the problems
11364 # vanish in a puff of smoke.
11365 if test "X${COLLECT_NAMES+set}" != Xset; then
11367 export COLLECT_NAMES
11373 # We use sed instead of cat because bash on DJGPP gets confused if
11374 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11375 # text mode, it properly converts lines to CR/LF. This bash problem
11376 # is reportedly fixed, but why not run on old versions too?
11377 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11379 mv -f "$cfgfile" "$ofile" || \
11380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11384 # If there is no Makefile yet, we rely on a make rule to execute
11385 # `config.status --recheck' to rerun these tests and create the
11386 # libtool script then.
11387 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11388 if test -f "$ltmain_in"; then
11389 test -f Makefile && make "$ltmain"
11395 ac_cpp='$CPP $CPPFLAGS'
11396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403 # Check whether --with-tags was given.
11404 if test "${with_tags+set}" = set; then
11405 withval=$with_tags; tagnames="$withval"
11409 if test -f "$ltmain" && test -n "$tagnames"; then
11410 if test ! -f "${ofile}"; then
11411 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11412 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11415 if test -z "$LTCC"; then
11416 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11417 if test -z "$LTCC"; then
11418 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11419 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11421 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11422 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11425 if test -z "$LTCFLAGS"; then
11426 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11429 # Extract list of available tagged configurations in $ofile.
11430 # Note that this assumes the entire list is on one line.
11431 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11434 for tagname in $tagnames; do
11436 # Check whether tagname contains only valid characters
11437 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11439 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11440 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11441 { (exit 1); exit 1; }; }
11445 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11447 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11448 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11449 { (exit 1); exit 1; }; }
11452 # Update the list of available tags.
11453 if test -n "$tagname"; then
11454 echo appending configuration tag \"$tagname\" to $ofile
11458 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11459 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11460 (test "X$CXX" != "Xg++"))) ; then
11462 ac_cpp='$CXXCPP $CPPFLAGS'
11463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11470 archive_cmds_need_lc_CXX=no
11471 allow_undefined_flag_CXX=
11472 always_export_symbols_CXX=no
11473 archive_expsym_cmds_CXX=
11474 export_dynamic_flag_spec_CXX=
11475 hardcode_direct_CXX=no
11476 hardcode_libdir_flag_spec_CXX=
11477 hardcode_libdir_flag_spec_ld_CXX=
11478 hardcode_libdir_separator_CXX=
11479 hardcode_minus_L_CXX=no
11480 hardcode_shlibpath_var_CXX=unsupported
11481 hardcode_automatic_CXX=no
11483 module_expsym_cmds_CXX=
11484 link_all_deplibs_CXX=unknown
11485 old_archive_cmds_CXX=$old_archive_cmds
11486 no_undefined_flag_CXX=
11487 whole_archive_flag_spec_CXX=
11488 enable_shared_with_static_runtimes_CXX=no
11490 # Dependencies to place before and after the object being linked:
11491 predep_objects_CXX=
11492 postdep_objects_CXX=
11495 compiler_lib_search_path_CXX=
11496 compiler_lib_search_dirs_CXX=
11498 # Source file extension for C++ test sources.
11501 # Object file extension for compiled C++ test sources.
11505 # Code to be used in simple compile tests
11506 lt_simple_compile_test_code="int some_variable = 0;"
11508 # Code to be used in simple link tests
11509 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11511 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11513 # If no C compiler was specified, use CC.
11516 # If no C compiler flags were specified, use CFLAGS.
11517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11519 # Allow CC to be a program name with arguments.
11523 # save warnings/boilerplate of simple test code
11524 ac_outfile=conftest.$ac_objext
11525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11527 _lt_compiler_boilerplate=`cat conftest.err`
11530 ac_outfile=conftest.$ac_objext
11531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11533 _lt_linker_boilerplate=`cat conftest.err`
11537 # Allow CC to be a program name with arguments.
11542 lt_save_with_gnu_ld=$with_gnu_ld
11543 lt_save_path_LD=$lt_cv_path_LD
11544 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11545 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11547 $as_unset lt_cv_prog_gnu_ld
11549 if test -n "${lt_cv_path_LDCXX+set}"; then
11550 lt_cv_path_LD=$lt_cv_path_LDCXX
11552 $as_unset lt_cv_path_LD
11554 test -z "${LDCXX+set}" || LD=$LDCXX
11558 for cc_temp in $compiler""; do
11560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11569 # We don't want -fno-exception wen compiling C++ code, so set the
11570 # no_builtin_flag separately
11571 if test "$GXX" = yes; then
11572 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11574 lt_prog_compiler_no_builtin_flag_CXX=
11577 if test "$GXX" = yes; then
11578 # Set up default GNU C++ configuration
11581 # Check whether --with-gnu-ld was given.
11582 if test "${with_gnu_ld+set}" = set; then
11583 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11589 if test "$GCC" = yes; then
11590 # Check if gcc -print-prog-name=ld gives a path.
11591 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11592 $as_echo_n "checking for ld used by $CC... " >&6; }
11595 # gcc leaves a trailing carriage return which upsets mingw
11596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11601 # Accept absolute paths.
11603 re_direlt='/[^/][^/]*/\.\./'
11604 # Canonicalize the pathname of ld
11605 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11607 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11609 test -z "$LD" && LD="$ac_prog"
11612 # If it fails, then pretend we aren't using GCC.
11616 # If it is relative, then search for the first ld in PATH.
11617 with_gnu_ld=unknown
11620 elif test "$with_gnu_ld" = yes; then
11621 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11622 $as_echo_n "checking for GNU ld... " >&6; }
11624 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11625 $as_echo_n "checking for non-GNU ld... " >&6; }
11627 if test "${lt_cv_path_LD+set}" = set; then
11628 $as_echo_n "(cached) " >&6
11630 if test -z "$LD"; then
11631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11632 for ac_dir in $PATH; do
11634 test -z "$ac_dir" && ac_dir=.
11635 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11636 lt_cv_path_LD="$ac_dir/$ac_prog"
11637 # Check to see if the program is GNU ld. I'd rather use --version,
11638 # but apparently some variants of GNU ld only accept -v.
11639 # Break only if it was the GNU/non-GNU ld that we prefer.
11640 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11641 *GNU* | *'with BFD'*)
11642 test "$with_gnu_ld" != no && break
11645 test "$with_gnu_ld" != yes && break
11652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11656 LD="$lt_cv_path_LD"
11657 if test -n "$LD"; then
11658 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11659 $as_echo "$LD" >&6; }
11661 { $as_echo "$as_me:$LINENO: result: no" >&5
11662 $as_echo "no" >&6; }
11664 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11665 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11666 { (exit 1); exit 1; }; }
11667 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11668 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11669 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11673 case `$LD -v 2>&1 </dev/null` in
11674 *GNU* | *'with BFD'*)
11675 lt_cv_prog_gnu_ld=yes
11678 lt_cv_prog_gnu_ld=no
11682 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11683 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11684 with_gnu_ld=$lt_cv_prog_gnu_ld
11688 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11689 # archiving commands below assume that GNU ld is being used.
11690 if test "$with_gnu_ld" = yes; then
11691 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11692 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'
11694 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11697 # If archive_cmds runs LD, not CC, wlarc should be empty
11698 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11699 # investigate it a little bit more. (MM)
11702 # ancient GNU ld didn't support --whole-archive et. al.
11703 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11704 grep 'no-whole-archive' > /dev/null; then
11705 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11707 whole_archive_flag_spec_CXX=
11713 # A generic and very simple default shared library creation
11714 # command for GNU C++ for the case where it uses the native
11715 # linker, instead of GNU ld. If possible, this setting should
11716 # overridden to take advantage of the native linker features on
11717 # the platform it is being used on.
11718 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11721 # Commands to make compiler produce verbose output that lists
11722 # what "hidden" libraries, object files and flags are used when
11723 # linking a shared library.
11724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11732 # PORTME: fill in a description of your system's C++ link characteristics
11733 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11738 # FIXME: insert proper C++ library support
11742 if test "$host_cpu" = ia64; then
11743 # On IA64, the linker does run time linking by default, so we don't
11744 # have to do anything special.
11745 aix_use_runtimelinking=no
11746 exp_sym_flag='-Bexport'
11749 aix_use_runtimelinking=no
11751 # Test if we are trying to use run time linking or normal
11752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11753 # need to do runtime linking.
11754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11755 for ld_flag in $LDFLAGS; do
11758 aix_use_runtimelinking=yes
11766 exp_sym_flag='-bexport'
11767 no_entry_flag='-bnoentry'
11770 # When large executables or shared objects are built, AIX ld can
11771 # have problems creating the table of contents. If linking a library
11772 # or program results in "error TOC overflow" add -mminimal-toc to
11773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11776 archive_cmds_CXX=''
11777 hardcode_direct_CXX=yes
11778 hardcode_libdir_separator_CXX=':'
11779 link_all_deplibs_CXX=yes
11781 if test "$GXX" = yes; then
11782 case $host_os in aix4.[012]|aix4.[012].*)
11783 # We only want to do this on AIX 4.2 and lower, the check
11784 # below for broken collect2 doesn't work under 4.3+
11785 collect2name=`${CC} -print-prog-name=collect2`
11786 if test -f "$collect2name" && \
11787 strings "$collect2name" | grep resolve_lib_name >/dev/null
11789 # We have reworked collect2
11792 # We have old collect2
11793 hardcode_direct_CXX=unsupported
11794 # It fails to find uninstalled libraries when the uninstalled
11795 # path is not listed in the libpath. Setting hardcode_minus_L
11796 # to unsupported forces relinking
11797 hardcode_minus_L_CXX=yes
11798 hardcode_libdir_flag_spec_CXX='-L$libdir'
11799 hardcode_libdir_separator_CXX=
11803 shared_flag='-shared'
11804 if test "$aix_use_runtimelinking" = yes; then
11805 shared_flag="$shared_flag "'${wl}-G'
11809 if test "$host_cpu" = ia64; then
11810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11811 # chokes on -Wl,-G. The following line is correct:
11814 if test "$aix_use_runtimelinking" = yes; then
11815 shared_flag='${wl}-G'
11817 shared_flag='${wl}-bM:SRE'
11822 # It seems that -bexpall does not export symbols beginning with
11823 # underscore (_), so it is better to generate a list of symbols to export.
11824 always_export_symbols_CXX=yes
11825 if test "$aix_use_runtimelinking" = yes; then
11826 # Warning - without using the other runtime loading flags (-brtl),
11827 # -berok will link without error, but may produce a broken library.
11828 allow_undefined_flag_CXX='-berok'
11829 # Determine the default libpath from the value encoded in an empty executable.
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11852 $as_echo "$ac_try_echo") >&5
11853 (eval "$ac_link") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_cxx_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest$ac_exeext && {
11863 test "$cross_compiling" = yes ||
11864 $as_test_x conftest$ac_exeext
11867 lt_aix_libpath_sed='
11868 /Import File Strings/,/^$/ {
11874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11875 # Check for a 64-bit object if we didn't find anything.
11876 if test -z "$aix_libpath"; then
11877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880 $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11886 rm -rf conftest.dSYM
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 conftest$ac_exeext conftest.$ac_ext
11889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11893 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"
11895 if test "$host_cpu" = ia64; then
11896 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11897 allow_undefined_flag_CXX="-z nodefs"
11898 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"
11900 # Determine the default libpath from the value encoded in an empty executable.
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_cxx_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext && {
11934 test "$cross_compiling" = yes ||
11935 $as_test_x conftest$ac_exeext
11938 lt_aix_libpath_sed='
11939 /Import File Strings/,/^$/ {
11945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11946 # Check for a 64-bit object if we didn't find anything.
11947 if test -z "$aix_libpath"; then
11948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11951 $as_echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11957 rm -rf conftest.dSYM
11958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959 conftest$ac_exeext conftest.$ac_ext
11960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11963 # Warning - without using the other run time loading flags,
11964 # -berok will link without error, but may produce a broken library.
11965 no_undefined_flag_CXX=' ${wl}-bernotok'
11966 allow_undefined_flag_CXX=' ${wl}-berok'
11967 # Exported symbols can be pulled into shared objects from archives
11968 whole_archive_flag_spec_CXX='$convenience'
11969 archive_cmds_need_lc_CXX=yes
11970 # This is similar to how AIX traditionally builds its shared libraries.
11971 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'
11977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11978 allow_undefined_flag_CXX=unsupported
11979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11980 # support --undefined. This deserves some investigation. FIXME
11981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11988 case $cc_basename in
11990 # FIXME: insert proper C++ library support
11996 cygwin* | mingw* | pw32*)
11997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11998 # as there is no search path for DLLs.
11999 hardcode_libdir_flag_spec_CXX='-L$libdir'
12000 allow_undefined_flag_CXX=unsupported
12001 always_export_symbols_CXX=no
12002 enable_shared_with_static_runtimes_CXX=yes
12004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12005 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'
12006 # If the export-symbols file already is a .def file (1st line
12007 # is EXPORTS), use it as is; otherwise, prepend...
12008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12009 cp $export_symbols $output_objdir/$soname.def;
12011 echo EXPORTS > $output_objdir/$soname.def;
12012 cat $export_symbols >> $output_objdir/$soname.def;
12014 $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'
12019 darwin* | rhapsody*)
12020 archive_cmds_need_lc_CXX=no
12021 hardcode_direct_CXX=no
12022 hardcode_automatic_CXX=yes
12023 hardcode_shlibpath_var_CXX=unsupported
12024 whole_archive_flag_spec_CXX=''
12025 link_all_deplibs_CXX=yes
12026 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12027 if test "$GXX" = yes ; then
12028 output_verbose_link_cmd='echo'
12029 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}"
12030 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12031 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}"
12032 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}"
12033 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12034 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}"
12035 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}"
12038 case $cc_basename in
12040 output_verbose_link_cmd='echo'
12041 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'
12042 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12043 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12044 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}'
12045 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}'
12055 case $cc_basename in
12057 # FIXME: insert proper C++ library support
12061 # Green Hills C++ Compiler
12062 # FIXME: insert proper C++ library support
12066 # FIXME: insert proper C++ library support
12072 # C++ shared libraries reported to be fairly broken before switch to ELF
12076 archive_cmds_need_lc_CXX=no
12078 freebsd* | dragonfly*)
12079 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12087 hardcode_libdir_separator_CXX=:
12088 export_dynamic_flag_spec_CXX='${wl}-E'
12089 hardcode_direct_CXX=yes
12090 hardcode_minus_L_CXX=yes # Not in the search PATH,
12091 # but as the default
12092 # location of the library.
12094 case $cc_basename in
12096 # FIXME: insert proper C++ library support
12100 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'
12101 # Commands to make compiler produce verbose output that lists
12102 # what "hidden" libraries, object files and flags are used when
12103 # linking a shared library.
12105 # There doesn't appear to be a way to prevent this compiler from
12106 # explicitly linking system object files so we need to strip them
12107 # from the output so that they don't get included in the library
12109 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'
12112 if test "$GXX" = yes; then
12113 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'
12115 # FIXME: insert proper C++ library support
12122 if test $with_gnu_ld = no; then
12123 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12124 hardcode_libdir_separator_CXX=:
12129 export_dynamic_flag_spec_CXX='${wl}-E'
12135 hardcode_direct_CXX=no
12136 hardcode_shlibpath_var_CXX=no
12139 hardcode_direct_CXX=yes
12140 hardcode_minus_L_CXX=yes # Not in the search PATH,
12141 # but as the default
12142 # location of the library.
12146 case $cc_basename in
12148 # FIXME: insert proper C++ library support
12154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12163 # Commands to make compiler produce verbose output that lists
12164 # what "hidden" libraries, object files and flags are used when
12165 # linking a shared library.
12167 # There doesn't appear to be a way to prevent this compiler from
12168 # explicitly linking system object files so we need to strip them
12169 # from the output so that they don't get included in the library
12171 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'
12174 if test "$GXX" = yes; then
12175 if test $with_gnu_ld = no; then
12178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12184 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'
12189 # FIXME: insert proper C++ library support
12196 hardcode_direct_CXX=no
12197 hardcode_shlibpath_var_CXX=no
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}-E'
12200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12201 # Instead, shared libraries are loaded at an image base (0x10000000 by
12202 # default) and relocated if they conflict, which is a slow very memory
12203 # consuming and fragmenting process. To avoid this, we pick a random,
12204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12206 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'
12207 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'
12210 case $cc_basename in
12213 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'
12215 # Archives containing C++ object files must be created using
12216 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12217 # necessary to make sure instantiated templates are included
12219 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12222 if test "$GXX" = yes; then
12223 if test "$with_gnu_ld" = no; then
12224 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'
12226 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'
12229 link_all_deplibs_CXX=yes
12232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12233 hardcode_libdir_separator_CXX=:
12235 linux* | k*bsd*-gnu)
12236 case $cc_basename in
12238 # Kuck and Associates, Inc. (KAI) C++ Compiler
12240 # KCC will only create a shared library if the output file
12241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12242 # to its proper name (with version) after linking.
12243 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'
12244 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'
12245 # Commands to make compiler produce verbose output that lists
12246 # what "hidden" libraries, object files and flags are used when
12247 # linking a shared library.
12249 # There doesn't appear to be a way to prevent this compiler from
12250 # explicitly linking system object files so we need to strip them
12251 # from the output so that they don't get included in the library
12253 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'
12255 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12258 # Archives containing C++ object files must be created using
12259 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12260 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12265 # version 8.0 and above of icpc choke on multiply defined symbols
12266 # if we add $predep_objects and $postdep_objects, however 7.1 and
12267 # earlier do not add the objects themselves.
12268 case `$CC -V 2>&1` in
12270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12271 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'
12273 *) # Version 8.0 or newer
12276 ia64*) tmp_idyn=' -i_dynamic';;
12278 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12279 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'
12282 archive_cmds_need_lc_CXX=no
12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12288 # Portland Group C++ compiler
12289 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12290 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'
12292 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12293 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12294 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'
12298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 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'
12301 runpath_var=LD_RUN_PATH
12302 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12303 hardcode_libdir_separator_CXX=:
12305 # Commands to make compiler produce verbose output that lists
12306 # what "hidden" libraries, object files and flags are used when
12307 # linking a shared library.
12309 # There doesn't appear to be a way to prevent this compiler from
12310 # explicitly linking system object files so we need to strip them
12311 # from the output so that they don't get included in the library
12313 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'
12316 case `$CC -V 2>&1 | sed 5q` in
12319 no_undefined_flag_CXX=' -zdefs'
12320 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 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'
12322 hardcode_libdir_flag_spec_CXX='-R$libdir'
12323 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'
12325 # Not sure whether something based on
12326 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12328 output_verbose_link_cmd='echo'
12330 # Archives containing C++ object files must be created using
12331 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12332 # necessary to make sure instantiated templates are included
12334 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12341 # FIXME: insert proper C++ library support
12345 # FIXME: insert proper C++ library support
12349 case $cc_basename in
12351 # FIXME: insert proper C++ library support
12355 # FIXME: insert proper C++ library support
12361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12362 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12364 hardcode_libdir_flag_spec_CXX='-R$libdir'
12365 hardcode_direct_CXX=yes
12366 hardcode_shlibpath_var_CXX=no
12368 # Workaround some broken pre-1.5 toolchains
12369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12372 # C++ shared libraries are fairly broken
12376 if test -f /usr/libexec/ld.so; then
12377 hardcode_direct_CXX=yes
12378 hardcode_shlibpath_var_CXX=no
12379 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12380 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12382 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12383 export_dynamic_flag_spec_CXX='${wl}-E'
12384 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12386 output_verbose_link_cmd='echo'
12392 case $cc_basename in
12394 # Kuck and Associates, Inc. (KAI) C++ Compiler
12396 # KCC will only create a shared library if the output file
12397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12398 # to its proper name (with version) after linking.
12399 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12402 hardcode_libdir_separator_CXX=:
12404 # Archives containing C++ object files must be created using
12405 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12410 # Rational C++ 2.4.1
12411 # FIXME: insert proper C++ library support
12415 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12416 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'
12418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12419 hardcode_libdir_separator_CXX=:
12421 # Commands to make compiler produce verbose output that lists
12422 # what "hidden" libraries, object files and flags are used when
12423 # linking a shared library.
12425 # There doesn't appear to be a way to prevent this compiler from
12426 # explicitly linking system object files so we need to strip them
12427 # from the output so that they don't get included in the library
12429 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'
12432 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12434 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'
12436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12437 hardcode_libdir_separator_CXX=:
12439 # Commands to make compiler produce verbose output that lists
12440 # what "hidden" libraries, object files and flags are used when
12441 # linking a shared library.
12442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12445 # FIXME: insert proper C++ library support
12452 case $cc_basename in
12454 # Kuck and Associates, Inc. (KAI) C++ Compiler
12456 # KCC will only create a shared library if the output file
12457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12458 # to its proper name (with version) after linking.
12459 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'
12461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12462 hardcode_libdir_separator_CXX=:
12464 # Archives containing C++ object files must be created using
12465 # the KAI C++ compiler.
12466 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12469 # Rational C++ 2.4.1
12470 # FIXME: insert proper C++ library support
12474 allow_undefined_flag_CXX=' -expect_unresolved \*'
12475 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'
12476 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12477 echo "-hidden">> $lib.exp~
12478 $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~
12481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12482 hardcode_libdir_separator_CXX=:
12484 # Commands to make compiler produce verbose output that lists
12485 # what "hidden" libraries, object files and flags are used when
12486 # linking a shared library.
12488 # There doesn't appear to be a way to prevent this compiler from
12489 # explicitly linking system object files so we need to strip them
12490 # from the output so that they don't get included in the library
12492 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'
12495 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12497 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'
12499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12500 hardcode_libdir_separator_CXX=:
12502 # Commands to make compiler produce verbose output that lists
12503 # what "hidden" libraries, object files and flags are used when
12504 # linking a shared library.
12505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12508 # FIXME: insert proper C++ library support
12515 # FIXME: insert proper C++ library support
12519 case $cc_basename in
12522 # FIXME: insert proper C++ library support
12527 # FIXME: insert proper C++ library support
12531 # FIXME: insert proper C++ library support
12537 case $cc_basename in
12539 # Sun C++ 4.2, 5.x and Centerline C++
12540 archive_cmds_need_lc_CXX=yes
12541 no_undefined_flag_CXX=' -zdefs'
12542 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12543 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12544 $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'
12546 hardcode_libdir_flag_spec_CXX='-R$libdir'
12547 hardcode_shlibpath_var_CXX=no
12549 solaris2.[0-5] | solaris2.[0-5].*) ;;
12551 # The compiler driver will combine and reorder linker options,
12552 # but understands `-z linker_flag'.
12553 # Supported since Solaris 2.6 (maybe 2.5.1?)
12554 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12557 link_all_deplibs_CXX=yes
12559 output_verbose_link_cmd='echo'
12561 # Archives containing C++ object files must be created using
12562 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12563 # necessary to make sure instantiated templates are included
12565 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12568 # Green Hills C++ Compiler
12569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12571 # The C++ compiler must be used to create the archive.
12572 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12575 # GNU C++ compiler with Solaris linker
12576 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12577 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12578 if $CC --version | grep -v '^2\.7' > /dev/null; then
12579 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12580 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12581 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12583 # Commands to make compiler produce verbose output that lists
12584 # what "hidden" libraries, object files and flags are used when
12585 # linking a shared library.
12586 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12588 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12590 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12591 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12592 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12594 # Commands to make compiler produce verbose output that lists
12595 # what "hidden" libraries, object files and flags are used when
12596 # linking a shared library.
12597 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12600 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12602 solaris2.[0-5] | solaris2.[0-5].*) ;;
12604 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12611 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12612 no_undefined_flag_CXX='${wl}-z,text'
12613 archive_cmds_need_lc_CXX=no
12614 hardcode_shlibpath_var_CXX=no
12615 runpath_var='LD_RUN_PATH'
12617 case $cc_basename in
12619 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 sysv5* | sco3.2v5* | sco5v6*)
12629 # Note: We can NOT use -z defs as we might desire, because we do not
12630 # link with -lc, and that would cause any symbols used from libc to
12631 # always be unresolved, which means just about no library would
12632 # ever link correctly. If we're not using GNU ld we use -z text
12633 # though, which does catch some bad symbols but isn't as heavy-handed
12635 # For security reasons, it is highly recommended that you always
12636 # use absolute paths for naming shared libraries, and exclude the
12637 # DT_RUNPATH tag from executables and libraries. But doing so
12638 # requires that you compile everything twice, which is a pain.
12639 # So that behaviour is only enabled if SCOABSPATH is set to a
12640 # non-empty value in the environment. Most likely only useful for
12641 # creating official distributions of packages.
12642 # This is a hack until libtool officially supports absolute path
12643 # names for shared libraries.
12644 no_undefined_flag_CXX='${wl}-z,text'
12645 allow_undefined_flag_CXX='${wl}-z,nodefs'
12646 archive_cmds_need_lc_CXX=no
12647 hardcode_shlibpath_var_CXX=no
12648 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12649 hardcode_libdir_separator_CXX=':'
12650 link_all_deplibs_CXX=yes
12651 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12652 runpath_var='LD_RUN_PATH'
12654 case $cc_basename in
12656 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12660 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 case $cc_basename in
12668 # NonStop-UX NCC 3.20
12669 # FIXME: insert proper C++ library support
12673 # FIXME: insert proper C++ library support
12679 # FIXME: insert proper C++ library support
12683 # FIXME: insert proper C++ library support
12687 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12688 $as_echo "$ld_shlibs_CXX" >&6; }
12689 test "$ld_shlibs_CXX" = no && can_build_shared=no
12694 cat > conftest.$ac_ext <<EOF
12698 Foo (void) { a = 0; }
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; then
12709 # Parse the compiler output and extract the necessary
12710 # objects, libraries and library flags.
12712 # Sentinel used to keep track of whether or not we are before
12713 # the conftest object file.
12714 pre_test_object_deps_done=no
12716 # The `*' in the case matches for architectures that use `case' in
12717 # $output_verbose_cmd can trigger glob expansion during the loop
12718 # eval without this substitution.
12719 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12721 for p in `eval $output_verbose_link_cmd`; do
12725 # Some compilers place space between "-{L,R}" and the path.
12726 # Remove the space.
12727 if test $p = "-L" \
12728 || test $p = "-R"; then
12735 if test "$pre_test_object_deps_done" = no; then
12738 # Internal compiler library paths should come after those
12739 # provided the user. The postdeps already come after the
12740 # user supplied libs so there is no need to process them.
12741 if test -z "$compiler_lib_search_path_CXX"; then
12742 compiler_lib_search_path_CXX="${prev}${p}"
12744 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12747 # The "-l" case would never come before the object being
12748 # linked, so don't bother handling this case.
12751 if test -z "$postdeps_CXX"; then
12752 postdeps_CXX="${prev}${p}"
12754 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12760 # This assumes that the test object file only shows up
12761 # once in the compiler output.
12762 if test "$p" = "conftest.$objext"; then
12763 pre_test_object_deps_done=yes
12767 if test "$pre_test_object_deps_done" = no; then
12768 if test -z "$predep_objects_CXX"; then
12769 predep_objects_CXX="$p"
12771 predep_objects_CXX="$predep_objects_CXX $p"
12774 if test -z "$postdep_objects_CXX"; then
12775 postdep_objects_CXX="$p"
12777 postdep_objects_CXX="$postdep_objects_CXX $p"
12782 *) ;; # Ignore the rest.
12790 echo "libtool.m4: error: problem compiling CXX test program"
12793 $rm -f confest.$objext
12795 compiler_lib_search_dirs_CXX=
12796 if test -n "$compiler_lib_search_path_CXX"; then
12797 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12800 # PORTME: override above test on systems where it is broken
12803 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12804 # hack all around it, let's just trust "g++" to DTRT.
12805 predep_objects_CXX=
12806 postdep_objects_CXX=
12811 case `$CC -V 2>&1 | sed 5q` in
12815 # The more standards-conforming stlport4 library is
12816 # incompatible with the Cstd library. Avoid specifying
12817 # it if it's in CXXFLAGS. Ignore libCrun as
12818 # -library=stlport4 depends on it.
12819 case " $CXX $CXXFLAGS " in
12820 *" -library=stlport4 "*)
12821 solaris_use_stlport4=yes
12824 if test "$solaris_use_stlport4" != yes; then
12825 postdeps_CXX='-library=Cstd -library=Crun'
12832 case $cc_basename in
12834 # The more standards-conforming stlport4 library is
12835 # incompatible with the Cstd library. Avoid specifying
12836 # it if it's in CXXFLAGS. Ignore libCrun as
12837 # -library=stlport4 depends on it.
12838 case " $CXX $CXXFLAGS " in
12839 *" -library=stlport4 "*)
12840 solaris_use_stlport4=yes
12844 # Adding this requires a known-good setup of shared libraries for
12845 # Sun compiler versions before 5.6, else PIC objects from an old
12846 # archive will be linked into the output, leading to subtle bugs.
12847 if test "$solaris_use_stlport4" != yes; then
12848 postdeps_CXX='-library=Cstd -library=Crun'
12855 case " $postdeps_CXX " in
12856 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12859 lt_prog_compiler_wl_CXX=
12860 lt_prog_compiler_pic_CXX=
12861 lt_prog_compiler_static_CXX=
12863 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12864 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12866 # C++ specific cases for pic, static, wl, etc.
12867 if test "$GXX" = yes; then
12868 lt_prog_compiler_wl_CXX='-Wl,'
12869 lt_prog_compiler_static_CXX='-static'
12873 # All AIX code is PIC.
12874 if test "$host_cpu" = ia64; then
12875 # AIX 5 now supports IA64 processor
12876 lt_prog_compiler_static_CXX='-Bstatic'
12880 # FIXME: we need at least 68020 code to build shared libraries, but
12881 # adding the `-m68020' flag to GCC prevents building anything better,
12883 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12886 # PIC is the default for these OSes.
12888 mingw* | cygwin* | os2* | pw32*)
12889 # This hack is so that the source file can tell whether it is being
12890 # built for inclusion in a dll (and should export symbols for example).
12891 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12892 # (--disable-auto-import) libraries
12893 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12895 darwin* | rhapsody*)
12896 # PIC is the default on this platform
12897 # Common symbols not allowed in MH_DYLIB files
12898 lt_prog_compiler_pic_CXX='-fno-common'
12901 # DJGPP does not support shared libraries at all
12902 lt_prog_compiler_pic_CXX=
12905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12906 # Instead, we relocate shared libraries at runtime.
12909 if test -d /usr/nec; then
12910 lt_prog_compiler_pic_CXX=-Kconform_pic
12914 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12915 # not for PA HP-UX.
12920 lt_prog_compiler_pic_CXX='-fPIC'
12925 lt_prog_compiler_pic_CXX='-fPIC'
12931 # All AIX code is PIC.
12932 if test "$host_cpu" = ia64; then
12933 # AIX 5 now supports IA64 processor
12934 lt_prog_compiler_static_CXX='-Bstatic'
12936 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12940 case $cc_basename in
12942 # Green Hills C++ Compiler
12943 # _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"
12948 # PIC is the default on this platform
12949 # Common symbols not allowed in MH_DYLIB files
12950 case $cc_basename in
12952 lt_prog_compiler_pic_CXX='-qnocommon'
12953 lt_prog_compiler_wl_CXX='-Wl,'
12958 case $cc_basename in
12960 lt_prog_compiler_pic_CXX='-KPIC'
12963 # Green Hills C++ Compiler
12964 lt_prog_compiler_pic_CXX='-pic'
12970 freebsd* | dragonfly*)
12971 # FreeBSD uses GNU C++
12973 hpux9* | hpux10* | hpux11*)
12974 case $cc_basename in
12976 lt_prog_compiler_wl_CXX='-Wl,'
12977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12978 if test "$host_cpu" != ia64; then
12979 lt_prog_compiler_pic_CXX='+Z'
12983 lt_prog_compiler_wl_CXX='-Wl,'
12984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12990 lt_prog_compiler_pic_CXX='+Z'
12999 # This is c89, which is MS Visual C++ (no shared libs)
13000 # Anyone wants to do a port?
13002 irix5* | irix6* | nonstopux*)
13003 case $cc_basename in
13005 lt_prog_compiler_wl_CXX='-Wl,'
13006 lt_prog_compiler_static_CXX='-non_shared'
13007 # CC pic flag -KPIC is the default.
13013 linux* | k*bsd*-gnu)
13014 case $cc_basename in
13017 lt_prog_compiler_wl_CXX='--backend -Wl,'
13018 lt_prog_compiler_pic_CXX='-fPIC'
13022 lt_prog_compiler_wl_CXX='-Wl,'
13023 lt_prog_compiler_pic_CXX='-KPIC'
13024 lt_prog_compiler_static_CXX='-static'
13027 # Portland Group C++ compiler.
13028 lt_prog_compiler_wl_CXX='-Wl,'
13029 lt_prog_compiler_pic_CXX='-fpic'
13030 lt_prog_compiler_static_CXX='-Bstatic'
13034 # Make sure the PIC flag is empty. It appears that all Alpha
13035 # Linux and Compaq Tru64 Unix objects are PIC.
13036 lt_prog_compiler_pic_CXX=
13037 lt_prog_compiler_static_CXX='-non_shared'
13040 case `$CC -V 2>&1 | sed 5q` in
13043 lt_prog_compiler_pic_CXX='-KPIC'
13044 lt_prog_compiler_static_CXX='-Bstatic'
13045 lt_prog_compiler_wl_CXX='-Qoption ld '
13056 case $cc_basename in
13058 lt_prog_compiler_pic_CXX='-W c,exportall'
13066 osf3* | osf4* | osf5*)
13067 case $cc_basename in
13069 lt_prog_compiler_wl_CXX='--backend -Wl,'
13072 # Rational C++ 2.4.1
13073 lt_prog_compiler_pic_CXX='-pic'
13076 # Digital/Compaq C++
13077 lt_prog_compiler_wl_CXX='-Wl,'
13078 # Make sure the PIC flag is empty. It appears that all Alpha
13079 # Linux and Compaq Tru64 Unix objects are PIC.
13080 lt_prog_compiler_pic_CXX=
13081 lt_prog_compiler_static_CXX='-non_shared'
13090 case $cc_basename in
13092 # Sun C++ 4.2, 5.x and Centerline C++
13093 lt_prog_compiler_pic_CXX='-KPIC'
13094 lt_prog_compiler_static_CXX='-Bstatic'
13095 lt_prog_compiler_wl_CXX='-Qoption ld '
13098 # Green Hills C++ Compiler
13099 lt_prog_compiler_pic_CXX='-PIC'
13106 case $cc_basename in
13109 lt_prog_compiler_pic_CXX='-pic'
13110 lt_prog_compiler_static_CXX='-Bstatic'
13114 lt_prog_compiler_pic_CXX='-pic'
13121 case $cc_basename in
13123 # NonStop-UX NCC 3.20
13124 lt_prog_compiler_pic_CXX='-KPIC'
13130 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13131 case $cc_basename in
13133 lt_prog_compiler_wl_CXX='-Wl,'
13134 lt_prog_compiler_pic_CXX='-KPIC'
13135 lt_prog_compiler_static_CXX='-Bstatic'
13142 lt_prog_compiler_can_build_shared_CXX=no
13147 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13148 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13151 # Check to make sure the PIC flag actually works.
13153 if test -n "$lt_prog_compiler_pic_CXX"; then
13155 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13156 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13157 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13158 $as_echo_n "(cached) " >&6
13160 lt_cv_prog_compiler_pic_works_CXX=no
13161 ac_outfile=conftest.$ac_objext
13162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13164 # Insert the option either (1) after the last *FLAGS variable, or
13165 # (2) before a word containing "conftest.", or (3) at the end.
13166 # Note that $ac_compile itself does not contain backslashes and begins
13167 # with a dollar sign (not a hyphen), so the echo should work correctly.
13168 # The option is referenced via a variable to avoid confusing sed.
13169 lt_compile=`echo "$ac_compile" | $SED \
13170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13172 -e 's:$: $lt_compiler_flag:'`
13173 (eval echo "\"\$as_me:13173: $lt_compile\"" >&5)
13174 (eval "$lt_compile" 2>conftest.err)
13176 cat conftest.err >&5
13177 echo "$as_me:13177: \$? = $ac_status" >&5
13178 if (exit $ac_status) && test -s "$ac_outfile"; then
13179 # The compiler can only warn and ignore the option if not recognized
13180 # So say no if there are warnings other than the usual output.
13181 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13184 lt_cv_prog_compiler_pic_works_CXX=yes
13190 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13191 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13193 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13194 case $lt_prog_compiler_pic_CXX in
13196 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13199 lt_prog_compiler_pic_CXX=
13200 lt_prog_compiler_can_build_shared_CXX=no
13205 # For platforms which do not support PIC, -DPIC is meaningless:
13207 lt_prog_compiler_pic_CXX=
13210 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13215 # Check to make sure the static flag actually works.
13217 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13218 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13220 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13221 $as_echo_n "(cached) " >&6
13223 lt_cv_prog_compiler_static_works_CXX=no
13224 save_LDFLAGS="$LDFLAGS"
13225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13228 # The linker can only warn and ignore the option if not recognized
13229 # So say no if there are warnings
13230 if test -s conftest.err; then
13231 # Append any errors to the config.log.
13232 cat conftest.err 1>&5
13233 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13235 if diff conftest.exp conftest.er2 >/dev/null; then
13236 lt_cv_prog_compiler_static_works_CXX=yes
13239 lt_cv_prog_compiler_static_works_CXX=yes
13243 LDFLAGS="$save_LDFLAGS"
13246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13247 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13249 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13252 lt_prog_compiler_static_CXX=
13256 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13258 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13259 $as_echo_n "(cached) " >&6
13261 lt_cv_prog_compiler_c_o_CXX=no
13262 $rm -r conftest 2>/dev/null
13266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13268 lt_compiler_flag="-o out/conftest2.$ac_objext"
13269 # Insert the option either (1) after the last *FLAGS variable, or
13270 # (2) before a word containing "conftest.", or (3) at the end.
13271 # Note that $ac_compile itself does not contain backslashes and begins
13272 # with a dollar sign (not a hyphen), so the echo should work correctly.
13273 lt_compile=`echo "$ac_compile" | $SED \
13274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13276 -e 's:$: $lt_compiler_flag:'`
13277 (eval echo "\"\$as_me:13277: $lt_compile\"" >&5)
13278 (eval "$lt_compile" 2>out/conftest.err)
13280 cat out/conftest.err >&5
13281 echo "$as_me:13281: \$? = $ac_status" >&5
13282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13284 # The compiler can only warn and ignore the option if not recognized
13285 # So say no if there are warnings
13286 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13289 lt_cv_prog_compiler_c_o_CXX=yes
13294 # SGI C++ compiler will create directory out/ii_files/ for
13295 # template instantiation
13296 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13297 $rm out/* && rmdir out
13303 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13307 hard_links="nottested"
13308 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13309 # do not overwrite the value of need_locks provided by the user
13310 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13311 $as_echo_n "checking if we can lock with hard links... " >&6; }
13314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13316 ln conftest.a conftest.b 2>&5 || hard_links=no
13317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13318 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13319 $as_echo "$hard_links" >&6; }
13320 if test "$hard_links" = no; then
13321 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13322 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13329 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13330 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13335 # If we're using GNU nm, then we don't want the "-C" option.
13336 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13337 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13338 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'
13340 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'
13344 export_symbols_cmds_CXX="$ltdll_cmds"
13347 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'
13350 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13353 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13355 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13356 $as_echo "$ld_shlibs_CXX" >&6; }
13357 test "$ld_shlibs_CXX" = no && can_build_shared=no
13360 # Do we need to explicitly link libc?
13362 case "x$archive_cmds_need_lc_CXX" in
13364 # Assume -lc should be added
13365 archive_cmds_need_lc_CXX=yes
13367 if test "$enable_shared" = yes && test "$GCC" = yes; then
13368 case $archive_cmds_CXX in
13370 # FIXME: we may have to deal with multi-command sequences.
13373 # Test whether the compiler implicitly links with -lc since on some
13374 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13375 # to ld, don't add -lc before -lgcc.
13376 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13377 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13382 (eval $ac_compile) 2>&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } 2>conftest.err; then
13388 libobjs=conftest.$ac_objext
13390 wl=$lt_prog_compiler_wl_CXX
13391 pic_flag=$lt_prog_compiler_pic_CXX
13397 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13398 allow_undefined_flag_CXX=
13399 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13400 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }
13405 archive_cmds_need_lc_CXX=no
13407 archive_cmds_need_lc_CXX=yes
13409 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13411 cat conftest.err 1>&5
13414 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13415 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13422 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13423 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13424 library_names_spec=
13425 libname_spec='lib$name'
13429 postuninstall_cmds=
13433 shlibpath_overrides_runpath=unknown
13435 dynamic_linker="$host_os ld.so"
13436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13438 need_lib_prefix=unknown
13439 hardcode_into_libs=no
13441 # when you set need_version to no, make sure it does not cause -set_version
13442 # flags to be left without arguments
13443 need_version=unknown
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13449 shlibpath_var=LIBPATH
13451 # AIX 3 has no versioning support, so we append a major version to the name.
13452 soname_spec='${libname}${release}${shared_ext}$major'
13459 hardcode_into_libs=yes
13460 if test "$host_cpu" = ia64; then
13461 # AIX 5 supports IA64
13462 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13465 # With GCC up to 2.95.x, collect2 would create an import file
13466 # for dependence libraries. The import file would start with
13467 # the line `#! .'. This would cause the generated library to
13468 # depend on `.', always an invalid library. This was fixed in
13469 # development snapshots of GCC prior to 3.0.
13471 aix4 | aix4.[01] | aix4.[01].*)
13472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13474 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13477 can_build_shared=no
13481 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13482 # soname into executable. Probably we can add versioning support to
13483 # collect2, so additional links can be useful in future.
13484 if test "$aix_use_runtimelinking" = yes; then
13485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13486 # instead of lib<name>.a to let people know that these are not
13487 # typical AIX shared libraries.
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 # We preserve .a as extension for shared libraries through AIX4.2
13491 # and later when we are not doing run time linking.
13492 library_names_spec='${libname}${release}.a $libname.a'
13493 soname_spec='${libname}${release}${shared_ext}$major'
13495 shlibpath_var=LIBPATH
13500 library_names_spec='$libname.ixlibrary $libname.a'
13501 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13502 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'
13506 library_names_spec='${libname}${shared_ext}'
13507 dynamic_linker="$host_os ld.so"
13508 shlibpath_var=LIBRARY_PATH
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13519 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13520 # the default ld.so.conf also contains /usr/contrib/lib and
13521 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13522 # libtool to hard-code these into programs
13525 cygwin* | mingw* | pw32*)
13526 version_type=windows
13531 case $GCC,$host_os in
13532 yes,cygwin* | yes,mingw* | yes,pw32*)
13533 library_names_spec='$libname.dll.a'
13534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13535 postinstall_cmds='base_file=`basename \${file}`~
13536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13537 dldir=$destdir/`dirname \$dlpath`~
13538 test -d \$dldir || mkdir -p \$dldir~
13539 $install_prog $dir/$dlname \$dldir/$dlname~
13540 chmod a+x \$dldir/$dlname'
13541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13542 dlpath=$dir/\$dldll~
13544 shlibpath_overrides_runpath=yes
13548 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13549 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13550 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13553 # MinGW DLLs use traditional 'lib' prefix
13554 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13555 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13556 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13557 # It is most probably a Windows format PATH printed by
13558 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13559 # path with ; separators, and with drive letters. We can handle the
13560 # drive letters (cygwin fileutils understands them), so leave them,
13561 # especially as we might pass files found there to a mingw objdump,
13562 # which wouldn't understand a cygwinified path. Ahh.
13563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13569 # pw32 DLLs use 'pw' prefix rather than 'lib'
13570 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13576 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13579 dynamic_linker='Win32 ld.exe'
13580 # FIXME: first we should search . and the directory the executable is in
13584 darwin* | rhapsody*)
13585 dynamic_linker="$host_os dyld"
13586 version_type=darwin
13589 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13590 soname_spec='${libname}${release}${major}$shared_ext'
13591 shlibpath_overrides_runpath=yes
13592 shlibpath_var=DYLD_LIBRARY_PATH
13593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13611 freebsd* | dragonfly*)
13612 # DragonFly does not have aout. When/if they implement a new
13613 # versioning mechanism, adjust this.
13614 if test -x /usr/bin/objformat; then
13615 objformat=`/usr/bin/objformat`
13618 freebsd[123]*) objformat=aout ;;
13619 *) objformat=elf ;;
13622 version_type=freebsd-$objformat
13623 case $version_type in
13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13634 shlibpath_var=LD_LIBRARY_PATH
13637 shlibpath_overrides_runpath=yes
13639 freebsd3.[01]* | freebsdelf3.[01]*)
13640 shlibpath_overrides_runpath=yes
13641 hardcode_into_libs=yes
13643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13645 shlibpath_overrides_runpath=no
13646 hardcode_into_libs=yes
13648 *) # from 4.6 on, and DragonFly
13649 shlibpath_overrides_runpath=yes
13650 hardcode_into_libs=yes
13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 hardcode_into_libs=yes
13665 hpux9* | hpux10* | hpux11*)
13666 # Give a soname corresponding to the major version so that dld.sl refuses to
13667 # link against other versions.
13674 hardcode_into_libs=yes
13675 dynamic_linker="$host_os dld.so"
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13679 soname_spec='${libname}${release}${shared_ext}$major'
13680 if test "X$HPUX_IA64_MODE" = X32; then
13681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13689 hardcode_into_libs=yes
13690 dynamic_linker="$host_os dld.sl"
13691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13694 soname_spec='${libname}${release}${shared_ext}$major'
13695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13700 dynamic_linker="$host_os dld.sl"
13701 shlibpath_var=SHLIB_PATH
13702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704 soname_spec='${libname}${release}${shared_ext}$major'
13707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13708 postinstall_cmds='chmod 555 $lib'
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13723 irix5* | irix6* | nonstopux*)
13725 nonstopux*) version_type=nonstopux ;;
13727 if test "$lt_cv_prog_gnu_ld" = yes; then
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13738 irix5* | nonstopux*)
13739 libsuff= shlibsuff=
13742 case $LD in # libtool.m4 will add one of these switches to LD
13743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13744 libsuff= shlibsuff= libmagic=32-bit;;
13745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13746 libsuff=32 shlibsuff=N32 libmagic=N32;;
13747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13749 *) libsuff= shlibsuff= libmagic=never-match;;
13753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13754 shlibpath_overrides_runpath=no
13755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13757 hardcode_into_libs=yes
13760 # No shared lib support for Linux oldld, aout, or coff.
13761 linux*oldld* | linux*aout* | linux*coff*)
13765 # This must be Linux ELF.
13766 linux* | k*bsd*-gnu)
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=no
13775 # This implies no fast_install, which is unacceptable.
13776 # Some rework will be needed to allow for fast_install
13777 # before this can be enabled.
13778 hardcode_into_libs=yes
13779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13782 # Append ld.so.conf contents to the search path
13783 if test -f /etc/ld.so.conf; then
13784 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' ' '`
13785 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13788 # We used to test for /lib/ld.so.1 and disable shared libraries on
13789 # powerpc, because MkLinux only supported shared libraries with the
13790 # GNU dynamic linker. Since this was broken with cross compilers,
13791 # most powerpc-linux boxes support dynamic linking these days and
13792 # people can always --disable-shared, the test was removed, and we
13793 # assume the GNU/Linux dynamic linker is in use.
13794 dynamic_linker='GNU/Linux ld.so'
13801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13804 dynamic_linker='NetBSD (a.out) ld.so'
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 dynamic_linker='NetBSD ld.elf_so'
13810 shlibpath_var=LD_LIBRARY_PATH
13811 shlibpath_overrides_runpath=yes
13812 hardcode_into_libs=yes
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13834 sys_lib_dlsearch_path_spec="/usr/lib"
13836 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13838 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13839 *) need_version=no ;;
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13846 openbsd2.[89] | openbsd2.[89].*)
13847 shlibpath_overrides_runpath=no
13850 shlibpath_overrides_runpath=yes
13854 shlibpath_overrides_runpath=yes
13859 libname_spec='$name'
13862 library_names_spec='$libname${shared_ext} $libname.a'
13863 dynamic_linker='OS/2 ld.exe'
13864 shlibpath_var=LIBPATH
13867 osf3* | osf4* | osf5*)
13871 soname_spec='${libname}${release}${shared_ext}$major'
13872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13873 shlibpath_var=LD_LIBRARY_PATH
13874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13890 hardcode_into_libs=yes
13891 # ldd complains unless libraries are executable
13892 postinstall_cmds='chmod +x $lib'
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=yes
13901 if test "$with_gnu_ld" = yes; then
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 case $host_vendor in
13914 shlibpath_overrides_runpath=no
13916 export_dynamic_flag_spec='${wl}-Blargedynsym'
13917 runpath_var=LD_RUN_PATH
13925 shlibpath_overrides_runpath=no
13926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13932 if test -d /usr/nec ;then
13934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13935 soname_spec='$libname${shared_ext}.$major'
13936 shlibpath_var=LD_LIBRARY_PATH
13940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13941 version_type=freebsd-elf
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13946 shlibpath_var=LD_LIBRARY_PATH
13947 hardcode_into_libs=yes
13948 if test "$with_gnu_ld" = yes; then
13949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13950 shlibpath_overrides_runpath=no
13952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13953 shlibpath_overrides_runpath=yes
13956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13960 sys_lib_dlsearch_path_spec='/usr/lib'
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13974 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13975 $as_echo "$dynamic_linker" >&6; }
13976 test "$dynamic_linker" = no && can_build_shared=no
13978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13979 $as_echo_n "(cached) " >&6
13981 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13985 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13986 $as_echo_n "(cached) " >&6
13988 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13994 if test "$GCC" = yes; then
13995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13998 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13999 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14000 hardcode_action_CXX=
14001 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14002 test -n "$runpath_var_CXX" || \
14003 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14005 # We can hardcode non-existant directories.
14006 if test "$hardcode_direct_CXX" != no &&
14007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14008 # have to relink, otherwise we might link with an installed library
14009 # when we should be linking with a yet-to-be-installed one
14010 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14011 test "$hardcode_minus_L_CXX" != no; then
14012 # Linking always hardcodes the temporary library directory.
14013 hardcode_action_CXX=relink
14015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14016 hardcode_action_CXX=immediate
14019 # We cannot hardcode anything, or else we can only hardcode existing
14021 hardcode_action_CXX=unsupported
14023 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14024 $as_echo "$hardcode_action_CXX" >&6; }
14026 if test "$hardcode_action_CXX" = relink; then
14027 # Fast installation is not supported
14028 enable_fast_install=no
14029 elif test "$shlibpath_overrides_runpath" = yes ||
14030 test "$enable_shared" = no; then
14031 # Fast installation is not necessary
14032 enable_fast_install=needless
14036 # The else clause should only fire when bootstrapping the
14037 # libtool distribution, otherwise you forgot to ship ltmain.sh
14038 # with your package, and you will get complaints that there are
14039 # no rules to generate ltmain.sh.
14040 if test -f "$ltmain"; then
14041 # See if we are running on zsh, and set the options which allow our commands through
14042 # without removal of \ escapes.
14043 if test -n "${ZSH_VERSION+set}" ; then
14044 setopt NO_GLOB_SUBST
14046 # Now quote all the things that may contain metacharacters while being
14047 # careful not to overquote the AC_SUBSTed values. We take copies of the
14048 # variables and quote the copies for generation of the libtool script.
14049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14053 deplibs_check_method reload_flag reload_cmds need_locks \
14054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14055 lt_cv_sys_global_symbol_to_c_name_address \
14056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14057 old_postinstall_cmds old_postuninstall_cmds \
14061 lt_prog_compiler_wl_CXX \
14062 lt_prog_compiler_pic_CXX \
14063 lt_prog_compiler_static_CXX \
14064 lt_prog_compiler_no_builtin_flag_CXX \
14065 export_dynamic_flag_spec_CXX \
14066 thread_safe_flag_spec_CXX \
14067 whole_archive_flag_spec_CXX \
14068 enable_shared_with_static_runtimes_CXX \
14069 old_archive_cmds_CXX \
14070 old_archive_from_new_cmds_CXX \
14071 predep_objects_CXX \
14072 postdep_objects_CXX \
14075 compiler_lib_search_path_CXX \
14076 compiler_lib_search_dirs_CXX \
14078 archive_expsym_cmds_CXX \
14079 postinstall_cmds_CXX \
14080 postuninstall_cmds_CXX \
14081 old_archive_from_expsyms_cmds_CXX \
14082 allow_undefined_flag_CXX \
14083 no_undefined_flag_CXX \
14084 export_symbols_cmds_CXX \
14085 hardcode_libdir_flag_spec_CXX \
14086 hardcode_libdir_flag_spec_ld_CXX \
14087 hardcode_libdir_separator_CXX \
14088 hardcode_automatic_CXX \
14090 module_expsym_cmds_CXX \
14091 lt_cv_prog_compiler_c_o_CXX \
14092 fix_srcfile_path_CXX \
14093 exclude_expsyms_CXX \
14094 include_expsyms_CXX; do
14097 old_archive_cmds_CXX | \
14098 old_archive_from_new_cmds_CXX | \
14099 archive_cmds_CXX | \
14100 archive_expsym_cmds_CXX | \
14101 module_cmds_CXX | \
14102 module_expsym_cmds_CXX | \
14103 old_archive_from_expsyms_cmds_CXX | \
14104 export_symbols_cmds_CXX | \
14105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14106 postinstall_cmds | postuninstall_cmds | \
14107 old_postinstall_cmds | old_postuninstall_cmds | \
14108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14109 # Double-quote double-evaled strings.
14110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14119 *'\$0 --fallback-echo"')
14120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14126 cat <<__EOF__ >> "$cfgfile"
14127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14131 # Shell to use when invoking shell scripts.
14134 # Whether or not to build shared libraries.
14135 build_libtool_libs=$enable_shared
14137 # Whether or not to build static libraries.
14138 build_old_libs=$enable_static
14140 # Whether or not to add -lc for building shared libraries.
14141 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14143 # Whether or not to disallow shared libs when runtime libs are static
14144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14146 # Whether or not to optimize for fast installation.
14147 fast_install=$enable_fast_install
14150 host_alias=$host_alias
14154 # The build system.
14155 build_alias=$build_alias
14159 # An echo program that does not interpret backslashes.
14164 AR_FLAGS=$lt_AR_FLAGS
14169 # LTCC compiler flags.
14170 LTCFLAGS=$lt_LTCFLAGS
14172 # A language-specific compiler.
14173 CC=$lt_compiler_CXX
14175 # Is the compiler the GNU C compiler?
14181 # The linker used to build libraries.
14184 # Whether we need hard or soft links.
14187 # A BSD-compatible nm program.
14190 # A symbol stripping program
14193 # Used to examine libraries when file_magic_cmd begins "file"
14194 MAGIC_CMD=$MAGIC_CMD
14196 # Used on cygwin: DLL creation program.
14199 # Used on cygwin: object dumper.
14202 # Used on cygwin: assembler.
14205 # The name of the directory that contains temporary libtool files.
14208 # How to create reloadable object files.
14209 reload_flag=$lt_reload_flag
14210 reload_cmds=$lt_reload_cmds
14212 # How to pass a linker flag through the compiler.
14213 wl=$lt_lt_prog_compiler_wl_CXX
14215 # Object file suffix (normally "o").
14216 objext="$ac_objext"
14218 # Old archive suffix (normally "a").
14221 # Shared library suffix (normally ".so").
14222 shrext_cmds='$shrext_cmds'
14224 # Executable file suffix (normally "").
14227 # Additional compiler flags for building library objects.
14228 pic_flag=$lt_lt_prog_compiler_pic_CXX
14231 # What is the maximum length of a command?
14232 max_cmd_len=$lt_cv_sys_max_cmd_len
14234 # Does compiler simultaneously support -c and -o options?
14235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14237 # Must we lock files when doing compilation?
14238 need_locks=$lt_need_locks
14240 # Do we need the lib prefix for modules?
14241 need_lib_prefix=$need_lib_prefix
14243 # Do we need a version for libraries?
14244 need_version=$need_version
14246 # Whether dlopen is supported.
14247 dlopen_support=$enable_dlopen
14249 # Whether dlopen of programs is supported.
14250 dlopen_self=$enable_dlopen_self
14252 # Whether dlopen of statically linked programs is supported.
14253 dlopen_self_static=$enable_dlopen_self_static
14255 # Compiler flag to prevent dynamic linking.
14256 link_static_flag=$lt_lt_prog_compiler_static_CXX
14258 # Compiler flag to turn off builtin functions.
14259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14261 # Compiler flag to allow reflexive dlopens.
14262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14264 # Compiler flag to generate shared objects directly from archives.
14265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14267 # Compiler flag to generate thread-safe objects.
14268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14270 # Library versioning type.
14271 version_type=$version_type
14273 # Format of library name prefix.
14274 libname_spec=$lt_libname_spec
14276 # List of archive names. First name is the real one, the rest are links.
14277 # The last name is the one that the linker finds with -lNAME.
14278 library_names_spec=$lt_library_names_spec
14280 # The coded name of the library, if different from the real name.
14281 soname_spec=$lt_soname_spec
14283 # Commands used to build and install an old-style archive.
14285 old_archive_cmds=$lt_old_archive_cmds_CXX
14286 old_postinstall_cmds=$lt_old_postinstall_cmds
14287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14289 # Create an old-style archive from a shared archive.
14290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14292 # Create a temporary old-style archive to link instead of a shared archive.
14293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14295 # Commands used to build and install a shared archive.
14296 archive_cmds=$lt_archive_cmds_CXX
14297 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14298 postinstall_cmds=$lt_postinstall_cmds
14299 postuninstall_cmds=$lt_postuninstall_cmds
14301 # Commands used to build a loadable module (assumed same as above if empty)
14302 module_cmds=$lt_module_cmds_CXX
14303 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14305 # Commands to strip libraries.
14306 old_striplib=$lt_old_striplib
14307 striplib=$lt_striplib
14309 # Dependencies to place before the objects being linked to create a
14311 predep_objects=$lt_predep_objects_CXX
14313 # Dependencies to place after the objects being linked to create a
14315 postdep_objects=$lt_postdep_objects_CXX
14317 # Dependencies to place before the objects being linked to create a
14319 predeps=$lt_predeps_CXX
14321 # Dependencies to place after the objects being linked to create a
14323 postdeps=$lt_postdeps_CXX
14325 # The directories searched by this compiler when creating a shared
14327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14329 # The library search path used internally by the compiler when linking
14330 # a shared library.
14331 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14333 # Method to check whether dependent libraries are shared objects.
14334 deplibs_check_method=$lt_deplibs_check_method
14336 # Command to use when deplibs_check_method == file_magic.
14337 file_magic_cmd=$lt_file_magic_cmd
14339 # Flag that allows shared libraries with undefined symbols to be built.
14340 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14342 # Flag that forces no undefined symbols.
14343 no_undefined_flag=$lt_no_undefined_flag_CXX
14345 # Commands used to finish a libtool library installation in a directory.
14346 finish_cmds=$lt_finish_cmds
14348 # Same as above, but a single script fragment to be evaled but not shown.
14349 finish_eval=$lt_finish_eval
14351 # Take the output of nm and produce a listing of raw symbols and C names.
14352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14354 # Transform the output of nm in a proper C declaration
14355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14357 # Transform the output of nm in a C name address pair
14358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14360 # This is the shared library runtime path variable.
14361 runpath_var=$runpath_var
14363 # This is the shared library path variable.
14364 shlibpath_var=$shlibpath_var
14366 # Is shlibpath searched before the hard-coded library search path?
14367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14369 # How to hardcode a shared library path into an executable.
14370 hardcode_action=$hardcode_action_CXX
14372 # Whether we should hardcode library paths into libraries.
14373 hardcode_into_libs=$hardcode_into_libs
14375 # Flag to hardcode \$libdir into a binary during linking.
14376 # This must work even if \$libdir does not exist.
14377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14379 # If ld is used when linking, flag to hardcode \$libdir into
14380 # a binary during linking. This must work even if \$libdir does
14382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14384 # Whether we need a single -rpath flag with a separated argument.
14385 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14388 # resulting binary.
14389 hardcode_direct=$hardcode_direct_CXX
14391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14392 # resulting binary.
14393 hardcode_minus_L=$hardcode_minus_L_CXX
14395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14396 # the resulting binary.
14397 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14399 # Set to yes if building a shared library automatically hardcodes DIR into the library
14400 # and all subsequent libraries and executables linked against it.
14401 hardcode_automatic=$hardcode_automatic_CXX
14403 # Variables whose values should be saved in libtool wrapper scripts and
14404 # restored at relink time.
14405 variables_saved_for_relink="$variables_saved_for_relink"
14407 # Whether libtool must link a program against all its dependency libraries.
14408 link_all_deplibs=$link_all_deplibs_CXX
14410 # Compile-time system search path for libraries
14411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14413 # Run-time system search path for libraries
14414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14416 # Fix the shell variable \$srcfile for the compiler.
14417 fix_srcfile_path=$lt_fix_srcfile_path
14419 # Set to yes if exported symbols are required.
14420 always_export_symbols=$always_export_symbols_CXX
14422 # The commands to list exported symbols.
14423 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14425 # The commands to extract the exported symbol list from a shared archive.
14426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14428 # Symbols that should not be listed in the preloaded symbols.
14429 exclude_expsyms=$lt_exclude_expsyms_CXX
14431 # Symbols that must always be exported.
14432 include_expsyms=$lt_include_expsyms_CXX
14434 # ### END LIBTOOL TAG CONFIG: $tagname
14440 # If there is no Makefile yet, we rely on a make rule to execute
14441 # `config.status --recheck' to rerun these tests and create the
14442 # libtool script then.
14443 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14444 if test -f "$ltmain_in"; then
14445 test -f Makefile && make "$ltmain"
14451 ac_cpp='$CPP $CPPFLAGS'
14452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14460 with_gnu_ldcxx=$with_gnu_ld
14461 with_gnu_ld=$lt_save_with_gnu_ld
14462 lt_cv_path_LDCXX=$lt_cv_path_LD
14463 lt_cv_path_LD=$lt_save_path_LD
14464 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14465 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14473 if test -n "$F77" && test "X$F77" != "Xno"; then
14476 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14477 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14481 archive_cmds_need_lc_F77=no
14482 allow_undefined_flag_F77=
14483 always_export_symbols_F77=no
14484 archive_expsym_cmds_F77=
14485 export_dynamic_flag_spec_F77=
14486 hardcode_direct_F77=no
14487 hardcode_libdir_flag_spec_F77=
14488 hardcode_libdir_flag_spec_ld_F77=
14489 hardcode_libdir_separator_F77=
14490 hardcode_minus_L_F77=no
14491 hardcode_automatic_F77=no
14493 module_expsym_cmds_F77=
14494 link_all_deplibs_F77=unknown
14495 old_archive_cmds_F77=$old_archive_cmds
14496 no_undefined_flag_F77=
14497 whole_archive_flag_spec_F77=
14498 enable_shared_with_static_runtimes_F77=no
14500 # Source file extension for f77 test sources.
14503 # Object file extension for compiled f77 test sources.
14507 # Code to be used in simple compile tests
14508 lt_simple_compile_test_code="\
14514 # Code to be used in simple link tests
14515 lt_simple_link_test_code="\
14520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14522 # If no C compiler was specified, use CC.
14525 # If no C compiler flags were specified, use CFLAGS.
14526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14528 # Allow CC to be a program name with arguments.
14532 # save warnings/boilerplate of simple test code
14533 ac_outfile=conftest.$ac_objext
14534 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14536 _lt_compiler_boilerplate=`cat conftest.err`
14539 ac_outfile=conftest.$ac_objext
14540 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14542 _lt_linker_boilerplate=`cat conftest.err`
14546 # Allow CC to be a program name with arguments.
14551 for cc_temp in $compiler""; do
14553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14562 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14563 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14564 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14565 $as_echo "$can_build_shared" >&6; }
14567 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14568 $as_echo_n "checking whether to build shared libraries... " >&6; }
14569 test "$can_build_shared" = "no" && enable_shared=no
14571 # On AIX, shared libraries and static libraries use the same namespace, and
14572 # are all built from PIC.
14575 test "$enable_shared" = yes && enable_static=no
14576 if test -n "$RANLIB"; then
14577 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14578 postinstall_cmds='$RANLIB $lib'
14582 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14583 test "$enable_shared" = yes && enable_static=no
14587 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14588 $as_echo "$enable_shared" >&6; }
14590 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14591 $as_echo_n "checking whether to build static libraries... " >&6; }
14592 # Make sure either enable_shared or enable_static is yes.
14593 test "$enable_shared" = yes || enable_static=yes
14594 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14595 $as_echo "$enable_static" >&6; }
14600 lt_prog_compiler_wl_F77=
14601 lt_prog_compiler_pic_F77=
14602 lt_prog_compiler_static_F77=
14604 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14607 if test "$GCC" = yes; then
14608 lt_prog_compiler_wl_F77='-Wl,'
14609 lt_prog_compiler_static_F77='-static'
14613 # All AIX code is PIC.
14614 if test "$host_cpu" = ia64; then
14615 # AIX 5 now supports IA64 processor
14616 lt_prog_compiler_static_F77='-Bstatic'
14621 # FIXME: we need at least 68020 code to build shared libraries, but
14622 # adding the `-m68020' flag to GCC prevents building anything better,
14624 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14628 # PIC is the default for these OSes.
14631 mingw* | cygwin* | pw32* | os2*)
14632 # This hack is so that the source file can tell whether it is being
14633 # built for inclusion in a dll (and should export symbols for example).
14634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14635 # (--disable-auto-import) libraries
14636 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14639 darwin* | rhapsody*)
14640 # PIC is the default on this platform
14641 # Common symbols not allowed in MH_DYLIB files
14642 lt_prog_compiler_pic_F77='-fno-common'
14646 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14647 # Instead, we relocate shared libraries at runtime.
14651 # Just because we use GCC doesn't mean we suddenly get shared libraries
14652 # on systems that don't support them.
14653 lt_prog_compiler_can_build_shared_F77=no
14658 if test -d /usr/nec; then
14659 lt_prog_compiler_pic_F77=-Kconform_pic
14664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14665 # not for PA HP-UX.
14671 lt_prog_compiler_pic_F77='-fPIC'
14677 lt_prog_compiler_pic_F77='-fPIC'
14681 # PORTME Check for flag to pass linker flags through the system compiler.
14684 lt_prog_compiler_wl_F77='-Wl,'
14685 if test "$host_cpu" = ia64; then
14686 # AIX 5 now supports IA64 processor
14687 lt_prog_compiler_static_F77='-Bstatic'
14689 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14693 # PIC is the default on this platform
14694 # Common symbols not allowed in MH_DYLIB files
14695 case $cc_basename in
14697 lt_prog_compiler_pic_F77='-qnocommon'
14698 lt_prog_compiler_wl_F77='-Wl,'
14703 mingw* | cygwin* | pw32* | os2*)
14704 # This hack is so that the source file can tell whether it is being
14705 # built for inclusion in a dll (and should export symbols for example).
14706 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14709 hpux9* | hpux10* | hpux11*)
14710 lt_prog_compiler_wl_F77='-Wl,'
14711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14712 # not for PA HP-UX.
14718 lt_prog_compiler_pic_F77='+Z'
14721 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14722 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14725 irix5* | irix6* | nonstopux*)
14726 lt_prog_compiler_wl_F77='-Wl,'
14727 # PIC (with -KPIC) is the default.
14728 lt_prog_compiler_static_F77='-non_shared'
14732 lt_prog_compiler_pic_F77='-KPIC'
14733 lt_prog_compiler_static_F77='-Bstatic'
14736 linux* | k*bsd*-gnu)
14737 case $cc_basename in
14739 lt_prog_compiler_wl_F77='-Wl,'
14740 lt_prog_compiler_pic_F77='-KPIC'
14741 lt_prog_compiler_static_F77='-static'
14743 pgcc* | pgf77* | pgf90* | pgf95*)
14744 # Portland Group compilers (*not* the Pentium gcc compiler,
14745 # which looks to be a dead project)
14746 lt_prog_compiler_wl_F77='-Wl,'
14747 lt_prog_compiler_pic_F77='-fpic'
14748 lt_prog_compiler_static_F77='-Bstatic'
14751 lt_prog_compiler_wl_F77='-Wl,'
14752 # All Alpha code is PIC.
14753 lt_prog_compiler_static_F77='-non_shared'
14756 case `$CC -V 2>&1 | sed 5q` in
14759 lt_prog_compiler_pic_F77='-KPIC'
14760 lt_prog_compiler_static_F77='-Bstatic'
14761 lt_prog_compiler_wl_F77='-Wl,'
14764 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14765 lt_prog_compiler_pic_F77='-KPIC'
14766 lt_prog_compiler_static_F77='-Bstatic'
14767 lt_prog_compiler_wl_F77=''
14774 osf3* | osf4* | osf5*)
14775 lt_prog_compiler_wl_F77='-Wl,'
14776 # All OSF/1 code is PIC.
14777 lt_prog_compiler_static_F77='-non_shared'
14781 lt_prog_compiler_static_F77='-non_shared'
14785 lt_prog_compiler_pic_F77='-KPIC'
14786 lt_prog_compiler_static_F77='-Bstatic'
14787 case $cc_basename in
14788 f77* | f90* | f95*)
14789 lt_prog_compiler_wl_F77='-Qoption ld ';;
14791 lt_prog_compiler_wl_F77='-Wl,';;
14796 lt_prog_compiler_wl_F77='-Qoption ld '
14797 lt_prog_compiler_pic_F77='-PIC'
14798 lt_prog_compiler_static_F77='-Bstatic'
14801 sysv4 | sysv4.2uw2* | sysv4.3*)
14802 lt_prog_compiler_wl_F77='-Wl,'
14803 lt_prog_compiler_pic_F77='-KPIC'
14804 lt_prog_compiler_static_F77='-Bstatic'
14808 if test -d /usr/nec ;then
14809 lt_prog_compiler_pic_F77='-Kconform_pic'
14810 lt_prog_compiler_static_F77='-Bstatic'
14814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14815 lt_prog_compiler_wl_F77='-Wl,'
14816 lt_prog_compiler_pic_F77='-KPIC'
14817 lt_prog_compiler_static_F77='-Bstatic'
14821 lt_prog_compiler_wl_F77='-Wl,'
14822 lt_prog_compiler_can_build_shared_F77=no
14826 lt_prog_compiler_pic_F77='-pic'
14827 lt_prog_compiler_static_F77='-Bstatic'
14831 lt_prog_compiler_can_build_shared_F77=no
14836 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14837 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14840 # Check to make sure the PIC flag actually works.
14842 if test -n "$lt_prog_compiler_pic_F77"; then
14844 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14846 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14847 $as_echo_n "(cached) " >&6
14849 lt_cv_prog_compiler_pic_works_F77=no
14850 ac_outfile=conftest.$ac_objext
14851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14852 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14853 # Insert the option either (1) after the last *FLAGS variable, or
14854 # (2) before a word containing "conftest.", or (3) at the end.
14855 # Note that $ac_compile itself does not contain backslashes and begins
14856 # with a dollar sign (not a hyphen), so the echo should work correctly.
14857 # The option is referenced via a variable to avoid confusing sed.
14858 lt_compile=`echo "$ac_compile" | $SED \
14859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14861 -e 's:$: $lt_compiler_flag:'`
14862 (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
14863 (eval "$lt_compile" 2>conftest.err)
14865 cat conftest.err >&5
14866 echo "$as_me:14866: \$? = $ac_status" >&5
14867 if (exit $ac_status) && test -s "$ac_outfile"; then
14868 # The compiler can only warn and ignore the option if not recognized
14869 # So say no if there are warnings other than the usual output.
14870 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14873 lt_cv_prog_compiler_pic_works_F77=yes
14879 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14880 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14882 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14883 case $lt_prog_compiler_pic_F77 in
14885 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14888 lt_prog_compiler_pic_F77=
14889 lt_prog_compiler_can_build_shared_F77=no
14894 # For platforms which do not support PIC, -DPIC is meaningless:
14896 lt_prog_compiler_pic_F77=
14899 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14904 # Check to make sure the static flag actually works.
14906 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14907 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14909 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14910 $as_echo_n "(cached) " >&6
14912 lt_cv_prog_compiler_static_works_F77=no
14913 save_LDFLAGS="$LDFLAGS"
14914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14917 # The linker can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test -s conftest.err; then
14920 # Append any errors to the config.log.
14921 cat conftest.err 1>&5
14922 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if diff conftest.exp conftest.er2 >/dev/null; then
14925 lt_cv_prog_compiler_static_works_F77=yes
14928 lt_cv_prog_compiler_static_works_F77=yes
14932 LDFLAGS="$save_LDFLAGS"
14935 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14936 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14938 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14941 lt_prog_compiler_static_F77=
14945 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14946 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14947 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14948 $as_echo_n "(cached) " >&6
14950 lt_cv_prog_compiler_c_o_F77=no
14951 $rm -r conftest 2>/dev/null
14955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14957 lt_compiler_flag="-o out/conftest2.$ac_objext"
14958 # Insert the option either (1) after the last *FLAGS variable, or
14959 # (2) before a word containing "conftest.", or (3) at the end.
14960 # Note that $ac_compile itself does not contain backslashes and begins
14961 # with a dollar sign (not a hyphen), so the echo should work correctly.
14962 lt_compile=`echo "$ac_compile" | $SED \
14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965 -e 's:$: $lt_compiler_flag:'`
14966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
14967 (eval "$lt_compile" 2>out/conftest.err)
14969 cat out/conftest.err >&5
14970 echo "$as_me:14970: \$? = $ac_status" >&5
14971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973 # The compiler can only warn and ignore the option if not recognized
14974 # So say no if there are warnings
14975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14978 lt_cv_prog_compiler_c_o_F77=yes
14983 # SGI C++ compiler will create directory out/ii_files/ for
14984 # template instantiation
14985 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14986 $rm out/* && rmdir out
14992 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14993 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14996 hard_links="nottested"
14997 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14998 # do not overwrite the value of need_locks provided by the user
14999 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15000 $as_echo_n "checking if we can lock with hard links... " >&6; }
15003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15005 ln conftest.a conftest.b 2>&5 || hard_links=no
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15008 $as_echo "$hard_links" >&6; }
15009 if test "$hard_links" = no; then
15010 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15018 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15019 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15022 allow_undefined_flag_F77=
15023 enable_shared_with_static_runtimes_F77=no
15025 archive_expsym_cmds_F77=
15026 old_archive_From_new_cmds_F77=
15027 old_archive_from_expsyms_cmds_F77=
15028 export_dynamic_flag_spec_F77=
15029 whole_archive_flag_spec_F77=
15030 thread_safe_flag_spec_F77=
15031 hardcode_libdir_flag_spec_F77=
15032 hardcode_libdir_flag_spec_ld_F77=
15033 hardcode_libdir_separator_F77=
15034 hardcode_direct_F77=no
15035 hardcode_minus_L_F77=no
15036 hardcode_shlibpath_var_F77=unsupported
15037 link_all_deplibs_F77=unknown
15038 hardcode_automatic_F77=no
15040 module_expsym_cmds_F77=
15041 always_export_symbols_F77=no
15042 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15043 # include_expsyms should be a list of space-separated symbols to be *always*
15044 # included in the symbol list
15045 include_expsyms_F77=
15046 # exclude_expsyms can be an extended regexp of symbols to exclude
15047 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15048 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15049 # as well as any symbol that contains `d'.
15050 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15051 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15052 # platforms (ab)use it in PIC code, but their linkers get confused if
15053 # the symbol is explicitly referenced. Since portable code cannot
15054 # rely on this symbol name, it's probably fine to never include it in
15055 # preloaded symbol tables.
15056 # Exclude shared library initialization/finalization symbols.
15057 extract_expsyms_cmds=
15058 # Just being paranoid about ensuring that cc_basename is set.
15059 for cc_temp in $compiler""; do
15061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15067 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15070 cygwin* | mingw* | pw32*)
15071 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15072 # When not using gcc, we currently assume that we are using
15073 # Microsoft Visual C++.
15074 if test "$GCC" != yes; then
15079 # we just hope/assume this is gcc and not c89 (= MSVC++)
15088 if test "$with_gnu_ld" = yes; then
15089 # If archive_cmds runs LD, not CC, wlarc should be empty
15092 # Set some defaults for GNU ld with shared library support. These
15093 # are reset later if shared libraries are not supported. Putting them
15094 # here allows them to be overridden if necessary.
15095 runpath_var=LD_RUN_PATH
15096 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15097 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15098 # ancient GNU ld didn't support --whole-archive et. al.
15099 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15100 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15102 whole_archive_flag_spec_F77=
15104 supports_anon_versioning=no
15105 case `$LD -v 2>/dev/null` in
15106 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15107 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15108 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15109 *\ 2.11.*) ;; # other 2.11 versions
15110 *) supports_anon_versioning=yes ;;
15113 # See if GNU ld supports shared libraries.
15116 # On AIX/PPC, the GNU linker is very broken
15117 if test "$host_cpu" != ia64; then
15121 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15122 *** to be unable to reliably create shared libraries on AIX.
15123 *** Therefore, libtool is disabling shared libraries support. If you
15124 *** really care for shared libraries, you may want to modify your PATH
15125 *** so that a non-GNU linker is found, and then restart.
15132 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)'
15133 hardcode_libdir_flag_spec_F77='-L$libdir'
15134 hardcode_minus_L_F77=yes
15136 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15137 # that the semantics of dynamic libraries on AmigaOS, at least up
15138 # to version 4, is to share data among multiple programs linked
15139 # with the same dynamic library. Since this doesn't match the
15140 # behavior of shared libraries on other platforms, we can't use
15146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15147 allow_undefined_flag_F77=unsupported
15148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15149 # support --undefined. This deserves some investigation. FIXME
15150 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156 cygwin* | mingw* | pw32*)
15157 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15158 # as there is no search path for DLLs.
15159 hardcode_libdir_flag_spec_F77='-L$libdir'
15160 allow_undefined_flag_F77=unsupported
15161 always_export_symbols_F77=no
15162 enable_shared_with_static_runtimes_F77=yes
15163 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15167 # If the export-symbols file already is a .def file (1st line
15168 # is EXPORTS), use it as is; otherwise, prepend...
15169 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15170 cp $export_symbols $output_objdir/$soname.def;
15172 echo EXPORTS > $output_objdir/$soname.def;
15173 cat $export_symbols >> $output_objdir/$soname.def;
15175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15182 hardcode_direct_F77=no
15183 hardcode_shlibpath_var_F77=no
15184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15185 export_dynamic_flag_spec_F77='${wl}-E'
15186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15187 # Instead, shared libraries are loaded at an image base (0x10000000 by
15188 # default) and relocated if they conflict, which is a slow very memory
15189 # consuming and fragmenting process. To avoid this, we pick a random,
15190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15192 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'
15193 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'
15196 gnu* | linux* | k*bsd*-gnu)
15197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15199 case $cc_basename,$host_cpu in
15200 pgcc*) # Portland Group C compiler
15201 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'
15202 tmp_addflag=' $pic_flag'
15204 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15205 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'
15206 tmp_addflag=' $pic_flag -Mnomain' ;;
15207 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15208 tmp_addflag=' -i_dynamic' ;;
15209 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15210 tmp_addflag=' -i_dynamic -nofor_main' ;;
15211 ifc* | ifort*) # Intel Fortran compiler
15212 tmp_addflag=' -nofor_main' ;;
15214 case `$CC -V 2>&1 | sed 5q` in
15215 *Sun\ C*) # Sun C 5.9
15216 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'
15217 tmp_sharedflag='-G' ;;
15218 *Sun\ F*) # Sun Fortran 8.3
15219 tmp_sharedflag='-G' ;;
15221 tmp_sharedflag='-shared' ;;
15223 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225 if test $supports_anon_versioning = yes; then
15226 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15228 $echo "local: *; };" >> $output_objdir/$libname.ver~
15229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15238 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15252 *** create shared libraries on Solaris systems. Therefore, libtool
15253 *** is disabling shared libraries support. We urge you to upgrade GNU
15254 *** binutils to release 2.9.1 or newer. Another option is to modify
15255 *** your PATH or compiler configuration so that the native linker is
15256 *** used, and then restart.
15259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15261 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15268 case `$LD -v 2>&1` in
15269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15274 *** reliably create shared libraries on SCO systems. Therefore, libtool
15275 *** is disabling shared libraries support. We urge you to upgrade GNU
15276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15277 *** your PATH or compiler configuration so that the native linker is
15278 *** used, and then restart.
15283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15284 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15295 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15297 hardcode_direct_F77=yes
15298 hardcode_shlibpath_var_F77=no
15302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15311 if test "$ld_shlibs_F77" = no; then
15313 hardcode_libdir_flag_spec_F77=
15314 export_dynamic_flag_spec_F77=
15315 whole_archive_flag_spec_F77=
15318 # PORTME fill in a description of your system's linker (not GNU ld)
15321 allow_undefined_flag_F77=unsupported
15322 always_export_symbols_F77=yes
15323 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'
15324 # Note: this linker hardcodes the directories in LIBPATH if there
15325 # are no directories specified by -L.
15326 hardcode_minus_L_F77=yes
15327 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15328 # Neither direct hardcoding nor static linking is supported with a
15330 hardcode_direct_F77=unsupported
15335 if test "$host_cpu" = ia64; then
15336 # On IA64, the linker does run time linking by default, so we don't
15337 # have to do anything special.
15338 aix_use_runtimelinking=no
15339 exp_sym_flag='-Bexport'
15342 # If we're using GNU nm, then we don't want the "-C" option.
15343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15345 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'
15347 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'
15349 aix_use_runtimelinking=no
15351 # Test if we are trying to use run time linking or normal
15352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15353 # need to do runtime linking.
15354 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15355 for ld_flag in $LDFLAGS; do
15356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15357 aix_use_runtimelinking=yes
15364 exp_sym_flag='-bexport'
15365 no_entry_flag='-bnoentry'
15368 # When large executables or shared objects are built, AIX ld can
15369 # have problems creating the table of contents. If linking a library
15370 # or program results in "error TOC overflow" add -mminimal-toc to
15371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15374 archive_cmds_F77=''
15375 hardcode_direct_F77=yes
15376 hardcode_libdir_separator_F77=':'
15377 link_all_deplibs_F77=yes
15379 if test "$GCC" = yes; then
15380 case $host_os in aix4.[012]|aix4.[012].*)
15381 # We only want to do this on AIX 4.2 and lower, the check
15382 # below for broken collect2 doesn't work under 4.3+
15383 collect2name=`${CC} -print-prog-name=collect2`
15384 if test -f "$collect2name" && \
15385 strings "$collect2name" | grep resolve_lib_name >/dev/null
15387 # We have reworked collect2
15390 # We have old collect2
15391 hardcode_direct_F77=unsupported
15392 # It fails to find uninstalled libraries when the uninstalled
15393 # path is not listed in the libpath. Setting hardcode_minus_L
15394 # to unsupported forces relinking
15395 hardcode_minus_L_F77=yes
15396 hardcode_libdir_flag_spec_F77='-L$libdir'
15397 hardcode_libdir_separator_F77=
15401 shared_flag='-shared'
15402 if test "$aix_use_runtimelinking" = yes; then
15403 shared_flag="$shared_flag "'${wl}-G'
15407 if test "$host_cpu" = ia64; then
15408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15409 # chokes on -Wl,-G. The following line is correct:
15412 if test "$aix_use_runtimelinking" = yes; then
15413 shared_flag='${wl}-G'
15415 shared_flag='${wl}-bM:SRE'
15420 # It seems that -bexpall does not export symbols beginning with
15421 # underscore (_), so it is better to generate a list of symbols to export.
15422 always_export_symbols_F77=yes
15423 if test "$aix_use_runtimelinking" = yes; then
15424 # Warning - without using the other runtime loading flags (-brtl),
15425 # -berok will link without error, but may produce a broken library.
15426 allow_undefined_flag_F77='-berok'
15427 # Determine the default libpath from the value encoded in an empty executable.
15428 cat >conftest.$ac_ext <<_ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440 $as_echo "$ac_try_echo") >&5
15441 (eval "$ac_link") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_f77_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest$ac_exeext && {
15451 test "$cross_compiling" = yes ||
15452 $as_test_x conftest$ac_exeext
15455 lt_aix_libpath_sed='
15456 /Import File Strings/,/^$/ {
15462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15463 # Check for a 64-bit object if we didn't find anything.
15464 if test -z "$aix_libpath"; then
15465 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15468 $as_echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15474 rm -rf conftest.dSYM
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476 conftest$ac_exeext conftest.$ac_ext
15477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15480 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"
15482 if test "$host_cpu" = ia64; then
15483 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15484 allow_undefined_flag_F77="-z nodefs"
15485 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"
15487 # Determine the default libpath from the value encoded in an empty executable.
15488 cat >conftest.$ac_ext <<_ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15500 $as_echo "$ac_try_echo") >&5
15501 (eval "$ac_link") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_f77_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext && {
15511 test "$cross_compiling" = yes ||
15512 $as_test_x conftest$ac_exeext
15515 lt_aix_libpath_sed='
15516 /Import File Strings/,/^$/ {
15522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15523 # Check for a 64-bit object if we didn't find anything.
15524 if test -z "$aix_libpath"; then
15525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15528 $as_echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15534 rm -rf conftest.dSYM
15535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15536 conftest$ac_exeext conftest.$ac_ext
15537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15539 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15540 # Warning - without using the other run time loading flags,
15541 # -berok will link without error, but may produce a broken library.
15542 no_undefined_flag_F77=' ${wl}-bernotok'
15543 allow_undefined_flag_F77=' ${wl}-berok'
15544 # Exported symbols can be pulled into shared objects from archives
15545 whole_archive_flag_spec_F77='$convenience'
15546 archive_cmds_need_lc_F77=yes
15547 # This is similar to how AIX traditionally builds its shared libraries.
15548 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'
15554 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)'
15555 hardcode_libdir_flag_spec_F77='-L$libdir'
15556 hardcode_minus_L_F77=yes
15557 # see comment about different semantics on the GNU ld section
15562 export_dynamic_flag_spec_F77=-rdynamic
15565 cygwin* | mingw* | pw32*)
15566 # When not using gcc, we currently assume that we are using
15567 # Microsoft Visual C++.
15568 # hardcode_libdir_flag_spec is actually meaningless, as there is
15569 # no search path for DLLs.
15570 hardcode_libdir_flag_spec_F77=' '
15571 allow_undefined_flag_F77=unsupported
15572 # Tell ltmain to make .lib files, not .a files.
15574 # Tell ltmain to make .dll files, not .so files.
15576 # FIXME: Setting linknames here is a bad hack.
15577 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15578 # The linker will automatically build a .lib file if we build a DLL.
15579 old_archive_From_new_cmds_F77='true'
15580 # FIXME: Should let the user specify the lib program.
15581 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15582 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15583 enable_shared_with_static_runtimes_F77=yes
15586 darwin* | rhapsody*)
15588 rhapsody* | darwin1.[012])
15589 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15593 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15595 case ${MACOSX_DEPLOYMENT_TARGET} in
15597 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15600 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15606 archive_cmds_need_lc_F77=no
15607 hardcode_direct_F77=no
15608 hardcode_automatic_F77=yes
15609 hardcode_shlibpath_var_F77=unsupported
15610 whole_archive_flag_spec_F77=''
15611 link_all_deplibs_F77=yes
15612 if test "$GCC" = yes ; then
15613 output_verbose_link_cmd='echo'
15614 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}"
15615 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15616 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}"
15617 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}"
15619 case $cc_basename in
15621 output_verbose_link_cmd='echo'
15622 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15623 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15625 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}'
15626 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}'
15636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637 hardcode_libdir_flag_spec_F77='-L$libdir'
15638 hardcode_shlibpath_var_F77=no
15645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15646 # support. Future versions do this automatically, but an explicit c++rt0.o
15647 # does not break anything, and helps significantly (at the cost of a little
15650 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15651 hardcode_libdir_flag_spec_F77='-R$libdir'
15652 hardcode_direct_F77=yes
15653 hardcode_shlibpath_var_F77=no
15656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15659 hardcode_direct_F77=yes
15660 hardcode_minus_L_F77=yes
15661 hardcode_shlibpath_var_F77=no
15664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15665 freebsd* | dragonfly*)
15666 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15667 hardcode_libdir_flag_spec_F77='-R$libdir'
15668 hardcode_direct_F77=yes
15669 hardcode_shlibpath_var_F77=no
15673 if test "$GCC" = yes; then
15674 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'
15676 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'
15678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15679 hardcode_libdir_separator_F77=:
15680 hardcode_direct_F77=yes
15682 # hardcode_minus_L: Not really in the search PATH,
15683 # but as the default location of the library.
15684 hardcode_minus_L_F77=yes
15685 export_dynamic_flag_spec_F77='${wl}-E'
15689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15690 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15694 if test "$with_gnu_ld" = no; then
15695 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15696 hardcode_libdir_separator_F77=:
15698 hardcode_direct_F77=yes
15699 export_dynamic_flag_spec_F77='${wl}-E'
15701 # hardcode_minus_L: Not really in the search PATH,
15702 # but as the default location of the library.
15703 hardcode_minus_L_F77=yes
15708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15711 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15733 if test "$with_gnu_ld" = no; then
15734 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15735 hardcode_libdir_separator_F77=:
15739 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15740 hardcode_direct_F77=no
15741 hardcode_shlibpath_var_F77=no
15744 hardcode_direct_F77=yes
15745 export_dynamic_flag_spec_F77='${wl}-E'
15747 # hardcode_minus_L: Not really in the search PATH,
15748 # but as the default location of the library.
15749 hardcode_minus_L_F77=yes
15755 irix5* | irix6* | nonstopux*)
15756 if test "$GCC" = yes; then
15757 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'
15759 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'
15760 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15762 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator_F77=:
15764 link_all_deplibs_F77=yes
15768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15769 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15771 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15773 hardcode_libdir_flag_spec_F77='-R$libdir'
15774 hardcode_direct_F77=yes
15775 hardcode_shlibpath_var_F77=no
15779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780 hardcode_direct_F77=yes
15781 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15782 hardcode_libdir_separator_F77=:
15783 hardcode_shlibpath_var_F77=no
15787 if test -f /usr/libexec/ld.so; then
15788 hardcode_direct_F77=yes
15789 hardcode_shlibpath_var_F77=no
15790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15791 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15792 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15793 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15794 export_dynamic_flag_spec_F77='${wl}-E'
15797 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15798 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15799 hardcode_libdir_flag_spec_F77='-R$libdir'
15802 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15803 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15813 hardcode_libdir_flag_spec_F77='-L$libdir'
15814 hardcode_minus_L_F77=yes
15815 allow_undefined_flag_F77=unsupported
15816 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'
15817 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15821 if test "$GCC" = yes; then
15822 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15823 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'
15825 allow_undefined_flag_F77=' -expect_unresolved \*'
15826 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'
15828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15829 hardcode_libdir_separator_F77=:
15832 osf4* | osf5*) # as osf3* with the addition of -msym flag
15833 if test "$GCC" = yes; then
15834 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15835 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'
15836 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15838 allow_undefined_flag_F77=' -expect_unresolved \*'
15839 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'
15840 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~
15841 $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'
15843 # Both c and cxx compiler support -rpath directly
15844 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15846 hardcode_libdir_separator_F77=:
15850 no_undefined_flag_F77=' -z text'
15851 if test "$GCC" = yes; then
15853 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15854 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15855 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15858 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15860 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15862 hardcode_libdir_flag_spec_F77='-R$libdir'
15863 hardcode_shlibpath_var_F77=no
15865 solaris2.[0-5] | solaris2.[0-5].*) ;;
15867 # The compiler driver will combine and reorder linker options,
15868 # but understands `-z linker_flag'. GCC discards it without `$wl',
15869 # but is careful enough not to reorder.
15870 # Supported since Solaris 2.6 (maybe 2.5.1?)
15871 if test "$GCC" = yes; then
15872 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15874 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15878 link_all_deplibs_F77=yes
15882 if test "x$host_vendor" = xsequent; then
15883 # Use $CC to link under sequent, because it throws in some extra .o
15884 # files that make .init and .fini sections work.
15885 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15889 hardcode_libdir_flag_spec_F77='-L$libdir'
15890 hardcode_direct_F77=yes
15891 hardcode_minus_L_F77=yes
15892 hardcode_shlibpath_var_F77=no
15896 case $host_vendor in
15898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899 hardcode_direct_F77=yes # is this really true???
15902 ## LD is ld it makes a PLAMLIB
15903 ## CC just makes a GrossModule.
15904 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15905 reload_cmds_F77='$CC -r -o $output$reload_objs'
15906 hardcode_direct_F77=no
15909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15910 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15913 runpath_var='LD_RUN_PATH'
15914 hardcode_shlibpath_var_F77=no
15918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15919 hardcode_shlibpath_var_F77=no
15920 export_dynamic_flag_spec_F77='-Bexport'
15924 if test -d /usr/nec; then
15925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15926 hardcode_shlibpath_var_F77=no
15927 runpath_var=LD_RUN_PATH
15928 hardcode_runpath_var=yes
15933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15934 no_undefined_flag_F77='${wl}-z,text'
15935 archive_cmds_need_lc_F77=no
15936 hardcode_shlibpath_var_F77=no
15937 runpath_var='LD_RUN_PATH'
15939 if test "$GCC" = yes; then
15940 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15948 sysv5* | sco3.2v5* | sco5v6*)
15949 # Note: We can NOT use -z defs as we might desire, because we do not
15950 # link with -lc, and that would cause any symbols used from libc to
15951 # always be unresolved, which means just about no library would
15952 # ever link correctly. If we're not using GNU ld we use -z text
15953 # though, which does catch some bad symbols but isn't as heavy-handed
15955 no_undefined_flag_F77='${wl}-z,text'
15956 allow_undefined_flag_F77='${wl}-z,nodefs'
15957 archive_cmds_need_lc_F77=no
15958 hardcode_shlibpath_var_F77=no
15959 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15960 hardcode_libdir_separator_F77=':'
15961 link_all_deplibs_F77=yes
15962 export_dynamic_flag_spec_F77='${wl}-Bexport'
15963 runpath_var='LD_RUN_PATH'
15965 if test "$GCC" = yes; then
15966 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15970 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_libdir_flag_spec_F77='-L$libdir'
15977 hardcode_shlibpath_var_F77=no
15986 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15987 $as_echo "$ld_shlibs_F77" >&6; }
15988 test "$ld_shlibs_F77" = no && can_build_shared=no
15991 # Do we need to explicitly link libc?
15993 case "x$archive_cmds_need_lc_F77" in
15995 # Assume -lc should be added
15996 archive_cmds_need_lc_F77=yes
15998 if test "$enable_shared" = yes && test "$GCC" = yes; then
15999 case $archive_cmds_F77 in
16001 # FIXME: we may have to deal with multi-command sequences.
16004 # Test whether the compiler implicitly links with -lc since on some
16005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16006 # to ld, don't add -lc before -lgcc.
16007 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>&5
16015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } 2>conftest.err; then
16019 libobjs=conftest.$ac_objext
16021 wl=$lt_prog_compiler_wl_F77
16022 pic_flag=$lt_prog_compiler_pic_F77
16028 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16029 allow_undefined_flag_F77=
16030 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16031 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }
16036 archive_cmds_need_lc_F77=no
16038 archive_cmds_need_lc_F77=yes
16040 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16042 cat conftest.err 1>&5
16045 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16046 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16053 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16054 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16055 library_names_spec=
16056 libname_spec='lib$name'
16060 postuninstall_cmds=
16064 shlibpath_overrides_runpath=unknown
16066 dynamic_linker="$host_os ld.so"
16067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16069 need_lib_prefix=unknown
16070 hardcode_into_libs=no
16072 # when you set need_version to no, make sure it does not cause -set_version
16073 # flags to be left without arguments
16074 need_version=unknown
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16080 shlibpath_var=LIBPATH
16082 # AIX 3 has no versioning support, so we append a major version to the name.
16083 soname_spec='${libname}${release}${shared_ext}$major'
16090 hardcode_into_libs=yes
16091 if test "$host_cpu" = ia64; then
16092 # AIX 5 supports IA64
16093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16094 shlibpath_var=LD_LIBRARY_PATH
16096 # With GCC up to 2.95.x, collect2 would create an import file
16097 # for dependence libraries. The import file would start with
16098 # the line `#! .'. This would cause the generated library to
16099 # depend on `.', always an invalid library. This was fixed in
16100 # development snapshots of GCC prior to 3.0.
16102 aix4 | aix4.[01] | aix4.[01].*)
16103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16108 can_build_shared=no
16112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16113 # soname into executable. Probably we can add versioning support to
16114 # collect2, so additional links can be useful in future.
16115 if test "$aix_use_runtimelinking" = yes; then
16116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16117 # instead of lib<name>.a to let people know that these are not
16118 # typical AIX shared libraries.
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 # We preserve .a as extension for shared libraries through AIX4.2
16122 # and later when we are not doing run time linking.
16123 library_names_spec='${libname}${release}.a $libname.a'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16126 shlibpath_var=LIBPATH
16131 library_names_spec='$libname.ixlibrary $libname.a'
16132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16133 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'
16137 library_names_spec='${libname}${shared_ext}'
16138 dynamic_linker="$host_os ld.so"
16139 shlibpath_var=LIBRARY_PATH
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16151 # the default ld.so.conf also contains /usr/contrib/lib and
16152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16153 # libtool to hard-code these into programs
16156 cygwin* | mingw* | pw32*)
16157 version_type=windows
16162 case $GCC,$host_os in
16163 yes,cygwin* | yes,mingw* | yes,pw32*)
16164 library_names_spec='$libname.dll.a'
16165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16166 postinstall_cmds='base_file=`basename \${file}`~
16167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16168 dldir=$destdir/`dirname \$dlpath`~
16169 test -d \$dldir || mkdir -p \$dldir~
16170 $install_prog $dir/$dlname \$dldir/$dlname~
16171 chmod a+x \$dldir/$dlname'
16172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16173 dlpath=$dir/\$dldll~
16175 shlibpath_overrides_runpath=yes
16179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16184 # MinGW DLLs use traditional 'lib' prefix
16185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16188 # It is most probably a Windows format PATH printed by
16189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16190 # path with ; separators, and with drive letters. We can handle the
16191 # drive letters (cygwin fileutils understands them), so leave them,
16192 # especially as we might pass files found there to a mingw objdump,
16193 # which wouldn't understand a cygwinified path. Ahh.
16194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16200 # pw32 DLLs use 'pw' prefix rather than 'lib'
16201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16210 dynamic_linker='Win32 ld.exe'
16211 # FIXME: first we should search . and the directory the executable is in
16215 darwin* | rhapsody*)
16216 dynamic_linker="$host_os dyld"
16217 version_type=darwin
16220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16221 soname_spec='${libname}${release}${major}$shared_ext'
16222 shlibpath_overrides_runpath=yes
16223 shlibpath_var=DYLD_LIBRARY_PATH
16224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 shlibpath_var=LD_LIBRARY_PATH
16242 freebsd* | dragonfly*)
16243 # DragonFly does not have aout. When/if they implement a new
16244 # versioning mechanism, adjust this.
16245 if test -x /usr/bin/objformat; then
16246 objformat=`/usr/bin/objformat`
16249 freebsd[123]*) objformat=aout ;;
16250 *) objformat=elf ;;
16253 version_type=freebsd-$objformat
16254 case $version_type in
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16265 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=yes
16270 freebsd3.[01]* | freebsdelf3.[01]*)
16271 shlibpath_overrides_runpath=yes
16272 hardcode_into_libs=yes
16274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16276 shlibpath_overrides_runpath=no
16277 hardcode_into_libs=yes
16279 *) # from 4.6 on, and DragonFly
16280 shlibpath_overrides_runpath=yes
16281 hardcode_into_libs=yes
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 hardcode_into_libs=yes
16296 hpux9* | hpux10* | hpux11*)
16297 # Give a soname corresponding to the major version so that dld.sl refuses to
16298 # link against other versions.
16305 hardcode_into_libs=yes
16306 dynamic_linker="$host_os dld.so"
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 if test "X$HPUX_IA64_MODE" = X32; then
16312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16320 hardcode_into_libs=yes
16321 dynamic_linker="$host_os dld.sl"
16322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16331 dynamic_linker="$host_os dld.sl"
16332 shlibpath_var=SHLIB_PATH
16333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16339 postinstall_cmds='chmod 555 $lib'
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=no
16351 hardcode_into_libs=yes
16354 irix5* | irix6* | nonstopux*)
16356 nonstopux*) version_type=nonstopux ;;
16358 if test "$lt_cv_prog_gnu_ld" = yes; then
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16369 irix5* | nonstopux*)
16370 libsuff= shlibsuff=
16373 case $LD in # libtool.m4 will add one of these switches to LD
16374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16375 libsuff= shlibsuff= libmagic=32-bit;;
16376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16377 libsuff=32 shlibsuff=N32 libmagic=N32;;
16378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16380 *) libsuff= shlibsuff= libmagic=never-match;;
16384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16385 shlibpath_overrides_runpath=no
16386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16388 hardcode_into_libs=yes
16391 # No shared lib support for Linux oldld, aout, or coff.
16392 linux*oldld* | linux*aout* | linux*coff*)
16396 # This must be Linux ELF.
16397 linux* | k*bsd*-gnu)
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=no
16406 # This implies no fast_install, which is unacceptable.
16407 # Some rework will be needed to allow for fast_install
16408 # before this can be enabled.
16409 hardcode_into_libs=yes
16410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16413 # Append ld.so.conf contents to the search path
16414 if test -f /etc/ld.so.conf; then
16415 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' ' '`
16416 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16419 # We used to test for /lib/ld.so.1 and disable shared libraries on
16420 # powerpc, because MkLinux only supported shared libraries with the
16421 # GNU dynamic linker. Since this was broken with cross compilers,
16422 # most powerpc-linux boxes support dynamic linking these days and
16423 # people can always --disable-shared, the test was removed, and we
16424 # assume the GNU/Linux dynamic linker is in use.
16425 dynamic_linker='GNU/Linux ld.so'
16432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435 dynamic_linker='NetBSD (a.out) ld.so'
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 dynamic_linker='NetBSD ld.elf_so'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes
16443 hardcode_into_libs=yes
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 shlibpath_overrides_runpath=yes
16465 sys_lib_dlsearch_path_spec="/usr/lib"
16467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16470 *) need_version=no ;;
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16477 openbsd2.[89] | openbsd2.[89].*)
16478 shlibpath_overrides_runpath=no
16481 shlibpath_overrides_runpath=yes
16485 shlibpath_overrides_runpath=yes
16490 libname_spec='$name'
16493 library_names_spec='$libname${shared_ext} $libname.a'
16494 dynamic_linker='OS/2 ld.exe'
16495 shlibpath_var=LIBPATH
16498 osf3* | osf4* | osf5*)
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 shlibpath_overrides_runpath=yes
16521 hardcode_into_libs=yes
16522 # ldd complains unless libraries are executable
16523 postinstall_cmds='chmod +x $lib'
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath=yes
16532 if test "$with_gnu_ld" = yes; then
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 case $host_vendor in
16545 shlibpath_overrides_runpath=no
16547 export_dynamic_flag_spec='${wl}-Blargedynsym'
16548 runpath_var=LD_RUN_PATH
16556 shlibpath_overrides_runpath=no
16557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16563 if test -d /usr/nec ;then
16565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16566 soname_spec='$libname${shared_ext}.$major'
16567 shlibpath_var=LD_LIBRARY_PATH
16571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16572 version_type=freebsd-elf
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 hardcode_into_libs=yes
16579 if test "$with_gnu_ld" = yes; then
16580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16581 shlibpath_overrides_runpath=no
16583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16584 shlibpath_overrides_runpath=yes
16587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16591 sys_lib_dlsearch_path_spec='/usr/lib'
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16605 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16606 $as_echo "$dynamic_linker" >&6; }
16607 test "$dynamic_linker" = no && can_build_shared=no
16609 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16610 $as_echo_n "(cached) " >&6
16612 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16616 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16617 $as_echo_n "(cached) " >&6
16619 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16625 if test "$GCC" = yes; then
16626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16629 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16630 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16631 hardcode_action_F77=
16632 if test -n "$hardcode_libdir_flag_spec_F77" || \
16633 test -n "$runpath_var_F77" || \
16634 test "X$hardcode_automatic_F77" = "Xyes" ; then
16636 # We can hardcode non-existant directories.
16637 if test "$hardcode_direct_F77" != no &&
16638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16639 # have to relink, otherwise we might link with an installed library
16640 # when we should be linking with a yet-to-be-installed one
16641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16642 test "$hardcode_minus_L_F77" != no; then
16643 # Linking always hardcodes the temporary library directory.
16644 hardcode_action_F77=relink
16646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16647 hardcode_action_F77=immediate
16650 # We cannot hardcode anything, or else we can only hardcode existing
16652 hardcode_action_F77=unsupported
16654 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16655 $as_echo "$hardcode_action_F77" >&6; }
16657 if test "$hardcode_action_F77" = relink; then
16658 # Fast installation is not supported
16659 enable_fast_install=no
16660 elif test "$shlibpath_overrides_runpath" = yes ||
16661 test "$enable_shared" = no; then
16662 # Fast installation is not necessary
16663 enable_fast_install=needless
16667 # The else clause should only fire when bootstrapping the
16668 # libtool distribution, otherwise you forgot to ship ltmain.sh
16669 # with your package, and you will get complaints that there are
16670 # no rules to generate ltmain.sh.
16671 if test -f "$ltmain"; then
16672 # See if we are running on zsh, and set the options which allow our commands through
16673 # without removal of \ escapes.
16674 if test -n "${ZSH_VERSION+set}" ; then
16675 setopt NO_GLOB_SUBST
16677 # Now quote all the things that may contain metacharacters while being
16678 # careful not to overquote the AC_SUBSTed values. We take copies of the
16679 # variables and quote the copies for generation of the libtool script.
16680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16684 deplibs_check_method reload_flag reload_cmds need_locks \
16685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16686 lt_cv_sys_global_symbol_to_c_name_address \
16687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16688 old_postinstall_cmds old_postuninstall_cmds \
16692 lt_prog_compiler_wl_F77 \
16693 lt_prog_compiler_pic_F77 \
16694 lt_prog_compiler_static_F77 \
16695 lt_prog_compiler_no_builtin_flag_F77 \
16696 export_dynamic_flag_spec_F77 \
16697 thread_safe_flag_spec_F77 \
16698 whole_archive_flag_spec_F77 \
16699 enable_shared_with_static_runtimes_F77 \
16700 old_archive_cmds_F77 \
16701 old_archive_from_new_cmds_F77 \
16702 predep_objects_F77 \
16703 postdep_objects_F77 \
16706 compiler_lib_search_path_F77 \
16707 compiler_lib_search_dirs_F77 \
16709 archive_expsym_cmds_F77 \
16710 postinstall_cmds_F77 \
16711 postuninstall_cmds_F77 \
16712 old_archive_from_expsyms_cmds_F77 \
16713 allow_undefined_flag_F77 \
16714 no_undefined_flag_F77 \
16715 export_symbols_cmds_F77 \
16716 hardcode_libdir_flag_spec_F77 \
16717 hardcode_libdir_flag_spec_ld_F77 \
16718 hardcode_libdir_separator_F77 \
16719 hardcode_automatic_F77 \
16721 module_expsym_cmds_F77 \
16722 lt_cv_prog_compiler_c_o_F77 \
16723 fix_srcfile_path_F77 \
16724 exclude_expsyms_F77 \
16725 include_expsyms_F77; do
16728 old_archive_cmds_F77 | \
16729 old_archive_from_new_cmds_F77 | \
16730 archive_cmds_F77 | \
16731 archive_expsym_cmds_F77 | \
16732 module_cmds_F77 | \
16733 module_expsym_cmds_F77 | \
16734 old_archive_from_expsyms_cmds_F77 | \
16735 export_symbols_cmds_F77 | \
16736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16737 postinstall_cmds | postuninstall_cmds | \
16738 old_postinstall_cmds | old_postuninstall_cmds | \
16739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16740 # Double-quote double-evaled strings.
16741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16750 *'\$0 --fallback-echo"')
16751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16757 cat <<__EOF__ >> "$cfgfile"
16758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16762 # Shell to use when invoking shell scripts.
16765 # Whether or not to build shared libraries.
16766 build_libtool_libs=$enable_shared
16768 # Whether or not to build static libraries.
16769 build_old_libs=$enable_static
16771 # Whether or not to add -lc for building shared libraries.
16772 build_libtool_need_lc=$archive_cmds_need_lc_F77
16774 # Whether or not to disallow shared libs when runtime libs are static
16775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16777 # Whether or not to optimize for fast installation.
16778 fast_install=$enable_fast_install
16781 host_alias=$host_alias
16785 # The build system.
16786 build_alias=$build_alias
16790 # An echo program that does not interpret backslashes.
16795 AR_FLAGS=$lt_AR_FLAGS
16800 # LTCC compiler flags.
16801 LTCFLAGS=$lt_LTCFLAGS
16803 # A language-specific compiler.
16804 CC=$lt_compiler_F77
16806 # Is the compiler the GNU C compiler?
16812 # The linker used to build libraries.
16815 # Whether we need hard or soft links.
16818 # A BSD-compatible nm program.
16821 # A symbol stripping program
16824 # Used to examine libraries when file_magic_cmd begins "file"
16825 MAGIC_CMD=$MAGIC_CMD
16827 # Used on cygwin: DLL creation program.
16830 # Used on cygwin: object dumper.
16833 # Used on cygwin: assembler.
16836 # The name of the directory that contains temporary libtool files.
16839 # How to create reloadable object files.
16840 reload_flag=$lt_reload_flag
16841 reload_cmds=$lt_reload_cmds
16843 # How to pass a linker flag through the compiler.
16844 wl=$lt_lt_prog_compiler_wl_F77
16846 # Object file suffix (normally "o").
16847 objext="$ac_objext"
16849 # Old archive suffix (normally "a").
16852 # Shared library suffix (normally ".so").
16853 shrext_cmds='$shrext_cmds'
16855 # Executable file suffix (normally "").
16858 # Additional compiler flags for building library objects.
16859 pic_flag=$lt_lt_prog_compiler_pic_F77
16862 # What is the maximum length of a command?
16863 max_cmd_len=$lt_cv_sys_max_cmd_len
16865 # Does compiler simultaneously support -c and -o options?
16866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16868 # Must we lock files when doing compilation?
16869 need_locks=$lt_need_locks
16871 # Do we need the lib prefix for modules?
16872 need_lib_prefix=$need_lib_prefix
16874 # Do we need a version for libraries?
16875 need_version=$need_version
16877 # Whether dlopen is supported.
16878 dlopen_support=$enable_dlopen
16880 # Whether dlopen of programs is supported.
16881 dlopen_self=$enable_dlopen_self
16883 # Whether dlopen of statically linked programs is supported.
16884 dlopen_self_static=$enable_dlopen_self_static
16886 # Compiler flag to prevent dynamic linking.
16887 link_static_flag=$lt_lt_prog_compiler_static_F77
16889 # Compiler flag to turn off builtin functions.
16890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16892 # Compiler flag to allow reflexive dlopens.
16893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16895 # Compiler flag to generate shared objects directly from archives.
16896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16898 # Compiler flag to generate thread-safe objects.
16899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16901 # Library versioning type.
16902 version_type=$version_type
16904 # Format of library name prefix.
16905 libname_spec=$lt_libname_spec
16907 # List of archive names. First name is the real one, the rest are links.
16908 # The last name is the one that the linker finds with -lNAME.
16909 library_names_spec=$lt_library_names_spec
16911 # The coded name of the library, if different from the real name.
16912 soname_spec=$lt_soname_spec
16914 # Commands used to build and install an old-style archive.
16916 old_archive_cmds=$lt_old_archive_cmds_F77
16917 old_postinstall_cmds=$lt_old_postinstall_cmds
16918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16920 # Create an old-style archive from a shared archive.
16921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16923 # Create a temporary old-style archive to link instead of a shared archive.
16924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16926 # Commands used to build and install a shared archive.
16927 archive_cmds=$lt_archive_cmds_F77
16928 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16929 postinstall_cmds=$lt_postinstall_cmds
16930 postuninstall_cmds=$lt_postuninstall_cmds
16932 # Commands used to build a loadable module (assumed same as above if empty)
16933 module_cmds=$lt_module_cmds_F77
16934 module_expsym_cmds=$lt_module_expsym_cmds_F77
16936 # Commands to strip libraries.
16937 old_striplib=$lt_old_striplib
16938 striplib=$lt_striplib
16940 # Dependencies to place before the objects being linked to create a
16942 predep_objects=$lt_predep_objects_F77
16944 # Dependencies to place after the objects being linked to create a
16946 postdep_objects=$lt_postdep_objects_F77
16948 # Dependencies to place before the objects being linked to create a
16950 predeps=$lt_predeps_F77
16952 # Dependencies to place after the objects being linked to create a
16954 postdeps=$lt_postdeps_F77
16956 # The directories searched by this compiler when creating a shared
16958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16960 # The library search path used internally by the compiler when linking
16961 # a shared library.
16962 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16964 # Method to check whether dependent libraries are shared objects.
16965 deplibs_check_method=$lt_deplibs_check_method
16967 # Command to use when deplibs_check_method == file_magic.
16968 file_magic_cmd=$lt_file_magic_cmd
16970 # Flag that allows shared libraries with undefined symbols to be built.
16971 allow_undefined_flag=$lt_allow_undefined_flag_F77
16973 # Flag that forces no undefined symbols.
16974 no_undefined_flag=$lt_no_undefined_flag_F77
16976 # Commands used to finish a libtool library installation in a directory.
16977 finish_cmds=$lt_finish_cmds
16979 # Same as above, but a single script fragment to be evaled but not shown.
16980 finish_eval=$lt_finish_eval
16982 # Take the output of nm and produce a listing of raw symbols and C names.
16983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16985 # Transform the output of nm in a proper C declaration
16986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16988 # Transform the output of nm in a C name address pair
16989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16991 # This is the shared library runtime path variable.
16992 runpath_var=$runpath_var
16994 # This is the shared library path variable.
16995 shlibpath_var=$shlibpath_var
16997 # Is shlibpath searched before the hard-coded library search path?
16998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17000 # How to hardcode a shared library path into an executable.
17001 hardcode_action=$hardcode_action_F77
17003 # Whether we should hardcode library paths into libraries.
17004 hardcode_into_libs=$hardcode_into_libs
17006 # Flag to hardcode \$libdir into a binary during linking.
17007 # This must work even if \$libdir does not exist.
17008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17010 # If ld is used when linking, flag to hardcode \$libdir into
17011 # a binary during linking. This must work even if \$libdir does
17013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17015 # Whether we need a single -rpath flag with a separated argument.
17016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17019 # resulting binary.
17020 hardcode_direct=$hardcode_direct_F77
17022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17023 # resulting binary.
17024 hardcode_minus_L=$hardcode_minus_L_F77
17026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17027 # the resulting binary.
17028 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17030 # Set to yes if building a shared library automatically hardcodes DIR into the library
17031 # and all subsequent libraries and executables linked against it.
17032 hardcode_automatic=$hardcode_automatic_F77
17034 # Variables whose values should be saved in libtool wrapper scripts and
17035 # restored at relink time.
17036 variables_saved_for_relink="$variables_saved_for_relink"
17038 # Whether libtool must link a program against all its dependency libraries.
17039 link_all_deplibs=$link_all_deplibs_F77
17041 # Compile-time system search path for libraries
17042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17044 # Run-time system search path for libraries
17045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17047 # Fix the shell variable \$srcfile for the compiler.
17048 fix_srcfile_path=$lt_fix_srcfile_path
17050 # Set to yes if exported symbols are required.
17051 always_export_symbols=$always_export_symbols_F77
17053 # The commands to list exported symbols.
17054 export_symbols_cmds=$lt_export_symbols_cmds_F77
17056 # The commands to extract the exported symbol list from a shared archive.
17057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17059 # Symbols that should not be listed in the preloaded symbols.
17060 exclude_expsyms=$lt_exclude_expsyms_F77
17062 # Symbols that must always be exported.
17063 include_expsyms=$lt_include_expsyms_F77
17065 # ### END LIBTOOL TAG CONFIG: $tagname
17071 # If there is no Makefile yet, we rely on a make rule to execute
17072 # `config.status --recheck' to rerun these tests and create the
17073 # libtool script then.
17074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17075 if test -f "$ltmain_in"; then
17076 test -f Makefile && make "$ltmain"
17082 ac_cpp='$CPP $CPPFLAGS'
17083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17095 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17098 # Source file extension for Java test sources.
17101 # Object file extension for compiled Java test sources.
17105 # Code to be used in simple compile tests
17106 lt_simple_compile_test_code="class foo {}"
17108 # Code to be used in simple link tests
17109 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17111 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17113 # If no C compiler was specified, use CC.
17116 # If no C compiler flags were specified, use CFLAGS.
17117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17119 # Allow CC to be a program name with arguments.
17123 # save warnings/boilerplate of simple test code
17124 ac_outfile=conftest.$ac_objext
17125 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17127 _lt_compiler_boilerplate=`cat conftest.err`
17130 ac_outfile=conftest.$ac_objext
17131 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17133 _lt_linker_boilerplate=`cat conftest.err`
17137 # Allow CC to be a program name with arguments.
17142 for cc_temp in $compiler""; do
17144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17153 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17154 archive_cmds_need_lc_GCJ=no
17156 old_archive_cmds_GCJ=$old_archive_cmds
17159 lt_prog_compiler_no_builtin_flag_GCJ=
17161 if test "$GCC" = yes; then
17162 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17165 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17166 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17167 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17170 lt_cv_prog_compiler_rtti_exceptions=no
17171 ac_outfile=conftest.$ac_objext
17172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17173 lt_compiler_flag="-fno-rtti -fno-exceptions"
17174 # Insert the option either (1) after the last *FLAGS variable, or
17175 # (2) before a word containing "conftest.", or (3) at the end.
17176 # Note that $ac_compile itself does not contain backslashes and begins
17177 # with a dollar sign (not a hyphen), so the echo should work correctly.
17178 # The option is referenced via a variable to avoid confusing sed.
17179 lt_compile=`echo "$ac_compile" | $SED \
17180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17182 -e 's:$: $lt_compiler_flag:'`
17183 (eval echo "\"\$as_me:17183: $lt_compile\"" >&5)
17184 (eval "$lt_compile" 2>conftest.err)
17186 cat conftest.err >&5
17187 echo "$as_me:17187: \$? = $ac_status" >&5
17188 if (exit $ac_status) && test -s "$ac_outfile"; then
17189 # The compiler can only warn and ignore the option if not recognized
17190 # So say no if there are warnings other than the usual output.
17191 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17194 lt_cv_prog_compiler_rtti_exceptions=yes
17200 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17201 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17203 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17204 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17211 lt_prog_compiler_wl_GCJ=
17212 lt_prog_compiler_pic_GCJ=
17213 lt_prog_compiler_static_GCJ=
17215 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17216 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17218 if test "$GCC" = yes; then
17219 lt_prog_compiler_wl_GCJ='-Wl,'
17220 lt_prog_compiler_static_GCJ='-static'
17224 # All AIX code is PIC.
17225 if test "$host_cpu" = ia64; then
17226 # AIX 5 now supports IA64 processor
17227 lt_prog_compiler_static_GCJ='-Bstatic'
17232 # FIXME: we need at least 68020 code to build shared libraries, but
17233 # adding the `-m68020' flag to GCC prevents building anything better,
17235 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17239 # PIC is the default for these OSes.
17242 mingw* | cygwin* | pw32* | os2*)
17243 # This hack is so that the source file can tell whether it is being
17244 # built for inclusion in a dll (and should export symbols for example).
17245 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17246 # (--disable-auto-import) libraries
17250 darwin* | rhapsody*)
17251 # PIC is the default on this platform
17252 # Common symbols not allowed in MH_DYLIB files
17253 lt_prog_compiler_pic_GCJ='-fno-common'
17257 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17258 # Instead, we relocate shared libraries at runtime.
17262 # Just because we use GCC doesn't mean we suddenly get shared libraries
17263 # on systems that don't support them.
17264 lt_prog_compiler_can_build_shared_GCJ=no
17269 if test -d /usr/nec; then
17270 lt_prog_compiler_pic_GCJ=-Kconform_pic
17275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17276 # not for PA HP-UX.
17282 lt_prog_compiler_pic_GCJ='-fPIC'
17288 lt_prog_compiler_pic_GCJ='-fPIC'
17292 # PORTME Check for flag to pass linker flags through the system compiler.
17295 lt_prog_compiler_wl_GCJ='-Wl,'
17296 if test "$host_cpu" = ia64; then
17297 # AIX 5 now supports IA64 processor
17298 lt_prog_compiler_static_GCJ='-Bstatic'
17300 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17304 # PIC is the default on this platform
17305 # Common symbols not allowed in MH_DYLIB files
17306 case $cc_basename in
17308 lt_prog_compiler_pic_GCJ='-qnocommon'
17309 lt_prog_compiler_wl_GCJ='-Wl,'
17314 mingw* | cygwin* | pw32* | os2*)
17315 # This hack is so that the source file can tell whether it is being
17316 # built for inclusion in a dll (and should export symbols for example).
17320 hpux9* | hpux10* | hpux11*)
17321 lt_prog_compiler_wl_GCJ='-Wl,'
17322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17323 # not for PA HP-UX.
17329 lt_prog_compiler_pic_GCJ='+Z'
17332 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17333 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17336 irix5* | irix6* | nonstopux*)
17337 lt_prog_compiler_wl_GCJ='-Wl,'
17338 # PIC (with -KPIC) is the default.
17339 lt_prog_compiler_static_GCJ='-non_shared'
17343 lt_prog_compiler_pic_GCJ='-KPIC'
17344 lt_prog_compiler_static_GCJ='-Bstatic'
17347 linux* | k*bsd*-gnu)
17348 case $cc_basename in
17350 lt_prog_compiler_wl_GCJ='-Wl,'
17351 lt_prog_compiler_pic_GCJ='-KPIC'
17352 lt_prog_compiler_static_GCJ='-static'
17354 pgcc* | pgf77* | pgf90* | pgf95*)
17355 # Portland Group compilers (*not* the Pentium gcc compiler,
17356 # which looks to be a dead project)
17357 lt_prog_compiler_wl_GCJ='-Wl,'
17358 lt_prog_compiler_pic_GCJ='-fpic'
17359 lt_prog_compiler_static_GCJ='-Bstatic'
17362 lt_prog_compiler_wl_GCJ='-Wl,'
17363 # All Alpha code is PIC.
17364 lt_prog_compiler_static_GCJ='-non_shared'
17367 case `$CC -V 2>&1 | sed 5q` in
17370 lt_prog_compiler_pic_GCJ='-KPIC'
17371 lt_prog_compiler_static_GCJ='-Bstatic'
17372 lt_prog_compiler_wl_GCJ='-Wl,'
17375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17376 lt_prog_compiler_pic_GCJ='-KPIC'
17377 lt_prog_compiler_static_GCJ='-Bstatic'
17378 lt_prog_compiler_wl_GCJ=''
17385 osf3* | osf4* | osf5*)
17386 lt_prog_compiler_wl_GCJ='-Wl,'
17387 # All OSF/1 code is PIC.
17388 lt_prog_compiler_static_GCJ='-non_shared'
17392 lt_prog_compiler_static_GCJ='-non_shared'
17396 lt_prog_compiler_pic_GCJ='-KPIC'
17397 lt_prog_compiler_static_GCJ='-Bstatic'
17398 case $cc_basename in
17399 f77* | f90* | f95*)
17400 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17402 lt_prog_compiler_wl_GCJ='-Wl,';;
17407 lt_prog_compiler_wl_GCJ='-Qoption ld '
17408 lt_prog_compiler_pic_GCJ='-PIC'
17409 lt_prog_compiler_static_GCJ='-Bstatic'
17412 sysv4 | sysv4.2uw2* | sysv4.3*)
17413 lt_prog_compiler_wl_GCJ='-Wl,'
17414 lt_prog_compiler_pic_GCJ='-KPIC'
17415 lt_prog_compiler_static_GCJ='-Bstatic'
17419 if test -d /usr/nec ;then
17420 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17421 lt_prog_compiler_static_GCJ='-Bstatic'
17425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17426 lt_prog_compiler_wl_GCJ='-Wl,'
17427 lt_prog_compiler_pic_GCJ='-KPIC'
17428 lt_prog_compiler_static_GCJ='-Bstatic'
17432 lt_prog_compiler_wl_GCJ='-Wl,'
17433 lt_prog_compiler_can_build_shared_GCJ=no
17437 lt_prog_compiler_pic_GCJ='-pic'
17438 lt_prog_compiler_static_GCJ='-Bstatic'
17442 lt_prog_compiler_can_build_shared_GCJ=no
17447 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17448 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17451 # Check to make sure the PIC flag actually works.
17453 if test -n "$lt_prog_compiler_pic_GCJ"; then
17455 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17456 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17457 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17458 $as_echo_n "(cached) " >&6
17460 lt_cv_prog_compiler_pic_works_GCJ=no
17461 ac_outfile=conftest.$ac_objext
17462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17463 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17464 # Insert the option either (1) after the last *FLAGS variable, or
17465 # (2) before a word containing "conftest.", or (3) at the end.
17466 # Note that $ac_compile itself does not contain backslashes and begins
17467 # with a dollar sign (not a hyphen), so the echo should work correctly.
17468 # The option is referenced via a variable to avoid confusing sed.
17469 lt_compile=`echo "$ac_compile" | $SED \
17470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17472 -e 's:$: $lt_compiler_flag:'`
17473 (eval echo "\"\$as_me:17473: $lt_compile\"" >&5)
17474 (eval "$lt_compile" 2>conftest.err)
17476 cat conftest.err >&5
17477 echo "$as_me:17477: \$? = $ac_status" >&5
17478 if (exit $ac_status) && test -s "$ac_outfile"; then
17479 # The compiler can only warn and ignore the option if not recognized
17480 # So say no if there are warnings other than the usual output.
17481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17484 lt_cv_prog_compiler_pic_works_GCJ=yes
17490 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17491 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17493 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17494 case $lt_prog_compiler_pic_GCJ in
17496 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17499 lt_prog_compiler_pic_GCJ=
17500 lt_prog_compiler_can_build_shared_GCJ=no
17505 # For platforms which do not support PIC, -DPIC is meaningless:
17507 lt_prog_compiler_pic_GCJ=
17510 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17515 # Check to make sure the static flag actually works.
17517 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17518 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17520 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17521 $as_echo_n "(cached) " >&6
17523 lt_cv_prog_compiler_static_works_GCJ=no
17524 save_LDFLAGS="$LDFLAGS"
17525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17528 # The linker can only warn and ignore the option if not recognized
17529 # So say no if there are warnings
17530 if test -s conftest.err; then
17531 # Append any errors to the config.log.
17532 cat conftest.err 1>&5
17533 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17535 if diff conftest.exp conftest.er2 >/dev/null; then
17536 lt_cv_prog_compiler_static_works_GCJ=yes
17539 lt_cv_prog_compiler_static_works_GCJ=yes
17543 LDFLAGS="$save_LDFLAGS"
17546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17547 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17549 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17552 lt_prog_compiler_static_GCJ=
17556 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17558 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17559 $as_echo_n "(cached) " >&6
17561 lt_cv_prog_compiler_c_o_GCJ=no
17562 $rm -r conftest 2>/dev/null
17566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17568 lt_compiler_flag="-o out/conftest2.$ac_objext"
17569 # Insert the option either (1) after the last *FLAGS variable, or
17570 # (2) before a word containing "conftest.", or (3) at the end.
17571 # Note that $ac_compile itself does not contain backslashes and begins
17572 # with a dollar sign (not a hyphen), so the echo should work correctly.
17573 lt_compile=`echo "$ac_compile" | $SED \
17574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17576 -e 's:$: $lt_compiler_flag:'`
17577 (eval echo "\"\$as_me:17577: $lt_compile\"" >&5)
17578 (eval "$lt_compile" 2>out/conftest.err)
17580 cat out/conftest.err >&5
17581 echo "$as_me:17581: \$? = $ac_status" >&5
17582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17584 # The compiler can only warn and ignore the option if not recognized
17585 # So say no if there are warnings
17586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17589 lt_cv_prog_compiler_c_o_GCJ=yes
17594 # SGI C++ compiler will create directory out/ii_files/ for
17595 # template instantiation
17596 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17597 $rm out/* && rmdir out
17603 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17604 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17607 hard_links="nottested"
17608 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17609 # do not overwrite the value of need_locks provided by the user
17610 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17611 $as_echo_n "checking if we can lock with hard links... " >&6; }
17614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17616 ln conftest.a conftest.b 2>&5 || hard_links=no
17617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17618 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17619 $as_echo "$hard_links" >&6; }
17620 if test "$hard_links" = no; then
17621 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17622 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17629 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17633 allow_undefined_flag_GCJ=
17634 enable_shared_with_static_runtimes_GCJ=no
17636 archive_expsym_cmds_GCJ=
17637 old_archive_From_new_cmds_GCJ=
17638 old_archive_from_expsyms_cmds_GCJ=
17639 export_dynamic_flag_spec_GCJ=
17640 whole_archive_flag_spec_GCJ=
17641 thread_safe_flag_spec_GCJ=
17642 hardcode_libdir_flag_spec_GCJ=
17643 hardcode_libdir_flag_spec_ld_GCJ=
17644 hardcode_libdir_separator_GCJ=
17645 hardcode_direct_GCJ=no
17646 hardcode_minus_L_GCJ=no
17647 hardcode_shlibpath_var_GCJ=unsupported
17648 link_all_deplibs_GCJ=unknown
17649 hardcode_automatic_GCJ=no
17651 module_expsym_cmds_GCJ=
17652 always_export_symbols_GCJ=no
17653 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17654 # include_expsyms should be a list of space-separated symbols to be *always*
17655 # included in the symbol list
17656 include_expsyms_GCJ=
17657 # exclude_expsyms can be an extended regexp of symbols to exclude
17658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17660 # as well as any symbol that contains `d'.
17661 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17663 # platforms (ab)use it in PIC code, but their linkers get confused if
17664 # the symbol is explicitly referenced. Since portable code cannot
17665 # rely on this symbol name, it's probably fine to never include it in
17666 # preloaded symbol tables.
17667 # Exclude shared library initialization/finalization symbols.
17668 extract_expsyms_cmds=
17669 # Just being paranoid about ensuring that cc_basename is set.
17670 for cc_temp in $compiler""; do
17672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17678 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17681 cygwin* | mingw* | pw32*)
17682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17683 # When not using gcc, we currently assume that we are using
17684 # Microsoft Visual C++.
17685 if test "$GCC" != yes; then
17690 # we just hope/assume this is gcc and not c89 (= MSVC++)
17699 if test "$with_gnu_ld" = yes; then
17700 # If archive_cmds runs LD, not CC, wlarc should be empty
17703 # Set some defaults for GNU ld with shared library support. These
17704 # are reset later if shared libraries are not supported. Putting them
17705 # here allows them to be overridden if necessary.
17706 runpath_var=LD_RUN_PATH
17707 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17708 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17709 # ancient GNU ld didn't support --whole-archive et. al.
17710 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17711 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17713 whole_archive_flag_spec_GCJ=
17715 supports_anon_versioning=no
17716 case `$LD -v 2>/dev/null` in
17717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17720 *\ 2.11.*) ;; # other 2.11 versions
17721 *) supports_anon_versioning=yes ;;
17724 # See if GNU ld supports shared libraries.
17727 # On AIX/PPC, the GNU linker is very broken
17728 if test "$host_cpu" != ia64; then
17732 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17733 *** to be unable to reliably create shared libraries on AIX.
17734 *** Therefore, libtool is disabling shared libraries support. If you
17735 *** really care for shared libraries, you may want to modify your PATH
17736 *** so that a non-GNU linker is found, and then restart.
17743 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)'
17744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745 hardcode_minus_L_GCJ=yes
17747 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17748 # that the semantics of dynamic libraries on AmigaOS, at least up
17749 # to version 4, is to share data among multiple programs linked
17750 # with the same dynamic library. Since this doesn't match the
17751 # behavior of shared libraries on other platforms, we can't use
17757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17758 allow_undefined_flag_GCJ=unsupported
17759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17760 # support --undefined. This deserves some investigation. FIXME
17761 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17767 cygwin* | mingw* | pw32*)
17768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17769 # as there is no search path for DLLs.
17770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771 allow_undefined_flag_GCJ=unsupported
17772 always_export_symbols_GCJ=no
17773 enable_shared_with_static_runtimes_GCJ=yes
17774 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17776 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17778 # If the export-symbols file already is a .def file (1st line
17779 # is EXPORTS), use it as is; otherwise, prepend...
17780 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17781 cp $export_symbols $output_objdir/$soname.def;
17783 echo EXPORTS > $output_objdir/$soname.def;
17784 cat $export_symbols >> $output_objdir/$soname.def;
17786 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17793 hardcode_direct_GCJ=no
17794 hardcode_shlibpath_var_GCJ=no
17795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17796 export_dynamic_flag_spec_GCJ='${wl}-E'
17797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17798 # Instead, shared libraries are loaded at an image base (0x10000000 by
17799 # default) and relocated if they conflict, which is a slow very memory
17800 # consuming and fragmenting process. To avoid this, we pick a random,
17801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17803 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'
17804 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'
17807 gnu* | linux* | k*bsd*-gnu)
17808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17810 case $cc_basename,$host_cpu in
17811 pgcc*) # Portland Group C compiler
17812 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'
17813 tmp_addflag=' $pic_flag'
17815 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17816 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'
17817 tmp_addflag=' $pic_flag -Mnomain' ;;
17818 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17819 tmp_addflag=' -i_dynamic' ;;
17820 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17821 tmp_addflag=' -i_dynamic -nofor_main' ;;
17822 ifc* | ifort*) # Intel Fortran compiler
17823 tmp_addflag=' -nofor_main' ;;
17825 case `$CC -V 2>&1 | sed 5q` in
17826 *Sun\ C*) # Sun C 5.9
17827 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'
17828 tmp_sharedflag='-G' ;;
17829 *Sun\ F*) # Sun Fortran 8.3
17830 tmp_sharedflag='-G' ;;
17832 tmp_sharedflag='-shared' ;;
17834 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17836 if test $supports_anon_versioning = yes; then
17837 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17839 $echo "local: *; };" >> $output_objdir/$libname.ver~
17840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17849 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17858 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17862 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17863 *** create shared libraries on Solaris systems. Therefore, libtool
17864 *** is disabling shared libraries support. We urge you to upgrade GNU
17865 *** binutils to release 2.9.1 or newer. Another option is to modify
17866 *** your PATH or compiler configuration so that the native linker is
17867 *** used, and then restart.
17870 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17872 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17879 case `$LD -v 2>&1` in
17880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17884 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17885 *** reliably create shared libraries on SCO systems. Therefore, libtool
17886 *** is disabling shared libraries support. We urge you to upgrade GNU
17887 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17888 *** your PATH or compiler configuration so that the native linker is
17889 *** used, and then restart.
17894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17895 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17906 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17908 hardcode_direct_GCJ=yes
17909 hardcode_shlibpath_var_GCJ=no
17913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17914 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17915 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17922 if test "$ld_shlibs_GCJ" = no; then
17924 hardcode_libdir_flag_spec_GCJ=
17925 export_dynamic_flag_spec_GCJ=
17926 whole_archive_flag_spec_GCJ=
17929 # PORTME fill in a description of your system's linker (not GNU ld)
17932 allow_undefined_flag_GCJ=unsupported
17933 always_export_symbols_GCJ=yes
17934 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'
17935 # Note: this linker hardcodes the directories in LIBPATH if there
17936 # are no directories specified by -L.
17937 hardcode_minus_L_GCJ=yes
17938 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17939 # Neither direct hardcoding nor static linking is supported with a
17941 hardcode_direct_GCJ=unsupported
17946 if test "$host_cpu" = ia64; then
17947 # On IA64, the linker does run time linking by default, so we don't
17948 # have to do anything special.
17949 aix_use_runtimelinking=no
17950 exp_sym_flag='-Bexport'
17953 # If we're using GNU nm, then we don't want the "-C" option.
17954 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17955 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17956 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'
17958 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'
17960 aix_use_runtimelinking=no
17962 # Test if we are trying to use run time linking or normal
17963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17964 # need to do runtime linking.
17965 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17966 for ld_flag in $LDFLAGS; do
17967 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17968 aix_use_runtimelinking=yes
17975 exp_sym_flag='-bexport'
17976 no_entry_flag='-bnoentry'
17979 # When large executables or shared objects are built, AIX ld can
17980 # have problems creating the table of contents. If linking a library
17981 # or program results in "error TOC overflow" add -mminimal-toc to
17982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17985 archive_cmds_GCJ=''
17986 hardcode_direct_GCJ=yes
17987 hardcode_libdir_separator_GCJ=':'
17988 link_all_deplibs_GCJ=yes
17990 if test "$GCC" = yes; then
17991 case $host_os in aix4.[012]|aix4.[012].*)
17992 # We only want to do this on AIX 4.2 and lower, the check
17993 # below for broken collect2 doesn't work under 4.3+
17994 collect2name=`${CC} -print-prog-name=collect2`
17995 if test -f "$collect2name" && \
17996 strings "$collect2name" | grep resolve_lib_name >/dev/null
17998 # We have reworked collect2
18001 # We have old collect2
18002 hardcode_direct_GCJ=unsupported
18003 # It fails to find uninstalled libraries when the uninstalled
18004 # path is not listed in the libpath. Setting hardcode_minus_L
18005 # to unsupported forces relinking
18006 hardcode_minus_L_GCJ=yes
18007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18008 hardcode_libdir_separator_GCJ=
18012 shared_flag='-shared'
18013 if test "$aix_use_runtimelinking" = yes; then
18014 shared_flag="$shared_flag "'${wl}-G'
18018 if test "$host_cpu" = ia64; then
18019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18020 # chokes on -Wl,-G. The following line is correct:
18023 if test "$aix_use_runtimelinking" = yes; then
18024 shared_flag='${wl}-G'
18026 shared_flag='${wl}-bM:SRE'
18031 # It seems that -bexpall does not export symbols beginning with
18032 # underscore (_), so it is better to generate a list of symbols to export.
18033 always_export_symbols_GCJ=yes
18034 if test "$aix_use_runtimelinking" = yes; then
18035 # Warning - without using the other runtime loading flags (-brtl),
18036 # -berok will link without error, but may produce a broken library.
18037 allow_undefined_flag_GCJ='-berok'
18038 # Determine the default libpath from the value encoded in an empty executable.
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (ac_try="$ac_link"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_link") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest$ac_exeext && {
18072 test "$cross_compiling" = yes ||
18073 $as_test_x conftest$ac_exeext
18076 lt_aix_libpath_sed='
18077 /Import File Strings/,/^$/ {
18083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18084 # Check for a 64-bit object if we didn't find anything.
18085 if test -z "$aix_libpath"; then
18086 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089 $as_echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18095 rm -rf conftest.dSYM
18096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18097 conftest$ac_exeext conftest.$ac_ext
18098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18100 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18101 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"
18103 if test "$host_cpu" = ia64; then
18104 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18105 allow_undefined_flag_GCJ="-z nodefs"
18106 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"
18108 # Determine the default libpath from the value encoded in an empty executable.
18109 cat >conftest.$ac_ext <<_ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18131 $as_echo "$ac_try_echo") >&5
18132 (eval "$ac_link") 2>conftest.er1
18134 grep -v '^ *+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && {
18139 test -z "$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18141 } && test -s conftest$ac_exeext && {
18142 test "$cross_compiling" = yes ||
18143 $as_test_x conftest$ac_exeext
18146 lt_aix_libpath_sed='
18147 /Import File Strings/,/^$/ {
18153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18154 # Check for a 64-bit object if we didn't find anything.
18155 if test -z "$aix_libpath"; then
18156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18159 $as_echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18165 rm -rf conftest.dSYM
18166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18167 conftest$ac_exeext conftest.$ac_ext
18168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18170 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18171 # Warning - without using the other run time loading flags,
18172 # -berok will link without error, but may produce a broken library.
18173 no_undefined_flag_GCJ=' ${wl}-bernotok'
18174 allow_undefined_flag_GCJ=' ${wl}-berok'
18175 # Exported symbols can be pulled into shared objects from archives
18176 whole_archive_flag_spec_GCJ='$convenience'
18177 archive_cmds_need_lc_GCJ=yes
18178 # This is similar to how AIX traditionally builds its shared libraries.
18179 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'
18185 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)'
18186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18187 hardcode_minus_L_GCJ=yes
18188 # see comment about different semantics on the GNU ld section
18193 export_dynamic_flag_spec_GCJ=-rdynamic
18196 cygwin* | mingw* | pw32*)
18197 # When not using gcc, we currently assume that we are using
18198 # Microsoft Visual C++.
18199 # hardcode_libdir_flag_spec is actually meaningless, as there is
18200 # no search path for DLLs.
18201 hardcode_libdir_flag_spec_GCJ=' '
18202 allow_undefined_flag_GCJ=unsupported
18203 # Tell ltmain to make .lib files, not .a files.
18205 # Tell ltmain to make .dll files, not .so files.
18207 # FIXME: Setting linknames here is a bad hack.
18208 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18209 # The linker will automatically build a .lib file if we build a DLL.
18210 old_archive_From_new_cmds_GCJ='true'
18211 # FIXME: Should let the user specify the lib program.
18212 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18213 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18214 enable_shared_with_static_runtimes_GCJ=yes
18217 darwin* | rhapsody*)
18219 rhapsody* | darwin1.[012])
18220 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18224 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18226 case ${MACOSX_DEPLOYMENT_TARGET} in
18228 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18231 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18237 archive_cmds_need_lc_GCJ=no
18238 hardcode_direct_GCJ=no
18239 hardcode_automatic_GCJ=yes
18240 hardcode_shlibpath_var_GCJ=unsupported
18241 whole_archive_flag_spec_GCJ=''
18242 link_all_deplibs_GCJ=yes
18243 if test "$GCC" = yes ; then
18244 output_verbose_link_cmd='echo'
18245 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}"
18246 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18247 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}"
18248 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}"
18250 case $cc_basename in
18252 output_verbose_link_cmd='echo'
18253 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18254 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18256 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}'
18257 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}'
18267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18269 hardcode_shlibpath_var_GCJ=no
18276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18277 # support. Future versions do this automatically, but an explicit c++rt0.o
18278 # does not break anything, and helps significantly (at the cost of a little
18281 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283 hardcode_direct_GCJ=yes
18284 hardcode_shlibpath_var_GCJ=no
18287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18289 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_direct_GCJ=yes
18291 hardcode_minus_L_GCJ=yes
18292 hardcode_shlibpath_var_GCJ=no
18295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18296 freebsd* | dragonfly*)
18297 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18299 hardcode_direct_GCJ=yes
18300 hardcode_shlibpath_var_GCJ=no
18304 if test "$GCC" = yes; then
18305 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'
18307 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'
18309 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18310 hardcode_libdir_separator_GCJ=:
18311 hardcode_direct_GCJ=yes
18313 # hardcode_minus_L: Not really in the search PATH,
18314 # but as the default location of the library.
18315 hardcode_minus_L_GCJ=yes
18316 export_dynamic_flag_spec_GCJ='${wl}-E'
18320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18321 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18323 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18325 if test "$with_gnu_ld" = no; then
18326 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18327 hardcode_libdir_separator_GCJ=:
18329 hardcode_direct_GCJ=yes
18330 export_dynamic_flag_spec_GCJ='${wl}-E'
18332 # hardcode_minus_L: Not really in the search PATH,
18333 # but as the default location of the library.
18334 hardcode_minus_L_GCJ=yes
18339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18342 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18345 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18354 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18357 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18364 if test "$with_gnu_ld" = no; then
18365 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18366 hardcode_libdir_separator_GCJ=:
18370 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18371 hardcode_direct_GCJ=no
18372 hardcode_shlibpath_var_GCJ=no
18375 hardcode_direct_GCJ=yes
18376 export_dynamic_flag_spec_GCJ='${wl}-E'
18378 # hardcode_minus_L: Not really in the search PATH,
18379 # but as the default location of the library.
18380 hardcode_minus_L_GCJ=yes
18386 irix5* | irix6* | nonstopux*)
18387 if test "$GCC" = yes; then
18388 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'
18390 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'
18391 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18394 hardcode_libdir_separator_GCJ=:
18395 link_all_deplibs_GCJ=yes
18399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18400 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18402 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18404 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18405 hardcode_direct_GCJ=yes
18406 hardcode_shlibpath_var_GCJ=no
18410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411 hardcode_direct_GCJ=yes
18412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18413 hardcode_libdir_separator_GCJ=:
18414 hardcode_shlibpath_var_GCJ=no
18418 if test -f /usr/libexec/ld.so; then
18419 hardcode_direct_GCJ=yes
18420 hardcode_shlibpath_var_GCJ=no
18421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18422 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18423 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18425 export_dynamic_flag_spec_GCJ='${wl}-E'
18428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18429 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18430 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18433 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18445 hardcode_minus_L_GCJ=yes
18446 allow_undefined_flag_GCJ=unsupported
18447 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'
18448 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18452 if test "$GCC" = yes; then
18453 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18454 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'
18456 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18457 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'
18459 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18460 hardcode_libdir_separator_GCJ=:
18463 osf4* | osf5*) # as osf3* with the addition of -msym flag
18464 if test "$GCC" = yes; then
18465 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18466 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'
18467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18469 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18470 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'
18471 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~
18472 $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'
18474 # Both c and cxx compiler support -rpath directly
18475 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18477 hardcode_libdir_separator_GCJ=:
18481 no_undefined_flag_GCJ=' -z text'
18482 if test "$GCC" = yes; then
18484 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18485 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18486 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18489 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18490 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18493 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18494 hardcode_shlibpath_var_GCJ=no
18496 solaris2.[0-5] | solaris2.[0-5].*) ;;
18498 # The compiler driver will combine and reorder linker options,
18499 # but understands `-z linker_flag'. GCC discards it without `$wl',
18500 # but is careful enough not to reorder.
18501 # Supported since Solaris 2.6 (maybe 2.5.1?)
18502 if test "$GCC" = yes; then
18503 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18505 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18509 link_all_deplibs_GCJ=yes
18513 if test "x$host_vendor" = xsequent; then
18514 # Use $CC to link under sequent, because it throws in some extra .o
18515 # files that make .init and .fini sections work.
18516 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18518 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18521 hardcode_direct_GCJ=yes
18522 hardcode_minus_L_GCJ=yes
18523 hardcode_shlibpath_var_GCJ=no
18527 case $host_vendor in
18529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18530 hardcode_direct_GCJ=yes # is this really true???
18533 ## LD is ld it makes a PLAMLIB
18534 ## CC just makes a GrossModule.
18535 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18536 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18537 hardcode_direct_GCJ=no
18540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18541 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18544 runpath_var='LD_RUN_PATH'
18545 hardcode_shlibpath_var_GCJ=no
18549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18550 hardcode_shlibpath_var_GCJ=no
18551 export_dynamic_flag_spec_GCJ='-Bexport'
18555 if test -d /usr/nec; then
18556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18557 hardcode_shlibpath_var_GCJ=no
18558 runpath_var=LD_RUN_PATH
18559 hardcode_runpath_var=yes
18564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18565 no_undefined_flag_GCJ='${wl}-z,text'
18566 archive_cmds_need_lc_GCJ=no
18567 hardcode_shlibpath_var_GCJ=no
18568 runpath_var='LD_RUN_PATH'
18570 if test "$GCC" = yes; then
18571 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18572 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18574 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18575 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18579 sysv5* | sco3.2v5* | sco5v6*)
18580 # Note: We can NOT use -z defs as we might desire, because we do not
18581 # link with -lc, and that would cause any symbols used from libc to
18582 # always be unresolved, which means just about no library would
18583 # ever link correctly. If we're not using GNU ld we use -z text
18584 # though, which does catch some bad symbols but isn't as heavy-handed
18586 no_undefined_flag_GCJ='${wl}-z,text'
18587 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18588 archive_cmds_need_lc_GCJ=no
18589 hardcode_shlibpath_var_GCJ=no
18590 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18591 hardcode_libdir_separator_GCJ=':'
18592 link_all_deplibs_GCJ=yes
18593 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18594 runpath_var='LD_RUN_PATH'
18596 if test "$GCC" = yes; then
18597 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18598 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18600 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18601 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18606 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18608 hardcode_shlibpath_var_GCJ=no
18617 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18618 $as_echo "$ld_shlibs_GCJ" >&6; }
18619 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18622 # Do we need to explicitly link libc?
18624 case "x$archive_cmds_need_lc_GCJ" in
18626 # Assume -lc should be added
18627 archive_cmds_need_lc_GCJ=yes
18629 if test "$enable_shared" = yes && test "$GCC" = yes; then
18630 case $archive_cmds_GCJ in
18632 # FIXME: we may have to deal with multi-command sequences.
18635 # Test whether the compiler implicitly links with -lc since on some
18636 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18637 # to ld, don't add -lc before -lgcc.
18638 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18639 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18644 (eval $ac_compile) 2>&5
18646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } 2>conftest.err; then
18650 libobjs=conftest.$ac_objext
18652 wl=$lt_prog_compiler_wl_GCJ
18653 pic_flag=$lt_prog_compiler_pic_GCJ
18659 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18660 allow_undefined_flag_GCJ=
18661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18662 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }
18667 archive_cmds_need_lc_GCJ=no
18669 archive_cmds_need_lc_GCJ=yes
18671 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18673 cat conftest.err 1>&5
18676 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18677 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18684 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18686 library_names_spec=
18687 libname_spec='lib$name'
18691 postuninstall_cmds=
18695 shlibpath_overrides_runpath=unknown
18697 dynamic_linker="$host_os ld.so"
18698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18700 need_lib_prefix=unknown
18701 hardcode_into_libs=no
18703 # when you set need_version to no, make sure it does not cause -set_version
18704 # flags to be left without arguments
18705 need_version=unknown
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18711 shlibpath_var=LIBPATH
18713 # AIX 3 has no versioning support, so we append a major version to the name.
18714 soname_spec='${libname}${release}${shared_ext}$major'
18721 hardcode_into_libs=yes
18722 if test "$host_cpu" = ia64; then
18723 # AIX 5 supports IA64
18724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18725 shlibpath_var=LD_LIBRARY_PATH
18727 # With GCC up to 2.95.x, collect2 would create an import file
18728 # for dependence libraries. The import file would start with
18729 # the line `#! .'. This would cause the generated library to
18730 # depend on `.', always an invalid library. This was fixed in
18731 # development snapshots of GCC prior to 3.0.
18733 aix4 | aix4.[01] | aix4.[01].*)
18734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18736 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18739 can_build_shared=no
18743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18744 # soname into executable. Probably we can add versioning support to
18745 # collect2, so additional links can be useful in future.
18746 if test "$aix_use_runtimelinking" = yes; then
18747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18748 # instead of lib<name>.a to let people know that these are not
18749 # typical AIX shared libraries.
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 # We preserve .a as extension for shared libraries through AIX4.2
18753 # and later when we are not doing run time linking.
18754 library_names_spec='${libname}${release}.a $libname.a'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18757 shlibpath_var=LIBPATH
18762 library_names_spec='$libname.ixlibrary $libname.a'
18763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18764 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'
18768 library_names_spec='${libname}${shared_ext}'
18769 dynamic_linker="$host_os ld.so"
18770 shlibpath_var=LIBRARY_PATH
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 soname_spec='${libname}${release}${shared_ext}$major'
18778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18779 shlibpath_var=LD_LIBRARY_PATH
18780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18782 # the default ld.so.conf also contains /usr/contrib/lib and
18783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18784 # libtool to hard-code these into programs
18787 cygwin* | mingw* | pw32*)
18788 version_type=windows
18793 case $GCC,$host_os in
18794 yes,cygwin* | yes,mingw* | yes,pw32*)
18795 library_names_spec='$libname.dll.a'
18796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18797 postinstall_cmds='base_file=`basename \${file}`~
18798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18799 dldir=$destdir/`dirname \$dlpath`~
18800 test -d \$dldir || mkdir -p \$dldir~
18801 $install_prog $dir/$dlname \$dldir/$dlname~
18802 chmod a+x \$dldir/$dlname'
18803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18804 dlpath=$dir/\$dldll~
18806 shlibpath_overrides_runpath=yes
18810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18815 # MinGW DLLs use traditional 'lib' prefix
18816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18819 # It is most probably a Windows format PATH printed by
18820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18821 # path with ; separators, and with drive letters. We can handle the
18822 # drive letters (cygwin fileutils understands them), so leave them,
18823 # especially as we might pass files found there to a mingw objdump,
18824 # which wouldn't understand a cygwinified path. Ahh.
18825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18831 # pw32 DLLs use 'pw' prefix rather than 'lib'
18832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18841 dynamic_linker='Win32 ld.exe'
18842 # FIXME: first we should search . and the directory the executable is in
18846 darwin* | rhapsody*)
18847 dynamic_linker="$host_os dyld"
18848 version_type=darwin
18851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18852 soname_spec='${libname}${release}${major}$shared_ext'
18853 shlibpath_overrides_runpath=yes
18854 shlibpath_var=DYLD_LIBRARY_PATH
18855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18865 soname_spec='${libname}${release}${shared_ext}$major'
18866 shlibpath_var=LD_LIBRARY_PATH
18873 freebsd* | dragonfly*)
18874 # DragonFly does not have aout. When/if they implement a new
18875 # versioning mechanism, adjust this.
18876 if test -x /usr/bin/objformat; then
18877 objformat=`/usr/bin/objformat`
18880 freebsd[123]*) objformat=aout ;;
18881 *) objformat=elf ;;
18884 version_type=freebsd-$objformat
18885 case $version_type in
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18896 shlibpath_var=LD_LIBRARY_PATH
18899 shlibpath_overrides_runpath=yes
18901 freebsd3.[01]* | freebsdelf3.[01]*)
18902 shlibpath_overrides_runpath=yes
18903 hardcode_into_libs=yes
18905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18907 shlibpath_overrides_runpath=no
18908 hardcode_into_libs=yes
18910 *) # from 4.6 on, and DragonFly
18911 shlibpath_overrides_runpath=yes
18912 hardcode_into_libs=yes
18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18922 soname_spec='${libname}${release}${shared_ext}$major'
18923 shlibpath_var=LD_LIBRARY_PATH
18924 hardcode_into_libs=yes
18927 hpux9* | hpux10* | hpux11*)
18928 # Give a soname corresponding to the major version so that dld.sl refuses to
18929 # link against other versions.
18936 hardcode_into_libs=yes
18937 dynamic_linker="$host_os dld.so"
18938 shlibpath_var=LD_LIBRARY_PATH
18939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941 soname_spec='${libname}${release}${shared_ext}$major'
18942 if test "X$HPUX_IA64_MODE" = X32; then
18943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18951 hardcode_into_libs=yes
18952 dynamic_linker="$host_os dld.sl"
18953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18956 soname_spec='${libname}${release}${shared_ext}$major'
18957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18962 dynamic_linker="$host_os dld.sl"
18963 shlibpath_var=SHLIB_PATH
18964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966 soname_spec='${libname}${release}${shared_ext}$major'
18969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18970 postinstall_cmds='chmod 555 $lib'
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18978 soname_spec='${libname}${release}${shared_ext}$major'
18979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18980 shlibpath_var=LD_LIBRARY_PATH
18981 shlibpath_overrides_runpath=no
18982 hardcode_into_libs=yes
18985 irix5* | irix6* | nonstopux*)
18987 nonstopux*) version_type=nonstopux ;;
18989 if test "$lt_cv_prog_gnu_ld" = yes; then
18997 soname_spec='${libname}${release}${shared_ext}$major'
18998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19000 irix5* | nonstopux*)
19001 libsuff= shlibsuff=
19004 case $LD in # libtool.m4 will add one of these switches to LD
19005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19006 libsuff= shlibsuff= libmagic=32-bit;;
19007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19008 libsuff=32 shlibsuff=N32 libmagic=N32;;
19009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19011 *) libsuff= shlibsuff= libmagic=never-match;;
19015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19016 shlibpath_overrides_runpath=no
19017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19019 hardcode_into_libs=yes
19022 # No shared lib support for Linux oldld, aout, or coff.
19023 linux*oldld* | linux*aout* | linux*coff*)
19027 # This must be Linux ELF.
19028 linux* | k*bsd*-gnu)
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19033 soname_spec='${libname}${release}${shared_ext}$major'
19034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19035 shlibpath_var=LD_LIBRARY_PATH
19036 shlibpath_overrides_runpath=no
19037 # This implies no fast_install, which is unacceptable.
19038 # Some rework will be needed to allow for fast_install
19039 # before this can be enabled.
19040 hardcode_into_libs=yes
19041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19044 # Append ld.so.conf contents to the search path
19045 if test -f /etc/ld.so.conf; then
19046 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' ' '`
19047 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19050 # We used to test for /lib/ld.so.1 and disable shared libraries on
19051 # powerpc, because MkLinux only supported shared libraries with the
19052 # GNU dynamic linker. Since this was broken with cross compilers,
19053 # most powerpc-linux boxes support dynamic linking these days and
19054 # people can always --disable-shared, the test was removed, and we
19055 # assume the GNU/Linux dynamic linker is in use.
19056 dynamic_linker='GNU/Linux ld.so'
19063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19066 dynamic_linker='NetBSD (a.out) ld.so'
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19069 soname_spec='${libname}${release}${shared_ext}$major'
19070 dynamic_linker='NetBSD ld.elf_so'
19072 shlibpath_var=LD_LIBRARY_PATH
19073 shlibpath_overrides_runpath=yes
19074 hardcode_into_libs=yes
19079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080 shlibpath_var=LD_LIBRARY_PATH
19081 shlibpath_overrides_runpath=yes
19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 shlibpath_var=LD_LIBRARY_PATH
19091 shlibpath_overrides_runpath=yes
19096 sys_lib_dlsearch_path_spec="/usr/lib"
19098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19101 *) need_version=no ;;
19103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19105 shlibpath_var=LD_LIBRARY_PATH
19106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19108 openbsd2.[89] | openbsd2.[89].*)
19109 shlibpath_overrides_runpath=no
19112 shlibpath_overrides_runpath=yes
19116 shlibpath_overrides_runpath=yes
19121 libname_spec='$name'
19124 library_names_spec='$libname${shared_ext} $libname.a'
19125 dynamic_linker='OS/2 ld.exe'
19126 shlibpath_var=LIBPATH
19129 osf3* | osf4* | osf5*)
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 shlibpath_overrides_runpath=yes
19152 hardcode_into_libs=yes
19153 # ldd complains unless libraries are executable
19154 postinstall_cmds='chmod +x $lib'
19159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19161 shlibpath_var=LD_LIBRARY_PATH
19162 shlibpath_overrides_runpath=yes
19163 if test "$with_gnu_ld" = yes; then
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 soname_spec='${libname}${release}${shared_ext}$major'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 case $host_vendor in
19176 shlibpath_overrides_runpath=no
19178 export_dynamic_flag_spec='${wl}-Blargedynsym'
19179 runpath_var=LD_RUN_PATH
19187 shlibpath_overrides_runpath=no
19188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19194 if test -d /usr/nec ;then
19196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19197 soname_spec='$libname${shared_ext}.$major'
19198 shlibpath_var=LD_LIBRARY_PATH
19202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19203 version_type=freebsd-elf
19206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19207 soname_spec='${libname}${release}${shared_ext}$major'
19208 shlibpath_var=LD_LIBRARY_PATH
19209 hardcode_into_libs=yes
19210 if test "$with_gnu_ld" = yes; then
19211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19212 shlibpath_overrides_runpath=no
19214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19215 shlibpath_overrides_runpath=yes
19218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19222 sys_lib_dlsearch_path_spec='/usr/lib'
19227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19228 soname_spec='${libname}${release}${shared_ext}$major'
19229 shlibpath_var=LD_LIBRARY_PATH
19236 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19237 $as_echo "$dynamic_linker" >&6; }
19238 test "$dynamic_linker" = no && can_build_shared=no
19240 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19241 $as_echo_n "(cached) " >&6
19243 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19246 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19248 $as_echo_n "(cached) " >&6
19250 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19253 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19256 if test "$GCC" = yes; then
19257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19260 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19261 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19262 hardcode_action_GCJ=
19263 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19264 test -n "$runpath_var_GCJ" || \
19265 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19267 # We can hardcode non-existant directories.
19268 if test "$hardcode_direct_GCJ" != no &&
19269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19270 # have to relink, otherwise we might link with an installed library
19271 # when we should be linking with a yet-to-be-installed one
19272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19273 test "$hardcode_minus_L_GCJ" != no; then
19274 # Linking always hardcodes the temporary library directory.
19275 hardcode_action_GCJ=relink
19277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19278 hardcode_action_GCJ=immediate
19281 # We cannot hardcode anything, or else we can only hardcode existing
19283 hardcode_action_GCJ=unsupported
19285 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19286 $as_echo "$hardcode_action_GCJ" >&6; }
19288 if test "$hardcode_action_GCJ" = relink; then
19289 # Fast installation is not supported
19290 enable_fast_install=no
19291 elif test "$shlibpath_overrides_runpath" = yes ||
19292 test "$enable_shared" = no; then
19293 # Fast installation is not necessary
19294 enable_fast_install=needless
19298 # The else clause should only fire when bootstrapping the
19299 # libtool distribution, otherwise you forgot to ship ltmain.sh
19300 # with your package, and you will get complaints that there are
19301 # no rules to generate ltmain.sh.
19302 if test -f "$ltmain"; then
19303 # See if we are running on zsh, and set the options which allow our commands through
19304 # without removal of \ escapes.
19305 if test -n "${ZSH_VERSION+set}" ; then
19306 setopt NO_GLOB_SUBST
19308 # Now quote all the things that may contain metacharacters while being
19309 # careful not to overquote the AC_SUBSTed values. We take copies of the
19310 # variables and quote the copies for generation of the libtool script.
19311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19315 deplibs_check_method reload_flag reload_cmds need_locks \
19316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19317 lt_cv_sys_global_symbol_to_c_name_address \
19318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19319 old_postinstall_cmds old_postuninstall_cmds \
19323 lt_prog_compiler_wl_GCJ \
19324 lt_prog_compiler_pic_GCJ \
19325 lt_prog_compiler_static_GCJ \
19326 lt_prog_compiler_no_builtin_flag_GCJ \
19327 export_dynamic_flag_spec_GCJ \
19328 thread_safe_flag_spec_GCJ \
19329 whole_archive_flag_spec_GCJ \
19330 enable_shared_with_static_runtimes_GCJ \
19331 old_archive_cmds_GCJ \
19332 old_archive_from_new_cmds_GCJ \
19333 predep_objects_GCJ \
19334 postdep_objects_GCJ \
19337 compiler_lib_search_path_GCJ \
19338 compiler_lib_search_dirs_GCJ \
19340 archive_expsym_cmds_GCJ \
19341 postinstall_cmds_GCJ \
19342 postuninstall_cmds_GCJ \
19343 old_archive_from_expsyms_cmds_GCJ \
19344 allow_undefined_flag_GCJ \
19345 no_undefined_flag_GCJ \
19346 export_symbols_cmds_GCJ \
19347 hardcode_libdir_flag_spec_GCJ \
19348 hardcode_libdir_flag_spec_ld_GCJ \
19349 hardcode_libdir_separator_GCJ \
19350 hardcode_automatic_GCJ \
19352 module_expsym_cmds_GCJ \
19353 lt_cv_prog_compiler_c_o_GCJ \
19354 fix_srcfile_path_GCJ \
19355 exclude_expsyms_GCJ \
19356 include_expsyms_GCJ; do
19359 old_archive_cmds_GCJ | \
19360 old_archive_from_new_cmds_GCJ | \
19361 archive_cmds_GCJ | \
19362 archive_expsym_cmds_GCJ | \
19363 module_cmds_GCJ | \
19364 module_expsym_cmds_GCJ | \
19365 old_archive_from_expsyms_cmds_GCJ | \
19366 export_symbols_cmds_GCJ | \
19367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19368 postinstall_cmds | postuninstall_cmds | \
19369 old_postinstall_cmds | old_postuninstall_cmds | \
19370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19371 # Double-quote double-evaled strings.
19372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19381 *'\$0 --fallback-echo"')
19382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19388 cat <<__EOF__ >> "$cfgfile"
19389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19393 # Shell to use when invoking shell scripts.
19396 # Whether or not to build shared libraries.
19397 build_libtool_libs=$enable_shared
19399 # Whether or not to build static libraries.
19400 build_old_libs=$enable_static
19402 # Whether or not to add -lc for building shared libraries.
19403 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19405 # Whether or not to disallow shared libs when runtime libs are static
19406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19408 # Whether or not to optimize for fast installation.
19409 fast_install=$enable_fast_install
19412 host_alias=$host_alias
19416 # The build system.
19417 build_alias=$build_alias
19421 # An echo program that does not interpret backslashes.
19426 AR_FLAGS=$lt_AR_FLAGS
19431 # LTCC compiler flags.
19432 LTCFLAGS=$lt_LTCFLAGS
19434 # A language-specific compiler.
19435 CC=$lt_compiler_GCJ
19437 # Is the compiler the GNU C compiler?
19443 # The linker used to build libraries.
19446 # Whether we need hard or soft links.
19449 # A BSD-compatible nm program.
19452 # A symbol stripping program
19455 # Used to examine libraries when file_magic_cmd begins "file"
19456 MAGIC_CMD=$MAGIC_CMD
19458 # Used on cygwin: DLL creation program.
19461 # Used on cygwin: object dumper.
19464 # Used on cygwin: assembler.
19467 # The name of the directory that contains temporary libtool files.
19470 # How to create reloadable object files.
19471 reload_flag=$lt_reload_flag
19472 reload_cmds=$lt_reload_cmds
19474 # How to pass a linker flag through the compiler.
19475 wl=$lt_lt_prog_compiler_wl_GCJ
19477 # Object file suffix (normally "o").
19478 objext="$ac_objext"
19480 # Old archive suffix (normally "a").
19483 # Shared library suffix (normally ".so").
19484 shrext_cmds='$shrext_cmds'
19486 # Executable file suffix (normally "").
19489 # Additional compiler flags for building library objects.
19490 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19493 # What is the maximum length of a command?
19494 max_cmd_len=$lt_cv_sys_max_cmd_len
19496 # Does compiler simultaneously support -c and -o options?
19497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19499 # Must we lock files when doing compilation?
19500 need_locks=$lt_need_locks
19502 # Do we need the lib prefix for modules?
19503 need_lib_prefix=$need_lib_prefix
19505 # Do we need a version for libraries?
19506 need_version=$need_version
19508 # Whether dlopen is supported.
19509 dlopen_support=$enable_dlopen
19511 # Whether dlopen of programs is supported.
19512 dlopen_self=$enable_dlopen_self
19514 # Whether dlopen of statically linked programs is supported.
19515 dlopen_self_static=$enable_dlopen_self_static
19517 # Compiler flag to prevent dynamic linking.
19518 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19520 # Compiler flag to turn off builtin functions.
19521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19523 # Compiler flag to allow reflexive dlopens.
19524 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19526 # Compiler flag to generate shared objects directly from archives.
19527 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19529 # Compiler flag to generate thread-safe objects.
19530 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19532 # Library versioning type.
19533 version_type=$version_type
19535 # Format of library name prefix.
19536 libname_spec=$lt_libname_spec
19538 # List of archive names. First name is the real one, the rest are links.
19539 # The last name is the one that the linker finds with -lNAME.
19540 library_names_spec=$lt_library_names_spec
19542 # The coded name of the library, if different from the real name.
19543 soname_spec=$lt_soname_spec
19545 # Commands used to build and install an old-style archive.
19547 old_archive_cmds=$lt_old_archive_cmds_GCJ
19548 old_postinstall_cmds=$lt_old_postinstall_cmds
19549 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19551 # Create an old-style archive from a shared archive.
19552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19554 # Create a temporary old-style archive to link instead of a shared archive.
19555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19557 # Commands used to build and install a shared archive.
19558 archive_cmds=$lt_archive_cmds_GCJ
19559 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19560 postinstall_cmds=$lt_postinstall_cmds
19561 postuninstall_cmds=$lt_postuninstall_cmds
19563 # Commands used to build a loadable module (assumed same as above if empty)
19564 module_cmds=$lt_module_cmds_GCJ
19565 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19567 # Commands to strip libraries.
19568 old_striplib=$lt_old_striplib
19569 striplib=$lt_striplib
19571 # Dependencies to place before the objects being linked to create a
19573 predep_objects=$lt_predep_objects_GCJ
19575 # Dependencies to place after the objects being linked to create a
19577 postdep_objects=$lt_postdep_objects_GCJ
19579 # Dependencies to place before the objects being linked to create a
19581 predeps=$lt_predeps_GCJ
19583 # Dependencies to place after the objects being linked to create a
19585 postdeps=$lt_postdeps_GCJ
19587 # The directories searched by this compiler when creating a shared
19589 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19591 # The library search path used internally by the compiler when linking
19592 # a shared library.
19593 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19595 # Method to check whether dependent libraries are shared objects.
19596 deplibs_check_method=$lt_deplibs_check_method
19598 # Command to use when deplibs_check_method == file_magic.
19599 file_magic_cmd=$lt_file_magic_cmd
19601 # Flag that allows shared libraries with undefined symbols to be built.
19602 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19604 # Flag that forces no undefined symbols.
19605 no_undefined_flag=$lt_no_undefined_flag_GCJ
19607 # Commands used to finish a libtool library installation in a directory.
19608 finish_cmds=$lt_finish_cmds
19610 # Same as above, but a single script fragment to be evaled but not shown.
19611 finish_eval=$lt_finish_eval
19613 # Take the output of nm and produce a listing of raw symbols and C names.
19614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19616 # Transform the output of nm in a proper C declaration
19617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19619 # Transform the output of nm in a C name address pair
19620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19622 # This is the shared library runtime path variable.
19623 runpath_var=$runpath_var
19625 # This is the shared library path variable.
19626 shlibpath_var=$shlibpath_var
19628 # Is shlibpath searched before the hard-coded library search path?
19629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19631 # How to hardcode a shared library path into an executable.
19632 hardcode_action=$hardcode_action_GCJ
19634 # Whether we should hardcode library paths into libraries.
19635 hardcode_into_libs=$hardcode_into_libs
19637 # Flag to hardcode \$libdir into a binary during linking.
19638 # This must work even if \$libdir does not exist.
19639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19641 # If ld is used when linking, flag to hardcode \$libdir into
19642 # a binary during linking. This must work even if \$libdir does
19644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19646 # Whether we need a single -rpath flag with a separated argument.
19647 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19650 # resulting binary.
19651 hardcode_direct=$hardcode_direct_GCJ
19653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19654 # resulting binary.
19655 hardcode_minus_L=$hardcode_minus_L_GCJ
19657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19658 # the resulting binary.
19659 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19661 # Set to yes if building a shared library automatically hardcodes DIR into the library
19662 # and all subsequent libraries and executables linked against it.
19663 hardcode_automatic=$hardcode_automatic_GCJ
19665 # Variables whose values should be saved in libtool wrapper scripts and
19666 # restored at relink time.
19667 variables_saved_for_relink="$variables_saved_for_relink"
19669 # Whether libtool must link a program against all its dependency libraries.
19670 link_all_deplibs=$link_all_deplibs_GCJ
19672 # Compile-time system search path for libraries
19673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19675 # Run-time system search path for libraries
19676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19678 # Fix the shell variable \$srcfile for the compiler.
19679 fix_srcfile_path=$lt_fix_srcfile_path
19681 # Set to yes if exported symbols are required.
19682 always_export_symbols=$always_export_symbols_GCJ
19684 # The commands to list exported symbols.
19685 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19687 # The commands to extract the exported symbol list from a shared archive.
19688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19690 # Symbols that should not be listed in the preloaded symbols.
19691 exclude_expsyms=$lt_exclude_expsyms_GCJ
19693 # Symbols that must always be exported.
19694 include_expsyms=$lt_include_expsyms_GCJ
19696 # ### END LIBTOOL TAG CONFIG: $tagname
19702 # If there is no Makefile yet, we rely on a make rule to execute
19703 # `config.status --recheck' to rerun these tests and create the
19704 # libtool script then.
19705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19706 if test -f "$ltmain_in"; then
19707 test -f Makefile && make "$ltmain"
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19728 # Source file extension for RC test sources.
19731 # Object file extension for compiled RC test sources.
19735 # Code to be used in simple compile tests
19736 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19738 # Code to be used in simple link tests
19739 lt_simple_link_test_code="$lt_simple_compile_test_code"
19741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19743 # If no C compiler was specified, use CC.
19746 # If no C compiler flags were specified, use CFLAGS.
19747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19749 # Allow CC to be a program name with arguments.
19753 # save warnings/boilerplate of simple test code
19754 ac_outfile=conftest.$ac_objext
19755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19757 _lt_compiler_boilerplate=`cat conftest.err`
19760 ac_outfile=conftest.$ac_objext
19761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19763 _lt_linker_boilerplate=`cat conftest.err`
19767 # Allow CC to be a program name with arguments.
19772 for cc_temp in $compiler""; do
19774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19782 lt_cv_prog_compiler_c_o_RC=yes
19784 # The else clause should only fire when bootstrapping the
19785 # libtool distribution, otherwise you forgot to ship ltmain.sh
19786 # with your package, and you will get complaints that there are
19787 # no rules to generate ltmain.sh.
19788 if test -f "$ltmain"; then
19789 # See if we are running on zsh, and set the options which allow our commands through
19790 # without removal of \ escapes.
19791 if test -n "${ZSH_VERSION+set}" ; then
19792 setopt NO_GLOB_SUBST
19794 # Now quote all the things that may contain metacharacters while being
19795 # careful not to overquote the AC_SUBSTed values. We take copies of the
19796 # variables and quote the copies for generation of the libtool script.
19797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19801 deplibs_check_method reload_flag reload_cmds need_locks \
19802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19803 lt_cv_sys_global_symbol_to_c_name_address \
19804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19805 old_postinstall_cmds old_postuninstall_cmds \
19809 lt_prog_compiler_wl_RC \
19810 lt_prog_compiler_pic_RC \
19811 lt_prog_compiler_static_RC \
19812 lt_prog_compiler_no_builtin_flag_RC \
19813 export_dynamic_flag_spec_RC \
19814 thread_safe_flag_spec_RC \
19815 whole_archive_flag_spec_RC \
19816 enable_shared_with_static_runtimes_RC \
19817 old_archive_cmds_RC \
19818 old_archive_from_new_cmds_RC \
19819 predep_objects_RC \
19820 postdep_objects_RC \
19823 compiler_lib_search_path_RC \
19824 compiler_lib_search_dirs_RC \
19826 archive_expsym_cmds_RC \
19827 postinstall_cmds_RC \
19828 postuninstall_cmds_RC \
19829 old_archive_from_expsyms_cmds_RC \
19830 allow_undefined_flag_RC \
19831 no_undefined_flag_RC \
19832 export_symbols_cmds_RC \
19833 hardcode_libdir_flag_spec_RC \
19834 hardcode_libdir_flag_spec_ld_RC \
19835 hardcode_libdir_separator_RC \
19836 hardcode_automatic_RC \
19838 module_expsym_cmds_RC \
19839 lt_cv_prog_compiler_c_o_RC \
19840 fix_srcfile_path_RC \
19841 exclude_expsyms_RC \
19842 include_expsyms_RC; do
19845 old_archive_cmds_RC | \
19846 old_archive_from_new_cmds_RC | \
19847 archive_cmds_RC | \
19848 archive_expsym_cmds_RC | \
19850 module_expsym_cmds_RC | \
19851 old_archive_from_expsyms_cmds_RC | \
19852 export_symbols_cmds_RC | \
19853 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19854 postinstall_cmds | postuninstall_cmds | \
19855 old_postinstall_cmds | old_postuninstall_cmds | \
19856 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19857 # Double-quote double-evaled strings.
19858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19867 *'\$0 --fallback-echo"')
19868 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19874 cat <<__EOF__ >> "$cfgfile"
19875 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19877 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19879 # Shell to use when invoking shell scripts.
19882 # Whether or not to build shared libraries.
19883 build_libtool_libs=$enable_shared
19885 # Whether or not to build static libraries.
19886 build_old_libs=$enable_static
19888 # Whether or not to add -lc for building shared libraries.
19889 build_libtool_need_lc=$archive_cmds_need_lc_RC
19891 # Whether or not to disallow shared libs when runtime libs are static
19892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19894 # Whether or not to optimize for fast installation.
19895 fast_install=$enable_fast_install
19898 host_alias=$host_alias
19902 # The build system.
19903 build_alias=$build_alias
19907 # An echo program that does not interpret backslashes.
19912 AR_FLAGS=$lt_AR_FLAGS
19917 # LTCC compiler flags.
19918 LTCFLAGS=$lt_LTCFLAGS
19920 # A language-specific compiler.
19923 # Is the compiler the GNU C compiler?
19929 # The linker used to build libraries.
19932 # Whether we need hard or soft links.
19935 # A BSD-compatible nm program.
19938 # A symbol stripping program
19941 # Used to examine libraries when file_magic_cmd begins "file"
19942 MAGIC_CMD=$MAGIC_CMD
19944 # Used on cygwin: DLL creation program.
19947 # Used on cygwin: object dumper.
19950 # Used on cygwin: assembler.
19953 # The name of the directory that contains temporary libtool files.
19956 # How to create reloadable object files.
19957 reload_flag=$lt_reload_flag
19958 reload_cmds=$lt_reload_cmds
19960 # How to pass a linker flag through the compiler.
19961 wl=$lt_lt_prog_compiler_wl_RC
19963 # Object file suffix (normally "o").
19964 objext="$ac_objext"
19966 # Old archive suffix (normally "a").
19969 # Shared library suffix (normally ".so").
19970 shrext_cmds='$shrext_cmds'
19972 # Executable file suffix (normally "").
19975 # Additional compiler flags for building library objects.
19976 pic_flag=$lt_lt_prog_compiler_pic_RC
19979 # What is the maximum length of a command?
19980 max_cmd_len=$lt_cv_sys_max_cmd_len
19982 # Does compiler simultaneously support -c and -o options?
19983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19985 # Must we lock files when doing compilation?
19986 need_locks=$lt_need_locks
19988 # Do we need the lib prefix for modules?
19989 need_lib_prefix=$need_lib_prefix
19991 # Do we need a version for libraries?
19992 need_version=$need_version
19994 # Whether dlopen is supported.
19995 dlopen_support=$enable_dlopen
19997 # Whether dlopen of programs is supported.
19998 dlopen_self=$enable_dlopen_self
20000 # Whether dlopen of statically linked programs is supported.
20001 dlopen_self_static=$enable_dlopen_self_static
20003 # Compiler flag to prevent dynamic linking.
20004 link_static_flag=$lt_lt_prog_compiler_static_RC
20006 # Compiler flag to turn off builtin functions.
20007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20009 # Compiler flag to allow reflexive dlopens.
20010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20012 # Compiler flag to generate shared objects directly from archives.
20013 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20015 # Compiler flag to generate thread-safe objects.
20016 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20018 # Library versioning type.
20019 version_type=$version_type
20021 # Format of library name prefix.
20022 libname_spec=$lt_libname_spec
20024 # List of archive names. First name is the real one, the rest are links.
20025 # The last name is the one that the linker finds with -lNAME.
20026 library_names_spec=$lt_library_names_spec
20028 # The coded name of the library, if different from the real name.
20029 soname_spec=$lt_soname_spec
20031 # Commands used to build and install an old-style archive.
20033 old_archive_cmds=$lt_old_archive_cmds_RC
20034 old_postinstall_cmds=$lt_old_postinstall_cmds
20035 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20037 # Create an old-style archive from a shared archive.
20038 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20040 # Create a temporary old-style archive to link instead of a shared archive.
20041 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20043 # Commands used to build and install a shared archive.
20044 archive_cmds=$lt_archive_cmds_RC
20045 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20046 postinstall_cmds=$lt_postinstall_cmds
20047 postuninstall_cmds=$lt_postuninstall_cmds
20049 # Commands used to build a loadable module (assumed same as above if empty)
20050 module_cmds=$lt_module_cmds_RC
20051 module_expsym_cmds=$lt_module_expsym_cmds_RC
20053 # Commands to strip libraries.
20054 old_striplib=$lt_old_striplib
20055 striplib=$lt_striplib
20057 # Dependencies to place before the objects being linked to create a
20059 predep_objects=$lt_predep_objects_RC
20061 # Dependencies to place after the objects being linked to create a
20063 postdep_objects=$lt_postdep_objects_RC
20065 # Dependencies to place before the objects being linked to create a
20067 predeps=$lt_predeps_RC
20069 # Dependencies to place after the objects being linked to create a
20071 postdeps=$lt_postdeps_RC
20073 # The directories searched by this compiler when creating a shared
20075 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20077 # The library search path used internally by the compiler when linking
20078 # a shared library.
20079 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20081 # Method to check whether dependent libraries are shared objects.
20082 deplibs_check_method=$lt_deplibs_check_method
20084 # Command to use when deplibs_check_method == file_magic.
20085 file_magic_cmd=$lt_file_magic_cmd
20087 # Flag that allows shared libraries with undefined symbols to be built.
20088 allow_undefined_flag=$lt_allow_undefined_flag_RC
20090 # Flag that forces no undefined symbols.
20091 no_undefined_flag=$lt_no_undefined_flag_RC
20093 # Commands used to finish a libtool library installation in a directory.
20094 finish_cmds=$lt_finish_cmds
20096 # Same as above, but a single script fragment to be evaled but not shown.
20097 finish_eval=$lt_finish_eval
20099 # Take the output of nm and produce a listing of raw symbols and C names.
20100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20102 # Transform the output of nm in a proper C declaration
20103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20105 # Transform the output of nm in a C name address pair
20106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20108 # This is the shared library runtime path variable.
20109 runpath_var=$runpath_var
20111 # This is the shared library path variable.
20112 shlibpath_var=$shlibpath_var
20114 # Is shlibpath searched before the hard-coded library search path?
20115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20117 # How to hardcode a shared library path into an executable.
20118 hardcode_action=$hardcode_action_RC
20120 # Whether we should hardcode library paths into libraries.
20121 hardcode_into_libs=$hardcode_into_libs
20123 # Flag to hardcode \$libdir into a binary during linking.
20124 # This must work even if \$libdir does not exist.
20125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20127 # If ld is used when linking, flag to hardcode \$libdir into
20128 # a binary during linking. This must work even if \$libdir does
20130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20132 # Whether we need a single -rpath flag with a separated argument.
20133 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20136 # resulting binary.
20137 hardcode_direct=$hardcode_direct_RC
20139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20140 # resulting binary.
20141 hardcode_minus_L=$hardcode_minus_L_RC
20143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20144 # the resulting binary.
20145 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20147 # Set to yes if building a shared library automatically hardcodes DIR into the library
20148 # and all subsequent libraries and executables linked against it.
20149 hardcode_automatic=$hardcode_automatic_RC
20151 # Variables whose values should be saved in libtool wrapper scripts and
20152 # restored at relink time.
20153 variables_saved_for_relink="$variables_saved_for_relink"
20155 # Whether libtool must link a program against all its dependency libraries.
20156 link_all_deplibs=$link_all_deplibs_RC
20158 # Compile-time system search path for libraries
20159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20161 # Run-time system search path for libraries
20162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20164 # Fix the shell variable \$srcfile for the compiler.
20165 fix_srcfile_path=$lt_fix_srcfile_path
20167 # Set to yes if exported symbols are required.
20168 always_export_symbols=$always_export_symbols_RC
20170 # The commands to list exported symbols.
20171 export_symbols_cmds=$lt_export_symbols_cmds_RC
20173 # The commands to extract the exported symbol list from a shared archive.
20174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20176 # Symbols that should not be listed in the preloaded symbols.
20177 exclude_expsyms=$lt_exclude_expsyms_RC
20179 # Symbols that must always be exported.
20180 include_expsyms=$lt_include_expsyms_RC
20182 # ### END LIBTOOL TAG CONFIG: $tagname
20188 # If there is no Makefile yet, we rely on a make rule to execute
20189 # `config.status --recheck' to rerun these tests and create the
20190 # libtool script then.
20191 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20192 if test -f "$ltmain_in"; then
20193 test -f Makefile && make "$ltmain"
20199 ac_cpp='$CPP $CPPFLAGS'
20200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20209 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20210 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20211 { (exit 1); exit 1; }; }
20215 # Append the new tag name to the list of available tags.
20216 if test -n "$tagname" ; then
20217 available_tags="$available_tags $tagname"
20223 # Now substitute the updated list of available tags.
20224 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20225 mv "${ofile}T" "$ofile"
20229 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20230 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20231 { (exit 1); exit 1; }; }
20237 # This can be used to rebuild libtool when needed
20238 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20240 # Always use our own libtool.
20241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20243 # Prevent multiple expansion
20265 # Checks for required libraries, don't set global -lpthread, -lm, -ljpeg, ... here, set in Makefile.
20266 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20267 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20268 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20269 $as_echo_n "(cached) " >&6
20271 ac_check_lib_save_LIBS=$LIBS
20272 LIBS="-lpthread $LIBS"
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20286 char pthread_create ();
20290 return pthread_create ();
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303 (eval "$ac_link") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest$ac_exeext && {
20313 test "$cross_compiling" = yes ||
20314 $as_test_x conftest$ac_exeext
20316 ac_cv_lib_pthread_pthread_create=yes
20318 $as_echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ac_cv_lib_pthread_pthread_create=no
20324 rm -rf conftest.dSYM
20325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20326 conftest$ac_exeext conftest.$ac_ext
20327 LIBS=$ac_check_lib_save_LIBS
20329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20330 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20331 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
20334 { { $as_echo "$as_me:$LINENO: error: cannot find libpthread support" >&5
20335 $as_echo "$as_me: error: cannot find libpthread support" >&2;}
20336 { (exit 7); exit 7; }; }
20339 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
20340 $as_echo_n "checking for pow in -lm... " >&6; }
20341 if test "${ac_cv_lib_m_pow+set}" = set; then
20342 $as_echo_n "(cached) " >&6
20344 ac_check_lib_save_LIBS=$LIBS
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20375 $as_echo "$ac_try_echo") >&5
20376 (eval "$ac_link") 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && {
20383 test -z "$ac_c_werror_flag" ||
20384 test ! -s conftest.err
20385 } && test -s conftest$ac_exeext && {
20386 test "$cross_compiling" = yes ||
20387 $as_test_x conftest$ac_exeext
20389 ac_cv_lib_m_pow=yes
20391 $as_echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20397 rm -rf conftest.dSYM
20398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20403 $as_echo "$ac_cv_lib_m_pow" >&6; }
20404 if test "x$ac_cv_lib_m_pow" = x""yes; then
20407 { { $as_echo "$as_me:$LINENO: error: cannot find libm math support" >&5
20408 $as_echo "$as_me: error: cannot find libm math support" >&2;}
20409 { (exit 10); exit 10; }; }
20412 { $as_echo "$as_me:$LINENO: checking for jpeg_set_defaults in -ljpeg" >&5
20413 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
20414 if test "${ac_cv_lib_jpeg_jpeg_set_defaults+set}" = set; then
20415 $as_echo_n "(cached) " >&6
20417 ac_check_lib_save_LIBS=$LIBS
20418 LIBS="-ljpeg $LIBS"
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply. */
20432 char jpeg_set_defaults ();
20436 return jpeg_set_defaults ();
20441 rm -f conftest.$ac_objext conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20448 $as_echo "$ac_try_echo") >&5
20449 (eval "$ac_link") 2>conftest.er1
20451 grep -v '^ *+' conftest.er1 >conftest.err
20453 cat conftest.err >&5
20454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest$ac_exeext && {
20459 test "$cross_compiling" = yes ||
20460 $as_test_x conftest$ac_exeext
20462 ac_cv_lib_jpeg_jpeg_set_defaults=yes
20464 $as_echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_jpeg_jpeg_set_defaults=no
20470 rm -rf conftest.dSYM
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20475 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
20476 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
20477 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = x""yes; then
20480 { { $as_echo "$as_me:$LINENO: error: \"cannot find libjpeg support\"" >&5
20481 $as_echo "$as_me: error: \"cannot find libjpeg support\"" >&2;}
20482 { (exit 102); exit 102; }; }
20485 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20488 $as_echo_n "(cached) " >&6
20490 ac_check_lib_save_LIBS=$LIBS
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20521 $as_echo "$ac_try_echo") >&5
20522 (eval "$ac_link") 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest$ac_exeext && {
20532 test "$cross_compiling" = yes ||
20533 $as_test_x conftest$ac_exeext
20535 ac_cv_lib_dl_dlopen=yes
20537 $as_echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_cv_lib_dl_dlopen=no
20543 rm -rf conftest.dSYM
20544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20545 conftest$ac_exeext conftest.$ac_ext
20546 LIBS=$ac_check_lib_save_LIBS
20548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20549 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20550 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
20551 LIBS="$LIBS" cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_LIBDL 1
20556 { { $as_echo "$as_me:$LINENO: error: \"cannot find libdl support\"" >&5
20557 $as_echo "$as_me: error: \"cannot find libdl support\"" >&2;}
20558 { (exit 104); exit 104; }; }
20562 # Checks for required header files.
20564 for ac_header in pthread.h
20566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 $as_echo_n "checking for $ac_header... " >&6; }
20570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20571 $as_echo_n "(cached) " >&6
20573 ac_res=`eval 'as_val=${'$as_ac_Header'}
20574 $as_echo "$as_val"'`
20575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20576 $as_echo "$ac_res" >&6; }
20578 # Is the header compilable?
20579 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20580 $as_echo_n "checking $ac_header usability... " >&6; }
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 $ac_includes_default
20588 #include <$ac_header>
20590 rm -f conftest.$ac_objext
20591 if { (ac_try="$ac_compile"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597 $as_echo "$ac_try_echo") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_header_compiler=yes
20610 $as_echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_header_compiler=no
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 $as_echo "$ac_header_compiler" >&6; }
20620 # Is the header present?
20621 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 $as_echo_n "checking $ac_header presence... " >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20631 if { (ac_try="$ac_cpp conftest.$ac_ext"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20637 $as_echo "$ac_try_echo") >&5
20638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } >/dev/null && {
20645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20648 ac_header_preproc=yes
20650 $as_echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ac_header_preproc=no
20656 rm -f conftest.err conftest.$ac_ext
20657 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 $as_echo "$ac_header_preproc" >&6; }
20660 # So? What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc=yes
20670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20673 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20677 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20683 ## --------------------- ##
20684 ## Report this to 3.12.4 ##
20685 ## --------------------- ##
20687 ) | sed "s/^/$as_me: WARNING: /" >&2
20690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20691 $as_echo_n "checking for $ac_header... " >&6; }
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 $as_echo_n "(cached) " >&6
20695 eval "$as_ac_Header=\$ac_header_preproc"
20697 ac_res=`eval 'as_val=${'$as_ac_Header'}
20698 $as_echo "$as_val"'`
20699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20700 $as_echo "$ac_res" >&6; }
20703 as_val=`eval 'as_val=${'$as_ac_Header'}
20704 $as_echo "$as_val"'`
20705 if test "x$as_val" = x""yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20711 { { $as_echo "$as_me:$LINENO: error: cannot find pthread-devel support" >&5
20712 $as_echo "$as_me: error: cannot find pthread-devel support" >&2;}
20713 { (exit 7); exit 7; }; }
20719 for ac_header in jpeglib.h
20721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20724 $as_echo_n "checking for $ac_header... " >&6; }
20725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20726 $as_echo_n "(cached) " >&6
20728 ac_res=`eval 'as_val=${'$as_ac_Header'}
20729 $as_echo "$as_val"'`
20730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20731 $as_echo "$ac_res" >&6; }
20733 # Is the header compilable?
20734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20735 $as_echo_n "checking $ac_header usability... " >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 $ac_includes_default
20743 #include <$ac_header>
20745 rm -f conftest.$ac_objext
20746 if { (ac_try="$ac_compile"
20747 case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20752 $as_echo "$ac_try_echo") >&5
20753 (eval "$ac_compile") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest.$ac_objext; then
20763 ac_header_compiler=yes
20765 $as_echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_header_compiler=no
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20773 $as_echo "$ac_header_compiler" >&6; }
20775 # Is the header present?
20776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20777 $as_echo_n "checking $ac_header presence... " >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <$ac_header>
20786 if { (ac_try="$ac_cpp conftest.$ac_ext"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20792 $as_echo "$ac_try_echo") >&5
20793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } >/dev/null && {
20800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20801 test ! -s conftest.err
20803 ac_header_preproc=yes
20805 $as_echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20808 ac_header_preproc=no
20811 rm -f conftest.err conftest.$ac_ext
20812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20813 $as_echo "$ac_header_preproc" >&6; }
20815 # So? What about this header?
20816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20822 ac_header_preproc=yes
20825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20838 ## --------------------- ##
20839 ## Report this to 3.12.4 ##
20840 ## --------------------- ##
20842 ) | sed "s/^/$as_me: WARNING: /" >&2
20845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20846 $as_echo_n "checking for $ac_header... " >&6; }
20847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20848 $as_echo_n "(cached) " >&6
20850 eval "$as_ac_Header=\$ac_header_preproc"
20852 ac_res=`eval 'as_val=${'$as_ac_Header'}
20853 $as_echo "$as_val"'`
20854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20855 $as_echo "$ac_res" >&6; }
20858 as_val=`eval 'as_val=${'$as_ac_Header'}
20859 $as_echo "$as_val"'`
20860 if test "x$as_val" = x""yes; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20866 { { $as_echo "$as_me:$LINENO: error: cannot find libjpeg-devel support" >&5
20867 $as_echo "$as_me: error: cannot find libjpeg-devel support" >&2;}
20868 { (exit 103); exit 103; }; }
20874 # Checks for typedefs, structures, and compiler characteristics.
20876 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20877 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20878 if test "${ac_cv_c_bigendian+set}" = set; then
20879 $as_echo_n "(cached) " >&6
20881 ac_cv_c_bigendian=unknown
20882 # See if we're dealing with a universal compiler.
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20889 #ifndef __APPLE_CC__
20890 not a universal capable compiler
20895 rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20902 $as_echo "$ac_try_echo") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
20914 # Check for potential -arch flags. It is not universal unless
20915 # there are some -arch flags. Note that *ppc* also matches
20916 # ppc64. This check is also rather less than ideal.
20917 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
20918 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
20921 $as_echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 if test $ac_cv_c_bigendian = unknown; then
20929 # See if sys/param.h defines the BYTE_ORDER macro.
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 #include <sys/types.h>
20937 #include <sys/param.h>
20942 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20943 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20945 bogus endian macros
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20959 $as_echo "$ac_try_echo") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20970 # It does; now see whether it defined to BIG_ENDIAN or not.
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <sys/types.h>
20978 #include <sys/param.h>
20983 #if BYTE_ORDER != BIG_ENDIAN
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20998 $as_echo "$ac_try_echo") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21001 grep -v '^ *+' conftest.er1 >conftest.err
21003 cat conftest.err >&5
21004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.$ac_objext; then
21009 ac_cv_c_bigendian=yes
21011 $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_c_bigendian=no
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 $as_echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 if test $ac_cv_c_bigendian = unknown; then
21028 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 #include <limits.h>
21040 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21041 bogus endian macros
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 # It does; now see whether it defined to _BIG_ENDIAN or not.
21067 cat >conftest.$ac_ext <<_ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 #include <limits.h>
21078 #ifndef _BIG_ENDIAN
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21093 $as_echo "$ac_try_echo") >&5
21094 (eval "$ac_compile") 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && {
21101 test -z "$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21103 } && test -s conftest.$ac_objext; then
21104 ac_cv_c_bigendian=yes
21106 $as_echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_cv_c_bigendian=no
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 $as_echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 if test $ac_cv_c_bigendian = unknown; then
21123 # Compile a test program.
21124 if test "$cross_compiling" = yes; then
21125 # Try to guess by grepping values from an object file.
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 short int ascii_mm[] =
21133 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21134 short int ascii_ii[] =
21135 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21136 int use_ascii (int i) {
21137 return ascii_mm[i] + ascii_ii[i];
21139 short int ebcdic_ii[] =
21140 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21141 short int ebcdic_mm[] =
21142 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21143 int use_ebcdic (int i) {
21144 return ebcdic_mm[i] + ebcdic_ii[i];
21151 return use_ascii (foo) == use_ebcdic (foo);
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21174 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21175 ac_cv_c_bigendian=yes
21177 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21178 if test "$ac_cv_c_bigendian" = unknown; then
21179 ac_cv_c_bigendian=no
21181 # finding both strings is unlikely to happen, but who knows?
21182 ac_cv_c_bigendian=unknown
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 $ac_includes_default
21205 /* Are we little or big endian? From Harbison&Steele. */
21209 char c[sizeof (long int)];
21212 return u.c[sizeof (long int) - 1] == 1;
21218 rm -f conftest$ac_exeext
21219 if { (ac_try="$ac_link"
21220 case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21225 $as_echo "$ac_try_echo") >&5
21226 (eval "$ac_link") 2>&5
21228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21230 { (case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21235 $as_echo "$ac_try_echo") >&5
21236 (eval "$ac_try") 2>&5
21238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_c_bigendian=no
21242 $as_echo "$as_me: program exited with status $ac_status" >&5
21243 $as_echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ( exit $ac_status )
21247 ac_cv_c_bigendian=yes
21249 rm -rf conftest.dSYM
21250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21256 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21257 $as_echo "$ac_cv_c_bigendian" >&6; }
21258 case $ac_cv_c_bigendian in #(
21260 cat >>confdefs.h <<\_ACEOF
21261 #define WORDS_BIGENDIAN 1
21265 APDK_ENDIAN_FLAG="-DAPDK_LITTLE_ENDIAN" ;; #(
21268 cat >>confdefs.h <<\_ACEOF
21269 #define AC_APPLE_UNIVERSAL_BUILD 1
21274 { { $as_echo "$as_me:$LINENO: error: unknown endianness
21275 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21276 $as_echo "$as_me: error: unknown endianness
21277 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21278 { (exit 1); exit 1; }; } ;;
21282 # Autoconf-style header tests for APDK
21283 cat >prnt/hpijs/auto-include.h <<EOFH
21284 #ifdef HAVE_INTTYPES_H
21285 #include <inttypes.h>
21287 #ifdef HAVE_STDINT_H
21288 #include <stdint.h>
21290 #ifdef HAVE_MACHINE_TYPES_H
21291 #include <machine/types.h>
21294 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
21295 $as_echo_n "checking for uint32_t... " >&6; }
21296 if test "${ac_cv_type_uint32_t+set}" = set; then
21297 $as_echo_n "(cached) " >&6
21299 ac_cv_type_uint32_t=no
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include "prnt/hpijs/auto-include.h"
21311 if (sizeof (uint32_t))
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21324 $as_echo "$ac_try_echo") >&5
21325 (eval "$ac_compile") 2>conftest.er1
21327 grep -v '^ *+' conftest.er1 >conftest.err
21329 cat conftest.err >&5
21330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest.$ac_objext; then
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include "prnt/hpijs/auto-include.h"
21346 if (sizeof ((uint32_t)))
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21359 $as_echo "$ac_try_echo") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21372 $as_echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_cv_type_uint32_t=yes
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380 $as_echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21389 $as_echo "$ac_cv_type_uint32_t" >&6; }
21390 if test "x$ac_cv_type_uint32_t" = x""yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define HAVE_UINT32_T 1
21396 APDK_AUTO_INCLUDE_FLAG="-DAPDK_AUTO_INCLUDE"
21400 { $as_echo "$as_me:$LINENO: checking \"for platform-dependencies\"" >&5
21401 $as_echo_n "checking \"for platform-dependencies\"... " >&6; }
21405 { $as_echo "$as_me:$LINENO: result: \"using Mac OS X platform.h\"" >&5
21406 $as_echo "\"using Mac OS X platform.h\"" >&6; }
21407 cat >prnt/hpijs/platform.h <<EOF
21408 #include <stdlib.h>
21409 #include <sys/types.h>
21410 #include <sys/malloc.h>
21411 #include <memory.h>
21412 #include <string.h>
21420 { $as_echo "$as_me:$LINENO: result: \"using Default platform.h\"" >&5
21421 $as_echo "\"using Default platform.h\"" >&6; }
21422 cat >prnt/hpijs/platform.h <<EOF
21423 #include <stdlib.h>
21424 #include <memory.h>
21425 #include <string.h>
21431 if test x$darwin_build = xyes; then
21433 DARWIN_BUILD_FALSE='#'
21435 DARWIN_BUILD_TRUE='#'
21436 DARWIN_BUILD_FALSE=
21440 { $as_echo "$as_me:$LINENO: checking for documentation build" >&5
21441 $as_echo_n "checking for documentation build... " >&6; }
21442 # Check whether --enable-doc_build was given.
21443 if test "${enable_doc_build+set}" = set; then
21444 enableval=$enable_doc_build; doc_build=$enableval
21449 if test "$doc_build" = "yes"; then
21450 { $as_echo "$as_me:$LINENO: result: yes" >&5
21451 $as_echo "yes" >&6; }
21453 { $as_echo "$as_me:$LINENO: result: no" >&5
21454 $as_echo "no" >&6; }
21456 if test x$doc_build = xyes; then
21458 DOC_BUILD_FALSE='#'
21465 { $as_echo "$as_me:$LINENO: checking for hpijs only build" >&5
21466 $as_echo_n "checking for hpijs only build... " >&6; }
21467 # Check whether --enable-hpijs_only_build was given.
21468 if test "${enable_hpijs_only_build+set}" = set; then
21469 enableval=$enable_hpijs_only_build; hpijs_only_build=$enableval
21471 hpijs_only_build=no
21474 if test "$hpijs_only_build" = "yes"; then
21475 { $as_echo "$as_me:$LINENO: result: yes" >&5
21476 $as_echo "yes" >&6; }
21480 epm_print_only_exclude=\#
21483 { $as_echo "$as_me:$LINENO: result: no" >&5
21484 $as_echo "no" >&6; }
21486 cat >>confdefs.h <<\_ACEOF
21487 #define HAVE_LIBHPIP 1
21491 if test x$hpijs_only_build = xyes; then
21492 HPIJS_ONLY_BUILD_TRUE=
21493 HPIJS_ONLY_BUILD_FALSE='#'
21495 HPIJS_ONLY_BUILD_TRUE='#'
21496 HPIJS_ONLY_BUILD_FALSE=
21500 { $as_echo "$as_me:$LINENO: checking for lite build" >&5
21501 $as_echo_n "checking for lite build... " >&6; }
21502 # Check whether --enable-lite_build was given.
21503 if test "${enable_lite_build+set}" = set; then
21504 enableval=$enable_lite_build; lite_build=$enableval
21509 if test "$lite_build" = "yes"; then
21510 { $as_echo "$as_me:$LINENO: result: yes" >&5
21511 $as_echo "yes" >&6; }
21514 epm_print_only_exclude=
21517 { $as_echo "$as_me:$LINENO: result: no" >&5
21518 $as_echo "no" >&6; }
21520 if test x$lite_build = xyes; then
21522 LITE_BUILD_FALSE='#'
21524 LITE_BUILD_TRUE='#'
21529 { $as_echo "$as_me:$LINENO: checking for hpcups only build" >&5
21530 $as_echo_n "checking for hpcups only build... " >&6; }
21531 # Check whether --enable-hpcups_only_build was given.
21532 if test "${enable_hpcups_only_build+set}" = set; then
21533 enableval=$enable_hpcups_only_build; hpcups_only_build=$enableval
21535 hpcups_only_build=no
21538 if test "$hpcups_only_build" = "yes"; then
21539 { $as_echo "$as_me:$LINENO: result: yes" >&5
21540 $as_echo "yes" >&6; }
21544 epm_print_only_exclude=\#
21546 { $as_echo "$as_me:$LINENO: result: no" >&5
21547 $as_echo "no" >&6; }
21549 if test x$hpcups_only_build = xyes; then
21550 HPCUPS_ONLY_BUILD_TRUE=
21551 HPCUPS_ONLY_BUILD_FALSE='#'
21553 HPCUPS_ONLY_BUILD_TRUE='#'
21554 HPCUPS_ONLY_BUILD_FALSE=
21558 if test x$hpcups_only_build = xno && test x$hpijs_only_build = xno; then
21560 HPLIP_BUILD_FALSE='#'
21562 HPLIP_BUILD_TRUE='#'
21566 if test "$hpijs_only_build" = "no" && test "$hpcups_only_build" = "no"; then
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_LIBHPIP 1
21573 if test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$hpijs_only_build" = "no"; then
21577 epm_print_only_exclude=
21579 if test x$hpcups_only_build = xno && test x$lite_build = xno && test x$hpijs_only_build = xno; then
21581 FULL_BUILD_FALSE='#'
21583 FULL_BUILD_TRUE='#'
21588 { $as_echo "$as_me:$LINENO: checking for hpijs install" >&5
21589 $as_echo_n "checking for hpijs install... " >&6; }
21590 # Check whether --enable-hpijs_install was given.
21591 if test "${enable_hpijs_install+set}" = set; then
21592 enableval=$enable_hpijs_install; hpijs_install=$enableval
21597 if test "$hpijs_install" = "yes"; then
21598 { $as_echo "$as_me:$LINENO: result: yes" >&5
21599 $as_echo "yes" >&6; }
21600 epm_hpijs_install=yes
21602 { $as_echo "$as_me:$LINENO: result: no" >&5
21603 $as_echo "no" >&6; }
21605 if test x$hpijs_install = xyes; then
21606 HPIJS_INSTALL_TRUE=
21607 HPIJS_INSTALL_FALSE='#'
21609 HPIJS_INSTALL_TRUE='#'
21610 HPIJS_INSTALL_FALSE=
21614 { $as_echo "$as_me:$LINENO: checking for hpcups install" >&5
21615 $as_echo_n "checking for hpcups install... " >&6; }
21616 # Check whether --enable-hpcups_install was given.
21617 if test "${enable_hpcups_install+set}" = set; then
21618 enableval=$enable_hpcups_install; hpcups_install=$enableval
21623 if test "$hpcups_install" = "yes" && test "$hpijs_only_build" = "no"; then
21624 { $as_echo "$as_me:$LINENO: result: yes" >&5
21625 $as_echo "yes" >&6; }
21626 epm_hpcups_install=yes
21628 { $as_echo "$as_me:$LINENO: result: no" >&5
21629 $as_echo "no" >&6; }
21631 if test x$hpcups_install = xyes && test x$hpijs_only_build = xno; then
21632 HPCUPS_INSTALL_TRUE=
21633 HPCUPS_INSTALL_FALSE='#'
21635 HPCUPS_INSTALL_TRUE='#'
21636 HPCUPS_INSTALL_FALSE=
21640 { $as_echo "$as_me:$LINENO: checking for new hpcups install" >&5
21641 $as_echo_n "checking for new hpcups install... " >&6; }
21642 # Check whether --enable-new_hpcups was given.
21643 if test "${enable_new_hpcups+set}" = set; then
21644 enableval=$enable_new_hpcups; new_hpcups=$enableval
21649 if test "$new_hpcups" = "yes"; then
21650 { $as_echo "$as_me:$LINENO: result: yes" >&5
21651 $as_echo "yes" >&6; }
21653 { $as_echo "$as_me:$LINENO: result: no" >&5
21654 $as_echo "no" >&6; }
21656 if test x$new_hpcups = xyes; then
21658 NEW_HPCUPS_FALSE='#'
21660 NEW_HPCUPS_TRUE='#'
21665 { $as_echo "$as_me:$LINENO: checking for network build" >&5
21666 $as_echo_n "checking for network build... " >&6; }
21667 # Check whether --enable-network_build was given.
21668 if test "${enable_network_build+set}" = set; then
21669 enableval=$enable_network_build; network_build=$enableval
21674 if test "$network_build" = "yes"; then
21675 { $as_echo "$as_me:$LINENO: result: yes" >&5
21676 $as_echo "yes" >&6; }
21678 { $as_echo "$as_me:$LINENO: result: no" >&5
21679 $as_echo "no" >&6; }
21681 if test x$network_build = xyes; then
21682 NETWORK_BUILD_TRUE=
21683 NETWORK_BUILD_FALSE='#'
21685 NETWORK_BUILD_TRUE='#'
21686 NETWORK_BUILD_FALSE=
21690 { $as_echo "$as_me:$LINENO: checking for parallel port build" >&5
21691 $as_echo_n "checking for parallel port build... " >&6; }
21692 # Check whether --enable-pp_build was given.
21693 if test "${enable_pp_build+set}" = set; then
21694 enableval=$enable_pp_build; pp_build=$enableval
21699 if test "$pp_build" = "yes"; then
21700 { $as_echo "$as_me:$LINENO: result: yes" >&5
21701 $as_echo "yes" >&6; }
21702 cat >>confdefs.h <<\_ACEOF
21703 #define HAVE_PPORT 1
21707 { $as_echo "$as_me:$LINENO: result: no" >&5
21708 $as_echo "no" >&6; }
21711 { $as_echo "$as_me:$LINENO: checking for scanner build" >&5
21712 $as_echo_n "checking for scanner build... " >&6; }
21713 # Check whether --enable-scan_build was given.
21714 if test "${enable_scan_build+set}" = set; then
21715 enableval=$enable_scan_build; scan_build=$enableval
21720 if test "$scan_build" = "yes"; then
21721 { $as_echo "$as_me:$LINENO: result: yes" >&5
21722 $as_echo "yes" >&6; }
21725 { $as_echo "$as_me:$LINENO: result: no" >&5
21726 $as_echo "no" >&6; }
21729 if test x$scan_build = xyes; then
21731 SCAN_BUILD_FALSE='#'
21733 SCAN_BUILD_TRUE='#'
21738 { $as_echo "$as_me:$LINENO: checking for gui build" >&5
21739 $as_echo_n "checking for gui build... " >&6; }
21740 # Check whether --enable-gui_build was given.
21741 if test "${enable_gui_build+set}" = set; then
21742 enableval=$enable_gui_build; gui_build=$enableval
21747 if test "$gui_build" = "yes"; then
21748 { $as_echo "$as_me:$LINENO: result: yes" >&5
21749 $as_echo "yes" >&6; }
21751 { $as_echo "$as_me:$LINENO: result: no" >&5
21752 $as_echo "no" >&6; }
21754 if test x$gui_build = xyes; then
21756 GUI_BUILD_FALSE='#'
21763 { $as_echo "$as_me:$LINENO: checking for fax build" >&5
21764 $as_echo_n "checking for fax build... " >&6; }
21765 # Check whether --enable-fax_build was given.
21766 if test "${enable_fax_build+set}" = set; then
21767 enableval=$enable_fax_build; fax_build=$enableval
21772 if test "$fax_build" = "yes"; then
21773 { $as_echo "$as_me:$LINENO: result: yes" >&5
21774 $as_echo "yes" >&6; }
21776 { $as_echo "$as_me:$LINENO: result: no" >&5
21777 $as_echo "no" >&6; }
21779 if test x$fax_build = xyes; then
21781 FAX_BUILD_FALSE='#'
21788 { $as_echo "$as_me:$LINENO: checking for dbus build" >&5
21789 $as_echo_n "checking for dbus build... " >&6; }
21790 # Check whether --enable-dbus_build was given.
21791 if test "${enable_dbus_build+set}" = set; then
21792 enableval=$enable_dbus_build; dbus_build=$enableval
21797 if test "$dbus_build" = "yes"; then
21798 { $as_echo "$as_me:$LINENO: result: yes" >&5
21799 $as_echo "yes" >&6; }
21801 { $as_echo "$as_me:$LINENO: result: no" >&5
21802 $as_echo "no" >&6; }
21805 { $as_echo "$as_me:$LINENO: checking for cups 1.1.x build" >&5
21806 $as_echo_n "checking for cups 1.1.x build... " >&6; }
21807 # Check whether --enable-cups11_build was given.
21808 if test "${enable_cups11_build+set}" = set; then
21809 enableval=$enable_cups11_build; cups11_build=$enableval
21814 if test "$cups11_build" = "yes"; then
21815 { $as_echo "$as_me:$LINENO: result: yes" >&5
21816 $as_echo "yes" >&6; }
21817 cat >>confdefs.h <<\_ACEOF
21818 #define HAVE_CUPS11 1
21822 { $as_echo "$as_me:$LINENO: result: no" >&5
21823 $as_echo "no" >&6; }
21826 { $as_echo "$as_me:$LINENO: checking for udev acl rules" >&5
21827 $as_echo_n "checking for udev acl rules... " >&6; }
21828 # Check whether --enable-udev_acl_rules was given.
21829 if test "${enable_udev_acl_rules+set}" = set; then
21830 enableval=$enable_udev_acl_rules; udev_acl_rules=$enableval
21835 if test "$udev_acl_rules" = "yes"; then
21836 { $as_echo "$as_me:$LINENO: result: yes" >&5
21837 $as_echo "yes" >&6; }
21839 { $as_echo "$as_me:$LINENO: result: no" >&5
21840 $as_echo "no" >&6; }
21842 if test x$udev_acl_rules = xyes; then
21843 UDEV_ACL_RULES_TRUE=
21844 UDEV_ACL_RULES_FALSE='#'
21846 UDEV_ACL_RULES_TRUE='#'
21847 UDEV_ACL_RULES_FALSE=
21851 { $as_echo "$as_me:$LINENO: checking for shadow build" >&5
21852 $as_echo_n "checking for shadow build... " >&6; }
21853 # Check whether --enable-shadow_build was given.
21854 if test "${enable_shadow_build+set}" = set; then
21855 enableval=$enable_shadow_build; shadow_build=$enableval
21860 if test "$shadow_build" = "yes"; then
21861 { $as_echo "$as_me:$LINENO: result: yes" >&5
21862 $as_echo "yes" >&6; }
21864 { $as_echo "$as_me:$LINENO: result: no" >&5
21865 $as_echo "no" >&6; }
21867 if test x$shadow_build = xyes; then
21869 SHADOW_BUILD_FALSE='#'
21871 SHADOW_BUILD_TRUE='#'
21872 SHADOW_BUILD_FALSE=
21877 # Check whether --with-cupsbackenddir was given.
21878 if test "${with_cupsbackenddir+set}" = set; then
21879 withval=$with_cupsbackenddir; cupsbackenddir=$withval
21881 cupsbackenddir="/usr/lib/cups/backend"
21886 # Check whether --with-cupsfilterdir was given.
21887 if test "${with_cupsfilterdir+set}" = set; then
21888 withval=$with_cupsfilterdir; cupsfilterdir=$withval
21890 cupsfilterdir="/usr/lib/cups/filter"
21895 # Check whether --with-icondir was given.
21896 if test "${with_icondir+set}" = set; then
21897 withval=$with_icondir; icondir=$withval
21899 icondir="/usr/share/applications"
21904 # Check whether --with-systraydir was given.
21905 if test "${with_systraydir+set}" = set; then
21906 withval=$with_systraydir; systraydir=$withval
21908 systraydir="/etc/xdg/autostart"
21913 # Check whether --with-hpppddir was given.
21914 if test "${with_hpppddir+set}" = set; then
21915 withval=$with_hpppddir; hpppddir=$withval
21917 hpppddir="$datadir/ppd/HP"
21921 if test -f "/usr/share/cups/mime/mime.types"; then
21922 abs_mimedir="/usr/share/cups/mime/"
21924 abs_mimedir="/etc/cups/"
21927 # Check whether --with-mimedir was given.
21928 if test "${with_mimedir+set}" = set; then
21929 withval=$with_mimedir; mimedir=$withval
21931 mimedir="$abs_mimedir"
21936 # Check whether --with-docdir was given.
21937 if test "${with_docdir+set}" = set; then
21938 withval=$with_docdir; hpdocdir=$withval
21940 hpdocdir="$datadir/doc/hplip-$VERSION"
21944 { $as_echo "$as_me:$LINENO: checking for foomatic ppd install" >&5
21945 $as_echo_n "checking for foomatic ppd install... " >&6; }
21946 # Check whether --enable-foomatic_ppd_install was given.
21947 if test "${enable_foomatic_ppd_install+set}" = set; then
21948 enableval=$enable_foomatic_ppd_install; foomatic_ppd_install=$enableval
21950 foomatic_ppd_install=no
21953 if test $foomatic_ppd_install = yes; then
21954 { $as_echo "$as_me:$LINENO: result: yes" >&5
21955 $as_echo "yes" >&6; }
21956 epm_foomatic_ppd_install=yes
21958 { $as_echo "$as_me:$LINENO: result: no" >&5
21959 $as_echo "no" >&6; }
21961 if test x$foomatic_ppd_install = xyes; then
21962 FOOMATIC_PPD_INSTALL_TRUE=
21963 FOOMATIC_PPD_INSTALL_FALSE='#'
21965 FOOMATIC_PPD_INSTALL_TRUE='#'
21966 FOOMATIC_PPD_INSTALL_FALSE=
21971 # Check whether --with-drvdir was given.
21972 if test "${with_drvdir+set}" = set; then
21973 withval=$with_drvdir; drvdir=$withval
21975 drvdir="$datadir/cups/drv/hp"
21979 { $as_echo "$as_me:$LINENO: checking for foomatic drv install" >&5
21980 $as_echo_n "checking for foomatic drv install... " >&6; }
21981 # Check whether --enable-foomatic_drv_install was given.
21982 if test "${enable_foomatic_drv_install+set}" = set; then
21983 enableval=$enable_foomatic_drv_install; foomatic_drv_install=$enableval
21985 foomatic_drv_install=no
21988 if test $foomatic_drv_install = yes; then
21989 { $as_echo "$as_me:$LINENO: result: yes" >&5
21990 $as_echo "yes" >&6; }
21991 epm_foomatic_drv_install=yes
21993 { $as_echo "$as_me:$LINENO: result: no" >&5
21994 $as_echo "no" >&6; }
21996 if test x$foomatic_drv_install = xyes; then
21997 FOOMATIC_DRV_INSTALL_TRUE=
21998 FOOMATIC_DRV_INSTALL_FALSE='#'
22000 FOOMATIC_DRV_INSTALL_TRUE='#'
22001 FOOMATIC_DRV_INSTALL_FALSE=
22005 { $as_echo "$as_me:$LINENO: checking for cups drv install" >&5
22006 $as_echo_n "checking for cups drv install... " >&6; }
22007 # Check whether --enable-cups_drv_install was given.
22008 if test "${enable_cups_drv_install+set}" = set; then
22009 enableval=$enable_cups_drv_install; cups_drv_install=$enableval
22011 cups_drv_install=yes
22014 if test $cups_drv_install = yes && test $hpijs_only_build = no; then
22015 { $as_echo "$as_me:$LINENO: result: yes" >&5
22016 $as_echo "yes" >&6; }
22017 epm_cups_drv_install=yes
22019 { $as_echo "$as_me:$LINENO: result: no" >&5
22020 $as_echo "no" >&6; }
22022 if test x$cups_drv_install = xyes && test x$hpijs_only_build = xno; then
22023 CUPS_DRV_INSTALL_TRUE=
22024 CUPS_DRV_INSTALL_FALSE='#'
22026 CUPS_DRV_INSTALL_TRUE='#'
22027 CUPS_DRV_INSTALL_FALSE=
22031 { $as_echo "$as_me:$LINENO: checking for cups ppd install" >&5
22032 $as_echo_n "checking for cups ppd install... " >&6; }
22033 # Check whether --enable-cups_ppd_install was given.
22034 if test "${enable_cups_ppd_install+set}" = set; then
22035 enableval=$enable_cups_ppd_install; cups_ppd_install=$enableval
22037 cups_ppd_install=no
22040 if test $cups_ppd_install = yes && test $hpijs_only_build = no; then
22041 { $as_echo "$as_me:$LINENO: result: yes" >&5
22042 $as_echo "yes" >&6; }
22043 epm_cups_ppd_install=yes
22045 { $as_echo "$as_me:$LINENO: result: no" >&5
22046 $as_echo "no" >&6; }
22048 if test x$cups_ppd_install = xyes && test x$hpijs_only_build = xno; then
22049 CUPS_PPD_INSTALL_TRUE=
22050 CUPS_PPD_INSTALL_FALSE='#'
22052 CUPS_PPD_INSTALL_TRUE='#'
22053 CUPS_PPD_INSTALL_FALSE=
22057 { $as_echo "$as_me:$LINENO: checking for foomatic-rip-hplip install" >&5
22058 $as_echo_n "checking for foomatic-rip-hplip install... " >&6; }
22059 # Check whether --enable-foomatic_rip_hplip_install was given.
22060 if test "${enable_foomatic_rip_hplip_install+set}" = set; then
22061 enableval=$enable_foomatic_rip_hplip_install; foomatic_rip_hplip_install=$enableval
22063 foomatic_rip_hplip_install=no
22066 if test "$foomatic_rip_hplip_install" = "yes"; then
22067 { $as_echo "$as_me:$LINENO: result: yes" >&5
22068 $as_echo "yes" >&6; }
22069 foomatic_filter="foomatic-rip-hplip"
22070 epm_foomatic_rip_hplip_install=yes
22072 { $as_echo "$as_me:$LINENO: result: no" >&5
22073 $as_echo "no" >&6; }
22074 foomatic_filter="foomatic-rip"
22076 if test x$foomatic_rip_hplip_install = xyes; then
22078 RIP_INSTALL_FALSE='#'
22080 RIP_INSTALL_TRUE='#'
22085 { $as_echo "$as_me:$LINENO: checking for qt4" >&5
22086 $as_echo_n "checking for qt4... " >&6; }
22087 # Check whether --enable-qt4 was given.
22088 if test "${enable_qt4+set}" = set; then
22089 enableval=$enable_qt4; qt4=$enableval
22094 if test "$qt4" = "yes"; then
22095 { $as_echo "$as_me:$LINENO: result: yes" >&5
22096 $as_echo "yes" >&6; }
22098 { $as_echo "$as_me:$LINENO: result: no" >&5
22099 $as_echo "no" >&6; }
22101 if test x$qt4 = xyes; then
22103 QT4_INSTALL_FALSE='#'
22105 QT4_INSTALL_TRUE='#'
22110 { $as_echo "$as_me:$LINENO: checking for qt3" >&5
22111 $as_echo_n "checking for qt3... " >&6; }
22112 # Check whether --enable-qt3 was given.
22113 if test "${enable_qt3+set}" = set; then
22114 enableval=$enable_qt3; qt3=$enableval
22119 if test "$qt3" = "yes"; then
22120 { $as_echo "$as_me:$LINENO: result: yes" >&5
22121 $as_echo "yes" >&6; }
22123 { $as_echo "$as_me:$LINENO: result: no" >&5
22124 $as_echo "no" >&6; }
22126 if test x$qt3 = xyes; then
22128 QT3_INSTALL_FALSE='#'
22130 QT3_INSTALL_TRUE='#'
22135 if test "$gui_build" = "no"; then
22142 if test "$hpcups_only_build" = "no" && test "$hpijs_only_build" = "no"; then
22143 if test "$qt3" = "yes" && test "$qt4" = "no"; then
22146 elif test "$qt4" = "yes"; then
22154 { $as_echo "$as_me:$LINENO: checking for policykit" >&5
22155 $as_echo_n "checking for policykit... " >&6; }
22156 # Check whether --enable-policykit was given.
22157 if test "${enable_policykit+set}" = set; then
22158 enableval=$enable_policykit; policykit=$enableval
22163 if test "$policykit" = "yes"; then
22164 { $as_echo "$as_me:$LINENO: result: yes" >&5
22165 $as_echo "yes" >&6; }
22167 { $as_echo "$as_me:$LINENO: result: no" >&5
22168 $as_echo "no" >&6; }
22170 if test x$policykit = xyes; then
22171 POLICYKIT_INSTALL_TRUE=
22172 POLICYKIT_INSTALL_FALSE='#'
22174 POLICYKIT_INSTALL_TRUE='#'
22175 POLICYKIT_INSTALL_FALSE=
22179 # Determine where the PolicyKit policy file goes
22180 if test "$policykit" = "yes"; then
22181 if test -d /usr/share/polkit-1; then
22182 policykit_dir=/usr/share/polkit-1/actions
22183 elif test -d /usr/share/PolicyKit; then
22184 policykit_dir=/usr/share/PolicyKit/policy
22186 policykit_dir=/usr/share/PolicyKit/policy
22192 { $as_echo "$as_me:$LINENO: checking for host machine platform" >&5
22193 $as_echo_n "checking for host machine platform... " >&6; }
22195 if test "$machine" = "x86_32" || test "$machine" = "i686"; then
22197 elif test "$machine" = "x86_64"; then
22199 elif test "$machine" = "ppc"; then
22202 platform="unsupport"
22204 { $as_echo "$as_me:$LINENO: result: $platform" >&5
22205 $as_echo "$platform" >&6; }
22207 # Check conditional packages.
22209 if test "$hpijs_only_build" = "no" && test "$network_build" = "yes"; then
22210 # AC_CHECK_LIB([crypto], [CRYPTO_free], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find net-snmp support (or --disable-network-build)], 4)])
22211 # AC_CHECK_LIB([netsnmp], [snmp_timeout], [LIBS="$LIBS" AC_DEFINE([HAVE_LIBNETSNMP])], [AC_MSG_ERROR([cannot find net-snmp support (or --disable-network-build)], 4)])
22212 # AC_CHECK_HEADERS(net-snmp/net-snmp-config.h,, [AC_MSG_ERROR([cannot find net-snmp-devel support (or --disable-network-build)], 5)])
22216 { $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
22217 $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
22218 if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
22219 $as_echo_n "(cached) " >&6
22221 ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-lcrypto $LIBS"
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22230 /* Override any GCC internal prototype to avoid an error.
22231 Use char because int might match the return type of a GCC
22232 builtin and then its argument prototype would still apply. */
22236 char CRYPTO_free ();
22240 return CRYPTO_free ();
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (ac_try="$ac_link"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22252 $as_echo "$ac_try_echo") >&5
22253 (eval "$ac_link") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest$ac_exeext && {
22263 test "$cross_compiling" = yes ||
22264 $as_test_x conftest$ac_exeext
22266 ac_cv_lib_crypto_CRYPTO_free=yes
22268 $as_echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22271 ac_cv_lib_crypto_CRYPTO_free=no
22274 rm -rf conftest.dSYM
22275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22276 conftest$ac_exeext conftest.$ac_ext
22277 LIBS=$ac_check_lib_save_LIBS
22279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
22280 $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
22281 if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
22282 cat >>confdefs.h <<_ACEOF
22283 #define HAVE_LIBCRYPTO 1
22286 LIBS="-lcrypto $LIBS"
22289 { { $as_echo "$as_me:$LINENO: error: cannot find net-snmp support (or --disable-network-build)" >&5
22290 $as_echo "$as_me: error: cannot find net-snmp support (or --disable-network-build)" >&2;}
22291 { (exit 4); exit 4; }; }
22294 { $as_echo "$as_me:$LINENO: checking for snmp_timeout in -lnetsnmp" >&5
22295 $as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; }
22296 if test "${ac_cv_lib_netsnmp_snmp_timeout+set}" = set; then
22297 $as_echo_n "(cached) " >&6
22299 ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-lnetsnmp $LIBS"
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22308 /* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22314 char snmp_timeout ();
22318 return snmp_timeout ();
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324 if { (ac_try="$ac_link"
22325 case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22330 $as_echo "$ac_try_echo") >&5
22331 (eval "$ac_link") 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest$ac_exeext && {
22341 test "$cross_compiling" = yes ||
22342 $as_test_x conftest$ac_exeext
22344 ac_cv_lib_netsnmp_snmp_timeout=yes
22346 $as_echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22349 ac_cv_lib_netsnmp_snmp_timeout=no
22352 rm -rf conftest.dSYM
22353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22354 conftest$ac_exeext conftest.$ac_ext
22355 LIBS=$ac_check_lib_save_LIBS
22357 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5
22358 $as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; }
22359 if test "x$ac_cv_lib_netsnmp_snmp_timeout" = x""yes; then
22360 LIBS="$old_LIBS" cat >>confdefs.h <<\_ACEOF
22361 #define HAVE_LIBNETSNMP 1
22368 if test "$check_ucd" = "yes"; then
22369 { $as_echo "$as_me:$LINENO: checking for snmp_timeout in -lsnmp" >&5
22370 $as_echo_n "checking for snmp_timeout in -lsnmp... " >&6; }
22371 if test "${ac_cv_lib_snmp_snmp_timeout+set}" = set; then
22372 $as_echo_n "(cached) " >&6
22374 ac_check_lib_save_LIBS=$LIBS
22375 LIBS="-lsnmp $LIBS"
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22383 /* Override any GCC internal prototype to avoid an error.
22384 Use char because int might match the return type of a GCC
22385 builtin and then its argument prototype would still apply. */
22389 char snmp_timeout ();
22393 return snmp_timeout ();
22398 rm -f conftest.$ac_objext conftest$ac_exeext
22399 if { (ac_try="$ac_link"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22405 $as_echo "$ac_try_echo") >&5
22406 (eval "$ac_link") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext && {
22416 test "$cross_compiling" = yes ||
22417 $as_test_x conftest$ac_exeext
22419 ac_cv_lib_snmp_snmp_timeout=yes
22421 $as_echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22424 ac_cv_lib_snmp_snmp_timeout=no
22427 rm -rf conftest.dSYM
22428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22429 conftest$ac_exeext conftest.$ac_ext
22430 LIBS=$ac_check_lib_save_LIBS
22432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_snmp_timeout" >&5
22433 $as_echo "$ac_cv_lib_snmp_snmp_timeout" >&6; }
22434 if test "x$ac_cv_lib_snmp_snmp_timeout" = x""yes; then
22435 LIBS="$old_LIBS" cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_LIBNETSNMP 1
22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_UCDSNMP 1
22443 { { $as_echo "$as_me:$LINENO: error: cannot find net/ucd-snmp support (or --disable-network-build)" >&5
22444 $as_echo "$as_me: error: cannot find net/ucd-snmp support (or --disable-network-build)" >&2;}
22445 { (exit 4); exit 4; }; }
22449 for ac_header in ucd-snmp/ucd-snmp-config.h
22451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22454 $as_echo_n "checking for $ac_header... " >&6; }
22455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22456 $as_echo_n "(cached) " >&6
22458 ac_res=`eval 'as_val=${'$as_ac_Header'}
22459 $as_echo "$as_val"'`
22460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22461 $as_echo "$ac_res" >&6; }
22463 # Is the header compilable?
22464 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22465 $as_echo_n "checking $ac_header usability... " >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 $ac_includes_default
22473 #include <$ac_header>
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22482 $as_echo "$ac_try_echo") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22493 ac_header_compiler=yes
22495 $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_header_compiler=no
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22503 $as_echo "$ac_header_compiler" >&6; }
22505 # Is the header present?
22506 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22507 $as_echo_n "checking $ac_header presence... " >&6; }
22508 cat >conftest.$ac_ext <<_ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 #include <$ac_header>
22516 if { (ac_try="$ac_cpp conftest.$ac_ext"
22517 case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22522 $as_echo "$ac_try_echo") >&5
22523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } >/dev/null && {
22530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22533 ac_header_preproc=yes
22535 $as_echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_header_preproc=no
22541 rm -f conftest.err conftest.$ac_ext
22542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22543 $as_echo "$ac_header_preproc" >&6; }
22545 # So? What about this header?
22546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22549 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22552 ac_header_preproc=yes
22555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22556 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22558 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22560 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22562 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22568 ## --------------------- ##
22569 ## Report this to 3.12.4 ##
22570 ## --------------------- ##
22572 ) | sed "s/^/$as_me: WARNING: /" >&2
22575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22576 $as_echo_n "checking for $ac_header... " >&6; }
22577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22578 $as_echo_n "(cached) " >&6
22580 eval "$as_ac_Header=\$ac_header_preproc"
22582 ac_res=`eval 'as_val=${'$as_ac_Header'}
22583 $as_echo "$as_val"'`
22584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22585 $as_echo "$ac_res" >&6; }
22588 as_val=`eval 'as_val=${'$as_ac_Header'}
22589 $as_echo "$as_val"'`
22590 if test "x$as_val" = x""yes; then
22591 cat >>confdefs.h <<_ACEOF
22592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22596 { { $as_echo "$as_me:$LINENO: error: cannot find ucd-snmp-devel support (or --disable-network-build)" >&5
22597 $as_echo "$as_me: error: cannot find ucd-snmp-devel support (or --disable-network-build)" >&2;}
22598 { (exit 5); exit 5; }; }
22605 for ac_header in net-snmp/net-snmp-config.h
22607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22610 $as_echo_n "checking for $ac_header... " >&6; }
22611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22612 $as_echo_n "(cached) " >&6
22614 ac_res=`eval 'as_val=${'$as_ac_Header'}
22615 $as_echo "$as_val"'`
22616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22617 $as_echo "$ac_res" >&6; }
22619 # Is the header compilable?
22620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22621 $as_echo_n "checking $ac_header usability... " >&6; }
22622 cat >conftest.$ac_ext <<_ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 $ac_includes_default
22629 #include <$ac_header>
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22638 $as_echo "$ac_try_echo") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest.$ac_objext; then
22649 ac_header_compiler=yes
22651 $as_echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 ac_header_compiler=no
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22659 $as_echo "$ac_header_compiler" >&6; }
22661 # Is the header present?
22662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22663 $as_echo_n "checking $ac_header presence... " >&6; }
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 #include <$ac_header>
22672 if { (ac_try="$ac_cpp conftest.$ac_ext"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22678 $as_echo "$ac_try_echo") >&5
22679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22681 grep -v '^ *+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } >/dev/null && {
22686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22689 ac_header_preproc=yes
22691 $as_echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 ac_header_preproc=no
22697 rm -f conftest.err conftest.$ac_ext
22698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22699 $as_echo "$ac_header_preproc" >&6; }
22701 # So? What about this header?
22702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22708 ac_header_preproc=yes
22711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22724 ## --------------------- ##
22725 ## Report this to 3.12.4 ##
22726 ## --------------------- ##
22728 ) | sed "s/^/$as_me: WARNING: /" >&2
22731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22732 $as_echo_n "checking for $ac_header... " >&6; }
22733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22734 $as_echo_n "(cached) " >&6
22736 eval "$as_ac_Header=\$ac_header_preproc"
22738 ac_res=`eval 'as_val=${'$as_ac_Header'}
22739 $as_echo "$as_val"'`
22740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22741 $as_echo "$ac_res" >&6; }
22744 as_val=`eval 'as_val=${'$as_ac_Header'}
22745 $as_echo "$as_val"'`
22746 if test "x$as_val" = x""yes; then
22747 cat >>confdefs.h <<_ACEOF
22748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22752 { { $as_echo "$as_me:$LINENO: error: cannot find net-snmp-devel support (or --disable-network-build)" >&5
22753 $as_echo "$as_me: error: cannot find net-snmp-devel support (or --disable-network-build)" >&2;}
22754 { (exit 5); exit 5; }; }
22762 if test "$hpijs_only_build" = "no" && test "$pp_build" = "yes"; then
22764 for ac_header in linux/ppdev.h
22766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22769 $as_echo_n "checking for $ac_header... " >&6; }
22770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22771 $as_echo_n "(cached) " >&6
22773 ac_res=`eval 'as_val=${'$as_ac_Header'}
22774 $as_echo "$as_val"'`
22775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22776 $as_echo "$ac_res" >&6; }
22778 # Is the header compilable?
22779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22780 $as_echo_n "checking $ac_header usability... " >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 $ac_includes_default
22788 #include <$ac_header>
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22797 $as_echo "$ac_try_echo") >&5
22798 (eval "$ac_compile") 2>conftest.er1
22800 grep -v '^ *+' conftest.er1 >conftest.err
22802 cat conftest.err >&5
22803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest.$ac_objext; then
22808 ac_header_compiler=yes
22810 $as_echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_header_compiler=no
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22818 $as_echo "$ac_header_compiler" >&6; }
22820 # Is the header present?
22821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22822 $as_echo_n "checking $ac_header presence... " >&6; }
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22829 #include <$ac_header>
22831 if { (ac_try="$ac_cpp conftest.$ac_ext"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22837 $as_echo "$ac_try_echo") >&5
22838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22840 grep -v '^ *+' conftest.er1 >conftest.err
22842 cat conftest.err >&5
22843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } >/dev/null && {
22845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22846 test ! -s conftest.err
22848 ac_header_preproc=yes
22850 $as_echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22853 ac_header_preproc=no
22856 rm -f conftest.err conftest.$ac_ext
22857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858 $as_echo "$ac_header_preproc" >&6; }
22860 # So? What about this header?
22861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867 ac_header_preproc=yes
22870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22873 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22877 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22883 ## --------------------- ##
22884 ## Report this to 3.12.4 ##
22885 ## --------------------- ##
22887 ) | sed "s/^/$as_me: WARNING: /" >&2
22890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22891 $as_echo_n "checking for $ac_header... " >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22893 $as_echo_n "(cached) " >&6
22895 eval "$as_ac_Header=\$ac_header_preproc"
22897 ac_res=`eval 'as_val=${'$as_ac_Header'}
22898 $as_echo "$as_val"'`
22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22903 as_val=`eval 'as_val=${'$as_ac_Header'}
22904 $as_echo "$as_val"'`
22905 if test "x$as_val" = x""yes; then
22906 cat >>confdefs.h <<_ACEOF
22907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22911 { { $as_echo "$as_me:$LINENO: error: cannot find ppdev-devel support (or --disable-pp-build)" >&5
22912 $as_echo "$as_me: error: cannot find ppdev-devel support (or --disable-pp-build)" >&2;}
22913 { (exit 8); exit 8; }; }
22920 if test "$hpijs_only_build" = "no"; then
22921 { $as_echo "$as_me:$LINENO: checking for cupsDoFileRequest in -lcups" >&5
22922 $as_echo_n "checking for cupsDoFileRequest in -lcups... " >&6; }
22923 if test "${ac_cv_lib_cups_cupsDoFileRequest+set}" = set; then
22924 $as_echo_n "(cached) " >&6
22926 ac_check_lib_save_LIBS=$LIBS
22927 LIBS="-lcups $LIBS"
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22935 /* Override any GCC internal prototype to avoid an error.
22936 Use char because int might match the return type of a GCC
22937 builtin and then its argument prototype would still apply. */
22941 char cupsDoFileRequest ();
22945 return cupsDoFileRequest ();
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (ac_try="$ac_link"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22957 $as_echo "$ac_try_echo") >&5
22958 (eval "$ac_link") 2>conftest.er1
22960 grep -v '^ *+' conftest.er1 >conftest.err
22962 cat conftest.err >&5
22963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } && {
22965 test -z "$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 } && test -s conftest$ac_exeext && {
22968 test "$cross_compiling" = yes ||
22969 $as_test_x conftest$ac_exeext
22971 ac_cv_lib_cups_cupsDoFileRequest=yes
22973 $as_echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_cv_lib_cups_cupsDoFileRequest=no
22979 rm -rf conftest.dSYM
22980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981 conftest$ac_exeext conftest.$ac_ext
22982 LIBS=$ac_check_lib_save_LIBS
22984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsDoFileRequest" >&5
22985 $as_echo "$ac_cv_lib_cups_cupsDoFileRequest" >&6; }
22986 if test "x$ac_cv_lib_cups_cupsDoFileRequest" = x""yes; then
22989 { { $as_echo "$as_me:$LINENO: error: cannot find libcups support" >&5
22990 $as_echo "$as_me: error: cannot find libcups support" >&2;}
22991 { (exit 9); exit 9; }; }
22995 for ac_header in cups/cups.h
22997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23000 $as_echo_n "checking for $ac_header... " >&6; }
23001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23002 $as_echo_n "(cached) " >&6
23004 ac_res=`eval 'as_val=${'$as_ac_Header'}
23005 $as_echo "$as_val"'`
23006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23007 $as_echo "$ac_res" >&6; }
23009 # Is the header compilable?
23010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23011 $as_echo_n "checking $ac_header usability... " >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 $ac_includes_default
23019 #include <$ac_header>
23021 rm -f conftest.$ac_objext
23022 if { (ac_try="$ac_compile"
23023 case "(($ac_try" in
23024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23025 *) ac_try_echo=$ac_try;;
23027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23028 $as_echo "$ac_try_echo") >&5
23029 (eval "$ac_compile") 2>conftest.er1
23031 grep -v '^ *+' conftest.er1 >conftest.err
23033 cat conftest.err >&5
23034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } && {
23036 test -z "$ac_c_werror_flag" ||
23037 test ! -s conftest.err
23038 } && test -s conftest.$ac_objext; then
23039 ac_header_compiler=yes
23041 $as_echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23044 ac_header_compiler=no
23047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23049 $as_echo "$ac_header_compiler" >&6; }
23051 # Is the header present?
23052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23053 $as_echo_n "checking $ac_header presence... " >&6; }
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 #include <$ac_header>
23062 if { (ac_try="$ac_cpp conftest.$ac_ext"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23068 $as_echo "$ac_try_echo") >&5
23069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } >/dev/null && {
23076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23079 ac_header_preproc=yes
23081 $as_echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23084 ac_header_preproc=no
23087 rm -f conftest.err conftest.$ac_ext
23088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23089 $as_echo "$ac_header_preproc" >&6; }
23091 # So? What about this header?
23092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23098 ac_header_preproc=yes
23101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23114 ## --------------------- ##
23115 ## Report this to 3.12.4 ##
23116 ## --------------------- ##
23118 ) | sed "s/^/$as_me: WARNING: /" >&2
23121 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23122 $as_echo_n "checking for $ac_header... " >&6; }
23123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23124 $as_echo_n "(cached) " >&6
23126 eval "$as_ac_Header=\$ac_header_preproc"
23128 ac_res=`eval 'as_val=${'$as_ac_Header'}
23129 $as_echo "$as_val"'`
23130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23131 $as_echo "$ac_res" >&6; }
23134 as_val=`eval 'as_val=${'$as_ac_Header'}
23135 $as_echo "$as_val"'`
23136 if test "x$as_val" = x""yes; then
23137 cat >>confdefs.h <<_ACEOF
23138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23142 { { $as_echo "$as_me:$LINENO: error: cannot find cups-devel support" >&5
23143 $as_echo "$as_me: error: cannot find cups-devel support" >&2;}
23144 { (exit 3); exit 3; }; }
23149 { $as_echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
23150 $as_echo_n "checking for usb_init in -lusb... " >&6; }
23151 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
23152 $as_echo_n "(cached) " >&6
23154 ac_check_lib_save_LIBS=$LIBS
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23163 /* Override any GCC internal prototype to avoid an error.
23164 Use char because int might match the return type of a GCC
23165 builtin and then its argument prototype would still apply. */
23173 return usb_init ();
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (ac_try="$ac_link"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23185 $as_echo "$ac_try_echo") >&5
23186 (eval "$ac_link") 2>conftest.er1
23188 grep -v '^ *+' conftest.er1 >conftest.err
23190 cat conftest.err >&5
23191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest$ac_exeext && {
23196 test "$cross_compiling" = yes ||
23197 $as_test_x conftest$ac_exeext
23199 ac_cv_lib_usb_usb_init=yes
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_lib_usb_usb_init=no
23207 rm -rf conftest.dSYM
23208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23209 conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
23213 $as_echo "$ac_cv_lib_usb_usb_init" >&6; }
23214 if test "x$ac_cv_lib_usb_usb_init" = x""yes; then
23217 { { $as_echo "$as_me:$LINENO: error: cannot find libusb support" >&5
23218 $as_echo "$as_me: error: cannot find libusb support" >&2;}
23219 { (exit 2); exit 2; }; }
23223 for ac_header in usb.h
23225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23228 $as_echo_n "checking for $ac_header... " >&6; }
23229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23230 $as_echo_n "(cached) " >&6
23232 ac_res=`eval 'as_val=${'$as_ac_Header'}
23233 $as_echo "$as_val"'`
23234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23235 $as_echo "$ac_res" >&6; }
23237 # Is the header compilable?
23238 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23239 $as_echo_n "checking $ac_header usability... " >&6; }
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 $ac_includes_default
23247 #include <$ac_header>
23249 rm -f conftest.$ac_objext
23250 if { (ac_try="$ac_compile"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23256 $as_echo "$ac_try_echo") >&5
23257 (eval "$ac_compile") 2>conftest.er1
23259 grep -v '^ *+' conftest.er1 >conftest.err
23261 cat conftest.err >&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && {
23264 test -z "$ac_c_werror_flag" ||
23265 test ! -s conftest.err
23266 } && test -s conftest.$ac_objext; then
23267 ac_header_compiler=yes
23269 $as_echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 ac_header_compiler=no
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23277 $as_echo "$ac_header_compiler" >&6; }
23279 # Is the header present?
23280 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23281 $as_echo_n "checking $ac_header presence... " >&6; }
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 #include <$ac_header>
23290 if { (ac_try="$ac_cpp conftest.$ac_ext"
23291 case "(($ac_try" in
23292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23293 *) ac_try_echo=$ac_try;;
23295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23296 $as_echo "$ac_try_echo") >&5
23297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23299 grep -v '^ *+' conftest.er1 >conftest.err
23301 cat conftest.err >&5
23302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } >/dev/null && {
23304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23307 ac_header_preproc=yes
23309 $as_echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23312 ac_header_preproc=no
23315 rm -f conftest.err conftest.$ac_ext
23316 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23317 $as_echo "$ac_header_preproc" >&6; }
23319 # So? What about this header?
23320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23326 ac_header_preproc=yes
23329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23330 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23332 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23334 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23336 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23340 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23342 ## --------------------- ##
23343 ## Report this to 3.12.4 ##
23344 ## --------------------- ##
23346 ) | sed "s/^/$as_me: WARNING: /" >&2
23349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23350 $as_echo_n "checking for $ac_header... " >&6; }
23351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23352 $as_echo_n "(cached) " >&6
23354 eval "$as_ac_Header=\$ac_header_preproc"
23356 ac_res=`eval 'as_val=${'$as_ac_Header'}
23357 $as_echo "$as_val"'`
23358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23359 $as_echo "$ac_res" >&6; }
23362 as_val=`eval 'as_val=${'$as_ac_Header'}
23363 $as_echo "$as_val"'`
23364 if test "x$as_val" = x""yes; then
23365 cat >>confdefs.h <<_ACEOF
23366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23370 { { $as_echo "$as_me:$LINENO: error: cannot find libusb-devel support" >&5
23371 $as_echo "$as_me: error: cannot find libusb-devel support" >&2;}
23372 { (exit 11); exit 11; }; }
23379 if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no"; then
23385 if test -n "$PYTHON"; then
23386 # If the user set $PYTHON, use it and don't search something else.
23387 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2" >&5
23388 $as_echo_n "checking whether $PYTHON version >= 2.2... " >&6; }
23390 # split strings by '.' and convert to numeric. Append some zeros
23391 # because we need at least 4 digits for the hex conversion.
23392 # map returns an iterator in Python 3.0 and a list in 2.x
23393 minver = list(map(int, '2.2'.split('.'))) + [0, 0, 0]
23395 # xrange is not present in Python 3.0 and range returns an iterator
23396 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23397 sys.exit(sys.hexversion < minverhex)"
23398 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23399 ($PYTHON -c "$prog") >&5 2>&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; then
23403 { $as_echo "$as_me:$LINENO: result: yes" >&5
23404 $as_echo "yes" >&6; }
23406 { { $as_echo "$as_me:$LINENO: error: too old" >&5
23407 $as_echo "$as_me: error: too old" >&2;}
23408 { (exit 1); exit 1; }; }
23411 am_display_PYTHON=$PYTHON
23413 # Otherwise, try each interpreter until we find one that satisfies
23415 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2" >&5
23416 $as_echo_n "checking for a Python interpreter with version >= 2.2... " >&6; }
23417 if test "${am_cv_pathless_PYTHON+set}" = set; then
23418 $as_echo_n "(cached) " >&6
23421 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
23422 test "$am_cv_pathless_PYTHON" = none && break
23424 # split strings by '.' and convert to numeric. Append some zeros
23425 # because we need at least 4 digits for the hex conversion.
23426 # map returns an iterator in Python 3.0 and a list in 2.x
23427 minver = list(map(int, '2.2'.split('.'))) + [0, 0, 0]
23429 # xrange is not present in Python 3.0 and range returns an iterator
23430 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23431 sys.exit(sys.hexversion < minverhex)"
23432 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23433 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; then
23442 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
23443 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23444 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23445 if test "$am_cv_pathless_PYTHON" = none; then
23448 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23449 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23451 $as_echo_n "checking for $ac_word... " >&6; }
23452 if test "${ac_cv_path_PYTHON+set}" = set; then
23453 $as_echo_n "(cached) " >&6
23457 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23461 for as_dir in $PATH
23464 test -z "$as_dir" && as_dir=.
23465 for ac_exec_ext in '' $ac_executable_extensions; do
23466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23467 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23478 PYTHON=$ac_cv_path_PYTHON
23479 if test -n "$PYTHON"; then
23480 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
23481 $as_echo "$PYTHON" >&6; }
23483 { $as_echo "$as_me:$LINENO: result: no" >&5
23484 $as_echo "no" >&6; }
23489 am_display_PYTHON=$am_cv_pathless_PYTHON
23493 if test "$PYTHON" = :; then
23494 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
23495 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
23496 { (exit 1); exit 1; }; }
23500 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
23501 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23502 if test "${am_cv_python_version+set}" = set; then
23503 $as_echo_n "(cached) " >&6
23505 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23507 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
23508 $as_echo "$am_cv_python_version" >&6; }
23509 PYTHON_VERSION=$am_cv_python_version
23513 PYTHON_PREFIX='${prefix}'
23515 PYTHON_EXEC_PREFIX='${exec_prefix}'
23519 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
23520 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23521 if test "${am_cv_python_platform+set}" = set; then
23522 $as_echo_n "(cached) " >&6
23524 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23526 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
23527 $as_echo "$am_cv_python_platform" >&6; }
23528 PYTHON_PLATFORM=$am_cv_python_platform
23533 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
23534 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23535 if test "${am_cv_python_pythondir+set}" = set; then
23536 $as_echo_n "(cached) " >&6
23538 if test "x$prefix" = xNONE
23540 am_py_prefix=$ac_default_prefix
23542 am_py_prefix=$prefix
23544 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
23545 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
23546 case $am_cv_python_pythondir in
23548 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23549 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23554 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
23555 $as_echo "$am_cv_python_pythondir" >&6; }
23556 pythondir=$am_cv_python_pythondir
23560 pkgpythondir=\${pythondir}/$PACKAGE
23563 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
23564 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23565 if test "${am_cv_python_pyexecdir+set}" = set; then
23566 $as_echo_n "(cached) " >&6
23568 if test "x$exec_prefix" = xNONE
23570 am_py_exec_prefix=$am_py_prefix
23572 am_py_exec_prefix=$exec_prefix
23574 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
23575 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
23576 case $am_cv_python_pyexecdir in
23577 $am_py_exec_prefix*)
23578 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23579 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23584 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
23585 $as_echo "$am_cv_python_pyexecdir" >&6; }
23586 pyexecdir=$am_cv_python_pyexecdir
23590 pkgpyexecdir=\${pyexecdir}/$PACKAGE
23597 { $as_echo "$as_me:$LINENO: checking for path to Python.h" >&5
23598 $as_echo_n "checking for path to Python.h... " >&6; }
23599 PYTHONINCLUDEDIR=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc();"`
23600 { $as_echo "$as_me:$LINENO: result: \"using $PYTHONINCLUDEDIR\"" >&5
23601 $as_echo "\"using $PYTHONINCLUDEDIR\"" >&6; }
23604 for ac_header in python$PYTHON_VERSION/Python.h
23606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23609 $as_echo_n "checking for $ac_header... " >&6; }
23610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23611 $as_echo_n "(cached) " >&6
23613 ac_res=`eval 'as_val=${'$as_ac_Header'}
23614 $as_echo "$as_val"'`
23615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23618 # Is the header compilable?
23619 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23620 $as_echo_n "checking $ac_header usability... " >&6; }
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23628 #include <$ac_header>
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23637 $as_echo "$ac_try_echo") >&5
23638 (eval "$ac_compile") 2>conftest.er1
23640 grep -v '^ *+' conftest.er1 >conftest.err
23642 cat conftest.err >&5
23643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && {
23645 test -z "$ac_c_werror_flag" ||
23646 test ! -s conftest.err
23647 } && test -s conftest.$ac_objext; then
23648 ac_header_compiler=yes
23650 $as_echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23653 ac_header_compiler=no
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23658 $as_echo "$ac_header_compiler" >&6; }
23660 # Is the header present?
23661 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23662 $as_echo_n "checking $ac_header presence... " >&6; }
23663 cat >conftest.$ac_ext <<_ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23669 #include <$ac_header>
23671 if { (ac_try="$ac_cpp conftest.$ac_ext"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23677 $as_echo "$ac_try_echo") >&5
23678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23680 grep -v '^ *+' conftest.er1 >conftest.err
23682 cat conftest.err >&5
23683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } >/dev/null && {
23685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23686 test ! -s conftest.err
23688 ac_header_preproc=yes
23690 $as_echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23693 ac_header_preproc=no
23696 rm -f conftest.err conftest.$ac_ext
23697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23698 $as_echo "$ac_header_preproc" >&6; }
23700 # So? What about this header?
23701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23704 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23707 ac_header_preproc=yes
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23711 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23717 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23721 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23723 ## --------------------- ##
23724 ## Report this to 3.12.4 ##
23725 ## --------------------- ##
23727 ) | sed "s/^/$as_me: WARNING: /" >&2
23730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23731 $as_echo_n "checking for $ac_header... " >&6; }
23732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23733 $as_echo_n "(cached) " >&6
23735 eval "$as_ac_Header=\$ac_header_preproc"
23737 ac_res=`eval 'as_val=${'$as_ac_Header'}
23738 $as_echo "$as_val"'`
23739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23740 $as_echo "$ac_res" >&6; }
23743 as_val=`eval 'as_val=${'$as_ac_Header'}
23744 $as_echo "$as_val"'`
23745 if test "x$as_val" = x""yes; then
23746 cat >>confdefs.h <<_ACEOF
23747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23751 { { $as_echo "$as_me:$LINENO: error: cannot find python-devel support" >&5
23752 $as_echo "$as_me: error: cannot find python-devel support" >&2;}
23753 { (exit 6); exit 6; }; }
23760 if test "$hpijs_only_build" = "no" && test "$scan_build" = "yes" && test "$hpcups_only_build" = "no"; then
23761 { $as_echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
23762 $as_echo_n "checking for sane_open in -lsane... " >&6; }
23763 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
23764 $as_echo_n "(cached) " >&6
23766 ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lsane $LIBS"
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23775 /* Override any GCC internal prototype to avoid an error.
23776 Use char because int might match the return type of a GCC
23777 builtin and then its argument prototype would still apply. */
23785 return sane_open ();
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (ac_try="$ac_link"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23797 $as_echo "$ac_try_echo") >&5
23798 (eval "$ac_link") 2>conftest.er1
23800 grep -v '^ *+' conftest.er1 >conftest.err
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest$ac_exeext && {
23808 test "$cross_compiling" = yes ||
23809 $as_test_x conftest$ac_exeext
23811 ac_cv_lib_sane_sane_open=yes
23813 $as_echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23816 ac_cv_lib_sane_sane_open=no
23819 rm -rf conftest.dSYM
23820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23821 conftest$ac_exeext conftest.$ac_ext
23822 LIBS=$ac_check_lib_save_LIBS
23824 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
23825 $as_echo "$ac_cv_lib_sane_sane_open" >&6; }
23826 if test "x$ac_cv_lib_sane_sane_open" = x""yes; then
23829 { { $as_echo "$as_me:$LINENO: error: cannot find sane-backends-devel support (or --disable-scan-build)" >&5
23830 $as_echo "$as_me: error: cannot find sane-backends-devel support (or --disable-scan-build)" >&2;}
23831 { (exit 12); exit 12; }; }
23836 # The PKG_CHECK_MODULES macro requires the pkgconfig package (pkg-config). Otherwise you get a strange shell script error
23837 # "syntax error near upexpected token: DBUS".
23838 if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$dbus_build" = "yes"; then
23839 # PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0.0, dbus-glib-1 >= 0.61],,[AC_MSG_ERROR([cannot find dbus-devel support: $DBUS_PKG_ERRORS], 14)])
23842 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23843 if test -n "$ac_tool_prefix"; then
23844 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23845 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23847 $as_echo_n "checking for $ac_word... " >&6; }
23848 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23849 $as_echo_n "(cached) " >&6
23851 case $PKG_CONFIG in
23853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23857 for as_dir in $PATH
23860 test -z "$as_dir" && as_dir=.
23861 for ac_exec_ext in '' $ac_executable_extensions; do
23862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23875 if test -n "$PKG_CONFIG"; then
23876 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23877 $as_echo "$PKG_CONFIG" >&6; }
23879 { $as_echo "$as_me:$LINENO: result: no" >&5
23880 $as_echo "no" >&6; }
23885 if test -z "$ac_cv_path_PKG_CONFIG"; then
23886 ac_pt_PKG_CONFIG=$PKG_CONFIG
23887 # Extract the first word of "pkg-config", so it can be a program name with args.
23888 set dummy pkg-config; ac_word=$2
23889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23890 $as_echo_n "checking for $ac_word... " >&6; }
23891 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23892 $as_echo_n "(cached) " >&6
23894 case $ac_pt_PKG_CONFIG in
23896 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23900 for as_dir in $PATH
23903 test -z "$as_dir" && as_dir=.
23904 for ac_exec_ext in '' $ac_executable_extensions; do
23905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23906 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23907 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23917 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23918 if test -n "$ac_pt_PKG_CONFIG"; then
23919 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23920 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23922 { $as_echo "$as_me:$LINENO: result: no" >&5
23923 $as_echo "no" >&6; }
23926 if test "x$ac_pt_PKG_CONFIG" = x; then
23929 case $cross_compiling:$ac_tool_warned in
23931 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23933 ac_tool_warned=yes ;;
23935 PKG_CONFIG=$ac_pt_PKG_CONFIG
23938 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23942 if test -n "$PKG_CONFIG"; then
23943 _pkg_min_version=0.9.0
23944 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23945 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23946 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23947 { $as_echo "$as_me:$LINENO: result: yes" >&5
23948 $as_echo "yes" >&6; }
23950 { $as_echo "$as_me:$LINENO: result: no" >&5
23951 $as_echo "no" >&6; }
23958 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
23959 $as_echo_n "checking for DBUS... " >&6; }
23961 if test -n "$DBUS_CFLAGS"; then
23962 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
23963 elif test -n "$PKG_CONFIG"; then
23964 if test -n "$PKG_CONFIG" && \
23965 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0.0\"") >&5
23966 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
23968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; then
23970 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0.0" 2>/dev/null`
23977 if test -n "$DBUS_LIBS"; then
23978 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
23979 elif test -n "$PKG_CONFIG"; then
23980 if test -n "$PKG_CONFIG" && \
23981 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0.0\"") >&5
23982 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; then
23986 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0.0" 2>/dev/null`
23996 if test $pkg_failed = yes; then
23998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23999 _pkg_short_errors_supported=yes
24001 _pkg_short_errors_supported=no
24003 if test $_pkg_short_errors_supported = yes; then
24004 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.0.0" 2>&1`
24006 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.0.0" 2>&1`
24008 # Put the nasty error message in config.log where it belongs
24009 echo "$DBUS_PKG_ERRORS" >&5
24011 { $as_echo "$as_me:$LINENO: result: no" >&5
24012 $as_echo "no" >&6; }
24013 { { $as_echo "$as_me:$LINENO: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&5
24014 $as_echo "$as_me: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&2;}
24015 { (exit 14); exit 14; }; }
24016 elif test $pkg_failed = untried; then
24017 { { $as_echo "$as_me:$LINENO: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&5
24018 $as_echo "$as_me: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&2;}
24019 { (exit 14); exit 14; }; }
24021 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
24022 DBUS_LIBS=$pkg_cv_DBUS_LIBS
24023 { $as_echo "$as_me:$LINENO: result: yes" >&5
24024 $as_echo "yes" >&6; }
24027 { $as_echo "$as_me:$LINENO: checking for dbus_connection_open in -ldbus-1" >&5
24028 $as_echo_n "checking for dbus_connection_open in -ldbus-1... " >&6; }
24029 if test "${ac_cv_lib_dbus_1_dbus_connection_open+set}" = set; then
24030 $as_echo_n "(cached) " >&6
24032 ac_check_lib_save_LIBS=$LIBS
24033 LIBS="-ldbus-1 $LIBS"
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24041 /* Override any GCC internal prototype to avoid an error.
24042 Use char because int might match the return type of a GCC
24043 builtin and then its argument prototype would still apply. */
24047 char dbus_connection_open ();
24051 return dbus_connection_open ();
24056 rm -f conftest.$ac_objext conftest$ac_exeext
24057 if { (ac_try="$ac_link"
24058 case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24063 $as_echo "$ac_try_echo") >&5
24064 (eval "$ac_link") 2>conftest.er1
24066 grep -v '^ *+' conftest.er1 >conftest.err
24068 cat conftest.err >&5
24069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } && {
24071 test -z "$ac_c_werror_flag" ||
24072 test ! -s conftest.err
24073 } && test -s conftest$ac_exeext && {
24074 test "$cross_compiling" = yes ||
24075 $as_test_x conftest$ac_exeext
24077 ac_cv_lib_dbus_1_dbus_connection_open=yes
24079 $as_echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 ac_cv_lib_dbus_1_dbus_connection_open=no
24085 rm -rf conftest.dSYM
24086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24087 conftest$ac_exeext conftest.$ac_ext
24088 LIBS=$ac_check_lib_save_LIBS
24090 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_open" >&5
24091 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_open" >&6; }
24092 if test "x$ac_cv_lib_dbus_1_dbus_connection_open" = x""yes; then
24093 LIBS="$LIBS" cat >>confdefs.h <<\_ACEOF
24094 #define HAVE_DBUS 1
24098 { { $as_echo "$as_me:$LINENO: error: cannot find libdbus support" >&5
24099 $as_echo "$as_me: error: cannot find libdbus support" >&2;}
24100 { (exit 13); exit 13; }; }
24105 if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$fax_build" = "yes" && test "$dbus_build" = "no"; then
24106 { { $as_echo "$as_me:$LINENO: error: fax requires dbus support" >&5
24107 $as_echo "$as_me: error: fax requires dbus support" >&2;}
24108 { (exit 15); exit 15; }; }
24111 # AC_DEFINE_DIR([DATADIR], [datadir])
24112 # Copyright © 2006 Stepan Kasal <kasal@ucw.cz>
24113 # Copyright © 2006 Andreas Schwab <schwab@suse.de>
24114 # Copyright © 2006 Guido U. Draheim <guidod@gmx.de>
24115 # Copyright © 2006 Alexandre Oliva
24116 # Copying and distribution of this file, with or without modification, are permitted in any medium without
24117 # royalty provided the copyright notice and this notice are preserved.
24123 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24124 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24125 eval ac_define_dir="\"$datadir\""
24126 eval ac_define_dir="\"$ac_define_dir\""
24127 abs_datadir="$ac_define_dir"
24128 test "$prefix_NONE" && prefix=NONE
24129 test "$exec_prefix_NONE" && exec_prefix=NONE
24134 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24135 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24136 eval ac_define_dir="\"$sbindir\""
24137 eval ac_define_dir="\"$ac_define_dir\""
24138 abs_sbindir="$ac_define_dir"
24139 test "$prefix_NONE" && prefix=NONE
24140 test "$exec_prefix_NONE" && exec_prefix=NONE
24145 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24146 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24147 eval ac_define_dir="\"$hpppddir\""
24148 eval ac_define_dir="\"$ac_define_dir\""
24149 abs_hpppddir="$ac_define_dir"
24150 test "$prefix_NONE" && prefix=NONE
24151 test "$exec_prefix_NONE" && exec_prefix=NONE
24156 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24157 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24158 eval ac_define_dir="\"$hpdocdir\""
24159 eval ac_define_dir="\"$ac_define_dir\""
24160 abs_docdir="$ac_define_dir"
24161 test "$prefix_NONE" && prefix=NONE
24162 test "$exec_prefix_NONE" && exec_prefix=NONE
24164 abs_ppddir=${abs_hpppddir%/*}
24168 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24169 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24170 eval ac_define_dir="\"$drvdir\""
24171 eval ac_define_dir="\"$ac_define_dir\""
24172 abs_drvdir="$ac_define_dir"
24173 test "$prefix_NONE" && prefix=NONE
24174 test "$exec_prefix_NONE" && exec_prefix=NONE
24239 ac_config_files="$ac_config_files Makefile hplip.conf hplip.desktop hplip-systray.desktop prnt/drv/hpijs.drv prnt/drv/hpcups.drv hplip.list data/policykit/com.hp.hplip.service"
24241 cat >confcache <<\_ACEOF
24242 # This file is a shell script that caches the results of configure
24243 # tests run on this system so they can be shared between configure
24244 # scripts and configure runs, see configure's option --config-cache.
24245 # It is not useful on other systems. If it contains results you don't
24246 # want to keep, you may remove or edit it.
24248 # config.status only pays attention to the cache file if you give it
24249 # the --recheck option to rerun configure.
24251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24253 # following values.
24257 # The following way of writing the cache mishandles newlines in values,
24258 # but we know of no workaround that is simple, portable, and efficient.
24259 # So, we kill variables containing newlines.
24260 # Ultrix sh set writes to stderr and can't be redirected directly,
24261 # and sets the high bit in the cache file unless we assign to the vars.
24263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24264 eval ac_val=\$$ac_var
24268 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24272 _ | IFS | as_nl) ;; #(
24273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24274 *) $as_unset $ac_var ;;
24280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24281 *${as_nl}ac_space=\ *)
24282 # `set' does not quote correctly, so add quotes (double-quote
24283 # substitution turns \\\\ into \\, and sed turns \\ into \).
24286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24289 # `set' quotes correctly as required by POSIX, so do not add quotes.
24290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24304 if test -w "$cache_file"; then
24305 test "x$cache_file" != "x/dev/null" &&
24306 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24307 $as_echo "$as_me: updating cache $cache_file" >&6;}
24308 cat confcache >$cache_file
24310 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24311 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24317 # Let make expand exec_prefix.
24318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24320 # Transform confdefs.h into DEFS.
24321 # Protect against shell expansion while executing Makefile rules.
24322 # Protect against Makefile macro expansion.
24324 # If the first sed substitution is executed (which looks for macros that
24325 # take arguments), then branch to the quote section. Otherwise,
24326 # look for a macro that doesn't take arguments.
24336 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
24338 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
24342 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
24355 DEFS=`sed -n "$ac_script" confdefs.h`
24360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24361 # 1. Remove the extension, and $U if already installed.
24362 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24363 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24364 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24365 # will be set to the directory where LIBOBJS objects are built.
24366 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24367 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24369 LIBOBJS=$ac_libobjs
24371 LTLIBOBJS=$ac_ltlibobjs
24374 if test -n "$EXEEXT"; then
24376 am__EXEEXT_FALSE='#'
24378 am__EXEEXT_TRUE='#'
24382 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24383 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24384 Usually this means the macro was only invoked conditionally." >&5
24385 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24386 Usually this means the macro was only invoked conditionally." >&2;}
24387 { (exit 1); exit 1; }; }
24389 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24390 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24391 Usually this means the macro was only invoked conditionally." >&5
24392 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24393 Usually this means the macro was only invoked conditionally." >&2;}
24394 { (exit 1); exit 1; }; }
24396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24397 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24398 Usually this means the macro was only invoked conditionally." >&5
24399 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24400 Usually this means the macro was only invoked conditionally." >&2;}
24401 { (exit 1); exit 1; }; }
24404 if test -z "${DARWIN_BUILD_TRUE}" && test -z "${DARWIN_BUILD_FALSE}"; then
24405 { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN_BUILD\" was never defined.
24406 Usually this means the macro was only invoked conditionally." >&5
24407 $as_echo "$as_me: error: conditional \"DARWIN_BUILD\" was never defined.
24408 Usually this means the macro was only invoked conditionally." >&2;}
24409 { (exit 1); exit 1; }; }
24411 if test -z "${DOC_BUILD_TRUE}" && test -z "${DOC_BUILD_FALSE}"; then
24412 { { $as_echo "$as_me:$LINENO: error: conditional \"DOC_BUILD\" was never defined.
24413 Usually this means the macro was only invoked conditionally." >&5
24414 $as_echo "$as_me: error: conditional \"DOC_BUILD\" was never defined.
24415 Usually this means the macro was only invoked conditionally." >&2;}
24416 { (exit 1); exit 1; }; }
24418 if test -z "${HPIJS_ONLY_BUILD_TRUE}" && test -z "${HPIJS_ONLY_BUILD_FALSE}"; then
24419 { { $as_echo "$as_me:$LINENO: error: conditional \"HPIJS_ONLY_BUILD\" was never defined.
24420 Usually this means the macro was only invoked conditionally." >&5
24421 $as_echo "$as_me: error: conditional \"HPIJS_ONLY_BUILD\" was never defined.
24422 Usually this means the macro was only invoked conditionally." >&2;}
24423 { (exit 1); exit 1; }; }
24425 if test -z "${LITE_BUILD_TRUE}" && test -z "${LITE_BUILD_FALSE}"; then
24426 { { $as_echo "$as_me:$LINENO: error: conditional \"LITE_BUILD\" was never defined.
24427 Usually this means the macro was only invoked conditionally." >&5
24428 $as_echo "$as_me: error: conditional \"LITE_BUILD\" was never defined.
24429 Usually this means the macro was only invoked conditionally." >&2;}
24430 { (exit 1); exit 1; }; }
24432 if test -z "${HPCUPS_ONLY_BUILD_TRUE}" && test -z "${HPCUPS_ONLY_BUILD_FALSE}"; then
24433 { { $as_echo "$as_me:$LINENO: error: conditional \"HPCUPS_ONLY_BUILD\" was never defined.
24434 Usually this means the macro was only invoked conditionally." >&5
24435 $as_echo "$as_me: error: conditional \"HPCUPS_ONLY_BUILD\" was never defined.
24436 Usually this means the macro was only invoked conditionally." >&2;}
24437 { (exit 1); exit 1; }; }
24439 if test -z "${HPLIP_BUILD_TRUE}" && test -z "${HPLIP_BUILD_FALSE}"; then
24440 { { $as_echo "$as_me:$LINENO: error: conditional \"HPLIP_BUILD\" was never defined.
24441 Usually this means the macro was only invoked conditionally." >&5
24442 $as_echo "$as_me: error: conditional \"HPLIP_BUILD\" was never defined.
24443 Usually this means the macro was only invoked conditionally." >&2;}
24444 { (exit 1); exit 1; }; }
24446 if test -z "${FULL_BUILD_TRUE}" && test -z "${FULL_BUILD_FALSE}"; then
24447 { { $as_echo "$as_me:$LINENO: error: conditional \"FULL_BUILD\" was never defined.
24448 Usually this means the macro was only invoked conditionally." >&5
24449 $as_echo "$as_me: error: conditional \"FULL_BUILD\" was never defined.
24450 Usually this means the macro was only invoked conditionally." >&2;}
24451 { (exit 1); exit 1; }; }
24453 if test -z "${HPIJS_INSTALL_TRUE}" && test -z "${HPIJS_INSTALL_FALSE}"; then
24454 { { $as_echo "$as_me:$LINENO: error: conditional \"HPIJS_INSTALL\" was never defined.
24455 Usually this means the macro was only invoked conditionally." >&5
24456 $as_echo "$as_me: error: conditional \"HPIJS_INSTALL\" was never defined.
24457 Usually this means the macro was only invoked conditionally." >&2;}
24458 { (exit 1); exit 1; }; }
24460 if test -z "${HPCUPS_INSTALL_TRUE}" && test -z "${HPCUPS_INSTALL_FALSE}"; then
24461 { { $as_echo "$as_me:$LINENO: error: conditional \"HPCUPS_INSTALL\" was never defined.
24462 Usually this means the macro was only invoked conditionally." >&5
24463 $as_echo "$as_me: error: conditional \"HPCUPS_INSTALL\" was never defined.
24464 Usually this means the macro was only invoked conditionally." >&2;}
24465 { (exit 1); exit 1; }; }
24467 if test -z "${NEW_HPCUPS_TRUE}" && test -z "${NEW_HPCUPS_FALSE}"; then
24468 { { $as_echo "$as_me:$LINENO: error: conditional \"NEW_HPCUPS\" was never defined.
24469 Usually this means the macro was only invoked conditionally." >&5
24470 $as_echo "$as_me: error: conditional \"NEW_HPCUPS\" was never defined.
24471 Usually this means the macro was only invoked conditionally." >&2;}
24472 { (exit 1); exit 1; }; }
24474 if test -z "${NETWORK_BUILD_TRUE}" && test -z "${NETWORK_BUILD_FALSE}"; then
24475 { { $as_echo "$as_me:$LINENO: error: conditional \"NETWORK_BUILD\" was never defined.
24476 Usually this means the macro was only invoked conditionally." >&5
24477 $as_echo "$as_me: error: conditional \"NETWORK_BUILD\" was never defined.
24478 Usually this means the macro was only invoked conditionally." >&2;}
24479 { (exit 1); exit 1; }; }
24481 if test -z "${SCAN_BUILD_TRUE}" && test -z "${SCAN_BUILD_FALSE}"; then
24482 { { $as_echo "$as_me:$LINENO: error: conditional \"SCAN_BUILD\" was never defined.
24483 Usually this means the macro was only invoked conditionally." >&5
24484 $as_echo "$as_me: error: conditional \"SCAN_BUILD\" was never defined.
24485 Usually this means the macro was only invoked conditionally." >&2;}
24486 { (exit 1); exit 1; }; }
24488 if test -z "${GUI_BUILD_TRUE}" && test -z "${GUI_BUILD_FALSE}"; then
24489 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_BUILD\" was never defined.
24490 Usually this means the macro was only invoked conditionally." >&5
24491 $as_echo "$as_me: error: conditional \"GUI_BUILD\" was never defined.
24492 Usually this means the macro was only invoked conditionally." >&2;}
24493 { (exit 1); exit 1; }; }
24495 if test -z "${FAX_BUILD_TRUE}" && test -z "${FAX_BUILD_FALSE}"; then
24496 { { $as_echo "$as_me:$LINENO: error: conditional \"FAX_BUILD\" was never defined.
24497 Usually this means the macro was only invoked conditionally." >&5
24498 $as_echo "$as_me: error: conditional \"FAX_BUILD\" was never defined.
24499 Usually this means the macro was only invoked conditionally." >&2;}
24500 { (exit 1); exit 1; }; }
24502 if test -z "${UDEV_ACL_RULES_TRUE}" && test -z "${UDEV_ACL_RULES_FALSE}"; then
24503 { { $as_echo "$as_me:$LINENO: error: conditional \"UDEV_ACL_RULES\" was never defined.
24504 Usually this means the macro was only invoked conditionally." >&5
24505 $as_echo "$as_me: error: conditional \"UDEV_ACL_RULES\" was never defined.
24506 Usually this means the macro was only invoked conditionally." >&2;}
24507 { (exit 1); exit 1; }; }
24509 if test -z "${SHADOW_BUILD_TRUE}" && test -z "${SHADOW_BUILD_FALSE}"; then
24510 { { $as_echo "$as_me:$LINENO: error: conditional \"SHADOW_BUILD\" was never defined.
24511 Usually this means the macro was only invoked conditionally." >&5
24512 $as_echo "$as_me: error: conditional \"SHADOW_BUILD\" was never defined.
24513 Usually this means the macro was only invoked conditionally." >&2;}
24514 { (exit 1); exit 1; }; }
24516 if test -z "${FOOMATIC_PPD_INSTALL_TRUE}" && test -z "${FOOMATIC_PPD_INSTALL_FALSE}"; then
24517 { { $as_echo "$as_me:$LINENO: error: conditional \"FOOMATIC_PPD_INSTALL\" was never defined.
24518 Usually this means the macro was only invoked conditionally." >&5
24519 $as_echo "$as_me: error: conditional \"FOOMATIC_PPD_INSTALL\" was never defined.
24520 Usually this means the macro was only invoked conditionally." >&2;}
24521 { (exit 1); exit 1; }; }
24523 if test -z "${FOOMATIC_DRV_INSTALL_TRUE}" && test -z "${FOOMATIC_DRV_INSTALL_FALSE}"; then
24524 { { $as_echo "$as_me:$LINENO: error: conditional \"FOOMATIC_DRV_INSTALL\" was never defined.
24525 Usually this means the macro was only invoked conditionally." >&5
24526 $as_echo "$as_me: error: conditional \"FOOMATIC_DRV_INSTALL\" was never defined.
24527 Usually this means the macro was only invoked conditionally." >&2;}
24528 { (exit 1); exit 1; }; }
24530 if test -z "${CUPS_DRV_INSTALL_TRUE}" && test -z "${CUPS_DRV_INSTALL_FALSE}"; then
24531 { { $as_echo "$as_me:$LINENO: error: conditional \"CUPS_DRV_INSTALL\" was never defined.
24532 Usually this means the macro was only invoked conditionally." >&5
24533 $as_echo "$as_me: error: conditional \"CUPS_DRV_INSTALL\" was never defined.
24534 Usually this means the macro was only invoked conditionally." >&2;}
24535 { (exit 1); exit 1; }; }
24537 if test -z "${CUPS_PPD_INSTALL_TRUE}" && test -z "${CUPS_PPD_INSTALL_FALSE}"; then
24538 { { $as_echo "$as_me:$LINENO: error: conditional \"CUPS_PPD_INSTALL\" was never defined.
24539 Usually this means the macro was only invoked conditionally." >&5
24540 $as_echo "$as_me: error: conditional \"CUPS_PPD_INSTALL\" was never defined.
24541 Usually this means the macro was only invoked conditionally." >&2;}
24542 { (exit 1); exit 1; }; }
24544 if test -z "${RIP_INSTALL_TRUE}" && test -z "${RIP_INSTALL_FALSE}"; then
24545 { { $as_echo "$as_me:$LINENO: error: conditional \"RIP_INSTALL\" was never defined.
24546 Usually this means the macro was only invoked conditionally." >&5
24547 $as_echo "$as_me: error: conditional \"RIP_INSTALL\" was never defined.
24548 Usually this means the macro was only invoked conditionally." >&2;}
24549 { (exit 1); exit 1; }; }
24551 if test -z "${QT4_INSTALL_TRUE}" && test -z "${QT4_INSTALL_FALSE}"; then
24552 { { $as_echo "$as_me:$LINENO: error: conditional \"QT4_INSTALL\" was never defined.
24553 Usually this means the macro was only invoked conditionally." >&5
24554 $as_echo "$as_me: error: conditional \"QT4_INSTALL\" was never defined.
24555 Usually this means the macro was only invoked conditionally." >&2;}
24556 { (exit 1); exit 1; }; }
24558 if test -z "${QT3_INSTALL_TRUE}" && test -z "${QT3_INSTALL_FALSE}"; then
24559 { { $as_echo "$as_me:$LINENO: error: conditional \"QT3_INSTALL\" was never defined.
24560 Usually this means the macro was only invoked conditionally." >&5
24561 $as_echo "$as_me: error: conditional \"QT3_INSTALL\" was never defined.
24562 Usually this means the macro was only invoked conditionally." >&2;}
24563 { (exit 1); exit 1; }; }
24565 if test -z "${POLICYKIT_INSTALL_TRUE}" && test -z "${POLICYKIT_INSTALL_FALSE}"; then
24566 { { $as_echo "$as_me:$LINENO: error: conditional \"POLICYKIT_INSTALL\" was never defined.
24567 Usually this means the macro was only invoked conditionally." >&5
24568 $as_echo "$as_me: error: conditional \"POLICYKIT_INSTALL\" was never defined.
24569 Usually this means the macro was only invoked conditionally." >&2;}
24570 { (exit 1); exit 1; }; }
24573 : ${CONFIG_STATUS=./config.status}
24575 ac_clean_files_save=$ac_clean_files
24576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24577 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24578 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24579 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24581 # Generated by $as_me.
24582 # Run this file to recreate the current configuration.
24583 # Compiler output produced by configure, useful for debugging
24584 # configure, is in config.log if it exists.
24587 ac_cs_recheck=false
24589 SHELL=\${CONFIG_SHELL-$SHELL}
24592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24593 ## --------------------- ##
24594 ## M4sh Initialization. ##
24595 ## --------------------- ##
24597 # Be more Bourne compatible
24598 DUALCASE=1; export DUALCASE # for MKS sh
24599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24603 # is contrary to our usage. Disable this feature.
24604 alias -g '${1+"$@"}'='"$@"'
24605 setopt NO_GLOB_SUBST
24607 case `(set -o) 2>/dev/null` in
24608 *posix*) set -o posix ;;
24617 # Avoid depending upon Character Ranges.
24618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24621 as_cr_digits='0123456789'
24622 as_cr_alnum=$as_cr_Letters$as_cr_digits
24627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24631 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24632 as_echo='printf %s\n'
24633 as_echo_n='printf %s'
24635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24636 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24637 as_echo_n='/usr/ucb/echo -n'
24639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24640 as_echo_n_body='eval
24644 expr "X$arg" : "X\\(.*\\)$as_nl";
24645 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24647 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24649 export as_echo_n_body
24650 as_echo_n='sh -c $as_echo_n_body as_echo'
24652 export as_echo_body
24653 as_echo='sh -c $as_echo_body as_echo'
24656 # The user is always right.
24657 if test "${PATH_SEPARATOR+set}" != set; then
24659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24665 # Support unset when possible.
24666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24674 # We need space, tab and new line, in precisely that order. Quoting is
24675 # there to prevent editors from complaining about space-tab.
24676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24677 # splitting by setting IFS to empty value.)
24680 # Find who we are. Look in the path if we contain no directory separator.
24682 *[\\/]* ) as_myself=$0 ;;
24683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684 for as_dir in $PATH
24687 test -z "$as_dir" && as_dir=.
24688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24694 # We did not find ourselves, most probably we were run as `sh COMMAND'
24695 # in which case we are not to be found in the path.
24696 if test "x$as_myself" = x; then
24699 if test ! -f "$as_myself"; then
24700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24701 { (exit 1); exit 1; }
24704 # Work around bugs in pre-3.0 UWIN ksh.
24705 for as_var in ENV MAIL MAILPATH
24706 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24718 # Required to use basename.
24719 if expr a : '\(a\)' >/dev/null 2>&1 &&
24720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24727 as_basename=basename
24733 # Name of the executable.
24734 as_me=`$as_basename -- "$0" ||
24735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24736 X"$0" : 'X\(//\)$' \| \
24737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24739 sed '/^.*\/\([^/][^/]*\)\/*$/{
24758 as_lineno_1=$LINENO
24759 as_lineno_2=$LINENO
24760 test "x$as_lineno_1" != "x$as_lineno_2" &&
24761 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24764 # uniformly replaced by the line number. The first 'sed' inserts a
24765 # line-number line after each line using $LINENO; the second 'sed'
24766 # does the real work. The second script uses 'N' to pair each
24767 # line-number line with the line containing $LINENO, and appends
24768 # trailing '-' during substitution so that $LINENO is not a special
24769 # case at line end.
24770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24771 # scripts with optimization help from Paolo Bonzini. Blame Lee
24772 # E. McMahon (1931-1989) for sed's syntax. :-)
24784 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24787 ' >$as_me.lineno &&
24788 chmod +x "$as_me.lineno" ||
24789 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24790 { (exit 1); exit 1; }; }
24792 # Don't try to exec as it changes $[0], causing all sort of problems
24793 # (the dirname of $[0] is not the place where we might find the
24794 # original and so on. Autoconf is especially sensitive to this).
24795 . "./$as_me.lineno"
24796 # Exit status is that of the last command.
24801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24807 ECHO_C= ECHO_N= ECHO_T=
24808 case `echo -n x` in
24810 case `echo 'x\c'` in
24811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24817 if expr a : '\(a\)' >/dev/null 2>&1 &&
24818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24824 rm -f conf$$ conf$$.exe conf$$.file
24825 if test -d conf$$.dir; then
24826 rm -f conf$$.dir/conf$$.file
24829 mkdir conf$$.dir 2>/dev/null
24831 if (echo >conf$$.file) 2>/dev/null; then
24832 if ln -s conf$$.file conf$$ 2>/dev/null; then
24834 # ... but there are two gotchas:
24835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24837 # In both cases, we have to default to `cp -p'.
24838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24840 elif ln conf$$.file conf$$ 2>/dev/null; then
24848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24849 rmdir conf$$.dir 2>/dev/null
24851 if mkdir -p . 2>/dev/null; then
24854 test -d ./-p && rmdir ./-p
24858 if test -x / >/dev/null 2>&1; then
24859 as_test_x='test -x'
24861 if ls -dL / >/dev/null 2>&1; then
24868 if test -d "$1"; then
24874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24875 ???[sx]*):;;*)false;;esac;fi
24879 as_executable_p=$as_test_x
24881 # Sed expression to map a string onto a valid CPP name.
24882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24884 # Sed expression to map a string onto a valid variable name.
24885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24890 # Save the log message, to keep $[0] and so on meaningful, and to
24891 # report actual input values of CONFIG_FILES etc. instead of their
24892 # values after options handling.
24894 This file was extended by HP Linux Imaging and Printing $as_me 3.12.4, which was
24895 generated by GNU Autoconf 2.63. Invocation command line was
24897 CONFIG_FILES = $CONFIG_FILES
24898 CONFIG_HEADERS = $CONFIG_HEADERS
24899 CONFIG_LINKS = $CONFIG_LINKS
24900 CONFIG_COMMANDS = $CONFIG_COMMANDS
24903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24908 case $ac_config_files in *"
24909 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24915 # Files that config.status was made for.
24916 config_files="$ac_config_files"
24917 config_commands="$ac_config_commands"
24921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24923 \`$as_me' instantiates files from templates according to the
24924 current configuration.
24926 Usage: $0 [OPTION]... [FILE]...
24928 -h, --help print this help, then exit
24929 -V, --version print version number and configuration settings, then exit
24930 -q, --quiet, --silent
24931 do not print progress messages
24932 -d, --debug don't remove temporary files
24933 --recheck update $as_me by reconfiguring in the same conditions
24934 --file=FILE[:TEMPLATE]
24935 instantiate the configuration file FILE
24937 Configuration files:
24940 Configuration commands:
24943 Report bugs to <bug-autoconf@gnu.org>."
24946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24948 HP Linux Imaging and Printing config.status 3.12.4
24949 configured by $0, generated by GNU Autoconf 2.63,
24950 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24952 Copyright (C) 2008 Free Software Foundation, Inc.
24953 This config.status script is free software; the Free Software Foundation
24954 gives unlimited permission to copy, distribute and modify it."
24961 test -n "\$AWK" || AWK=awk
24964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24965 # The default lists apply if the user does not specify any file.
24971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24983 # Handling of the options.
24984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24987 $as_echo "$ac_cs_version"; exit ;;
24988 --debug | --debu | --deb | --de | --d | -d )
24990 --file | --fil | --fi | --f )
24993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24995 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24996 ac_need_defaults=false;;
24997 --he | --h | --help | --hel | -h )
24998 $as_echo "$ac_cs_usage"; exit ;;
24999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25000 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25003 # This is an error.
25004 -*) { $as_echo "$as_me: error: unrecognized option: $1
25005 Try \`$0 --help' for more information." >&2
25006 { (exit 1); exit 1; }; } ;;
25008 *) ac_config_targets="$ac_config_targets $1"
25009 ac_need_defaults=false ;;
25015 ac_configure_extra_args=
25017 if $ac_cs_silent; then
25019 ac_configure_extra_args="$ac_configure_extra_args --silent"
25023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25024 if \$ac_cs_recheck; then
25025 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25028 CONFIG_SHELL='$SHELL'
25029 export CONFIG_SHELL
25034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25039 ## Running $as_me. ##
25045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25049 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25055 # Handling of arguments.
25056 for ac_config_target in $ac_config_targets
25058 case $ac_config_target in
25059 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25061 "hplip.conf") CONFIG_FILES="$CONFIG_FILES hplip.conf" ;;
25062 "hplip.desktop") CONFIG_FILES="$CONFIG_FILES hplip.desktop" ;;
25063 "hplip-systray.desktop") CONFIG_FILES="$CONFIG_FILES hplip-systray.desktop" ;;
25064 "prnt/drv/hpijs.drv") CONFIG_FILES="$CONFIG_FILES prnt/drv/hpijs.drv" ;;
25065 "prnt/drv/hpcups.drv") CONFIG_FILES="$CONFIG_FILES prnt/drv/hpcups.drv" ;;
25066 "hplip.list") CONFIG_FILES="$CONFIG_FILES hplip.list" ;;
25067 "data/policykit/com.hp.hplip.service") CONFIG_FILES="$CONFIG_FILES data/policykit/com.hp.hplip.service" ;;
25069 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25070 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25071 { (exit 1); exit 1; }; };;
25076 # If the user did not use the arguments to specify the items to instantiate,
25077 # then the envvar interface is used. Set only those that are not.
25078 # We use the long form for the default assignment because of an extremely
25079 # bizarre bug on SunOS 4.1.3.
25080 if $ac_need_defaults; then
25081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25082 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25085 # Have a temporary directory for convenience. Make it in the build tree
25086 # simply because there is no reason against having it here, and in addition,
25087 # creating and moving files from /tmp can sometimes cause problems.
25088 # Hook for its removal unless debugging.
25089 # Note that there is a small window in which the directory will not be cleaned:
25090 # after its creation but before its name has been assigned to `$tmp'.
25094 trap 'exit_status=$?
25095 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25097 trap '{ (exit 1); exit 1; }' 1 2 13 15
25099 # Create a (secure) tmp directory for tmp files.
25102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25103 test -n "$tmp" && test -d "$tmp"
25106 tmp=./conf$$-$RANDOM
25107 (umask 077 && mkdir "$tmp")
25110 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25111 { (exit 1); exit 1; }
25114 # Set up the scripts for CONFIG_FILES section.
25115 # No need to generate them if there are no CONFIG_FILES.
25116 # This happens for instance with `./config.status config.h'.
25117 if test -n "$CONFIG_FILES"; then
25121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25125 ac_cs_awk_cr=$ac_cr
25128 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25133 echo "cat >conf$$subs.awk <<_ACEOF" &&
25134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25136 } >conf$$subs.sh ||
25137 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25138 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25139 { (exit 1); exit 1; }; }
25140 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25142 for ac_last_try in false false false false false :; do
25143 . ./conf$$subs.sh ||
25144 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25145 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25146 { (exit 1); exit 1; }; }
25148 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25149 if test $ac_delim_n = $ac_delim_num; then
25151 elif $ac_last_try; then
25152 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25153 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25154 { (exit 1); exit 1; }; }
25156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25159 rm -f conf$$subs.sh
25161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25162 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25166 s/^/S["/; s/!.*/"]=/
25176 s/\(.\{148\}\).*/\1/
25178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25190 s/\(.\{148\}\).*/\1/
25192 s/["\\]/\\&/g; s/^/"/; s/$/"/
25196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25201 ' <conf$$subs.awk | sed '
25206 ' >>$CONFIG_STATUS || ac_write_fail=1
25207 rm -f conf$$subs.awk
25208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25210 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25211 for (key in S) S_is_set[key] = 1
25217 nfields = split(line, field, "@")
25219 len = length(field[1])
25220 for (i = 2; i < nfields; i++) {
25222 keylen = length(key)
25223 if (S_is_set[key]) {
25225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25226 len += length(value) + length(field[++i])
25237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25242 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25243 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25244 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25245 { (exit 1); exit 1; }; }
25248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25250 # trailing colons and then remove the whole line if VPATH becomes empty
25251 # (actually we leave an empty line to preserve line numbers).
25252 if test "x$srcdir" = x.; then
25253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25254 s/:*\$(srcdir):*/:/
25255 s/:*\${srcdir}:*/:/
25257 s/^\([^=]*=[ ]*\):*/\1/
25263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25264 fi # test -n "$CONFIG_FILES"
25267 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
25272 :[FHLC]) ac_mode=$ac_tag; continue;;
25274 case $ac_mode$ac_tag in
25276 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25277 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25278 { (exit 1); exit 1; }; };;
25279 :[FH]-) ac_tag=-:-;;
25280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25297 -) ac_f="$tmp/stdin";;
25298 *) # Look for the file first in the build tree, then in the source tree
25299 # (if the path is not absolute). The absolute path cannot be DOS-style,
25300 # because $ac_f cannot contain `:'.
25304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25306 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25307 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25308 { (exit 1); exit 1; }; };;
25310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25311 ac_file_inputs="$ac_file_inputs '$ac_f'"
25314 # Let's still pretend it is `configure' which instantiates (i.e., don't
25315 # use $as_me), people would be surprised to read:
25316 # /* config.h. Generated by config.status. */
25317 configure_input='Generated from '`
25318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25320 if test x"$ac_file" != x-; then
25321 configure_input="$ac_file. $configure_input"
25322 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25323 $as_echo "$as_me: creating $ac_file" >&6;}
25325 # Neutralize special characters interpreted by sed in replacement strings.
25326 case $configure_input in #(
25327 *\&* | *\|* | *\\* )
25328 ac_sed_conf_input=`$as_echo "$configure_input" |
25329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25330 *) ac_sed_conf_input=$configure_input;;
25334 *:-:* | *:-) cat >"$tmp/stdin" \
25335 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25337 { (exit 1); exit 1; }; } ;;
25342 ac_dir=`$as_dirname -- "$ac_file" ||
25343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25344 X"$ac_file" : 'X\(//\)[^/]' \| \
25345 X"$ac_file" : 'X\(//\)$' \| \
25346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25347 $as_echo X"$ac_file" |
25348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25352 /^X\(\/\/\)[^/].*/{
25367 -*) as_dir=./$as_dir;;
25369 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25373 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25374 *) as_qdir=$as_dir;;
25376 as_dirs="'$as_qdir' $as_dirs"
25377 as_dir=`$as_dirname -- "$as_dir" ||
25378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25379 X"$as_dir" : 'X\(//\)[^/]' \| \
25380 X"$as_dir" : 'X\(//\)$' \| \
25381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25382 $as_echo X"$as_dir" |
25383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25387 /^X\(\/\/\)[^/].*/{
25400 test -d "$as_dir" && break
25402 test -z "$as_dirs" || eval "mkdir $as_dirs"
25403 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25404 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25405 { (exit 1); exit 1; }; }; }
25409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25412 # A ".." for each directory in $ac_dir_suffix.
25413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25414 case $ac_top_builddir_sub in
25415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25419 ac_abs_top_builddir=$ac_pwd
25420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25421 # for backward compatibility:
25422 ac_top_builddir=$ac_top_build_prefix
25425 .) # We are building in place.
25427 ac_top_srcdir=$ac_top_builddir_sub
25428 ac_abs_top_srcdir=$ac_pwd ;;
25429 [\\/]* | ?:[\\/]* ) # Absolute name.
25430 ac_srcdir=$srcdir$ac_dir_suffix;
25431 ac_top_srcdir=$srcdir
25432 ac_abs_top_srcdir=$srcdir ;;
25433 *) # Relative name.
25434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25435 ac_top_srcdir=$ac_top_build_prefix$srcdir
25436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25451 ac_MKDIR_P=$MKDIR_P
25453 [\\/$]* | ?:[\\/]* ) ;;
25454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25459 # If the template does not know about datarootdir, expand it.
25460 # FIXME: This hack should be removed a few years after 2.60.
25461 ac_datarootdir_hack=; ac_datarootdir_seen=
25474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25475 *datarootdir*) ac_datarootdir_seen=yes;;
25476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25477 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25481 ac_datarootdir_hack='
25482 s&@datadir@&$datadir&g
25483 s&@docdir@&$docdir&g
25484 s&@infodir@&$infodir&g
25485 s&@localedir@&$localedir&g
25486 s&@mandir@&$mandir&g
25487 s&\\\${datarootdir}&$datarootdir&g' ;;
25491 # Neutralize VPATH when `$srcdir' = `.'.
25492 # Shell code in configure.ac might set extrasub.
25493 # FIXME: do we really want to maintain this feature?
25494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25495 ac_sed_extra="$ac_vpsub
25498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25501 s|@configure_input@|$ac_sed_conf_input|;t t
25502 s&@top_builddir@&$ac_top_builddir_sub&;t t
25503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25504 s&@srcdir@&$ac_srcdir&;t t
25505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25506 s&@top_srcdir@&$ac_top_srcdir&;t t
25507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25508 s&@builddir@&$ac_builddir&;t t
25509 s&@abs_builddir@&$ac_abs_builddir&;t t
25510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25511 s&@INSTALL@&$ac_INSTALL&;t t
25512 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25513 $ac_datarootdir_hack
25515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25518 { (exit 1); exit 1; }; }
25520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25521 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25522 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25523 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25524 which seems to be undefined. Please make sure it is defined." >&5
25525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25526 which seems to be undefined. Please make sure it is defined." >&2;}
25530 -) cat "$tmp/out" && rm -f "$tmp/out";;
25531 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25533 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25534 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25535 { (exit 1); exit 1; }; }
25539 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25540 $as_echo "$as_me: executing $ac_file commands" >&6;}
25545 case $ac_file$ac_mode in
25546 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25547 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25548 # are listed without --file. Let's play safe and only enable the eval
25549 # if we detect the quoting.
25550 case $CONFIG_FILES in
25551 *\'*) eval set x "$CONFIG_FILES" ;;
25552 *) set x $CONFIG_FILES ;;
25557 # Strip MF so we end up with the name of the file.
25558 mf=`echo "$mf" | sed -e 's/:.*$//'`
25559 # Check whether this is an Automake generated Makefile or not.
25560 # We used to match only the files named `Makefile.in', but
25561 # some people rename them; so instead we look at the file content.
25562 # Grep'ing the first line is not enough: some people post-process
25563 # each Makefile.in and add a new line on top of each file to say so.
25564 # Grep'ing the whole file is not good either: AIX grep has a line
25565 # limit of 2048, but all sed's we know have understand at least 4000.
25566 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25567 dirpart=`$as_dirname -- "$mf" ||
25568 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25569 X"$mf" : 'X\(//\)[^/]' \| \
25570 X"$mf" : 'X\(//\)$' \| \
25571 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25577 /^X\(\/\/\)[^/].*/{
25593 # Extract the definition of DEPDIR, am__include, and am__quote
25594 # from the Makefile without running `make'.
25595 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25596 test -z "$DEPDIR" && continue
25597 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25598 test -z "am__include" && continue
25599 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25600 # When using ansi2knr, U may be empty or an underscore; expand it
25601 U=`sed -n 's/^U = //p' < "$mf"`
25602 # Find all dependency output files, they are included files with
25603 # $(DEPDIR) in their names. We invoke sed twice because it is the
25604 # simplest approach to changing $(DEPDIR) to its actual value in the
25606 for file in `sed -n "
25607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25609 # Make sure the directory exists.
25610 test -f "$dirpart/$file" && continue
25611 fdir=`$as_dirname -- "$file" ||
25612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25613 X"$file" : 'X\(//\)[^/]' \| \
25614 X"$file" : 'X\(//\)$' \| \
25615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25616 $as_echo X"$file" |
25617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25621 /^X\(\/\/\)[^/].*/{
25634 { as_dir=$dirpart/$fdir
25636 -*) as_dir=./$as_dir;;
25638 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25643 *) as_qdir=$as_dir;;
25645 as_dirs="'$as_qdir' $as_dirs"
25646 as_dir=`$as_dirname -- "$as_dir" ||
25647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25648 X"$as_dir" : 'X\(//\)[^/]' \| \
25649 X"$as_dir" : 'X\(//\)$' \| \
25650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25651 $as_echo X"$as_dir" |
25652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25656 /^X\(\/\/\)[^/].*/{
25669 test -d "$as_dir" && break
25671 test -z "$as_dirs" || eval "mkdir $as_dirs"
25672 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25673 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25674 { (exit 1); exit 1; }; }; }
25675 # echo "creating $dirpart/$file"
25676 echo '# dummy' > "$dirpart/$file"
25686 { (exit 0); exit 0; }
25688 chmod +x $CONFIG_STATUS
25689 ac_clean_files=$ac_clean_files_save
25691 test $ac_write_fail = 0 ||
25692 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25693 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25694 { (exit 1); exit 1; }; }
25697 # configure is writing to config.log, and then calls config.status.
25698 # config.status does its own redirection, appending to config.log.
25699 # Unfortunately, on DOS this fails, as config.log is still kept open
25700 # by configure, so config.status won't be able to write to it; its
25701 # output is simply discarded. So we exec the FD to /dev/null,
25702 # effectively closing config.log, so it can be properly (re)opened and
25703 # appended to by config.status. When coming back to configure, we
25704 # need to make the FD available again.
25705 if test "$no_create" != yes; then
25707 ac_config_status_args=
25708 test "$silent" = yes &&
25709 ac_config_status_args="$ac_config_status_args --quiet"
25711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25714 # would make configure fail if this is the last instruction.
25715 $ac_cs_success || { (exit 1); exit 1; }
25717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25718 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}