2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S YACC CPP EGREP U ANSI2KNR build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS XSLTPROC XML_CATALOG_FILE XMLCATALOG ENABLE_REGENERATE_MAN_TRUE ENABLE_REGENERATE_MAN_FALSE LIBCRYPT LIBAUDIT LIBCRACK LIBSELINUX LIBPAM LIBSKEY LIBMD MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 if test -n "$ac_init_help"; then
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=no]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-maintainer-mode enable make rules and dependencies not useful
1030 (and sometimes confusing) to the casual installer
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --disable-largefile omit support for large files
1037 --enable-shadowgrp enable shadow group support [default=yes]
1038 --enable-man regenerate roff man pages from Docbook
1040 --disable-nls do not use Native Language Support
1041 --disable-rpath do not hardcode runtime library paths
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-audit use auditing support [default=yes if found]
1052 --with-libpam use libpam for PAM support [default=yes if
1054 --with-selinux use SELinux support [default=autodetect]
1055 --with-skey use S/Key support [default=no]
1056 --with-libcrack use libcrack [default=yes if found and if PAM not
1058 --with-xml-catalog=CATALOG
1059 path to xml catalog to use
1060 --with-gnu-ld assume the C compiler uses GNU ld default=no
1061 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1062 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1063 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1064 --without-libintl-prefix don't search for libintl in includedir and libdir
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1086 if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1093 if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 ac_dir_suffix= ac_top_builddir=
1102 .) # No --srcdir option. We are building in place.
1104 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1120 .) ac_abs_builddir="$ac_dir";;
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
1165 test -f $ac_srcdir/configure.in; then
1167 $ac_configure --help
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by $as_me, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 am__api_version="1.9"
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments. Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1637 set X `ls -t $srcdir/configure conftest.file`
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1654 test "$2" = conftest.file
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $. echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1715 for d in ./-p ./--version;
1717 test -d $d && rmdir $d
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1723 mkdir_p='$(install_sh) -d'
1727 for ac_prog in gawk mawk nawk awk
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$AWK" && break
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.make <<\_ACEOF
1775 @echo 'ac_maketemp="$(MAKE)"'
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1782 eval ac_cv_prog_make_${ac_make}_set=no
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1823 # Define the identity of the package.
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'. However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860 if test -n "$ac_tool_prefix"; then
1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 if test -n "$STRIP"; then
1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889 echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$ac_cv_prog_STRIP"; then
1899 # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$ac_ct_STRIP"; then
1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_STRIP="strip"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1937 STRIP="$ac_cv_prog_STRIP"
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target. The system "awk" is bad on
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1955 ac_config_headers="$ac_config_headers config.h"
1958 test "$prefix" = "NONE" && prefix="/usr"
1959 test "$prefix" = "/usr" && exec_prefix=""
1962 cat >>confdefs.h <<\_ACEOF
1963 #define _GNU_SOURCE 1
1968 # Check whether --enable-shared or --disable-shared was given.
1969 if test "${enable_shared+set}" = set; then
1970 enableval="$enable_shared"
1971 p=${PACKAGE-default}
1973 yes) enable_shared=yes ;;
1974 no) enable_shared=no ;;
1977 # Look at the argument we got. We use all the common list separators.
1978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1979 for pkg in $enableval; do
1981 if test "X$pkg" = "X$p"; then
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995 enableval="$enable_static"
1996 p=${PACKAGE-default}
1998 yes) enable_static=yes ;;
1999 no) enable_static=no ;;
2002 # Look at the argument we got. We use all the common list separators.
2003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004 for pkg in $enableval; do
2006 if test "X$pkg" = "X$p"; then
2018 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2019 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2020 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2021 if test "${enable_maintainer_mode+set}" = set; then
2022 enableval="$enable_maintainer_mode"
2023 USE_MAINTAINER_MODE=$enableval
2025 USE_MAINTAINER_MODE=no
2027 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2028 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2031 if test $USE_MAINTAINER_MODE = yes; then
2032 MAINTAINER_MODE_TRUE=
2033 MAINTAINER_MODE_FALSE='#'
2035 MAINTAINER_MODE_TRUE='#'
2036 MAINTAINER_MODE_FALSE=
2039 MAINT=$MAINTAINER_MODE_TRUE
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$ac_cv_prog_CC"; then
2087 # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="gcc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228 ac_prog_rejected=yes
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy $ac_cv_prog_CC
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2343 test -n "$ac_ct_CC" && break
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360 "checking for C compiler version" >&5
2361 ac_compiler=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363 (eval $ac_compiler --version </dev/null >&5) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368 (eval $ac_compiler -v </dev/null >&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373 (eval $ac_compiler -V </dev/null >&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2416 test -f "$ac_file" || continue
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2421 # This is the source file.
2424 # We found the default executable, but exeext='' is most
2428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460 if { ac_try='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 if test "$cross_compiling" = maybe; then
2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 for ac_file in conftest.exe conftest conftest.*; do
2505 test -f "$ac_file" || continue
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS=${CFLAGS+set}
2639 ac_save_CFLAGS=$CFLAGS
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2703 if test "$GCC" = yes; then
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 ac_cv_prog_cc_stdc=no
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc=$ac_arg
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext
2809 rm -f conftest.$ac_ext conftest.$ac_objext
2814 case "x$ac_cv_prog_cc_stdc" in
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC="$CC $ac_cv_prog_cc_stdc" ;;
2824 # Some people use a C++ compiler to compile C. Since we use `exit',
2825 # in C++ we need to declare it. In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.$ac_ext <<_ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration in \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 DEPDIR="${am__leading_dot}deps"
2974 ac_config_commands="$ac_config_commands depfiles"
2977 am_make=${MAKE-make}
2978 cat > confinc << 'END'
2983 # If we don't find an include directive, just comment out the code.
2984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2989 # First try GNU make style include.
2990 echo "include confinc" > confmf
2991 # We grep out `Entering directory' and `Leaving directory'
2992 # messages which can occur if `w' ends up in MAKEFLAGS.
2993 # In particular we don't look at `^make:' because GNU make might
2994 # be invoked under some other name (usually "gmake"), in which
2995 # case it prints its new name instead of `make'.
2996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3001 # Now try BSD make style include.
3002 if test "$am__include" = "#"; then
3003 echo '.include "confinc"' > confmf
3004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3005 am__include=.include
3012 echo "$as_me:$LINENO: result: $_am_result" >&5
3013 echo "${ECHO_T}$_am_result" >&6
3014 rm -f confinc confmf
3016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3017 if test "${enable_dependency_tracking+set}" = set; then
3018 enableval="$enable_dependency_tracking"
3021 if test "x$enable_dependency_tracking" != xno; then
3022 am_depcomp="$ac_aux_dir/depcomp"
3027 if test "x$enable_dependency_tracking" != xno; then
3038 depcc="$CC" am_compiler_list=
3040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3046 # We make a subdir and do the tests there. Otherwise we can end up
3047 # making bogus files that we don't know about and never remove. For
3048 # instance it was reported that on HP-UX the gcc test will end up
3049 # making a dummy file named `D' -- because `-MD' means `put the output
3052 # Copy depcomp to subdir because otherwise we won't find it if we're
3053 # using a relative directory.
3054 cp "$am_depcomp" conftest.dir
3056 # We will build objects and dependencies in a subdirectory because
3057 # it helps to detect inapplicable dependency modes. For instance
3058 # both Tru64's cc and ICC support -MD to output dependencies as a
3059 # side effect of compilation, but ICC will put the dependencies in
3060 # the current directory while Tru64 will put them in the object
3064 am_cv_CC_dependencies_compiler_type=none
3065 if test "$am_compiler_list" = ""; then
3066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3068 for depmode in $am_compiler_list; do
3069 # Setup a source with many dependencies, because some compilers
3070 # like to wrap large dependency lists on column 80 (with \), and
3071 # we should not choose a depcomp mode which is confused by this.
3073 # We need to recreate these files for each test, as the compiler may
3074 # overwrite some of them when testing with obscure command lines.
3075 # This happens at least with the AIX C compiler.
3077 for i in 1 2 3 4 5 6; do
3078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3080 # Solaris 8's {/usr,}/bin/sh.
3081 touch sub/conftst$i.h
3083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3087 # after this tag, mechanisms are not by side-effect, so they'll
3088 # only be used when explicitly requested
3089 if test "x$enable_dependency_tracking" = xyes; then
3097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3098 # mode. It turns out that the SunPro C++ compiler does not properly
3099 # handle `-M -o', and we need to detect this.
3100 if depmode=$depmode \
3101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3104 >/dev/null 2>conftest.err &&
3105 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3106 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3107 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3108 # icc doesn't choke on unknown options, it will just issue warnings
3109 # or remarks (even with -Werror). So we grep stderr for any message
3110 # that says an option was ignored or not supported.
3111 # When given -MP, icc 7.0 and 7.1 complain thusly:
3112 # icc: Command line warning: ignoring option '-M'; no argument required
3113 # The diagnosis changed in icc 8.0:
3114 # icc: Command line remark: option '-MP' not supported
3115 if (grep 'ignoring option' conftest.err ||
3116 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3117 am_cv_CC_dependencies_compiler_type=$depmode
3126 am_cv_CC_dependencies_compiler_type=none
3130 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3131 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3132 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3137 test "x$enable_dependency_tracking" != xno \
3138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3140 am__fastdepCC_FALSE='#'
3142 am__fastdepCC_TRUE='#'
3143 am__fastdepCC_FALSE=
3148 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3149 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3150 if test "${ac_cv_search_strerror+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_func_search_save_LIBS=$LIBS
3154 ac_cv_search_strerror=no
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3162 /* Override any gcc2 internal prototype to avoid an error. */
3166 /* We use char because int might match the return type of a gcc2
3167 builtin and then its argument prototype would still apply. */
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag"
3187 || test ! -s conftest.err'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest$ac_exeext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_search_strerror="none required"
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f conftest.err conftest.$ac_objext \
3206 conftest$ac_exeext conftest.$ac_ext
3207 if test "$ac_cv_search_strerror" = no; then
3208 for ac_lib in cposix; do
3209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3217 /* Override any gcc2 internal prototype to avoid an error. */
3221 /* We use char because int might match the return type of a gcc2
3222 builtin and then its argument prototype would still apply. */
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_search_strerror="-l$ac_lib"
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f conftest.err conftest.$ac_objext \
3262 conftest$ac_exeext conftest.$ac_ext
3265 LIBS=$ac_func_search_save_LIBS
3267 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3268 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3269 if test "$ac_cv_search_strerror" != no; then
3270 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3274 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3275 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3277 if test "$LN_S" = "ln -s"; then
3278 echo "$as_me:$LINENO: result: yes" >&5
3279 echo "${ECHO_T}yes" >&6
3281 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3282 echo "${ECHO_T}no, using $LN_S" >&6
3285 for ac_prog in 'bison -y' byacc
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_YACC+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 if test -n "$YACC"; then
3295 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_YACC="$ac_prog"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 YACC=$ac_cv_prog_YACC
3314 if test -n "$YACC"; then
3315 echo "$as_me:$LINENO: result: $YACC" >&5
3316 echo "${ECHO_T}$YACC" >&6
3318 echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3322 test -n "$YACC" && break
3324 test -n "$YACC" || YACC="yacc"
3326 echo "$as_me:$LINENO: checking for function prototypes" >&5
3327 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3328 if test "$ac_cv_prog_cc_stdc" != no; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330 echo "${ECHO_T}yes" >&6
3332 cat >>confdefs.h <<\_ACEOF
3333 #define PROTOTYPES 1
3337 cat >>confdefs.h <<\_ACEOF
3338 #define __PROTOTYPES 1
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3357 if test -z "$CPP"; then
3358 if test "${ac_cv_prog_CPP+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # Double quotes because CPP needs to be expanded
3362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365 for ac_c_preproc_warn_flag in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370 # <limits.h> exists even on freestanding compilers.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 # include <limits.h>
3382 # include <assert.h>
3386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null; then
3394 if test -s conftest.err; then
3395 ac_cpp_err=$ac_c_preproc_warn_flag
3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403 if test -z "$ac_cpp_err"; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3412 rm -f conftest.err conftest.$ac_ext
3414 # OK, works on sane cases. Now check whether non-existent headers
3415 # can be detected and how.
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <ac_nonexistent.h>
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 # Passes both tests.
3452 rm -f conftest.err conftest.$ac_ext
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3469 echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error" is here to catch this case.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 # include <limits.h>
3489 # include <assert.h>
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Broken: fails on valid input.
3519 rm -f conftest.err conftest.$ac_ext
3521 # OK, works on sane cases. Now check whether non-existent headers
3522 # can be detected and how.
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <ac_nonexistent.h>
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 if test -z "$ac_cpp_err"; then
3549 # Broken: success on invalid input.
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 # Passes both tests.
3559 rm -f conftest.err conftest.$ac_ext
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then
3567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 echo "$as_me:$LINENO: checking for egrep" >&5
3582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3583 if test "${ac_cv_prog_egrep+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3587 then ac_cv_prog_egrep='grep -E'
3588 else ac_cv_prog_egrep='egrep'
3591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3593 EGREP=$ac_cv_prog_egrep
3596 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3598 if test "${ac_cv_header_stdc+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag"
3630 || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 ac_cv_header_stdc=yes
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 ac_cv_header_stdc=no
3649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651 if test $ac_cv_header_stdc = yes; then
3652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3653 cat >conftest.$ac_ext <<_ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663 $EGREP "memchr" >/dev/null 2>&1; then
3666 ac_cv_header_stdc=no
3672 if test $ac_cv_header_stdc = yes; then
3673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684 $EGREP "free" >/dev/null 2>&1; then
3687 ac_cv_header_stdc=no
3693 if test $ac_cv_header_stdc = yes; then
3694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3695 if test "$cross_compiling" = yes; then
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3705 #if ((' ' & 0x0FF) == 0x020)
3706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3709 # define ISLOWER(c) \
3710 (('a' <= (c) && (c) <= 'i') \
3711 || ('j' <= (c) && (c) <= 'r') \
3712 || ('s' <= (c) && (c) <= 'z'))
3713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3721 for (i = 0; i < 256; i++)
3722 if (XOR (islower (i), ISLOWER (i))
3723 || toupper (i) != TOUPPER (i))
3728 rm -f conftest$ac_exeext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730 (eval $ac_link) 2>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3741 echo "$as_me: program exited with status $ac_status" >&5
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3746 ac_cv_header_stdc=no
3748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3754 if test $ac_cv_header_stdc = yes; then
3756 cat >>confdefs.h <<\_ACEOF
3757 #define STDC_HEADERS 1
3762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3773 inttypes.h stdint.h unistd.h
3775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776 echo "$as_me:$LINENO: checking for $ac_header" >&5
3777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 $ac_includes_default
3789 #include <$ac_header>
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 eval "$as_ac_Header=yes"
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 eval "$as_ac_Header=no"
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3825 cat >>confdefs.h <<_ACEOF
3826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 if test "$ac_cv_prog_cc_stdc" != no; then
3838 U=_ ANSI2KNR=./ansi2knr
3840 # Ensure some checks needed by ansi2knr itself.
3843 for ac_header in string.h
3845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3847 echo "$as_me:$LINENO: checking for $ac_header" >&5
3848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3855 # Is the header compilable?
3856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 $ac_includes_default
3865 #include <$ac_header>
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_header_compiler=yes
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_header_compiler=no
3896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3898 echo "${ECHO_T}$ac_header_compiler" >&6
3900 # Is the header present?
3901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <$ac_header>
3911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } >/dev/null; then
3919 if test -s conftest.err; then
3920 ac_cpp_err=$ac_c_preproc_warn_flag
3921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3928 if test -z "$ac_cpp_err"; then
3929 ac_header_preproc=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_header_preproc=no
3936 rm -f conftest.err conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3938 echo "${ECHO_T}$ac_header_preproc" >&6
3940 # So? What about this header?
3941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3947 ac_header_preproc=yes
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3964 ## ------------------------------------------ ##
3965 ## Report this to the AC_PACKAGE_NAME lists. ##
3966 ## ------------------------------------------ ##
3969 sed "s/^/$as_me: WARNING: /" >&2
3972 echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 eval "$as_ac_Header=\$ac_header_preproc"
3979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3984 cat >>confdefs.h <<_ACEOF
3985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3993 # Check whether --enable-fast-install or --disable-fast-install was given.
3994 if test "${enable_fast_install+set}" = set; then
3995 enableval="$enable_fast_install"
3996 p=${PACKAGE-default}
3998 yes) enable_fast_install=yes ;;
3999 no) enable_fast_install=no ;;
4001 enable_fast_install=no
4002 # Look at the argument we got. We use all the common list separators.
4003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4004 for pkg in $enableval; do
4006 if test "X$pkg" = "X$p"; then
4007 enable_fast_install=yes
4014 enable_fast_install=yes
4017 # Make sure we can run config.sub.
4018 $ac_config_sub sun4 >/dev/null 2>&1 ||
4019 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4021 { (exit 1); exit 1; }; }
4023 echo "$as_me:$LINENO: checking build system type" >&5
4024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4025 if test "${ac_cv_build+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_build_alias=$build_alias
4029 test -z "$ac_cv_build_alias" &&
4030 ac_cv_build_alias=`$ac_config_guess`
4031 test -z "$ac_cv_build_alias" &&
4032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4034 { (exit 1); exit 1; }; }
4035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4036 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4038 { (exit 1); exit 1; }; }
4041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4042 echo "${ECHO_T}$ac_cv_build" >&6
4044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4049 echo "$as_me:$LINENO: checking host system type" >&5
4050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4051 if test "${ac_cv_host+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 ac_cv_host_alias=$host_alias
4055 test -z "$ac_cv_host_alias" &&
4056 ac_cv_host_alias=$ac_cv_build_alias
4057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4058 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4060 { (exit 1); exit 1; }; }
4063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4064 echo "${ECHO_T}$ac_cv_host" >&6
4066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4071 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4072 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4073 if test "${lt_cv_path_SED+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 # Loop through the user's path and test for sed and gsed.
4077 # Then use that list of sed's as ones to test for truncation.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for lt_ac_prog in sed gsed; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4086 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4093 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4094 # along with /bin/sed that truncates output.
4095 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4096 test ! -f $lt_ac_sed && continue
4097 cat /dev/null > conftest.in
4099 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4100 # Check for GNU sed and select it if it is found.
4101 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4102 lt_cv_path_SED=$lt_ac_sed
4106 cat conftest.in conftest.in >conftest.tmp
4107 mv conftest.tmp conftest.in
4108 cp conftest.in conftest.nl
4110 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4111 cmp -s conftest.out conftest.nl || break
4112 # 10000 chars as input seems more than enough
4113 test $lt_ac_count -gt 10 && break
4114 lt_ac_count=`expr $lt_ac_count + 1`
4115 if test $lt_ac_count -gt $lt_ac_max; then
4116 lt_ac_max=$lt_ac_count
4117 lt_cv_path_SED=$lt_ac_sed
4125 echo "$as_me:$LINENO: result: $SED" >&5
4126 echo "${ECHO_T}$SED" >&6
4129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4130 if test "${with_gnu_ld+set}" = set; then
4131 withval="$with_gnu_ld"
4132 test "$withval" = no || with_gnu_ld=yes
4137 if test "$GCC" = yes; then
4138 # Check if gcc -print-prog-name=ld gives a path.
4139 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4140 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4143 # gcc leaves a trailing carriage return which upsets mingw
4144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4149 # Accept absolute paths.
4151 re_direlt='/[^/][^/]*/\.\./'
4152 # Canonicalize the pathname of ld
4153 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4155 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4157 test -z "$LD" && LD="$ac_prog"
4160 # If it fails, then pretend we aren't using GCC.
4164 # If it is relative, then search for the first ld in PATH.
4168 elif test "$with_gnu_ld" = yes; then
4169 echo "$as_me:$LINENO: checking for GNU ld" >&5
4170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4172 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4175 if test "${lt_cv_path_LD+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -z "$LD"; then
4179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180 for ac_dir in $PATH; do
4182 test -z "$ac_dir" && ac_dir=.
4183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4184 lt_cv_path_LD="$ac_dir/$ac_prog"
4185 # Check to see if the program is GNU ld. I'd rather use --version,
4186 # but apparently some variants of GNU ld only accept -v.
4187 # Break only if it was the GNU/non-GNU ld that we prefer.
4188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4189 *GNU* | *'with BFD'*)
4190 test "$with_gnu_ld" != no && break
4193 test "$with_gnu_ld" != yes && break
4200 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4205 if test -n "$LD"; then
4206 echo "$as_me:$LINENO: result: $LD" >&5
4207 echo "${ECHO_T}$LD" >&6
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4212 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4213 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4214 { (exit 1); exit 1; }; }
4215 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4216 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4217 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4221 case `$LD -v 2>&1 </dev/null` in
4222 *GNU* | *'with BFD'*)
4223 lt_cv_prog_gnu_ld=yes
4226 lt_cv_prog_gnu_ld=no
4230 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4231 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4232 with_gnu_ld=$lt_cv_prog_gnu_ld
4235 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4236 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4237 if test "${lt_cv_ld_reload_flag+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 lt_cv_ld_reload_flag='-r'
4242 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4243 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4244 reload_flag=$lt_cv_ld_reload_flag
4245 case $reload_flag in
4247 *) reload_flag=" $reload_flag" ;;
4249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4252 if test "$GCC" = yes; then
4253 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4260 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4261 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4262 if test "${lt_cv_path_NM+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$NM"; then
4266 # Let the user override the test.
4269 lt_nm_to_check="${ac_tool_prefix}nm"
4270 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4271 lt_nm_to_check="$lt_nm_to_check nm"
4273 for lt_tmp_nm in $lt_nm_to_check; do
4274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4275 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4277 test -z "$ac_dir" && ac_dir=.
4278 tmp_nm="$ac_dir/$lt_tmp_nm"
4279 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4280 # Check to see if the nm accepts a BSD-compat flag.
4281 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4282 # nm: unknown option "B" ignored
4283 # Tru64's nm complains that /dev/null is an invalid object file
4284 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4285 */dev/null* | *'Invalid file or object type'*)
4286 lt_cv_path_NM="$tmp_nm -B"
4290 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4292 lt_cv_path_NM="$tmp_nm -p"
4296 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4297 continue # so that we can try to find one that supports BSD flags
4306 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4309 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4310 echo "${ECHO_T}$lt_cv_path_NM" >&6
4313 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4314 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4315 if test "${lt_cv_deplibs_check_method+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 lt_cv_file_magic_cmd='$MAGIC_CMD'
4319 lt_cv_file_magic_test_file=
4320 lt_cv_deplibs_check_method='unknown'
4321 # Need to set the preceding variable on all platforms that support
4322 # interlibrary dependencies.
4323 # 'none' -- dependencies not supported.
4324 # `unknown' -- same as none, but documents that we really don't know.
4325 # 'pass_all' -- all dependencies passed with no checks.
4326 # 'test_compile' -- check by making test program.
4327 # 'file_magic [[regex]]' -- check by looking for files in library path
4328 # which responds to the $file_magic_cmd with a given extended regex.
4329 # If you have `file' or equivalent on your system and you're not sure
4330 # whether `pass_all' will *always* work, you probably want this one.
4334 lt_cv_deplibs_check_method=pass_all
4338 lt_cv_deplibs_check_method=pass_all
4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4343 lt_cv_file_magic_cmd='/usr/bin/file -L'
4344 lt_cv_file_magic_test_file=/shlib/libc.so
4348 # func_win32_libid is a shell function defined in ltmain.sh
4349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4350 lt_cv_file_magic_cmd='func_win32_libid'
4354 # Base MSYS/MinGW do not provide the 'file' command needed by
4355 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4357 lt_cv_file_magic_cmd='$OBJDUMP -f'
4360 darwin* | rhapsody*)
4361 lt_cv_deplibs_check_method=pass_all
4364 freebsd* | kfreebsd*-gnu | dragonfly*)
4365 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4368 # Not sure whether the presence of OpenBSD here was a mistake.
4369 # Let's accept both of them until this is cleared up.
4370 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4371 lt_cv_file_magic_cmd=/usr/bin/file
4372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4376 lt_cv_deplibs_check_method=pass_all
4381 lt_cv_deplibs_check_method=pass_all
4384 hpux10.20* | hpux11*)
4385 lt_cv_file_magic_cmd=/usr/bin/file
4388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4392 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]'
4393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4397 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4407 irix5* | irix6* | nonstopux*)
4409 *-32|*"-32 ") libmagic=32-bit;;
4410 *-n32|*"-n32 ") libmagic=N32;;
4411 *-64|*"-64 ") libmagic=64-bit;;
4412 *) libmagic=never-match;;
4414 lt_cv_deplibs_check_method=pass_all
4417 # This must be Linux ELF.
4419 lt_cv_deplibs_check_method=pass_all
4423 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4432 lt_cv_file_magic_cmd=/usr/bin/file
4433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4437 lt_cv_deplibs_check_method=unknown
4441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4448 osf3* | osf4* | osf5*)
4449 lt_cv_deplibs_check_method=pass_all
4453 lt_cv_deplibs_check_method=pass_all
4457 case $host_vendor in
4459 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]'
4460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4463 lt_cv_deplibs_check_method=pass_all
4466 lt_cv_file_magic_cmd='/bin/file'
4467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4470 lt_cv_file_magic_cmd='/bin/file'
4471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4472 lt_cv_file_magic_test_file=/lib/libc.so
4475 lt_cv_deplibs_check_method=pass_all
4478 lt_cv_deplibs_check_method=pass_all
4483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4484 lt_cv_deplibs_check_method=pass_all
4489 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4491 file_magic_cmd=$lt_cv_file_magic_cmd
4492 deplibs_check_method=$lt_cv_deplibs_check_method
4493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4498 # If no C compiler was specified, use CC.
4501 # If no C compiler flags were specified, use CFLAGS.
4502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4504 # Allow CC to be a program name with arguments.
4507 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4508 if test "${enable_libtool_lock+set}" = set; then
4509 enableval="$enable_libtool_lock"
4512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4514 # Some flags need to be propagated to the compiler or linker for good
4518 # Find out which ABI we are using.
4519 echo 'int i;' > conftest.$ac_ext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; then
4525 case `/usr/bin/file conftest.$ac_objext` in
4537 # Find out which ABI we are using.
4538 echo '#line 4538 "configure"' > conftest.$ac_ext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; then
4544 if test "$lt_cv_prog_gnu_ld" = yes; then
4545 case `/usr/bin/file conftest.$ac_objext` in
4547 LD="${LD-ld} -melf32bsmip"
4550 LD="${LD-ld} -melf32bmipn32"
4553 LD="${LD-ld} -melf64bmip"
4557 case `/usr/bin/file conftest.$ac_objext` in
4573 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4574 # Find out which ABI we are using.
4575 echo 'int i;' > conftest.$ac_ext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; then
4581 case `/usr/bin/file conftest.o` in
4585 LD="${LD-ld} -m elf_i386"
4587 ppc64-*linux*|powerpc64-*linux*)
4588 LD="${LD-ld} -m elf32ppclinux"
4591 LD="${LD-ld} -m elf_s390"
4594 LD="${LD-ld} -m elf32_sparc"
4601 LD="${LD-ld} -m elf_x86_64"
4603 ppc*-*linux*|powerpc*-*linux*)
4604 LD="${LD-ld} -m elf64ppc"
4607 LD="${LD-ld} -m elf64_s390"
4610 LD="${LD-ld} -m elf64_sparc"
4620 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -belf"
4623 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4624 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4625 if test "${lt_cv_cc_needs_belf+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 lt_cv_cc_needs_belf=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 lt_cv_cc_needs_belf=no
4678 rm -f conftest.err conftest.$ac_objext \
4679 conftest$ac_exeext conftest.$ac_ext
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4688 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4689 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4691 CFLAGS="$SAVE_CFLAGS"
4695 # Find out which ABI we are using.
4696 echo 'int i;' > conftest.$ac_ext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; then
4702 case `/usr/bin/file conftest.o` in
4704 case $lt_cv_prog_gnu_ld in
4705 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4706 *) LD="${LD-ld} -64" ;;
4717 need_locks="$enable_libtool_lock"
4721 for ac_header in dlfcn.h
4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725 echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4733 # Is the header compilable?
4734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4743 #include <$ac_header>
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4749 grep -v '^ *+' conftest.er1 >conftest.err
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -z "$ac_c_werror_flag"
4755 || test ! -s conftest.err'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_header_compiler=yes
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_header_compiler=no
4774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 #include <$ac_header>
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } >/dev/null; then
4797 if test -s conftest.err; then
4798 ac_cpp_err=$ac_c_preproc_warn_flag
4799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4806 if test -z "$ac_cpp_err"; then
4807 ac_header_preproc=yes
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_header_preproc=no
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4818 # So? What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825 ac_header_preproc=yes
4828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4842 ## ------------------------------------------ ##
4843 ## Report this to the AC_PACKAGE_NAME lists. ##
4844 ## ------------------------------------------ ##
4847 sed "s/^/$as_me: WARNING: /" >&2
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 eval "$as_ac_Header=\$ac_header_preproc"
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 ac_cpp='$CXXCPP $CPPFLAGS'
4872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4875 if test -n "$ac_tool_prefix"; then
4876 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_CXX+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$CXX"; then
4886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 if test -n "$CXX"; then
4906 echo "$as_me:$LINENO: result: $CXX" >&5
4907 echo "${ECHO_T}$CXX" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4913 test -n "$CXX" && break
4916 if test -z "$CXX"; then
4918 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4924 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 if test -n "$ac_ct_CXX"; then
4928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_prog_ac_ct_CXX="$ac_prog"
4938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4947 if test -n "$ac_ct_CXX"; then
4948 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4949 echo "${ECHO_T}$ac_ct_CXX" >&6
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4955 test -n "$ac_ct_CXX" && break
4957 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4963 # Provide some information about the compiler.
4964 echo "$as_me:$LINENO:" \
4965 "checking for C++ compiler version" >&5
4966 ac_compiler=`set X $ac_compile; echo $2`
4967 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4968 (eval $ac_compiler --version </dev/null >&5) 2>&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4973 (eval $ac_compiler -v </dev/null >&5) 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }
4977 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4978 (eval $ac_compiler -V </dev/null >&5) 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }
4983 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4984 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4985 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_cxx_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5039 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5040 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5041 GXX=`test $ac_compiler_gnu = yes && echo yes`
5042 ac_test_CXXFLAGS=${CXXFLAGS+set}
5043 ac_save_CXXFLAGS=$CXXFLAGS
5045 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5046 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5047 if test "${ac_cv_prog_cxx_g+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_cxx_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_prog_cxx_g=yes
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5097 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5098 if test "$ac_test_CXXFLAGS" = set; then
5099 CXXFLAGS=$ac_save_CXXFLAGS
5100 elif test $ac_cv_prog_cxx_g = yes; then
5101 if test "$GXX" = yes; then
5107 if test "$GXX" = yes; then
5113 for ac_declaration in \
5115 'extern "C" void std::exit (int) throw (); using std::exit;' \
5116 'extern "C" void std::exit (int); using std::exit;' \
5117 'extern "C" void exit (int) throw ();' \
5118 'extern "C" void exit (int);' \
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_cxx_werror_flag"
5147 || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_cxx_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 if test -n "$ac_declaration"; then
5214 echo '#ifdef __cplusplus' >>confdefs.h
5215 echo $ac_declaration >>confdefs.h
5216 echo '#endif' >>confdefs.h
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5225 depcc="$CXX" am_compiler_list=
5227 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5228 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233 # We make a subdir and do the tests there. Otherwise we can end up
5234 # making bogus files that we don't know about and never remove. For
5235 # instance it was reported that on HP-UX the gcc test will end up
5236 # making a dummy file named `D' -- because `-MD' means `put the output
5239 # Copy depcomp to subdir because otherwise we won't find it if we're
5240 # using a relative directory.
5241 cp "$am_depcomp" conftest.dir
5243 # We will build objects and dependencies in a subdirectory because
5244 # it helps to detect inapplicable dependency modes. For instance
5245 # both Tru64's cc and ICC support -MD to output dependencies as a
5246 # side effect of compilation, but ICC will put the dependencies in
5247 # the current directory while Tru64 will put them in the object
5251 am_cv_CXX_dependencies_compiler_type=none
5252 if test "$am_compiler_list" = ""; then
5253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5255 for depmode in $am_compiler_list; do
5256 # Setup a source with many dependencies, because some compilers
5257 # like to wrap large dependency lists on column 80 (with \), and
5258 # we should not choose a depcomp mode which is confused by this.
5260 # We need to recreate these files for each test, as the compiler may
5261 # overwrite some of them when testing with obscure command lines.
5262 # This happens at least with the AIX C compiler.
5264 for i in 1 2 3 4 5 6; do
5265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5266 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5267 # Solaris 8's {/usr,}/bin/sh.
5268 touch sub/conftst$i.h
5270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5274 # after this tag, mechanisms are not by side-effect, so they'll
5275 # only be used when explicitly requested
5276 if test "x$enable_dependency_tracking" = xyes; then
5284 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5285 # mode. It turns out that the SunPro C++ compiler does not properly
5286 # handle `-M -o', and we need to detect this.
5287 if depmode=$depmode \
5288 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5290 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5291 >/dev/null 2>conftest.err &&
5292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5293 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5295 # icc doesn't choke on unknown options, it will just issue warnings
5296 # or remarks (even with -Werror). So we grep stderr for any message
5297 # that says an option was ignored or not supported.
5298 # When given -MP, icc 7.0 and 7.1 complain thusly:
5299 # icc: Command line warning: ignoring option '-M'; no argument required
5300 # The diagnosis changed in icc 8.0:
5301 # icc: Command line remark: option '-MP' not supported
5302 if (grep 'ignoring option' conftest.err ||
5303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5304 am_cv_CXX_dependencies_compiler_type=$depmode
5313 am_cv_CXX_dependencies_compiler_type=none
5317 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5318 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5319 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5324 test "x$enable_dependency_tracking" != xno \
5325 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5326 am__fastdepCXX_TRUE=
5327 am__fastdepCXX_FALSE='#'
5329 am__fastdepCXX_TRUE='#'
5330 am__fastdepCXX_FALSE=
5336 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5337 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5338 (test "X$CXX" != "Xg++"))) ; then
5340 ac_cpp='$CXXCPP $CPPFLAGS'
5341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5345 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5346 if test -z "$CXXCPP"; then
5347 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 # Double quotes because CXXCPP needs to be expanded
5351 for CXXCPP in "$CXX -E" "/lib/cpp"
5354 for ac_cxx_preproc_warn_flag in '' yes
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5369 # include <limits.h>
5371 # include <assert.h>
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_cxx_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5392 if test -z "$ac_cpp_err"; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.$ac_ext
5403 # OK, works on sane cases. Now check whether non-existent headers
5404 # can be detected and how.
5405 cat >conftest.$ac_ext <<_ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_cxx_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 # Broken: success on invalid input.
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 # Passes both tests.
5441 rm -f conftest.err conftest.$ac_ext
5444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445 rm -f conftest.err conftest.$ac_ext
5446 if $ac_preproc_ok; then
5451 ac_cv_prog_CXXCPP=$CXXCPP
5454 CXXCPP=$ac_cv_prog_CXXCPP
5456 ac_cv_prog_CXXCPP=$CXXCPP
5458 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5459 echo "${ECHO_T}$CXXCPP" >&6
5461 for ac_cxx_preproc_warn_flag in '' yes
5463 # Use a header file that comes with gcc, so configuring glibc
5464 # with a fresh cross-compiler works.
5465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5466 # <limits.h> exists even on freestanding compilers.
5467 # On the NeXT, cc -E runs the code through the compiler's parser,
5468 # not just through cpp. "Syntax error" is here to catch this case.
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5476 # include <limits.h>
5478 # include <assert.h>
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1 >conftest.err
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_cxx_preproc_warn_flag
5492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5499 if test -z "$ac_cpp_err"; then
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Broken: fails on valid input.
5508 rm -f conftest.err conftest.$ac_ext
5510 # OK, works on sane cases. Now check whether non-existent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <ac_nonexistent.h>
5520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null; then
5528 if test -s conftest.err; then
5529 ac_cpp_err=$ac_cxx_preproc_warn_flag
5530 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5537 if test -z "$ac_cpp_err"; then
5538 # Broken: success on invalid input.
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 # Passes both tests.
5548 rm -f conftest.err conftest.$ac_ext
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then
5556 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; }
5564 ac_cpp='$CXXCPP $CPPFLAGS'
5565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5574 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5576 if test -n "$ac_tool_prefix"; then
5577 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_prog_F77+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 if test -n "$F77"; then
5587 ac_cv_prog_F77="$F77" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 if test -n "$F77"; then
5607 echo "$as_me:$LINENO: result: $F77" >&5
5608 echo "${ECHO_T}$F77" >&6
5610 echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5614 test -n "$F77" && break
5617 if test -z "$F77"; then
5619 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5621 # Extract the first word of "$ac_prog", so it can be a program name with args.
5622 set dummy $ac_prog; ac_word=$2
5623 echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5625 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 if test -n "$ac_ct_F77"; then
5629 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_ac_ct_F77="$ac_prog"
5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5648 if test -n "$ac_ct_F77"; then
5649 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5650 echo "${ECHO_T}$ac_ct_F77" >&6
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5656 test -n "$ac_ct_F77" && break
5663 # Provide some information about the compiler.
5664 echo "$as_me:5664:" \
5665 "checking for Fortran 77 compiler version" >&5
5666 ac_compiler=`set X $ac_compile; echo $2`
5667 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5668 (eval $ac_compiler --version </dev/null >&5) 2>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }
5672 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5673 (eval $ac_compiler -v </dev/null >&5) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }
5677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5678 (eval $ac_compiler -V </dev/null >&5) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }
5684 # If we don't use `.F' as extension, the preprocessor is not run on the
5685 # input file. (Note that this only needs to work for GNU compilers.)
5688 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5689 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5690 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_f77_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5734 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5735 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5737 ac_test_FFLAGS=${FFLAGS+set}
5738 ac_save_FFLAGS=$FFLAGS
5740 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5741 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5742 if test "${ac_cv_prog_f77_g+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_f77_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_prog_f77_g=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5784 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5785 if test "$ac_test_FFLAGS" = set; then
5786 FFLAGS=$ac_save_FFLAGS
5787 elif test $ac_cv_prog_f77_g = yes; then
5788 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5794 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5801 G77=`test $ac_compiler_gnu = yes && echo yes`
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5812 # find the maximum length of command line arguments
5813 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5814 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 # On DJGPP, this test can blow up pretty badly due to problems in libc
5824 # (any single argument exceeding 2000 bytes causes a buffer overrun
5825 # during glob expansion). Even if it were fixed, the result of this
5826 # check would be larger than it should be.
5827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5831 # Under GNU Hurd, this test is not required because there is
5832 # no limit to the length of command line arguments.
5833 # Libtool will interpret -1 as no limit whatsoever
5834 lt_cv_sys_max_cmd_len=-1;
5838 # On Win9x/ME, this test blows up -- it succeeds, but takes
5839 # about 5 minutes as the teststring grows exponentially.
5840 # Worse, since 9x/ME are not pre-emptively multitasking,
5841 # you end up with a "frozen" computer, even though with patience
5842 # the test eventually succeeds (with a max line length of 256k).
5843 # Instead, let's just punt: use the minimum linelength reported by
5844 # all of the supported platforms: 8192 (on NT/2K/XP).
5845 lt_cv_sys_max_cmd_len=8192;
5849 # On AmigaOS with pdksh, this test takes hours, literally.
5850 # So we just punt and use a minimum line length of 8192.
5851 lt_cv_sys_max_cmd_len=8192;
5854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5855 # This has been around since 386BSD, at least. Likely further.
5856 if test -x /sbin/sysctl; then
5857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5858 elif test -x /usr/sbin/sysctl; then
5859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5863 # And add a safety zone
5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5870 lt_cv_sys_max_cmd_len=196608
5874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5876 # nice to cause kernel panics so lets avoid the loop below.
5877 # First set a reasonable default.
5878 lt_cv_sys_max_cmd_len=16384
5880 if test -x /sbin/sysconfig; then
5881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5887 lt_cv_sys_max_cmd_len=102400
5889 sysv5* | sco5v6* | sysv4.2uw2*)
5890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5891 if test -n "$kargmax"; then
5892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5894 lt_cv_sys_max_cmd_len=32768
5898 # If test is not a shell built-in, we'll probably end up computing a
5899 # maximum length that is only half of the actual maximum length, but
5901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5902 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5903 = "XX$teststring") >/dev/null 2>&1 &&
5904 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5905 lt_cv_sys_max_cmd_len=$new_result &&
5906 test $i != 17 # 1/2 MB should be enough
5909 teststring=$teststring$teststring
5912 # Add a significant safety factor because C++ compilers can tack on massive
5913 # amounts of additional arguments before passing them to the linker.
5914 # It appears as though 1/2 is a usable value.
5915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5921 if test -n $lt_cv_sys_max_cmd_len ; then
5922 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5923 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5925 echo "$as_me:$LINENO: result: none" >&5
5926 echo "${ECHO_T}none" >&6
5932 # Check for command to grab the raw symbol name followed by C symbol from nm.
5933 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5934 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5935 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 # These are sane defaults that work on at least a few old systems.
5940 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5942 # Character class describing NM global symbol codes.
5943 symcode='[BCDEGRST]'
5945 # Regexp to match symbols that can be accessed directly from C.
5946 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5948 # Transform an extracted symbol line into a proper C declaration
5949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5951 # Transform an extracted symbol line into symbol name and symbol address
5952 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'"
5954 # Define system-specific variables.
5959 cygwin* | mingw* | pw32*)
5960 symcode='[ABCDGISTW]'
5962 hpux*) # Its linker distinguishes data from code symbols
5963 if test "$host_cpu" = ia64; then
5964 symcode='[ABCDEGRST]'
5966 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5967 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'"
5970 if test "$host_cpu" = ia64; then
5971 symcode='[ABCDGIRSTW]'
5972 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973 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'"
5977 symcode='[BCDEGRST]'
5980 symcode='[BCDEGQRST]'
5991 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5999 # Handle CRLF in mingw tool chain
6003 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6007 # If we're using GNU nm, then use its standard symbol codes.
6008 case `$NM -V 2>&1` in
6009 *GNU* | *'with BFD'*)
6010 symcode='[ABCDGIRSTW]' ;;
6013 # Try without a prefix undercore, then with it.
6014 for ac_symprfx in "" "_"; do
6016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6017 symxfrm="\\1 $ac_symprfx\\2 \\2"
6019 # Write the raw and C identifiers.
6020 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6022 # Check to see that the pipe works correctly.
6026 cat > conftest.$ac_ext <<EOF
6031 void nm_test_func(){}
6035 int main(){nm_test_var='a';nm_test_func();return(0);}
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; then
6043 # Now try to grab the symbols.
6045 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6046 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && test -s "$nlist"; then
6050 # Try sorting and uniquifying the output.
6051 if sort "$nlist" | uniq > "$nlist"T; then
6052 mv -f "$nlist"T "$nlist"
6057 # Make sure that we snagged all the symbols we need.
6058 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6059 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6060 cat <<EOF > conftest.$ac_ext
6066 # Now generate the symbol file.
6067 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6069 cat <<EOF >> conftest.$ac_ext
6070 #if defined (__STDC__) && __STDC__
6071 # define lt_ptr_t void *
6073 # define lt_ptr_t char *
6077 /* The mapping between symbol names and symbols. */
6082 lt_preloaded_symbols[] =
6085 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6086 cat <<\EOF >> conftest.$ac_ext
6094 # Now try linking the two files.
6095 mv conftest.$ac_objext conftstm.$ac_objext
6096 lt_save_LIBS="$LIBS"
6097 lt_save_CFLAGS="$CFLAGS"
6098 LIBS="conftstm.$ac_objext"
6099 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6107 LIBS="$lt_save_LIBS"
6108 CFLAGS="$lt_save_CFLAGS"
6110 echo "cannot find nm_test_func in $nlist" >&5
6113 echo "cannot find nm_test_var in $nlist" >&5
6116 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6119 echo "$progname: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 rm -f conftest* conftst*
6124 # Do not use the global_symbol_pipe unless it works.
6125 if test "$pipe_works" = yes; then
6128 lt_cv_sys_global_symbol_pipe=
6134 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6135 lt_cv_sys_global_symbol_to_cdecl=
6137 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6138 echo "$as_me:$LINENO: result: failed" >&5
6139 echo "${ECHO_T}failed" >&6
6141 echo "$as_me:$LINENO: result: ok" >&5
6142 echo "${ECHO_T}ok" >&6
6145 echo "$as_me:$LINENO: checking for objdir" >&5
6146 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6147 if test "${lt_cv_objdir+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 rm -f .libs 2>/dev/null
6151 mkdir .libs 2>/dev/null
6152 if test -d .libs; then
6155 # MS-DOS does not allow filenames that begin with a dot.
6158 rmdir .libs 2>/dev/null
6160 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6161 echo "${ECHO_T}$lt_cv_objdir" >&6
6162 objdir=$lt_cv_objdir
6170 # AIX sometimes has problems with the GCC collect2 program. For some
6171 # reason, if we set the COLLECT_NAMES environment variable, the problems
6172 # vanish in a puff of smoke.
6173 if test "X${COLLECT_NAMES+set}" != Xset; then
6175 export COLLECT_NAMES
6180 # Sed substitution that helps us do robust quoting. It backslashifies
6181 # metacharacters that are still active within double-quoted strings.
6182 Xsed='sed -e 1s/^X//'
6183 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6185 # Same as above, but do not quote variable references.
6186 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6188 # Sed substitution to delay expansion of an escaped shell variable in a
6189 # double_quote_subst'ed string.
6190 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6192 # Sed substitution to avoid accidental globbing in evaled expressions
6193 no_glob_subst='s/\*/\\\*/g'
6199 default_ofile=libtool
6200 can_build_shared=yes
6202 # All known linkers require a `.a' archive for static linking (except MSVC,
6203 # which needs '.lib').
6205 ltmain="$ac_aux_dir/ltmain.sh"
6206 ofile="$default_ofile"
6207 with_gnu_ld="$lt_cv_prog_gnu_ld"
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ar; ac_word=$2
6212 echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214 if test "${ac_cv_prog_AR+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$AR"; then
6218 ac_cv_prog_AR="$AR" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_AR="${ac_tool_prefix}ar"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 if test -n "$AR"; then
6238 echo "$as_me:$LINENO: result: $AR" >&5
6239 echo "${ECHO_T}$AR" >&6
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6246 if test -z "$ac_cv_prog_AR"; then
6248 # Extract the first word of "ar", so it can be a program name with args.
6249 set dummy ar; ac_word=$2
6250 echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$ac_ct_AR"; then
6256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_ac_ct_AR="ar"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6276 if test -n "$ac_ct_AR"; then
6277 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6278 echo "${ECHO_T}$ac_ct_AR" >&6
6280 echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 RANLIB=$ac_cv_prog_RANLIB
6317 if test -n "$RANLIB"; then
6318 echo "$as_me:$LINENO: result: $RANLIB" >&5
6319 echo "${ECHO_T}$RANLIB" >&6
6321 echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327 ac_ct_RANLIB=$RANLIB
6328 # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib; ac_word=$2
6330 echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 if test -n "$ac_ct_RANLIB"; then
6336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_ac_ct_RANLIB="ranlib"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6360 echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6364 RANLIB=$ac_ct_RANLIB
6366 RANLIB="$ac_cv_prog_RANLIB"
6369 if test -n "$ac_tool_prefix"; then
6370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}strip; ac_word=$2
6372 echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374 if test "${ac_cv_prog_STRIP+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 if test -n "$STRIP"; then
6378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 STRIP=$ac_cv_prog_STRIP
6397 if test -n "$STRIP"; then
6398 echo "$as_me:$LINENO: result: $STRIP" >&5
6399 echo "${ECHO_T}$STRIP" >&6
6401 echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6
6406 if test -z "$ac_cv_prog_STRIP"; then
6408 # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6438 echo "${ECHO_T}$ac_ct_STRIP" >&6
6440 echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6
6446 STRIP="$ac_cv_prog_STRIP"
6451 old_CFLAGS="$CFLAGS"
6453 # Set sane defaults for various variables
6454 test -z "$AR" && AR=ar
6455 test -z "$AR_FLAGS" && AR_FLAGS=cru
6456 test -z "$AS" && AS=as
6457 test -z "$CC" && CC=cc
6458 test -z "$LTCC" && LTCC=$CC
6459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6460 test -z "$DLLTOOL" && DLLTOOL=dlltool
6461 test -z "$LD" && LD=ld
6462 test -z "$LN_S" && LN_S="ln -s"
6463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6464 test -z "$NM" && NM=nm
6465 test -z "$SED" && SED=sed
6466 test -z "$OBJDUMP" && OBJDUMP=objdump
6467 test -z "$RANLIB" && RANLIB=:
6468 test -z "$STRIP" && STRIP=:
6469 test -z "$ac_objext" && ac_objext=o
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6476 if test -n "$RANLIB"; then
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6488 for cc_temp in $compiler""; do
6490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6499 # Only perform the check for file, if the check method requires it
6500 case $deplibs_check_method in
6502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6503 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6504 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6513 lt_save_MAGIC_CMD="$MAGIC_CMD"
6514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6516 for ac_dir in $ac_dummy; do
6518 test -z "$ac_dir" && ac_dir=.
6519 if test -f $ac_dir/${ac_tool_prefix}file; then
6520 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6521 if test -n "$file_magic_test_file"; then
6522 case $deplibs_check_method in
6524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527 $EGREP "$file_magic_regex" > /dev/null; then
6532 *** Warning: the command libtool uses to detect shared libraries,
6533 *** $file_magic_cmd, produces output that libtool cannot recognize.
6534 *** The result is that libtool may fail to recognize shared libraries
6535 *** as such. This will affect the creation of libtool libraries that
6536 *** depend on shared libraries, but programs linked with such libtool
6537 *** libraries will work regardless of this problem. Nevertheless, you
6538 *** may want to report the problem to your system manager and/or to
6539 *** bug-libtool@gnu.org
6549 MAGIC_CMD="$lt_save_MAGIC_CMD"
6554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6555 if test -n "$MAGIC_CMD"; then
6556 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6557 echo "${ECHO_T}$MAGIC_CMD" >&6
6559 echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6563 if test -z "$lt_cv_path_MAGIC_CMD"; then
6564 if test -n "$ac_tool_prefix"; then
6565 echo "$as_me:$LINENO: checking for file" >&5
6566 echo $ECHO_N "checking for file... $ECHO_C" >&6
6567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6575 lt_save_MAGIC_CMD="$MAGIC_CMD"
6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6578 for ac_dir in $ac_dummy; do
6580 test -z "$ac_dir" && ac_dir=.
6581 if test -f $ac_dir/file; then
6582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6583 if test -n "$file_magic_test_file"; then
6584 case $deplibs_check_method in
6586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6589 $EGREP "$file_magic_regex" > /dev/null; then
6594 *** Warning: the command libtool uses to detect shared libraries,
6595 *** $file_magic_cmd, produces output that libtool cannot recognize.
6596 *** The result is that libtool may fail to recognize shared libraries
6597 *** as such. This will affect the creation of libtool libraries that
6598 *** depend on shared libraries, but programs linked with such libtool
6599 *** libraries will work regardless of this problem. Nevertheless, you
6600 *** may want to report the problem to your system manager and/or to
6601 *** bug-libtool@gnu.org
6611 MAGIC_CMD="$lt_save_MAGIC_CMD"
6616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6617 if test -n "$MAGIC_CMD"; then
6618 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6619 echo "${ECHO_T}$MAGIC_CMD" >&6
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6637 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6638 if test "${enable_libtool_lock+set}" = set; then
6639 enableval="$enable_libtool_lock"
6642 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6645 # Check whether --with-pic or --without-pic was given.
6646 if test "${with_pic+set}" = set; then
6652 test -z "$pic_mode" && pic_mode=default
6654 # Use C for the default configuration in the libtool script
6658 ac_cpp='$CPP $CPPFLAGS'
6659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664 # Source file extension for C test sources.
6667 # Object file extension for compiled C test sources.
6671 # Code to be used in simple compile tests
6672 lt_simple_compile_test_code="int some_variable = 0;\n"
6674 # Code to be used in simple link tests
6675 lt_simple_link_test_code='int main(){return(0);}\n'
6678 # If no C compiler was specified, use CC.
6681 # If no C compiler flags were specified, use CFLAGS.
6682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6684 # Allow CC to be a program name with arguments.
6688 # save warnings/boilerplate of simple test code
6689 ac_outfile=conftest.$ac_objext
6690 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6692 _lt_compiler_boilerplate=`cat conftest.err`
6695 ac_outfile=conftest.$ac_objext
6696 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6698 _lt_linker_boilerplate=`cat conftest.err`
6703 lt_prog_compiler_no_builtin_flag=
6705 if test "$GCC" = yes; then
6706 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 lt_cv_prog_compiler_rtti_exceptions=no
6715 ac_outfile=conftest.$ac_objext
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717 lt_compiler_flag="-fno-rtti -fno-exceptions"
6718 # Insert the option either (1) after the last *FLAGS variable, or
6719 # (2) before a word containing "conftest.", or (3) at the end.
6720 # Note that $ac_compile itself does not contain backslashes and begins
6721 # with a dollar sign (not a hyphen), so the echo should work correctly.
6722 # The option is referenced via a variable to avoid confusing sed.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>conftest.err)
6730 cat conftest.err >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s "$ac_outfile"; then
6733 # The compiler can only warn and ignore the option if not recognized
6734 # So say no if there are warnings other than the usual output.
6735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6738 lt_cv_prog_compiler_rtti_exceptions=yes
6744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6755 lt_prog_compiler_wl=
6756 lt_prog_compiler_pic=
6757 lt_prog_compiler_static=
6759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6762 if test "$GCC" = yes; then
6763 lt_prog_compiler_wl='-Wl,'
6764 lt_prog_compiler_static='-static'
6768 # All AIX code is PIC.
6769 if test "$host_cpu" = ia64; then
6770 # AIX 5 now supports IA64 processor
6771 lt_prog_compiler_static='-Bstatic'
6776 # FIXME: we need at least 68020 code to build shared libraries, but
6777 # adding the `-m68020' flag to GCC prevents building anything better,
6779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6783 # PIC is the default for these OSes.
6786 mingw* | pw32* | os2*)
6787 # This hack is so that the source file can tell whether it is being
6788 # built for inclusion in a dll (and should export symbols for example).
6789 lt_prog_compiler_pic='-DDLL_EXPORT'
6792 darwin* | rhapsody*)
6793 # PIC is the default on this platform
6794 # Common symbols not allowed in MH_DYLIB files
6795 lt_prog_compiler_pic='-fno-common'
6799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6800 # Instead, we relocate shared libraries at runtime.
6804 # Just because we use GCC doesn't mean we suddenly get shared libraries
6805 # on systems that don't support them.
6806 lt_prog_compiler_can_build_shared=no
6811 if test -d /usr/nec; then
6812 lt_prog_compiler_pic=-Kconform_pic
6817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6824 lt_prog_compiler_pic='-fPIC'
6830 lt_prog_compiler_pic='-fPIC'
6834 # PORTME Check for flag to pass linker flags through the system compiler.
6837 lt_prog_compiler_wl='-Wl,'
6838 if test "$host_cpu" = ia64; then
6839 # AIX 5 now supports IA64 processor
6840 lt_prog_compiler_static='-Bstatic'
6842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6846 # PIC is the default on this platform
6847 # Common symbols not allowed in MH_DYLIB files
6848 case $cc_basename in
6850 lt_prog_compiler_pic='-qnocommon'
6851 lt_prog_compiler_wl='-Wl,'
6856 mingw* | pw32* | os2*)
6857 # This hack is so that the source file can tell whether it is being
6858 # built for inclusion in a dll (and should export symbols for example).
6859 lt_prog_compiler_pic='-DDLL_EXPORT'
6862 hpux9* | hpux10* | hpux11*)
6863 lt_prog_compiler_wl='-Wl,'
6864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6871 lt_prog_compiler_pic='+Z'
6874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6875 lt_prog_compiler_static='${wl}-a ${wl}archive'
6878 irix5* | irix6* | nonstopux*)
6879 lt_prog_compiler_wl='-Wl,'
6880 # PIC (with -KPIC) is the default.
6881 lt_prog_compiler_static='-non_shared'
6885 lt_prog_compiler_pic='-KPIC'
6886 lt_prog_compiler_static='-Bstatic'
6890 case $cc_basename in
6892 lt_prog_compiler_wl='-Wl,'
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-static'
6896 pgcc* | pgf77* | pgf90* | pgf95*)
6897 # Portland Group compilers (*not* the Pentium gcc compiler,
6898 # which looks to be a dead project)
6899 lt_prog_compiler_wl='-Wl,'
6900 lt_prog_compiler_pic='-fpic'
6901 lt_prog_compiler_static='-Bstatic'
6904 lt_prog_compiler_wl='-Wl,'
6905 # All Alpha code is PIC.
6906 lt_prog_compiler_static='-non_shared'
6911 osf3* | osf4* | osf5*)
6912 lt_prog_compiler_wl='-Wl,'
6913 # All OSF/1 code is PIC.
6914 lt_prog_compiler_static='-non_shared'
6918 lt_prog_compiler_pic='-KPIC'
6919 lt_prog_compiler_static='-Bstatic'
6920 case $cc_basename in
6922 lt_prog_compiler_wl='-Qoption ld ';;
6924 lt_prog_compiler_wl='-Wl,';;
6929 lt_prog_compiler_wl='-Qoption ld '
6930 lt_prog_compiler_pic='-PIC'
6931 lt_prog_compiler_static='-Bstatic'
6934 sysv4 | sysv4.2uw2* | sysv4.3*)
6935 lt_prog_compiler_wl='-Wl,'
6936 lt_prog_compiler_pic='-KPIC'
6937 lt_prog_compiler_static='-Bstatic'
6941 if test -d /usr/nec ;then
6942 lt_prog_compiler_pic='-Kconform_pic'
6943 lt_prog_compiler_static='-Bstatic'
6947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_can_build_shared=no
6959 lt_prog_compiler_pic='-pic'
6960 lt_prog_compiler_static='-Bstatic'
6964 lt_prog_compiler_can_build_shared=no
6969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6970 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6973 # Check to make sure the PIC flag actually works.
6975 if test -n "$lt_prog_compiler_pic"; then
6977 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6979 if test "${lt_prog_compiler_pic_works+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 lt_prog_compiler_pic_works=no
6983 ac_outfile=conftest.$ac_objext
6984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6986 # Insert the option either (1) after the last *FLAGS variable, or
6987 # (2) before a word containing "conftest.", or (3) at the end.
6988 # Note that $ac_compile itself does not contain backslashes and begins
6989 # with a dollar sign (not a hyphen), so the echo should work correctly.
6990 # The option is referenced via a variable to avoid confusing sed.
6991 lt_compile=`echo "$ac_compile" | $SED \
6992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6994 -e 's:$: $lt_compiler_flag:'`
6995 (eval echo "\"\$as_me:6995: $lt_compile\"" >&5)
6996 (eval "$lt_compile" 2>conftest.err)
6998 cat conftest.err >&5
6999 echo "$as_me:6999: \$? = $ac_status" >&5
7000 if (exit $ac_status) && test -s "$ac_outfile"; then
7001 # The compiler can only warn and ignore the option if not recognized
7002 # So say no if there are warnings other than the usual output.
7003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7006 lt_prog_compiler_pic_works=yes
7012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7013 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7015 if test x"$lt_prog_compiler_pic_works" = xyes; then
7016 case $lt_prog_compiler_pic in
7018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7021 lt_prog_compiler_pic=
7022 lt_prog_compiler_can_build_shared=no
7027 # For platforms which do not support PIC, -DPIC is meaningless:
7029 lt_prog_compiler_pic=
7032 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7037 # Check to make sure the static flag actually works.
7039 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7040 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7042 if test "${lt_prog_compiler_static_works+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 lt_prog_compiler_static_works=no
7046 save_LDFLAGS="$LDFLAGS"
7047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7048 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7050 # The linker can only warn and ignore the option if not recognized
7051 # So say no if there are warnings
7052 if test -s conftest.err; then
7053 # Append any errors to the config.log.
7054 cat conftest.err 1>&5
7055 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7057 if diff conftest.exp conftest.er2 >/dev/null; then
7058 lt_prog_compiler_static_works=yes
7061 lt_prog_compiler_static_works=yes
7065 LDFLAGS="$save_LDFLAGS"
7068 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7069 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7071 if test x"$lt_prog_compiler_static_works" = xyes; then
7074 lt_prog_compiler_static=
7078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 lt_cv_prog_compiler_c_o=no
7084 $rm -r conftest 2>/dev/null
7088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7090 lt_compiler_flag="-o out/conftest2.$ac_objext"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>out/conftest.err)
7102 cat out/conftest.err >&5
7103 echo "$as_me:7103: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings
7108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7111 lt_cv_prog_compiler_c_o=yes
7116 # SGI C++ compiler will create directory out/ii_files/ for
7117 # template instantiation
7118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7119 $rm out/* && rmdir out
7125 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7129 hard_links="nottested"
7130 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7131 # do not overwrite the value of need_locks provided by the user
7132 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7138 ln conftest.a conftest.b 2>&5 || hard_links=no
7139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7140 echo "$as_me:$LINENO: result: $hard_links" >&5
7141 echo "${ECHO_T}$hard_links" >&6
7142 if test "$hard_links" = no; then
7143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7151 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7155 allow_undefined_flag=
7156 enable_shared_with_static_runtimes=no
7158 archive_expsym_cmds=
7159 old_archive_From_new_cmds=
7160 old_archive_from_expsyms_cmds=
7161 export_dynamic_flag_spec=
7162 whole_archive_flag_spec=
7163 thread_safe_flag_spec=
7164 hardcode_libdir_flag_spec=
7165 hardcode_libdir_flag_spec_ld=
7166 hardcode_libdir_separator=
7169 hardcode_shlibpath_var=unsupported
7170 link_all_deplibs=unknown
7171 hardcode_automatic=no
7174 always_export_symbols=no
7175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7176 # include_expsyms should be a list of space-separated symbols to be *always*
7177 # included in the symbol list
7179 # exclude_expsyms can be an extended regexp of symbols to exclude
7180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7182 # as well as any symbol that contains `d'.
7183 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7185 # platforms (ab)use it in PIC code, but their linkers get confused if
7186 # the symbol is explicitly referenced. Since portable code cannot
7187 # rely on this symbol name, it's probably fine to never include it in
7188 # preloaded symbol tables.
7189 extract_expsyms_cmds=
7190 # Just being paranoid about ensuring that cc_basename is set.
7191 for cc_temp in $compiler""; do
7193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7202 cygwin* | mingw* | pw32*)
7203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7204 # When not using gcc, we currently assume that we are using
7205 # Microsoft Visual C++.
7206 if test "$GCC" != yes; then
7211 # we just hope/assume this is gcc and not c89 (= MSVC++)
7220 if test "$with_gnu_ld" = yes; then
7221 # If archive_cmds runs LD, not CC, wlarc should be empty
7224 # Set some defaults for GNU ld with shared library support. These
7225 # are reset later if shared libraries are not supported. Putting them
7226 # here allows them to be overridden if necessary.
7227 runpath_var=LD_RUN_PATH
7228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7229 export_dynamic_flag_spec='${wl}--export-dynamic'
7230 # ancient GNU ld didn't support --whole-archive et. al.
7231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7234 whole_archive_flag_spec=
7236 supports_anon_versioning=no
7237 case `$LD -v 2>/dev/null` in
7238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7241 *\ 2.11.*) ;; # other 2.11 versions
7242 *) supports_anon_versioning=yes ;;
7245 # See if GNU ld supports shared libraries.
7247 aix3* | aix4* | aix5*)
7248 # On AIX/PPC, the GNU linker is very broken
7249 if test "$host_cpu" != ia64; then
7253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7254 *** to be unable to reliably create shared libraries on AIX.
7255 *** Therefore, libtool is disabling shared libraries support. If you
7256 *** really care for shared libraries, you may want to modify your PATH
7257 *** so that a non-GNU linker is found, and then restart.
7264 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)'
7265 hardcode_libdir_flag_spec='-L$libdir'
7266 hardcode_minus_L=yes
7268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7269 # that the semantics of dynamic libraries on AmigaOS, at least up
7270 # to version 4, is to share data among multiple programs linked
7271 # with the same dynamic library. Since this doesn't match the
7272 # behavior of shared libraries on other platforms, we can't use
7278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7279 allow_undefined_flag=unsupported
7280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7281 # support --undefined. This deserves some investigation. FIXME
7282 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7288 cygwin* | mingw* | pw32*)
7289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7290 # as there is no search path for DLLs.
7291 hardcode_libdir_flag_spec='-L$libdir'
7292 allow_undefined_flag=unsupported
7293 always_export_symbols=no
7294 enable_shared_with_static_runtimes=yes
7295 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7299 # If the export-symbols file already is a .def file (1st line
7300 # is EXPORTS), use it as is; otherwise, prepend...
7301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7302 cp $export_symbols $output_objdir/$soname.def;
7304 echo EXPORTS > $output_objdir/$soname.def;
7305 cat $export_symbols >> $output_objdir/$soname.def;
7307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7315 hardcode_shlibpath_var=no
7316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7317 export_dynamic_flag_spec='${wl}-E'
7318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7319 # Instead, shared libraries are loaded at an image base (0x10000000 by
7320 # default) and relocated if they conflict, which is a slow very memory
7321 # consuming and fragmenting process. To avoid this, we pick a random,
7322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7325 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'
7329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7331 case $cc_basename,$host_cpu in
7332 pgcc*) # Portland Group C compiler
7333 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'
7334 tmp_addflag=' $pic_flag'
7336 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7337 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'
7338 tmp_addflag=' $pic_flag -Mnomain' ;;
7339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7340 tmp_addflag=' -i_dynamic' ;;
7341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7342 tmp_addflag=' -i_dynamic -nofor_main' ;;
7343 ifc* | ifort*) # Intel Fortran compiler
7344 tmp_addflag=' -nofor_main' ;;
7346 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348 if test $supports_anon_versioning = yes; then
7349 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7351 $echo "local: *; };" >> $output_objdir/$libname.ver~
7352 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7375 *** create shared libraries on Solaris systems. Therefore, libtool
7376 *** is disabling shared libraries support. We urge you to upgrade GNU
7377 *** binutils to release 2.9.1 or newer. Another option is to modify
7378 *** your PATH or compiler configuration so that the native linker is
7379 *** used, and then restart.
7382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7391 case `$LD -v 2>&1` in
7392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7397 *** reliably create shared libraries on SCO systems. Therefore, libtool
7398 *** is disabling shared libraries support. We urge you to upgrade GNU
7399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7400 *** your PATH or compiler configuration so that the native linker is
7401 *** used, and then restart.
7406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7407 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7421 hardcode_shlibpath_var=no
7425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7434 if test "$ld_shlibs" = no; then
7436 hardcode_libdir_flag_spec=
7437 export_dynamic_flag_spec=
7438 whole_archive_flag_spec=
7441 # PORTME fill in a description of your system's linker (not GNU ld)
7444 allow_undefined_flag=unsupported
7445 always_export_symbols=yes
7446 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'
7447 # Note: this linker hardcodes the directories in LIBPATH if there
7448 # are no directories specified by -L.
7449 hardcode_minus_L=yes
7450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7451 # Neither direct hardcoding nor static linking is supported with a
7453 hardcode_direct=unsupported
7458 if test "$host_cpu" = ia64; then
7459 # On IA64, the linker does run time linking by default, so we don't
7460 # have to do anything special.
7461 aix_use_runtimelinking=no
7462 exp_sym_flag='-Bexport'
7465 # If we're using GNU nm, then we don't want the "-C" option.
7466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7468 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'
7470 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'
7472 aix_use_runtimelinking=no
7474 # Test if we are trying to use run time linking or normal
7475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7476 # need to do runtime linking.
7477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7478 for ld_flag in $LDFLAGS; do
7479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7480 aix_use_runtimelinking=yes
7487 exp_sym_flag='-bexport'
7488 no_entry_flag='-bnoentry'
7491 # When large executables or shared objects are built, AIX ld can
7492 # have problems creating the table of contents. If linking a library
7493 # or program results in "error TOC overflow" add -mminimal-toc to
7494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7499 hardcode_libdir_separator=':'
7500 link_all_deplibs=yes
7502 if test "$GCC" = yes; then
7503 case $host_os in aix4.[012]|aix4.[012].*)
7504 # We only want to do this on AIX 4.2 and lower, the check
7505 # below for broken collect2 doesn't work under 4.3+
7506 collect2name=`${CC} -print-prog-name=collect2`
7507 if test -f "$collect2name" && \
7508 strings "$collect2name" | grep resolve_lib_name >/dev/null
7510 # We have reworked collect2
7513 # We have old collect2
7514 hardcode_direct=unsupported
7515 # It fails to find uninstalled libraries when the uninstalled
7516 # path is not listed in the libpath. Setting hardcode_minus_L
7517 # to unsupported forces relinking
7518 hardcode_minus_L=yes
7519 hardcode_libdir_flag_spec='-L$libdir'
7520 hardcode_libdir_separator=
7524 shared_flag='-shared'
7525 if test "$aix_use_runtimelinking" = yes; then
7526 shared_flag="$shared_flag "'${wl}-G'
7530 if test "$host_cpu" = ia64; then
7531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7532 # chokes on -Wl,-G. The following line is correct:
7535 if test "$aix_use_runtimelinking" = yes; then
7536 shared_flag='${wl}-G'
7538 shared_flag='${wl}-bM:SRE'
7543 # It seems that -bexpall does not export symbols beginning with
7544 # underscore (_), so it is better to generate a list of symbols to export.
7545 always_export_symbols=yes
7546 if test "$aix_use_runtimelinking" = yes; then
7547 # Warning - without using the other runtime loading flags (-brtl),
7548 # -berok will link without error, but may produce a broken library.
7549 allow_undefined_flag='-berok'
7550 # Determine the default libpath from the value encoded in an empty executable.
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7591 # Check for a 64-bit object if we didn't find anything.
7592 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7599 rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7603 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7604 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"
7606 if test "$host_cpu" = ia64; then
7607 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7608 allow_undefined_flag="-z nodefs"
7609 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"
7611 # Determine the default libpath from the value encoded in an empty executable.
7612 cat >conftest.$ac_ext <<_ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629 (eval $ac_link) 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag"
7637 || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7652 # Check for a 64-bit object if we didn't find anything.
7653 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7660 rm -f conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7665 # Warning - without using the other run time loading flags,
7666 # -berok will link without error, but may produce a broken library.
7667 no_undefined_flag=' ${wl}-bernotok'
7668 allow_undefined_flag=' ${wl}-berok'
7669 # Exported symbols can be pulled into shared objects from archives
7670 whole_archive_flag_spec='$convenience'
7671 archive_cmds_need_lc=yes
7672 # This is similar to how AIX traditionally builds its shared libraries.
7673 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'
7679 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)'
7680 hardcode_libdir_flag_spec='-L$libdir'
7681 hardcode_minus_L=yes
7682 # see comment about different semantics on the GNU ld section
7687 export_dynamic_flag_spec=-rdynamic
7690 cygwin* | mingw* | pw32*)
7691 # When not using gcc, we currently assume that we are using
7692 # Microsoft Visual C++.
7693 # hardcode_libdir_flag_spec is actually meaningless, as there is
7694 # no search path for DLLs.
7695 hardcode_libdir_flag_spec=' '
7696 allow_undefined_flag=unsupported
7697 # Tell ltmain to make .lib files, not .a files.
7699 # Tell ltmain to make .dll files, not .so files.
7701 # FIXME: Setting linknames here is a bad hack.
7702 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7703 # The linker will automatically build a .lib file if we build a DLL.
7704 old_archive_From_new_cmds='true'
7705 # FIXME: Should let the user specify the lib program.
7706 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7707 fix_srcfile_path='`cygpath -w "$srcfile"`'
7708 enable_shared_with_static_runtimes=yes
7711 darwin* | rhapsody*)
7713 rhapsody* | darwin1.[012])
7714 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7717 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7718 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7720 case ${MACOSX_DEPLOYMENT_TARGET} in
7722 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7725 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7731 archive_cmds_need_lc=no
7733 hardcode_automatic=yes
7734 hardcode_shlibpath_var=unsupported
7735 whole_archive_flag_spec=''
7736 link_all_deplibs=yes
7737 if test "$GCC" = yes ; then
7738 output_verbose_link_cmd='echo'
7739 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7740 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7742 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7743 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}'
7745 case $cc_basename in
7747 output_verbose_link_cmd='echo'
7748 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7749 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7751 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7752 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}'
7762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763 hardcode_libdir_flag_spec='-L$libdir'
7764 hardcode_shlibpath_var=no
7771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7772 # support. Future versions do this automatically, but an explicit c++rt0.o
7773 # does not break anything, and helps significantly (at the cost of a little
7776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7777 hardcode_libdir_flag_spec='-R$libdir'
7779 hardcode_shlibpath_var=no
7782 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7786 hardcode_minus_L=yes
7787 hardcode_shlibpath_var=no
7790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7791 freebsd* | kfreebsd*-gnu | dragonfly*)
7792 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7793 hardcode_libdir_flag_spec='-R$libdir'
7795 hardcode_shlibpath_var=no
7799 if test "$GCC" = yes; then
7800 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'
7802 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'
7804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7805 hardcode_libdir_separator=:
7808 # hardcode_minus_L: Not really in the search PATH,
7809 # but as the default location of the library.
7810 hardcode_minus_L=yes
7811 export_dynamic_flag_spec='${wl}-E'
7815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7818 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7820 if test "$with_gnu_ld" = no; then
7821 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7822 hardcode_libdir_separator=:
7825 export_dynamic_flag_spec='${wl}-E'
7827 # hardcode_minus_L: Not really in the search PATH,
7828 # but as the default location of the library.
7829 hardcode_minus_L=yes
7834 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7837 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7840 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7843 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7849 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7852 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7859 if test "$with_gnu_ld" = no; then
7860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861 hardcode_libdir_separator=:
7865 hardcode_libdir_flag_spec_ld='+b $libdir'
7867 hardcode_shlibpath_var=no
7871 export_dynamic_flag_spec='${wl}-E'
7873 # hardcode_minus_L: Not really in the search PATH,
7874 # but as the default location of the library.
7875 hardcode_minus_L=yes
7881 irix5* | irix6* | nonstopux*)
7882 if test "$GCC" = yes; then
7883 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'
7885 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'
7886 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7889 hardcode_libdir_separator=:
7890 link_all_deplibs=yes
7894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7899 hardcode_libdir_flag_spec='-R$libdir'
7901 hardcode_shlibpath_var=no
7905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7908 hardcode_libdir_separator=:
7909 hardcode_shlibpath_var=no
7914 hardcode_shlibpath_var=no
7915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7917 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7919 export_dynamic_flag_spec='${wl}-E'
7922 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_libdir_flag_spec='-R$libdir'
7927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7937 allow_undefined_flag=unsupported
7938 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'
7939 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7943 if test "$GCC" = yes; then
7944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7945 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'
7947 allow_undefined_flag=' -expect_unresolved \*'
7948 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'
7950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951 hardcode_libdir_separator=:
7954 osf4* | osf5*) # as osf3* with the addition of -msym flag
7955 if test "$GCC" = yes; then
7956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7957 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'
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7960 allow_undefined_flag=' -expect_unresolved \*'
7961 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'
7962 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7963 $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'
7965 # Both c and cxx compiler support -rpath directly
7966 hardcode_libdir_flag_spec='-rpath $libdir'
7968 hardcode_libdir_separator=:
7972 no_undefined_flag=' -z text'
7973 if test "$GCC" = yes; then
7975 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7977 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7984 hardcode_libdir_flag_spec='-R$libdir'
7985 hardcode_shlibpath_var=no
7987 solaris2.[0-5] | solaris2.[0-5].*) ;;
7989 # The compiler driver will combine linker options so we
7990 # cannot just pass the convience library names through
7991 # without $wl, iff we do not link with $LD.
7992 # Luckily, gcc supports the same syntax we need for Sun Studio.
7993 # Supported since Solaris 2.6 (maybe 2.5.1?)
7996 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7998 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8001 link_all_deplibs=yes
8005 if test "x$host_vendor" = xsequent; then
8006 # Use $CC to link under sequent, because it throws in some extra .o
8007 # files that make .init and .fini sections work.
8008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8012 hardcode_libdir_flag_spec='-L$libdir'
8014 hardcode_minus_L=yes
8015 hardcode_shlibpath_var=no
8019 case $host_vendor in
8021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8022 hardcode_direct=yes # is this really true???
8025 ## LD is ld it makes a PLAMLIB
8026 ## CC just makes a GrossModule.
8027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8028 reload_cmds='$CC -r -o $output$reload_objs'
8032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8036 runpath_var='LD_RUN_PATH'
8037 hardcode_shlibpath_var=no
8041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8042 hardcode_shlibpath_var=no
8043 export_dynamic_flag_spec='-Bexport'
8047 if test -d /usr/nec; then
8048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049 hardcode_shlibpath_var=no
8050 runpath_var=LD_RUN_PATH
8051 hardcode_runpath_var=yes
8056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8057 no_undefined_flag='${wl}-z,text'
8058 archive_cmds_need_lc=no
8059 hardcode_shlibpath_var=no
8060 runpath_var='LD_RUN_PATH'
8062 if test "$GCC" = yes; then
8063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8071 sysv5* | sco3.2v5* | sco5v6*)
8072 # Note: We can NOT use -z defs as we might desire, because we do not
8073 # link with -lc, and that would cause any symbols used from libc to
8074 # always be unresolved, which means just about no library would
8075 # ever link correctly. If we're not using GNU ld we use -z text
8076 # though, which does catch some bad symbols but isn't as heavy-handed
8078 no_undefined_flag='${wl}-z,text'
8079 allow_undefined_flag='${wl}-z,nodefs'
8080 archive_cmds_need_lc=no
8081 hardcode_shlibpath_var=no
8082 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8083 hardcode_libdir_separator=':'
8084 link_all_deplibs=yes
8085 export_dynamic_flag_spec='${wl}-Bexport'
8086 runpath_var='LD_RUN_PATH'
8088 if test "$GCC" = yes; then
8089 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8092 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_libdir_flag_spec='-L$libdir'
8100 hardcode_shlibpath_var=no
8109 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8110 echo "${ECHO_T}$ld_shlibs" >&6
8111 test "$ld_shlibs" = no && can_build_shared=no
8114 # Do we need to explicitly link libc?
8116 case "x$archive_cmds_need_lc" in
8118 # Assume -lc should be added
8119 archive_cmds_need_lc=yes
8121 if test "$enable_shared" = yes && test "$GCC" = yes; then
8122 case $archive_cmds in
8124 # FIXME: we may have to deal with multi-command sequences.
8127 # Test whether the compiler implicitly links with -lc since on some
8128 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8129 # to ld, don't add -lc before -lgcc.
8130 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8131 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } 2>conftest.err; then
8142 libobjs=conftest.$ac_objext
8144 wl=$lt_prog_compiler_wl
8145 pic_flag=$lt_prog_compiler_pic
8151 lt_save_allow_undefined_flag=$allow_undefined_flag
8152 allow_undefined_flag=
8153 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8154 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }
8159 archive_cmds_need_lc=no
8161 archive_cmds_need_lc=yes
8163 allow_undefined_flag=$lt_save_allow_undefined_flag
8165 cat conftest.err 1>&5
8168 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8169 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8176 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8179 libname_spec='lib$name'
8187 shlibpath_overrides_runpath=unknown
8189 dynamic_linker="$host_os ld.so"
8190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8191 if test "$GCC" = yes; then
8192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8193 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8194 # if the path contains ";" then we assume it to be the separator
8195 # otherwise default to the standard path separator (i.e. ":") - it is
8196 # assumed that no part of a normal pathname contains ";" but that should
8197 # okay in the real world where ";" in dirpaths is itself problematic.
8198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8203 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8205 need_lib_prefix=unknown
8206 hardcode_into_libs=no
8208 # when you set need_version to no, make sure it does not cause -set_version
8209 # flags to be left without arguments
8210 need_version=unknown
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8216 shlibpath_var=LIBPATH
8218 # AIX 3 has no versioning support, so we append a major version to the name.
8219 soname_spec='${libname}${release}${shared_ext}$major'
8226 hardcode_into_libs=yes
8227 if test "$host_cpu" = ia64; then
8228 # AIX 5 supports IA64
8229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8230 shlibpath_var=LD_LIBRARY_PATH
8232 # With GCC up to 2.95.x, collect2 would create an import file
8233 # for dependence libraries. The import file would start with
8234 # the line `#! .'. This would cause the generated library to
8235 # depend on `.', always an invalid library. This was fixed in
8236 # development snapshots of GCC prior to 3.0.
8238 aix4 | aix4.[01] | aix4.[01].*)
8239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8241 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8249 # soname into executable. Probably we can add versioning support to
8250 # collect2, so additional links can be useful in future.
8251 if test "$aix_use_runtimelinking" = yes; then
8252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8253 # instead of lib<name>.a to let people know that these are not
8254 # typical AIX shared libraries.
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257 # We preserve .a as extension for shared libraries through AIX4.2
8258 # and later when we are not doing run time linking.
8259 library_names_spec='${libname}${release}.a $libname.a'
8260 soname_spec='${libname}${release}${shared_ext}$major'
8262 shlibpath_var=LIBPATH
8267 library_names_spec='$libname.ixlibrary $libname.a'
8268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8269 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'
8273 library_names_spec='${libname}${shared_ext}'
8274 dynamic_linker="$host_os ld.so"
8275 shlibpath_var=LIBRARY_PATH
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 soname_spec='${libname}${release}${shared_ext}$major'
8283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8284 shlibpath_var=LD_LIBRARY_PATH
8285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8287 # the default ld.so.conf also contains /usr/contrib/lib and
8288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8289 # libtool to hard-code these into programs
8292 cygwin* | mingw* | pw32*)
8293 version_type=windows
8298 case $GCC,$host_os in
8299 yes,cygwin* | yes,mingw* | yes,pw32*)
8300 library_names_spec='$libname.dll.a'
8301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8302 postinstall_cmds='base_file=`basename \${file}`~
8303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8304 dldir=$destdir/`dirname \$dlpath`~
8305 test -d \$dldir || mkdir -p \$dldir~
8306 $install_prog $dir/$dlname \$dldir/$dlname~
8307 chmod a+x \$dldir/$dlname'
8308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8309 dlpath=$dir/\$dldll~
8311 shlibpath_overrides_runpath=yes
8315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8317 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8320 # MinGW DLLs use traditional 'lib' prefix
8321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8323 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8324 # It is most probably a Windows format PATH printed by
8325 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8326 # path with ; separators, and with drive letters. We can handle the
8327 # drive letters (cygwin fileutils understands them), so leave them,
8328 # especially as we might pass files found there to a mingw objdump,
8329 # which wouldn't understand a cygwinified path. Ahh.
8330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8336 # pw32 DLLs use 'pw' prefix rather than 'lib'
8337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8346 dynamic_linker='Win32 ld.exe'
8347 # FIXME: first we should search . and the directory the executable is in
8351 darwin* | rhapsody*)
8352 dynamic_linker="$host_os dyld"
8356 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8357 soname_spec='${libname}${release}${major}$shared_ext'
8358 shlibpath_overrides_runpath=yes
8359 shlibpath_var=DYLD_LIBRARY_PATH
8360 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8362 if test "$GCC" = yes; then
8363 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8365 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8375 soname_spec='${libname}${release}${shared_ext}$major'
8376 shlibpath_var=LD_LIBRARY_PATH
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 shlibpath_var=LD_LIBRARY_PATH
8390 shlibpath_overrides_runpath=no
8391 hardcode_into_libs=yes
8392 dynamic_linker='GNU ld.so'
8395 freebsd* | dragonfly*)
8396 # DragonFly does not have aout. When/if they implement a new
8397 # versioning mechanism, adjust this.
8398 if test -x /usr/bin/objformat; then
8399 objformat=`/usr/bin/objformat`
8402 freebsd[123]*) objformat=aout ;;
8406 version_type=freebsd-$objformat
8407 case $version_type in
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8418 shlibpath_var=LD_LIBRARY_PATH
8421 shlibpath_overrides_runpath=yes
8423 freebsd3.[01]* | freebsdelf3.[01]*)
8424 shlibpath_overrides_runpath=yes
8425 hardcode_into_libs=yes
8427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8429 shlibpath_overrides_runpath=no
8430 hardcode_into_libs=yes
8432 freebsd*) # from 4.6 on
8433 shlibpath_overrides_runpath=yes
8434 hardcode_into_libs=yes
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 hardcode_into_libs=yes
8449 hpux9* | hpux10* | hpux11*)
8450 # Give a soname corresponding to the major version so that dld.sl refuses to
8451 # link against other versions.
8458 hardcode_into_libs=yes
8459 dynamic_linker="$host_os dld.so"
8460 shlibpath_var=LD_LIBRARY_PATH
8461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 if test "X$HPUX_IA64_MODE" = X32; then
8465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8473 hardcode_into_libs=yes
8474 dynamic_linker="$host_os dld.sl"
8475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 soname_spec='${libname}${release}${shared_ext}$major'
8479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8484 dynamic_linker="$host_os dld.sl"
8485 shlibpath_var=SHLIB_PATH
8486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488 soname_spec='${libname}${release}${shared_ext}$major'
8491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8492 postinstall_cmds='chmod 555 $lib'
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8500 soname_spec='${libname}${release}${shared_ext}$major'
8501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8502 shlibpath_var=LD_LIBRARY_PATH
8503 shlibpath_overrides_runpath=no
8504 hardcode_into_libs=yes
8507 irix5* | irix6* | nonstopux*)
8509 nonstopux*) version_type=nonstopux ;;
8511 if test "$lt_cv_prog_gnu_ld" = yes; then
8519 soname_spec='${libname}${release}${shared_ext}$major'
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8522 irix5* | nonstopux*)
8526 case $LD in # libtool.m4 will add one of these switches to LD
8527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8528 libsuff= shlibsuff= libmagic=32-bit;;
8529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8530 libsuff=32 shlibsuff=N32 libmagic=N32;;
8531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8533 *) libsuff= shlibsuff= libmagic=never-match;;
8537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8538 shlibpath_overrides_runpath=no
8539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8541 hardcode_into_libs=yes
8544 # No shared lib support for Linux oldld, aout, or coff.
8545 linux*oldld* | linux*aout* | linux*coff*)
8549 # This must be Linux ELF.
8554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555 soname_spec='${libname}${release}${shared_ext}$major'
8556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=no
8559 # This implies no fast_install, which is unacceptable.
8560 # Some rework will be needed to allow for fast_install
8561 # before this can be enabled.
8562 hardcode_into_libs=yes
8564 # find out which ABI we are using
8567 x86_64*|s390x*|powerpc64*)
8568 echo '#line 8568 "configure"' > conftest.$ac_ext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; then
8574 case `/usr/bin/file conftest.$ac_objext` in
8577 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8585 # Append ld.so.conf contents to the search path
8586 if test -f /etc/ld.so.conf; then
8587 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8588 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8591 # We used to test for /lib/ld.so.1 and disable shared libraries on
8592 # powerpc, because MkLinux only supported shared libraries with the
8593 # GNU dynamic linker. Since this was broken with cross compilers,
8594 # most powerpc-linux boxes support dynamic linking these days and
8595 # people can always --disable-shared, the test was removed, and we
8596 # assume the GNU/Linux dynamic linker is in use.
8597 dynamic_linker='GNU/Linux ld.so'
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8605 soname_spec='${libname}${release}${shared_ext}$major'
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=no
8608 hardcode_into_libs=yes
8609 dynamic_linker='GNU ld.so'
8616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8619 dynamic_linker='NetBSD (a.out) ld.so'
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 dynamic_linker='NetBSD ld.elf_so'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=yes
8627 hardcode_into_libs=yes
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 shlibpath_overrides_runpath=yes
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 shlibpath_overrides_runpath=yes
8649 sys_lib_dlsearch_path_spec="/usr/lib"
8651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8654 *) need_version=no ;;
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8658 shlibpath_var=LD_LIBRARY_PATH
8659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8661 openbsd2.[89] | openbsd2.[89].*)
8662 shlibpath_overrides_runpath=no
8665 shlibpath_overrides_runpath=yes
8669 shlibpath_overrides_runpath=yes
8674 libname_spec='$name'
8677 library_names_spec='$libname${shared_ext} $libname.a'
8678 dynamic_linker='OS/2 ld.exe'
8679 shlibpath_var=LIBPATH
8682 osf3* | osf4* | osf5*)
8686 soname_spec='${libname}${release}${shared_ext}$major'
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 shlibpath_var=LD_LIBRARY_PATH
8700 shlibpath_overrides_runpath=yes
8701 hardcode_into_libs=yes
8702 # ldd complains unless libraries are executable
8703 postinstall_cmds='chmod +x $lib'
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 shlibpath_overrides_runpath=yes
8712 if test "$with_gnu_ld" = yes; then
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721 soname_spec='${libname}${release}${shared_ext}$major'
8722 shlibpath_var=LD_LIBRARY_PATH
8723 case $host_vendor in
8725 shlibpath_overrides_runpath=no
8727 export_dynamic_flag_spec='${wl}-Blargedynsym'
8728 runpath_var=LD_RUN_PATH
8736 shlibpath_overrides_runpath=no
8737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8743 if test -d /usr/nec ;then
8745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8746 soname_spec='$libname${shared_ext}.$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8752 version_type=freebsd-elf
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 hardcode_into_libs=yes
8759 if test "$with_gnu_ld" = yes; then
8760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8761 shlibpath_overrides_runpath=no
8763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8764 shlibpath_overrides_runpath=yes
8767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8771 sys_lib_dlsearch_path_spec='/usr/lib'
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 soname_spec='${libname}${release}${shared_ext}$major'
8778 shlibpath_var=LD_LIBRARY_PATH
8785 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8786 echo "${ECHO_T}$dynamic_linker" >&6
8787 test "$dynamic_linker" = no && can_build_shared=no
8789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8790 if test "$GCC" = yes; then
8791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8794 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8795 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8797 if test -n "$hardcode_libdir_flag_spec" || \
8798 test -n "$runpath_var" || \
8799 test "X$hardcode_automatic" = "Xyes" ; then
8801 # We can hardcode non-existant directories.
8802 if test "$hardcode_direct" != no &&
8803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8804 # have to relink, otherwise we might link with an installed library
8805 # when we should be linking with a yet-to-be-installed one
8806 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8807 test "$hardcode_minus_L" != no; then
8808 # Linking always hardcodes the temporary library directory.
8809 hardcode_action=relink
8811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8812 hardcode_action=immediate
8815 # We cannot hardcode anything, or else we can only hardcode existing
8817 hardcode_action=unsupported
8819 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8820 echo "${ECHO_T}$hardcode_action" >&6
8822 if test "$hardcode_action" = relink; then
8823 # Fast installation is not supported
8824 enable_fast_install=no
8825 elif test "$shlibpath_overrides_runpath" = yes ||
8826 test "$enable_shared" = no; then
8827 # Fast installation is not necessary
8828 enable_fast_install=needless
8833 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8834 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8835 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8836 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8837 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8838 echo "$as_me:$LINENO: result: yes" >&5
8839 echo "${ECHO_T}yes" >&6
8841 # FIXME - insert some real tests, host_os isn't really good enough
8844 if test -n "$STRIP" ; then
8845 striplib="$STRIP -x"
8846 echo "$as_me:$LINENO: result: yes" >&5
8847 echo "${ECHO_T}yes" >&6
8849 echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8854 echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8860 if test "x$enable_dlopen" != xyes; then
8861 enable_dlopen=unknown
8862 enable_dlopen_self=unknown
8863 enable_dlopen_self_static=unknown
8870 lt_cv_dlopen="load_add_on"
8872 lt_cv_dlopen_self=yes
8876 lt_cv_dlopen="LoadLibrary"
8881 lt_cv_dlopen="dlopen"
8886 # if libdl is installed we need to link against it
8887 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_check_lib_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any gcc2 internal prototype to avoid an error. */
8905 /* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_dl_dlopen=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_dl_dlopen=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8951 if test $ac_cv_lib_dl_dlopen = yes; then
8952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8957 lt_cv_dlopen_self=yes
8964 echo "$as_me:$LINENO: checking for shl_load" >&5
8965 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8966 if test "${ac_cv_func_shl_load+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8977 #define shl_load innocuous_shl_load
8979 /* System header to define __stub macros and hopefully few prototypes,
8980 which can conflict with char shl_load (); below.
8981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8982 <limits.h> exists even on freestanding compilers. */
8985 # include <limits.h>
8987 # include <assert.h>
8992 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
9000 /* The GNU C library defines this for functions which it implements
9001 to always fail with ENOSYS. Some functions are actually named
9002 something starting with __ and the normal name is an alias. */
9003 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9006 char (*f) () = shl_load;
9015 return f != shl_load;
9020 rm -f conftest.$ac_objext conftest$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest$ac_exeext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_cv_func_shl_load=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_func_shl_load=no
9049 rm -f conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9054 if test $ac_cv_func_shl_load = yes; then
9055 lt_cv_dlopen="shl_load"
9057 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 ac_check_lib_save_LIBS=$LIBS
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9071 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088 (eval $ac_link) 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest$ac_exeext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_cv_lib_dld_shl_load=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_dld_shl_load=no
9115 rm -f conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9121 if test $ac_cv_lib_dld_shl_load = yes; then
9122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9124 echo "$as_me:$LINENO: checking for dlopen" >&5
9125 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9126 if test "${ac_cv_func_dlopen+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 cat >conftest.$ac_ext <<_ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9137 #define dlopen innocuous_dlopen
9139 /* System header to define __stub macros and hopefully few prototypes,
9140 which can conflict with char dlopen (); below.
9141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9142 <limits.h> exists even on freestanding compilers. */
9145 # include <limits.h>
9147 # include <assert.h>
9152 /* Override any gcc2 internal prototype to avoid an error. */
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9160 /* The GNU C library defines this for functions which it implements
9161 to always fail with ENOSYS. Some functions are actually named
9162 something starting with __ and the normal name is an alias. */
9163 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9166 char (*f) () = dlopen;
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182 (eval $ac_link) 2>conftest.er1
9184 grep -v '^ *+' conftest.er1 >conftest.err
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -z "$ac_c_werror_flag"
9190 || test ! -s conftest.err'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; } &&
9196 { ac_try='test -s conftest$ac_exeext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_cv_func_dlopen=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_cv_func_dlopen=no
9209 rm -f conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9213 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9214 if test $ac_cv_func_dlopen = yes; then
9215 lt_cv_dlopen="dlopen"
9217 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_check_lib_save_LIBS=$LIBS
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_lib_dl_dlopen=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_cv_lib_dl_dlopen=no
9275 rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9281 if test $ac_cv_lib_dl_dlopen = yes; then
9282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9284 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9285 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9286 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 ac_check_lib_save_LIBS=$LIBS
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any gcc2 internal prototype to avoid an error. */
9302 /* We use char because int might match the return type of a gcc2
9303 builtin and then its argument prototype would still apply. */
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>conftest.er1
9317 grep -v '^ *+' conftest.er1 >conftest.err
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -z "$ac_c_werror_flag"
9323 || test ! -s conftest.err'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; } &&
9329 { ac_try='test -s conftest$ac_exeext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_cv_lib_svld_dlopen=yes
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9340 ac_cv_lib_svld_dlopen=no
9342 rm -f conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9346 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9347 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9348 if test $ac_cv_lib_svld_dlopen = yes; then
9349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9351 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9352 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 ac_check_lib_save_LIBS=$LIBS
9358 cat >conftest.$ac_ext <<_ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9365 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_lib_dld_dld_link=yes
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_lib_dld_dld_link=no
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9414 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9415 if test $ac_cv_lib_dld_dld_link = yes; then
9416 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9437 if test "x$lt_cv_dlopen" != xno; then
9443 case $lt_cv_dlopen in
9445 save_CPPFLAGS="$CPPFLAGS"
9446 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9448 save_LDFLAGS="$LDFLAGS"
9449 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9452 LIBS="$lt_cv_dlopen_libs $LIBS"
9454 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9455 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9456 if test "${lt_cv_dlopen_self+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 if test "$cross_compiling" = yes; then :
9460 lt_cv_dlopen_self=cross
9462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9463 lt_status=$lt_dlunknown
9464 cat > conftest.$ac_ext <<EOF
9465 #line 9465 "configure"
9466 #include "confdefs.h"
9475 # define LT_DLGLOBAL RTLD_GLOBAL
9478 # define LT_DLGLOBAL DL_GLOBAL
9480 # define LT_DLGLOBAL 0
9484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9485 find out it does not work in some platform. */
9486 #ifndef LT_DLLAZY_OR_NOW
9488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9491 # define LT_DLLAZY_OR_NOW DL_LAZY
9494 # define LT_DLLAZY_OR_NOW RTLD_NOW
9497 # define LT_DLLAZY_OR_NOW DL_NOW
9499 # define LT_DLLAZY_OR_NOW 0
9507 extern "C" void exit (int);
9510 void fnord() { int i=42;}
9513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9514 int status = $lt_dlunknown;
9518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9519 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9520 /* dlclose (self); */
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9533 (./conftest; exit; ) >&5 2>/dev/null
9536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9541 # compilation failed
9542 lt_cv_dlopen_self=no
9549 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9550 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9552 if test "x$lt_cv_dlopen_self" = xyes; then
9553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9554 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9555 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9556 if test "${lt_cv_dlopen_self_static+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 if test "$cross_compiling" = yes; then :
9560 lt_cv_dlopen_self_static=cross
9562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9563 lt_status=$lt_dlunknown
9564 cat > conftest.$ac_ext <<EOF
9565 #line 9565 "configure"
9566 #include "confdefs.h"
9575 # define LT_DLGLOBAL RTLD_GLOBAL
9578 # define LT_DLGLOBAL DL_GLOBAL
9580 # define LT_DLGLOBAL 0
9584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9585 find out it does not work in some platform. */
9586 #ifndef LT_DLLAZY_OR_NOW
9588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9591 # define LT_DLLAZY_OR_NOW DL_LAZY
9594 # define LT_DLLAZY_OR_NOW RTLD_NOW
9597 # define LT_DLLAZY_OR_NOW DL_NOW
9599 # define LT_DLLAZY_OR_NOW 0
9607 extern "C" void exit (int);
9610 void fnord() { int i=42;}
9613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9614 int status = $lt_dlunknown;
9618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9620 /* dlclose (self); */
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9633 (./conftest; exit; ) >&5 2>/dev/null
9636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9641 # compilation failed
9642 lt_cv_dlopen_self_static=no
9649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9650 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9653 CPPFLAGS="$save_CPPFLAGS"
9654 LDFLAGS="$save_LDFLAGS"
9659 case $lt_cv_dlopen_self in
9660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9661 *) enable_dlopen_self=unknown ;;
9664 case $lt_cv_dlopen_self_static in
9665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9666 *) enable_dlopen_self_static=unknown ;;
9671 # Report which library types will actually be built
9672 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9673 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9674 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9675 echo "${ECHO_T}$can_build_shared" >&6
9677 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9678 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9679 test "$can_build_shared" = "no" && enable_shared=no
9681 # On AIX, shared libraries and static libraries use the same namespace, and
9682 # are all built from PIC.
9685 test "$enable_shared" = yes && enable_static=no
9686 if test -n "$RANLIB"; then
9687 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9688 postinstall_cmds='$RANLIB $lib'
9693 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9694 test "$enable_shared" = yes && enable_static=no
9698 echo "$as_me:$LINENO: result: $enable_shared" >&5
9699 echo "${ECHO_T}$enable_shared" >&6
9701 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9703 # Make sure either enable_shared or enable_static is yes.
9704 test "$enable_shared" = yes || enable_static=yes
9705 echo "$as_me:$LINENO: result: $enable_static" >&5
9706 echo "${ECHO_T}$enable_static" >&6
9708 # The else clause should only fire when bootstrapping the
9709 # libtool distribution, otherwise you forgot to ship ltmain.sh
9710 # with your package, and you will get complaints that there are
9711 # no rules to generate ltmain.sh.
9712 if test -f "$ltmain"; then
9713 # See if we are running on zsh, and set the options which allow our commands through
9714 # without removal of \ escapes.
9715 if test -n "${ZSH_VERSION+set}" ; then
9716 setopt NO_GLOB_SUBST
9718 # Now quote all the things that may contain metacharacters while being
9719 # careful not to overquote the AC_SUBSTed values. We take copies of the
9720 # variables and quote the copies for generation of the libtool script.
9721 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9723 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9724 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9725 deplibs_check_method reload_flag reload_cmds need_locks \
9726 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9727 lt_cv_sys_global_symbol_to_c_name_address \
9728 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9729 old_postinstall_cmds old_postuninstall_cmds \
9733 lt_prog_compiler_wl \
9734 lt_prog_compiler_pic \
9735 lt_prog_compiler_static \
9736 lt_prog_compiler_no_builtin_flag \
9737 export_dynamic_flag_spec \
9738 thread_safe_flag_spec \
9739 whole_archive_flag_spec \
9740 enable_shared_with_static_runtimes \
9742 old_archive_from_new_cmds \
9747 compiler_lib_search_path \
9749 archive_expsym_cmds \
9751 postuninstall_cmds \
9752 old_archive_from_expsyms_cmds \
9753 allow_undefined_flag \
9755 export_symbols_cmds \
9756 hardcode_libdir_flag_spec \
9757 hardcode_libdir_flag_spec_ld \
9758 hardcode_libdir_separator \
9759 hardcode_automatic \
9761 module_expsym_cmds \
9762 lt_cv_prog_compiler_c_o \
9767 old_archive_cmds | \
9768 old_archive_from_new_cmds | \
9770 archive_expsym_cmds | \
9772 module_expsym_cmds | \
9773 old_archive_from_expsyms_cmds | \
9774 export_symbols_cmds | \
9775 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9776 postinstall_cmds | postuninstall_cmds | \
9777 old_postinstall_cmds | old_postuninstall_cmds | \
9778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9779 # Double-quote double-evaled strings.
9780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9789 *'\$0 --fallback-echo"')
9790 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9795 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9797 { echo "$as_me:$LINENO: creating $ofile" >&5
9798 echo "$as_me: creating $ofile" >&6;}
9800 cat <<__EOF__ >> "$cfgfile"
9803 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9804 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9805 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9807 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9808 # Free Software Foundation, Inc.
9810 # This file is part of GNU Libtool:
9811 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9813 # This program is free software; you can redistribute it and/or modify
9814 # it under the terms of the GNU General Public License as published by
9815 # the Free Software Foundation; either version 2 of the License, or
9816 # (at your option) any later version.
9818 # This program is distributed in the hope that it will be useful, but
9819 # WITHOUT ANY WARRANTY; without even the implied warranty of
9820 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9821 # General Public License for more details.
9823 # You should have received a copy of the GNU General Public License
9824 # along with this program; if not, write to the Free Software
9825 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9827 # As a special exception to the GNU General Public License, if you
9828 # distribute this file as part of a program that contains a
9829 # configuration script generated by Autoconf, you may include it under
9830 # the same distribution terms that you use for the rest of that program.
9832 # A sed program that does not truncate output.
9835 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9836 Xsed="$SED -e 1s/^X//"
9838 # The HP-UX ksh and POSIX shell print the target directory to stdout
9840 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9842 # The names of the tagged configurations supported by this script.
9845 # ### BEGIN LIBTOOL CONFIG
9847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9849 # Shell to use when invoking shell scripts.
9852 # Whether or not to build shared libraries.
9853 build_libtool_libs=$enable_shared
9855 # Whether or not to build static libraries.
9856 build_old_libs=$enable_static
9858 # Whether or not to add -lc for building shared libraries.
9859 build_libtool_need_lc=$archive_cmds_need_lc
9861 # Whether or not to disallow shared libs when runtime libs are static
9862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9864 # Whether or not to optimize for fast installation.
9865 fast_install=$enable_fast_install
9868 host_alias=$host_alias
9873 build_alias=$build_alias
9877 # An echo program that does not interpret backslashes.
9882 AR_FLAGS=$lt_AR_FLAGS
9887 # LTCC compiler flags.
9888 LTCFLAGS=$lt_LTCFLAGS
9890 # A language-specific compiler.
9893 # Is the compiler the GNU C compiler?
9899 # The linker used to build libraries.
9902 # Whether we need hard or soft links.
9905 # A BSD-compatible nm program.
9908 # A symbol stripping program
9911 # Used to examine libraries when file_magic_cmd begins "file"
9912 MAGIC_CMD=$MAGIC_CMD
9914 # Used on cygwin: DLL creation program.
9917 # Used on cygwin: object dumper.
9920 # Used on cygwin: assembler.
9923 # The name of the directory that contains temporary libtool files.
9926 # How to create reloadable object files.
9927 reload_flag=$lt_reload_flag
9928 reload_cmds=$lt_reload_cmds
9930 # How to pass a linker flag through the compiler.
9931 wl=$lt_lt_prog_compiler_wl
9933 # Object file suffix (normally "o").
9936 # Old archive suffix (normally "a").
9939 # Shared library suffix (normally ".so").
9940 shrext_cmds='$shrext_cmds'
9942 # Executable file suffix (normally "").
9945 # Additional compiler flags for building library objects.
9946 pic_flag=$lt_lt_prog_compiler_pic
9949 # What is the maximum length of a command?
9950 max_cmd_len=$lt_cv_sys_max_cmd_len
9952 # Does compiler simultaneously support -c and -o options?
9953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9955 # Must we lock files when doing compilation?
9956 need_locks=$lt_need_locks
9958 # Do we need the lib prefix for modules?
9959 need_lib_prefix=$need_lib_prefix
9961 # Do we need a version for libraries?
9962 need_version=$need_version
9964 # Whether dlopen is supported.
9965 dlopen_support=$enable_dlopen
9967 # Whether dlopen of programs is supported.
9968 dlopen_self=$enable_dlopen_self
9970 # Whether dlopen of statically linked programs is supported.
9971 dlopen_self_static=$enable_dlopen_self_static
9973 # Compiler flag to prevent dynamic linking.
9974 link_static_flag=$lt_lt_prog_compiler_static
9976 # Compiler flag to turn off builtin functions.
9977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9979 # Compiler flag to allow reflexive dlopens.
9980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9982 # Compiler flag to generate shared objects directly from archives.
9983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9985 # Compiler flag to generate thread-safe objects.
9986 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9988 # Library versioning type.
9989 version_type=$version_type
9991 # Format of library name prefix.
9992 libname_spec=$lt_libname_spec
9994 # List of archive names. First name is the real one, the rest are links.
9995 # The last name is the one that the linker finds with -lNAME.
9996 library_names_spec=$lt_library_names_spec
9998 # The coded name of the library, if different from the real name.
9999 soname_spec=$lt_soname_spec
10001 # Commands used to build and install an old-style archive.
10003 old_archive_cmds=$lt_old_archive_cmds
10004 old_postinstall_cmds=$lt_old_postinstall_cmds
10005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10007 # Create an old-style archive from a shared archive.
10008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10010 # Create a temporary old-style archive to link instead of a shared archive.
10011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10013 # Commands used to build and install a shared archive.
10014 archive_cmds=$lt_archive_cmds
10015 archive_expsym_cmds=$lt_archive_expsym_cmds
10016 postinstall_cmds=$lt_postinstall_cmds
10017 postuninstall_cmds=$lt_postuninstall_cmds
10019 # Commands used to build a loadable module (assumed same as above if empty)
10020 module_cmds=$lt_module_cmds
10021 module_expsym_cmds=$lt_module_expsym_cmds
10023 # Commands to strip libraries.
10024 old_striplib=$lt_old_striplib
10025 striplib=$lt_striplib
10027 # Dependencies to place before the objects being linked to create a
10029 predep_objects=$lt_predep_objects
10031 # Dependencies to place after the objects being linked to create a
10033 postdep_objects=$lt_postdep_objects
10035 # Dependencies to place before the objects being linked to create a
10037 predeps=$lt_predeps
10039 # Dependencies to place after the objects being linked to create a
10041 postdeps=$lt_postdeps
10043 # The library search path used internally by the compiler when linking
10044 # a shared library.
10045 compiler_lib_search_path=$lt_compiler_lib_search_path
10047 # Method to check whether dependent libraries are shared objects.
10048 deplibs_check_method=$lt_deplibs_check_method
10050 # Command to use when deplibs_check_method == file_magic.
10051 file_magic_cmd=$lt_file_magic_cmd
10053 # Flag that allows shared libraries with undefined symbols to be built.
10054 allow_undefined_flag=$lt_allow_undefined_flag
10056 # Flag that forces no undefined symbols.
10057 no_undefined_flag=$lt_no_undefined_flag
10059 # Commands used to finish a libtool library installation in a directory.
10060 finish_cmds=$lt_finish_cmds
10062 # Same as above, but a single script fragment to be evaled but not shown.
10063 finish_eval=$lt_finish_eval
10065 # Take the output of nm and produce a listing of raw symbols and C names.
10066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10068 # Transform the output of nm in a proper C declaration
10069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10071 # Transform the output of nm in a C name address pair
10072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10074 # This is the shared library runtime path variable.
10075 runpath_var=$runpath_var
10077 # This is the shared library path variable.
10078 shlibpath_var=$shlibpath_var
10080 # Is shlibpath searched before the hard-coded library search path?
10081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10083 # How to hardcode a shared library path into an executable.
10084 hardcode_action=$hardcode_action
10086 # Whether we should hardcode library paths into libraries.
10087 hardcode_into_libs=$hardcode_into_libs
10089 # Flag to hardcode \$libdir into a binary during linking.
10090 # This must work even if \$libdir does not exist.
10091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10093 # If ld is used when linking, flag to hardcode \$libdir into
10094 # a binary during linking. This must work even if \$libdir does
10096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10098 # Whether we need a single -rpath flag with a separated argument.
10099 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10102 # resulting binary.
10103 hardcode_direct=$hardcode_direct
10105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10106 # resulting binary.
10107 hardcode_minus_L=$hardcode_minus_L
10109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10110 # the resulting binary.
10111 hardcode_shlibpath_var=$hardcode_shlibpath_var
10113 # Set to yes if building a shared library automatically hardcodes DIR into the library
10114 # and all subsequent libraries and executables linked against it.
10115 hardcode_automatic=$hardcode_automatic
10117 # Variables whose values should be saved in libtool wrapper scripts and
10118 # restored at relink time.
10119 variables_saved_for_relink="$variables_saved_for_relink"
10121 # Whether libtool must link a program against all its dependency libraries.
10122 link_all_deplibs=$link_all_deplibs
10124 # Compile-time system search path for libraries
10125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10127 # Run-time system search path for libraries
10128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10130 # Fix the shell variable \$srcfile for the compiler.
10131 fix_srcfile_path="$fix_srcfile_path"
10133 # Set to yes if exported symbols are required.
10134 always_export_symbols=$always_export_symbols
10136 # The commands to list exported symbols.
10137 export_symbols_cmds=$lt_export_symbols_cmds
10139 # The commands to extract the exported symbol list from a shared archive.
10140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10142 # Symbols that should not be listed in the preloaded symbols.
10143 exclude_expsyms=$lt_exclude_expsyms
10145 # Symbols that must always be exported.
10146 include_expsyms=$lt_include_expsyms
10148 # ### END LIBTOOL CONFIG
10155 cat <<\EOF >> "$cfgfile"
10157 # AIX sometimes has problems with the GCC collect2 program. For some
10158 # reason, if we set the COLLECT_NAMES environment variable, the problems
10159 # vanish in a puff of smoke.
10160 if test "X${COLLECT_NAMES+set}" != Xset; then
10162 export COLLECT_NAMES
10168 # We use sed instead of cat because bash on DJGPP gets confused if
10169 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10170 # text mode, it properly converts lines to CR/LF. This bash problem
10171 # is reportedly fixed, but why not run on old versions too?
10172 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10174 mv -f "$cfgfile" "$ofile" || \
10175 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10179 # If there is no Makefile yet, we rely on a make rule to execute
10180 # `config.status --recheck' to rerun these tests and create the
10181 # libtool script then.
10182 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10183 if test -f "$ltmain_in"; then
10184 test -f Makefile && make "$ltmain"
10190 ac_cpp='$CPP $CPPFLAGS'
10191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10198 # Check whether --with-tags or --without-tags was given.
10199 if test "${with_tags+set}" = set; then
10200 withval="$with_tags"
10201 tagnames="$withval"
10204 if test -f "$ltmain" && test -n "$tagnames"; then
10205 if test ! -f "${ofile}"; then
10206 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10207 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10210 if test -z "$LTCC"; then
10211 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10212 if test -z "$LTCC"; then
10213 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10214 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10217 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10220 if test -z "$LTCFLAGS"; then
10221 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10224 # Extract list of available tagged configurations in $ofile.
10225 # Note that this assumes the entire list is on one line.
10226 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10229 for tagname in $tagnames; do
10231 # Check whether tagname contains only valid characters
10232 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10234 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10235 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10236 { (exit 1); exit 1; }; }
10240 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10242 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10243 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10244 { (exit 1); exit 1; }; }
10247 # Update the list of available tags.
10248 if test -n "$tagname"; then
10249 echo appending configuration tag \"$tagname\" to $ofile
10253 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10254 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10255 (test "X$CXX" != "Xg++"))) ; then
10257 ac_cpp='$CXXCPP $CPPFLAGS'
10258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10265 archive_cmds_need_lc_CXX=no
10266 allow_undefined_flag_CXX=
10267 always_export_symbols_CXX=no
10268 archive_expsym_cmds_CXX=
10269 export_dynamic_flag_spec_CXX=
10270 hardcode_direct_CXX=no
10271 hardcode_libdir_flag_spec_CXX=
10272 hardcode_libdir_flag_spec_ld_CXX=
10273 hardcode_libdir_separator_CXX=
10274 hardcode_minus_L_CXX=no
10275 hardcode_shlibpath_var_CXX=unsupported
10276 hardcode_automatic_CXX=no
10278 module_expsym_cmds_CXX=
10279 link_all_deplibs_CXX=unknown
10280 old_archive_cmds_CXX=$old_archive_cmds
10281 no_undefined_flag_CXX=
10282 whole_archive_flag_spec_CXX=
10283 enable_shared_with_static_runtimes_CXX=no
10285 # Dependencies to place before and after the object being linked:
10286 predep_objects_CXX=
10287 postdep_objects_CXX=
10290 compiler_lib_search_path_CXX=
10292 # Source file extension for C++ test sources.
10295 # Object file extension for compiled C++ test sources.
10299 # Code to be used in simple compile tests
10300 lt_simple_compile_test_code="int some_variable = 0;\n"
10302 # Code to be used in simple link tests
10303 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10307 # If no C compiler was specified, use CC.
10310 # If no C compiler flags were specified, use CFLAGS.
10311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10313 # Allow CC to be a program name with arguments.
10317 # save warnings/boilerplate of simple test code
10318 ac_outfile=conftest.$ac_objext
10319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10321 _lt_compiler_boilerplate=`cat conftest.err`
10324 ac_outfile=conftest.$ac_objext
10325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10327 _lt_linker_boilerplate=`cat conftest.err`
10331 # Allow CC to be a program name with arguments.
10336 lt_save_with_gnu_ld=$with_gnu_ld
10337 lt_save_path_LD=$lt_cv_path_LD
10338 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10339 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10341 $as_unset lt_cv_prog_gnu_ld
10343 if test -n "${lt_cv_path_LDCXX+set}"; then
10344 lt_cv_path_LD=$lt_cv_path_LDCXX
10346 $as_unset lt_cv_path_LD
10348 test -z "${LDCXX+set}" || LD=$LDCXX
10352 for cc_temp in $compiler""; do
10354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10363 # We don't want -fno-exception wen compiling C++ code, so set the
10364 # no_builtin_flag separately
10365 if test "$GXX" = yes; then
10366 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10368 lt_prog_compiler_no_builtin_flag_CXX=
10371 if test "$GXX" = yes; then
10372 # Set up default GNU C++ configuration
10375 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10376 if test "${with_gnu_ld+set}" = set; then
10377 withval="$with_gnu_ld"
10378 test "$withval" = no || with_gnu_ld=yes
10383 if test "$GCC" = yes; then
10384 # Check if gcc -print-prog-name=ld gives a path.
10385 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10386 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10389 # gcc leaves a trailing carriage return which upsets mingw
10390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10395 # Accept absolute paths.
10397 re_direlt='/[^/][^/]*/\.\./'
10398 # Canonicalize the pathname of ld
10399 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10400 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10401 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10403 test -z "$LD" && LD="$ac_prog"
10406 # If it fails, then pretend we aren't using GCC.
10410 # If it is relative, then search for the first ld in PATH.
10411 with_gnu_ld=unknown
10414 elif test "$with_gnu_ld" = yes; then
10415 echo "$as_me:$LINENO: checking for GNU ld" >&5
10416 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10418 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10419 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10421 if test "${lt_cv_path_LD+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 if test -z "$LD"; then
10425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10426 for ac_dir in $PATH; do
10428 test -z "$ac_dir" && ac_dir=.
10429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10430 lt_cv_path_LD="$ac_dir/$ac_prog"
10431 # Check to see if the program is GNU ld. I'd rather use --version,
10432 # but apparently some variants of GNU ld only accept -v.
10433 # Break only if it was the GNU/non-GNU ld that we prefer.
10434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10435 *GNU* | *'with BFD'*)
10436 test "$with_gnu_ld" != no && break
10439 test "$with_gnu_ld" != yes && break
10446 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10450 LD="$lt_cv_path_LD"
10451 if test -n "$LD"; then
10452 echo "$as_me:$LINENO: result: $LD" >&5
10453 echo "${ECHO_T}$LD" >&6
10455 echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10458 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10459 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10460 { (exit 1); exit 1; }; }
10461 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10462 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10463 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10467 case `$LD -v 2>&1 </dev/null` in
10468 *GNU* | *'with BFD'*)
10469 lt_cv_prog_gnu_ld=yes
10472 lt_cv_prog_gnu_ld=no
10476 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10477 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10478 with_gnu_ld=$lt_cv_prog_gnu_ld
10482 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10483 # archiving commands below assume that GNU ld is being used.
10484 if test "$with_gnu_ld" = yes; then
10485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486 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'
10488 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10491 # If archive_cmds runs LD, not CC, wlarc should be empty
10492 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10493 # investigate it a little bit more. (MM)
10496 # ancient GNU ld didn't support --whole-archive et. al.
10497 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10498 grep 'no-whole-archive' > /dev/null; then
10499 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10501 whole_archive_flag_spec_CXX=
10507 # A generic and very simple default shared library creation
10508 # command for GNU C++ for the case where it uses the native
10509 # linker, instead of GNU ld. If possible, this setting should
10510 # overridden to take advantage of the native linker features on
10511 # the platform it is being used on.
10512 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10515 # Commands to make compiler produce verbose output that lists
10516 # what "hidden" libraries, object files and flags are used when
10517 # linking a shared library.
10518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10526 # PORTME: fill in a description of your system's C++ link characteristics
10527 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10528 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10532 # FIXME: insert proper C++ library support
10536 if test "$host_cpu" = ia64; then
10537 # On IA64, the linker does run time linking by default, so we don't
10538 # have to do anything special.
10539 aix_use_runtimelinking=no
10540 exp_sym_flag='-Bexport'
10543 aix_use_runtimelinking=no
10545 # Test if we are trying to use run time linking or normal
10546 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10547 # need to do runtime linking.
10548 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10549 for ld_flag in $LDFLAGS; do
10552 aix_use_runtimelinking=yes
10560 exp_sym_flag='-bexport'
10561 no_entry_flag='-bnoentry'
10564 # When large executables or shared objects are built, AIX ld can
10565 # have problems creating the table of contents. If linking a library
10566 # or program results in "error TOC overflow" add -mminimal-toc to
10567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10570 archive_cmds_CXX=''
10571 hardcode_direct_CXX=yes
10572 hardcode_libdir_separator_CXX=':'
10573 link_all_deplibs_CXX=yes
10575 if test "$GXX" = yes; then
10576 case $host_os in aix4.[012]|aix4.[012].*)
10577 # We only want to do this on AIX 4.2 and lower, the check
10578 # below for broken collect2 doesn't work under 4.3+
10579 collect2name=`${CC} -print-prog-name=collect2`
10580 if test -f "$collect2name" && \
10581 strings "$collect2name" | grep resolve_lib_name >/dev/null
10583 # We have reworked collect2
10584 hardcode_direct_CXX=yes
10586 # We have old collect2
10587 hardcode_direct_CXX=unsupported
10588 # It fails to find uninstalled libraries when the uninstalled
10589 # path is not listed in the libpath. Setting hardcode_minus_L
10590 # to unsupported forces relinking
10591 hardcode_minus_L_CXX=yes
10592 hardcode_libdir_flag_spec_CXX='-L$libdir'
10593 hardcode_libdir_separator_CXX=
10597 shared_flag='-shared'
10598 if test "$aix_use_runtimelinking" = yes; then
10599 shared_flag="$shared_flag "'${wl}-G'
10603 if test "$host_cpu" = ia64; then
10604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10605 # chokes on -Wl,-G. The following line is correct:
10608 if test "$aix_use_runtimelinking" = yes; then
10609 shared_flag='${wl}-G'
10611 shared_flag='${wl}-bM:SRE'
10616 # It seems that -bexpall does not export symbols beginning with
10617 # underscore (_), so it is better to generate a list of symbols to export.
10618 always_export_symbols_CXX=yes
10619 if test "$aix_use_runtimelinking" = yes; then
10620 # Warning - without using the other runtime loading flags (-brtl),
10621 # -berok will link without error, but may produce a broken library.
10622 allow_undefined_flag_CXX='-berok'
10623 # Determine the default libpath from the value encoded in an empty executable.
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_cxx_werror_flag"
10649 || test ! -s conftest.err'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try='test -s conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10664 # Check for a 64-bit object if we didn't find anything.
10665 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10672 rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10676 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10678 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"
10680 if test "$host_cpu" = ia64; then
10681 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10682 allow_undefined_flag_CXX="-z nodefs"
10683 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"
10685 # Determine the default libpath from the value encoded in an empty executable.
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_cxx_werror_flag"
10711 || test ! -s conftest.err'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; } &&
10717 { ac_try='test -s conftest$ac_exeext'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10726 # Check for a 64-bit object if we didn't find anything.
10727 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10734 rm -f conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10739 # Warning - without using the other run time loading flags,
10740 # -berok will link without error, but may produce a broken library.
10741 no_undefined_flag_CXX=' ${wl}-bernotok'
10742 allow_undefined_flag_CXX=' ${wl}-berok'
10743 # Exported symbols can be pulled into shared objects from archives
10744 whole_archive_flag_spec_CXX='$convenience'
10745 archive_cmds_need_lc_CXX=yes
10746 # This is similar to how AIX traditionally builds its shared libraries.
10747 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'
10753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10754 allow_undefined_flag_CXX=unsupported
10755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10756 # support --undefined. This deserves some investigation. FIXME
10757 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10764 case $cc_basename in
10766 # FIXME: insert proper C++ library support
10772 cygwin* | mingw* | pw32*)
10773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10774 # as there is no search path for DLLs.
10775 hardcode_libdir_flag_spec_CXX='-L$libdir'
10776 allow_undefined_flag_CXX=unsupported
10777 always_export_symbols_CXX=no
10778 enable_shared_with_static_runtimes_CXX=yes
10780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10781 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'
10782 # If the export-symbols file already is a .def file (1st line
10783 # is EXPORTS), use it as is; otherwise, prepend...
10784 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10785 cp $export_symbols $output_objdir/$soname.def;
10787 echo EXPORTS > $output_objdir/$soname.def;
10788 cat $export_symbols >> $output_objdir/$soname.def;
10790 $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'
10795 darwin* | rhapsody*)
10797 rhapsody* | darwin1.[012])
10798 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10802 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10804 case ${MACOSX_DEPLOYMENT_TARGET} in
10806 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10809 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10815 archive_cmds_need_lc_CXX=no
10816 hardcode_direct_CXX=no
10817 hardcode_automatic_CXX=yes
10818 hardcode_shlibpath_var_CXX=unsupported
10819 whole_archive_flag_spec_CXX=''
10820 link_all_deplibs_CXX=yes
10822 if test "$GXX" = yes ; then
10823 lt_int_apple_cc_single_mod=no
10824 output_verbose_link_cmd='echo'
10825 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10826 lt_int_apple_cc_single_mod=yes
10828 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10829 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10831 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'
10833 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10834 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10835 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10836 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10838 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10840 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}'
10842 case $cc_basename in
10844 output_verbose_link_cmd='echo'
10845 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10846 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10847 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10848 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10849 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}'
10859 case $cc_basename in
10861 # FIXME: insert proper C++ library support
10865 # Green Hills C++ Compiler
10866 # FIXME: insert proper C++ library support
10870 # FIXME: insert proper C++ library support
10876 # C++ shared libraries reported to be fairly broken before switch to ELF
10880 archive_cmds_need_lc_CXX=no
10882 freebsd* | kfreebsd*-gnu | dragonfly*)
10883 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10891 hardcode_libdir_separator_CXX=:
10892 export_dynamic_flag_spec_CXX='${wl}-E'
10893 hardcode_direct_CXX=yes
10894 hardcode_minus_L_CXX=yes # Not in the search PATH,
10895 # but as the default
10896 # location of the library.
10898 case $cc_basename in
10900 # FIXME: insert proper C++ library support
10904 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'
10905 # Commands to make compiler produce verbose output that lists
10906 # what "hidden" libraries, object files and flags are used when
10907 # linking a shared library.
10909 # There doesn't appear to be a way to prevent this compiler from
10910 # explicitly linking system object files so we need to strip them
10911 # from the output so that they don't get included in the library
10913 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'
10916 if test "$GXX" = yes; then
10917 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'
10919 # FIXME: insert proper C++ library support
10926 if test $with_gnu_ld = no; then
10927 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10928 hardcode_libdir_separator_CXX=:
10932 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10935 export_dynamic_flag_spec_CXX='${wl}-E'
10941 hardcode_direct_CXX=no
10942 hardcode_shlibpath_var_CXX=no
10945 hardcode_direct_CXX=yes
10946 hardcode_minus_L_CXX=yes # Not in the search PATH,
10947 # but as the default
10948 # location of the library.
10952 case $cc_basename in
10954 # FIXME: insert proper C++ library support
10960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10963 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10966 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10969 # Commands to make compiler produce verbose output that lists
10970 # what "hidden" libraries, object files and flags are used when
10971 # linking a shared library.
10973 # There doesn't appear to be a way to prevent this compiler from
10974 # explicitly linking system object files so we need to strip them
10975 # from the output so that they don't get included in the library
10977 output_verbose_link_cmd='templist=`($CC -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'
10980 if test "$GXX" = yes; then
10981 if test $with_gnu_ld = no; then
10984 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10987 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10990 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'
10995 # FIXME: insert proper C++ library support
11002 hardcode_direct_CXX=no
11003 hardcode_shlibpath_var_CXX=no
11004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11005 export_dynamic_flag_spec_CXX='${wl}-E'
11006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11007 # Instead, shared libraries are loaded at an image base (0x10000000 by
11008 # default) and relocated if they conflict, which is a slow very memory
11009 # consuming and fragmenting process. To avoid this, we pick a random,
11010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11012 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'
11013 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'
11016 case $cc_basename in
11019 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'
11021 # Archives containing C++ object files must be created using
11022 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11023 # necessary to make sure instantiated templates are included
11025 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11028 if test "$GXX" = yes; then
11029 if test "$with_gnu_ld" = no; then
11030 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'
11032 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'
11035 link_all_deplibs_CXX=yes
11038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11039 hardcode_libdir_separator_CXX=:
11042 case $cc_basename in
11044 # Kuck and Associates, Inc. (KAI) C++ Compiler
11046 # KCC will only create a shared library if the output file
11047 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11048 # to its proper name (with version) after linking.
11049 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'
11050 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'
11051 # Commands to make compiler produce verbose output that lists
11052 # what "hidden" libraries, object files and flags are used when
11053 # linking a shared library.
11055 # There doesn't appear to be a way to prevent this compiler from
11056 # explicitly linking system object files so we need to strip them
11057 # from the output so that they don't get included in the library
11059 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'
11061 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11064 # Archives containing C++ object files must be created using
11065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11071 # version 8.0 and above of icpc choke on multiply defined symbols
11072 # if we add $predep_objects and $postdep_objects, however 7.1 and
11073 # earlier do not add the objects themselves.
11074 case `$CC -V 2>&1` in
11076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11077 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'
11079 *) # Version 8.0 or newer
11082 ia64*) tmp_idyn=' -i_dynamic';;
11084 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11085 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'
11088 archive_cmds_need_lc_CXX=no
11089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11091 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11094 # Portland Group C++ compiler
11095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11096 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'
11098 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11100 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'
11104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105 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'
11107 runpath_var=LD_RUN_PATH
11108 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11109 hardcode_libdir_separator_CXX=:
11111 # Commands to make compiler produce verbose output that lists
11112 # what "hidden" libraries, object files and flags are used when
11113 # linking a shared library.
11115 # There doesn't appear to be a way to prevent this compiler from
11116 # explicitly linking system object files so we need to strip them
11117 # from the output so that they don't get included in the library
11119 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'
11124 # FIXME: insert proper C++ library support
11128 # FIXME: insert proper C++ library support
11132 case $cc_basename in
11134 # FIXME: insert proper C++ library support
11138 # FIXME: insert proper C++ library support
11144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11145 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11147 hardcode_libdir_flag_spec_CXX='-R$libdir'
11148 hardcode_direct_CXX=yes
11149 hardcode_shlibpath_var_CXX=no
11151 # Workaround some broken pre-1.5 toolchains
11152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11155 # C++ shared libraries are fairly broken
11159 hardcode_direct_CXX=yes
11160 hardcode_shlibpath_var_CXX=no
11161 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11164 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11165 export_dynamic_flag_spec_CXX='${wl}-E'
11166 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11168 output_verbose_link_cmd='echo'
11171 case $cc_basename in
11173 # Kuck and Associates, Inc. (KAI) C++ Compiler
11175 # KCC will only create a shared library if the output file
11176 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11177 # to its proper name (with version) after linking.
11178 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'
11180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11181 hardcode_libdir_separator_CXX=:
11183 # Archives containing C++ object files must be created using
11184 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11185 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11189 # Rational C++ 2.4.1
11190 # FIXME: insert proper C++ library support
11194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11195 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'
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11198 hardcode_libdir_separator_CXX=:
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11204 # There doesn't appear to be a way to prevent this compiler from
11205 # explicitly linking system object files so we need to strip them
11206 # from the output so that they don't get included in the library
11208 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'
11211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11213 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'
11215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11216 hardcode_libdir_separator_CXX=:
11218 # Commands to make compiler produce verbose output that lists
11219 # what "hidden" libraries, object files and flags are used when
11220 # linking a shared library.
11221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11224 # FIXME: insert proper C++ library support
11231 case $cc_basename in
11233 # Kuck and Associates, Inc. (KAI) C++ Compiler
11235 # KCC will only create a shared library if the output file
11236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11237 # to its proper name (with version) after linking.
11238 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'
11240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11241 hardcode_libdir_separator_CXX=:
11243 # Archives containing C++ object files must be created using
11244 # the KAI C++ compiler.
11245 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11248 # Rational C++ 2.4.1
11249 # FIXME: insert proper C++ library support
11253 allow_undefined_flag_CXX=' -expect_unresolved \*'
11254 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'
11255 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11256 echo "-hidden">> $lib.exp~
11257 $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~
11260 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11261 hardcode_libdir_separator_CXX=:
11263 # Commands to make compiler produce verbose output that lists
11264 # what "hidden" libraries, object files and flags are used when
11265 # linking a shared library.
11267 # There doesn't appear to be a way to prevent this compiler from
11268 # explicitly linking system object files so we need to strip them
11269 # from the output so that they don't get included in the library
11271 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'
11274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11276 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'
11278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11279 hardcode_libdir_separator_CXX=:
11281 # Commands to make compiler produce verbose output that lists
11282 # what "hidden" libraries, object files and flags are used when
11283 # linking a shared library.
11284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11287 # FIXME: insert proper C++ library support
11294 # FIXME: insert proper C++ library support
11298 case $cc_basename in
11301 # FIXME: insert proper C++ library support
11306 # FIXME: insert proper C++ library support
11310 # FIXME: insert proper C++ library support
11316 case $cc_basename in
11318 # Sun C++ 4.2, 5.x and Centerline C++
11319 archive_cmds_need_lc_CXX=yes
11320 no_undefined_flag_CXX=' -zdefs'
11321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11323 $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'
11325 hardcode_libdir_flag_spec_CXX='-R$libdir'
11326 hardcode_shlibpath_var_CXX=no
11328 solaris2.[0-5] | solaris2.[0-5].*) ;;
11330 # The C++ compiler is used as linker so we must use $wl
11331 # flag to pass the commands to the underlying system
11332 # linker. We must also pass each convience library through
11333 # to the system linker between allextract/defaultextract.
11334 # The C++ compiler will combine linker options so we
11335 # cannot just pass the convience library names through
11337 # Supported since Solaris 2.6 (maybe 2.5.1?)
11338 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11341 link_all_deplibs_CXX=yes
11343 output_verbose_link_cmd='echo'
11345 # Archives containing C++ object files must be created using
11346 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11347 # necessary to make sure instantiated templates are included
11349 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11352 # Green Hills C++ Compiler
11353 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11355 # The C++ compiler must be used to create the archive.
11356 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11359 # GNU C++ compiler with Solaris linker
11360 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11361 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11362 if $CC --version | grep -v '^2\.7' > /dev/null; then
11363 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11365 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11367 # Commands to make compiler produce verbose output that lists
11368 # what "hidden" libraries, object files and flags are used when
11369 # linking a shared library.
11370 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11372 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11374 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11376 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11378 # Commands to make compiler produce verbose output that lists
11379 # what "hidden" libraries, object files and flags are used when
11380 # linking a shared library.
11381 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11384 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11390 no_undefined_flag_CXX='${wl}-z,text'
11391 archive_cmds_need_lc_CXX=no
11392 hardcode_shlibpath_var_CXX=no
11393 runpath_var='LD_RUN_PATH'
11395 case $cc_basename in
11397 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 sysv5* | sco3.2v5* | sco5v6*)
11407 # Note: We can NOT use -z defs as we might desire, because we do not
11408 # link with -lc, and that would cause any symbols used from libc to
11409 # always be unresolved, which means just about no library would
11410 # ever link correctly. If we're not using GNU ld we use -z text
11411 # though, which does catch some bad symbols but isn't as heavy-handed
11413 # For security reasons, it is highly recommended that you always
11414 # use absolute paths for naming shared libraries, and exclude the
11415 # DT_RUNPATH tag from executables and libraries. But doing so
11416 # requires that you compile everything twice, which is a pain.
11417 # So that behaviour is only enabled if SCOABSPATH is set to a
11418 # non-empty value in the environment. Most likely only useful for
11419 # creating official distributions of packages.
11420 # This is a hack until libtool officially supports absolute path
11421 # names for shared libraries.
11422 no_undefined_flag_CXX='${wl}-z,text'
11423 allow_undefined_flag_CXX='${wl}-z,nodefs'
11424 archive_cmds_need_lc_CXX=no
11425 hardcode_shlibpath_var_CXX=no
11426 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11427 hardcode_libdir_separator_CXX=':'
11428 link_all_deplibs_CXX=yes
11429 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11430 runpath_var='LD_RUN_PATH'
11432 case $cc_basename in
11434 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11439 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 case $cc_basename in
11446 # NonStop-UX NCC 3.20
11447 # FIXME: insert proper C++ library support
11451 # FIXME: insert proper C++ library support
11457 # FIXME: insert proper C++ library support
11461 # FIXME: insert proper C++ library support
11465 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11466 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11467 test "$ld_shlibs_CXX" = no && can_build_shared=no
11473 cat > conftest.$ac_ext <<EOF
11477 Foo (void) { a = 0; }
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; then
11488 # Parse the compiler output and extract the necessary
11489 # objects, libraries and library flags.
11491 # Sentinel used to keep track of whether or not we are before
11492 # the conftest object file.
11493 pre_test_object_deps_done=no
11495 # The `*' in the case matches for architectures that use `case' in
11496 # $output_verbose_cmd can trigger glob expansion during the loop
11497 # eval without this substitution.
11498 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11500 for p in `eval $output_verbose_link_cmd`; do
11504 # Some compilers place space between "-{L,R}" and the path.
11505 # Remove the space.
11506 if test $p = "-L" \
11507 || test $p = "-R"; then
11514 if test "$pre_test_object_deps_done" = no; then
11517 # Internal compiler library paths should come after those
11518 # provided the user. The postdeps already come after the
11519 # user supplied libs so there is no need to process them.
11520 if test -z "$compiler_lib_search_path_CXX"; then
11521 compiler_lib_search_path_CXX="${prev}${p}"
11523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11526 # The "-l" case would never come before the object being
11527 # linked, so don't bother handling this case.
11530 if test -z "$postdeps_CXX"; then
11531 postdeps_CXX="${prev}${p}"
11533 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11539 # This assumes that the test object file only shows up
11540 # once in the compiler output.
11541 if test "$p" = "conftest.$objext"; then
11542 pre_test_object_deps_done=yes
11546 if test "$pre_test_object_deps_done" = no; then
11547 if test -z "$predep_objects_CXX"; then
11548 predep_objects_CXX="$p"
11550 predep_objects_CXX="$predep_objects_CXX $p"
11553 if test -z "$postdep_objects_CXX"; then
11554 postdep_objects_CXX="$p"
11556 postdep_objects_CXX="$postdep_objects_CXX $p"
11561 *) ;; # Ignore the rest.
11569 echo "libtool.m4: error: problem compiling CXX test program"
11572 $rm -f confest.$objext
11574 # PORTME: override above test on systems where it is broken
11577 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11578 # hack all around it, let's just trust "g++" to DTRT.
11579 predep_objects_CXX=
11580 postdep_objects_CXX=
11585 case $cc_basename in
11587 # Adding this requires a known-good setup of shared libraries for
11588 # Sun compiler versions before 5.6, else PIC objects from an old
11589 # archive will be linked into the output, leading to subtle bugs.
11590 postdeps_CXX='-lCstd -lCrun'
11597 case " $postdeps_CXX " in
11598 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11601 lt_prog_compiler_wl_CXX=
11602 lt_prog_compiler_pic_CXX=
11603 lt_prog_compiler_static_CXX=
11605 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11608 # C++ specific cases for pic, static, wl, etc.
11609 if test "$GXX" = yes; then
11610 lt_prog_compiler_wl_CXX='-Wl,'
11611 lt_prog_compiler_static_CXX='-static'
11615 # All AIX code is PIC.
11616 if test "$host_cpu" = ia64; then
11617 # AIX 5 now supports IA64 processor
11618 lt_prog_compiler_static_CXX='-Bstatic'
11622 # FIXME: we need at least 68020 code to build shared libraries, but
11623 # adding the `-m68020' flag to GCC prevents building anything better,
11625 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11627 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628 # PIC is the default for these OSes.
11630 mingw* | os2* | pw32*)
11631 # This hack is so that the source file can tell whether it is being
11632 # built for inclusion in a dll (and should export symbols for example).
11633 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11635 darwin* | rhapsody*)
11636 # PIC is the default on this platform
11637 # Common symbols not allowed in MH_DYLIB files
11638 lt_prog_compiler_pic_CXX='-fno-common'
11641 # DJGPP does not support shared libraries at all
11642 lt_prog_compiler_pic_CXX=
11645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11646 # Instead, we relocate shared libraries at runtime.
11649 if test -d /usr/nec; then
11650 lt_prog_compiler_pic_CXX=-Kconform_pic
11654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11655 # not for PA HP-UX.
11660 lt_prog_compiler_pic_CXX='-fPIC'
11665 lt_prog_compiler_pic_CXX='-fPIC'
11671 # All AIX code is PIC.
11672 if test "$host_cpu" = ia64; then
11673 # AIX 5 now supports IA64 processor
11674 lt_prog_compiler_static_CXX='-Bstatic'
11676 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11680 case $cc_basename in
11682 # Green Hills C++ Compiler
11683 # _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"
11688 # PIC is the default on this platform
11689 # Common symbols not allowed in MH_DYLIB files
11690 case $cc_basename in
11692 lt_prog_compiler_pic_CXX='-qnocommon'
11693 lt_prog_compiler_wl_CXX='-Wl,'
11698 case $cc_basename in
11700 lt_prog_compiler_pic_CXX='-KPIC'
11703 # Green Hills C++ Compiler
11704 lt_prog_compiler_pic_CXX='-pic'
11710 freebsd* | kfreebsd*-gnu | dragonfly*)
11711 # FreeBSD uses GNU C++
11713 hpux9* | hpux10* | hpux11*)
11714 case $cc_basename in
11716 lt_prog_compiler_wl_CXX='-Wl,'
11717 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11718 if test "$host_cpu" != ia64; then
11719 lt_prog_compiler_pic_CXX='+Z'
11723 lt_prog_compiler_wl_CXX='-Wl,'
11724 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11730 lt_prog_compiler_pic_CXX='+Z'
11739 # This is c89, which is MS Visual C++ (no shared libs)
11740 # Anyone wants to do a port?
11742 irix5* | irix6* | nonstopux*)
11743 case $cc_basename in
11745 lt_prog_compiler_wl_CXX='-Wl,'
11746 lt_prog_compiler_static_CXX='-non_shared'
11747 # CC pic flag -KPIC is the default.
11754 case $cc_basename in
11757 lt_prog_compiler_wl_CXX='--backend -Wl,'
11758 lt_prog_compiler_pic_CXX='-fPIC'
11762 lt_prog_compiler_wl_CXX='-Wl,'
11763 lt_prog_compiler_pic_CXX='-KPIC'
11764 lt_prog_compiler_static_CXX='-static'
11767 # Portland Group C++ compiler.
11768 lt_prog_compiler_wl_CXX='-Wl,'
11769 lt_prog_compiler_pic_CXX='-fpic'
11770 lt_prog_compiler_static_CXX='-Bstatic'
11774 # Make sure the PIC flag is empty. It appears that all Alpha
11775 # Linux and Compaq Tru64 Unix objects are PIC.
11776 lt_prog_compiler_pic_CXX=
11777 lt_prog_compiler_static_CXX='-non_shared'
11788 case $cc_basename in
11790 lt_prog_compiler_pic_CXX='-W c,exportall'
11798 osf3* | osf4* | osf5*)
11799 case $cc_basename in
11801 lt_prog_compiler_wl_CXX='--backend -Wl,'
11804 # Rational C++ 2.4.1
11805 lt_prog_compiler_pic_CXX='-pic'
11808 # Digital/Compaq C++
11809 lt_prog_compiler_wl_CXX='-Wl,'
11810 # Make sure the PIC flag is empty. It appears that all Alpha
11811 # Linux and Compaq Tru64 Unix objects are PIC.
11812 lt_prog_compiler_pic_CXX=
11813 lt_prog_compiler_static_CXX='-non_shared'
11822 case $cc_basename in
11824 # Sun C++ 4.2, 5.x and Centerline C++
11825 lt_prog_compiler_pic_CXX='-KPIC'
11826 lt_prog_compiler_static_CXX='-Bstatic'
11827 lt_prog_compiler_wl_CXX='-Qoption ld '
11830 # Green Hills C++ Compiler
11831 lt_prog_compiler_pic_CXX='-PIC'
11838 case $cc_basename in
11841 lt_prog_compiler_pic_CXX='-pic'
11842 lt_prog_compiler_static_CXX='-Bstatic'
11846 lt_prog_compiler_pic_CXX='-pic'
11853 case $cc_basename in
11855 # NonStop-UX NCC 3.20
11856 lt_prog_compiler_pic_CXX='-KPIC'
11862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11863 case $cc_basename in
11865 lt_prog_compiler_wl_CXX='-Wl,'
11866 lt_prog_compiler_pic_CXX='-KPIC'
11867 lt_prog_compiler_static_CXX='-Bstatic'
11874 lt_prog_compiler_can_build_shared_CXX=no
11879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11880 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11883 # Check to make sure the PIC flag actually works.
11885 if test -n "$lt_prog_compiler_pic_CXX"; then
11887 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11889 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 lt_prog_compiler_pic_works_CXX=no
11893 ac_outfile=conftest.$ac_objext
11894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11895 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11896 # Insert the option either (1) after the last *FLAGS variable, or
11897 # (2) before a word containing "conftest.", or (3) at the end.
11898 # Note that $ac_compile itself does not contain backslashes and begins
11899 # with a dollar sign (not a hyphen), so the echo should work correctly.
11900 # The option is referenced via a variable to avoid confusing sed.
11901 lt_compile=`echo "$ac_compile" | $SED \
11902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11904 -e 's:$: $lt_compiler_flag:'`
11905 (eval echo "\"\$as_me:11905: $lt_compile\"" >&5)
11906 (eval "$lt_compile" 2>conftest.err)
11908 cat conftest.err >&5
11909 echo "$as_me:11909: \$? = $ac_status" >&5
11910 if (exit $ac_status) && test -s "$ac_outfile"; then
11911 # The compiler can only warn and ignore the option if not recognized
11912 # So say no if there are warnings other than the usual output.
11913 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11916 lt_prog_compiler_pic_works_CXX=yes
11922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11923 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11925 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11926 case $lt_prog_compiler_pic_CXX in
11928 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11931 lt_prog_compiler_pic_CXX=
11932 lt_prog_compiler_can_build_shared_CXX=no
11937 # For platforms which do not support PIC, -DPIC is meaningless:
11939 lt_prog_compiler_pic_CXX=
11942 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11947 # Check to make sure the static flag actually works.
11949 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11950 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11951 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11952 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 lt_prog_compiler_static_works_CXX=no
11956 save_LDFLAGS="$LDFLAGS"
11957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11958 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11960 # The linker can only warn and ignore the option if not recognized
11961 # So say no if there are warnings
11962 if test -s conftest.err; then
11963 # Append any errors to the config.log.
11964 cat conftest.err 1>&5
11965 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11967 if diff conftest.exp conftest.er2 >/dev/null; then
11968 lt_prog_compiler_static_works_CXX=yes
11971 lt_prog_compiler_static_works_CXX=yes
11975 LDFLAGS="$save_LDFLAGS"
11978 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11979 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11981 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11984 lt_prog_compiler_static_CXX=
11988 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11989 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11990 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 lt_cv_prog_compiler_c_o_CXX=no
11994 $rm -r conftest 2>/dev/null
11998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12000 lt_compiler_flag="-o out/conftest2.$ac_objext"
12001 # Insert the option either (1) after the last *FLAGS variable, or
12002 # (2) before a word containing "conftest.", or (3) at the end.
12003 # Note that $ac_compile itself does not contain backslashes and begins
12004 # with a dollar sign (not a hyphen), so the echo should work correctly.
12005 lt_compile=`echo "$ac_compile" | $SED \
12006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008 -e 's:$: $lt_compiler_flag:'`
12009 (eval echo "\"\$as_me:12009: $lt_compile\"" >&5)
12010 (eval "$lt_compile" 2>out/conftest.err)
12012 cat out/conftest.err >&5
12013 echo "$as_me:12013: \$? = $ac_status" >&5
12014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12016 # The compiler can only warn and ignore the option if not recognized
12017 # So say no if there are warnings
12018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12021 lt_cv_prog_compiler_c_o_CXX=yes
12026 # SGI C++ compiler will create directory out/ii_files/ for
12027 # template instantiation
12028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12029 $rm out/* && rmdir out
12035 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12036 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12039 hard_links="nottested"
12040 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12041 # do not overwrite the value of need_locks provided by the user
12042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12043 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12048 ln conftest.a conftest.b 2>&5 || hard_links=no
12049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12050 echo "$as_me:$LINENO: result: $hard_links" >&5
12051 echo "${ECHO_T}$hard_links" >&6
12052 if test "$hard_links" = no; then
12053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12054 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12064 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12067 # If we're using GNU nm, then we don't want the "-C" option.
12068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12069 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12070 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'
12072 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'
12076 export_symbols_cmds_CXX="$ltdll_cmds"
12079 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'
12082 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12086 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12087 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12088 test "$ld_shlibs_CXX" = no && can_build_shared=no
12091 # Do we need to explicitly link libc?
12093 case "x$archive_cmds_need_lc_CXX" in
12095 # Assume -lc should be added
12096 archive_cmds_need_lc_CXX=yes
12098 if test "$enable_shared" = yes && test "$GCC" = yes; then
12099 case $archive_cmds_CXX in
12101 # FIXME: we may have to deal with multi-command sequences.
12104 # Test whether the compiler implicitly links with -lc since on some
12105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12106 # to ld, don't add -lc before -lgcc.
12107 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } 2>conftest.err; then
12119 libobjs=conftest.$ac_objext
12121 wl=$lt_prog_compiler_wl_CXX
12122 pic_flag=$lt_prog_compiler_pic_CXX
12128 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12129 allow_undefined_flag_CXX=
12130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12131 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }
12136 archive_cmds_need_lc_CXX=no
12138 archive_cmds_need_lc_CXX=yes
12140 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12142 cat conftest.err 1>&5
12145 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12146 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12153 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12155 library_names_spec=
12156 libname_spec='lib$name'
12160 postuninstall_cmds=
12164 shlibpath_overrides_runpath=unknown
12166 dynamic_linker="$host_os ld.so"
12167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12168 if test "$GCC" = yes; then
12169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12171 # if the path contains ";" then we assume it to be the separator
12172 # otherwise default to the standard path separator (i.e. ":") - it is
12173 # assumed that no part of a normal pathname contains ";" but that should
12174 # okay in the real world where ";" in dirpaths is itself problematic.
12175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12182 need_lib_prefix=unknown
12183 hardcode_into_libs=no
12185 # when you set need_version to no, make sure it does not cause -set_version
12186 # flags to be left without arguments
12187 need_version=unknown
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12193 shlibpath_var=LIBPATH
12195 # AIX 3 has no versioning support, so we append a major version to the name.
12196 soname_spec='${libname}${release}${shared_ext}$major'
12203 hardcode_into_libs=yes
12204 if test "$host_cpu" = ia64; then
12205 # AIX 5 supports IA64
12206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12207 shlibpath_var=LD_LIBRARY_PATH
12209 # With GCC up to 2.95.x, collect2 would create an import file
12210 # for dependence libraries. The import file would start with
12211 # the line `#! .'. This would cause the generated library to
12212 # depend on `.', always an invalid library. This was fixed in
12213 # development snapshots of GCC prior to 3.0.
12215 aix4 | aix4.[01] | aix4.[01].*)
12216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12221 can_build_shared=no
12225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12226 # soname into executable. Probably we can add versioning support to
12227 # collect2, so additional links can be useful in future.
12228 if test "$aix_use_runtimelinking" = yes; then
12229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12230 # instead of lib<name>.a to let people know that these are not
12231 # typical AIX shared libraries.
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234 # We preserve .a as extension for shared libraries through AIX4.2
12235 # and later when we are not doing run time linking.
12236 library_names_spec='${libname}${release}.a $libname.a'
12237 soname_spec='${libname}${release}${shared_ext}$major'
12239 shlibpath_var=LIBPATH
12244 library_names_spec='$libname.ixlibrary $libname.a'
12245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12246 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'
12250 library_names_spec='${libname}${shared_ext}'
12251 dynamic_linker="$host_os ld.so"
12252 shlibpath_var=LIBRARY_PATH
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259 soname_spec='${libname}${release}${shared_ext}$major'
12260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12264 # the default ld.so.conf also contains /usr/contrib/lib and
12265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12266 # libtool to hard-code these into programs
12269 cygwin* | mingw* | pw32*)
12270 version_type=windows
12275 case $GCC,$host_os in
12276 yes,cygwin* | yes,mingw* | yes,pw32*)
12277 library_names_spec='$libname.dll.a'
12278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12279 postinstall_cmds='base_file=`basename \${file}`~
12280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12281 dldir=$destdir/`dirname \$dlpath`~
12282 test -d \$dldir || mkdir -p \$dldir~
12283 $install_prog $dir/$dlname \$dldir/$dlname~
12284 chmod a+x \$dldir/$dlname'
12285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12286 dlpath=$dir/\$dldll~
12288 shlibpath_overrides_runpath=yes
12292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12297 # MinGW DLLs use traditional 'lib' prefix
12298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12301 # It is most probably a Windows format PATH printed by
12302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12303 # path with ; separators, and with drive letters. We can handle the
12304 # drive letters (cygwin fileutils understands them), so leave them,
12305 # especially as we might pass files found there to a mingw objdump,
12306 # which wouldn't understand a cygwinified path. Ahh.
12307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12313 # pw32 DLLs use 'pw' prefix rather than 'lib'
12314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12323 dynamic_linker='Win32 ld.exe'
12324 # FIXME: first we should search . and the directory the executable is in
12328 darwin* | rhapsody*)
12329 dynamic_linker="$host_os dyld"
12330 version_type=darwin
12333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12334 soname_spec='${libname}${release}${major}$shared_ext'
12335 shlibpath_overrides_runpath=yes
12336 shlibpath_var=DYLD_LIBRARY_PATH
12337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12339 if test "$GCC" = yes; then
12340 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12352 soname_spec='${libname}${release}${shared_ext}$major'
12353 shlibpath_var=LD_LIBRARY_PATH
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=no
12368 hardcode_into_libs=yes
12369 dynamic_linker='GNU ld.so'
12372 freebsd* | dragonfly*)
12373 # DragonFly does not have aout. When/if they implement a new
12374 # versioning mechanism, adjust this.
12375 if test -x /usr/bin/objformat; then
12376 objformat=`/usr/bin/objformat`
12379 freebsd[123]*) objformat=aout ;;
12380 *) objformat=elf ;;
12383 version_type=freebsd-$objformat
12384 case $version_type in
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12395 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12400 freebsd3.[01]* | freebsdelf3.[01]*)
12401 shlibpath_overrides_runpath=yes
12402 hardcode_into_libs=yes
12404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12406 shlibpath_overrides_runpath=no
12407 hardcode_into_libs=yes
12409 freebsd*) # from 4.6 on
12410 shlibpath_overrides_runpath=yes
12411 hardcode_into_libs=yes
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12421 soname_spec='${libname}${release}${shared_ext}$major'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 hardcode_into_libs=yes
12426 hpux9* | hpux10* | hpux11*)
12427 # Give a soname corresponding to the major version so that dld.sl refuses to
12428 # link against other versions.
12435 hardcode_into_libs=yes
12436 dynamic_linker="$host_os dld.so"
12437 shlibpath_var=LD_LIBRARY_PATH
12438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 if test "X$HPUX_IA64_MODE" = X32; then
12442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12450 hardcode_into_libs=yes
12451 dynamic_linker="$host_os dld.sl"
12452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12461 dynamic_linker="$host_os dld.sl"
12462 shlibpath_var=SHLIB_PATH
12463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465 soname_spec='${libname}${release}${shared_ext}$major'
12468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12469 postinstall_cmds='chmod 555 $lib'
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12479 shlibpath_var=LD_LIBRARY_PATH
12480 shlibpath_overrides_runpath=no
12481 hardcode_into_libs=yes
12484 irix5* | irix6* | nonstopux*)
12486 nonstopux*) version_type=nonstopux ;;
12488 if test "$lt_cv_prog_gnu_ld" = yes; then
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12499 irix5* | nonstopux*)
12500 libsuff= shlibsuff=
12503 case $LD in # libtool.m4 will add one of these switches to LD
12504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12505 libsuff= shlibsuff= libmagic=32-bit;;
12506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12507 libsuff=32 shlibsuff=N32 libmagic=N32;;
12508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12510 *) libsuff= shlibsuff= libmagic=never-match;;
12514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12515 shlibpath_overrides_runpath=no
12516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12518 hardcode_into_libs=yes
12521 # No shared lib support for Linux oldld, aout, or coff.
12522 linux*oldld* | linux*aout* | linux*coff*)
12526 # This must be Linux ELF.
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 shlibpath_overrides_runpath=no
12536 # This implies no fast_install, which is unacceptable.
12537 # Some rework will be needed to allow for fast_install
12538 # before this can be enabled.
12539 hardcode_into_libs=yes
12541 # find out which ABI we are using
12543 case "$host_cpu" in
12544 x86_64*|s390x*|powerpc64*)
12545 echo '#line 12545 "configure"' > conftest.$ac_ext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; then
12551 case `/usr/bin/file conftest.$ac_objext` in
12554 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12562 # Append ld.so.conf contents to the search path
12563 if test -f /etc/ld.so.conf; then
12564 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12565 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12568 # We used to test for /lib/ld.so.1 and disable shared libraries on
12569 # powerpc, because MkLinux only supported shared libraries with the
12570 # GNU dynamic linker. Since this was broken with cross compilers,
12571 # most powerpc-linux boxes support dynamic linking these days and
12572 # people can always --disable-shared, the test was removed, and we
12573 # assume the GNU/Linux dynamic linker is in use.
12574 dynamic_linker='GNU/Linux ld.so'
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=no
12585 hardcode_into_libs=yes
12586 dynamic_linker='GNU ld.so'
12593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12596 dynamic_linker='NetBSD (a.out) ld.so'
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599 soname_spec='${libname}${release}${shared_ext}$major'
12600 dynamic_linker='NetBSD ld.elf_so'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 shlibpath_overrides_runpath=yes
12604 hardcode_into_libs=yes
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes
12618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12619 soname_spec='${libname}${release}${shared_ext}$major'
12620 shlibpath_var=LD_LIBRARY_PATH
12621 shlibpath_overrides_runpath=yes
12626 sys_lib_dlsearch_path_spec="/usr/lib"
12628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12631 *) need_version=no ;;
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12638 openbsd2.[89] | openbsd2.[89].*)
12639 shlibpath_overrides_runpath=no
12642 shlibpath_overrides_runpath=yes
12646 shlibpath_overrides_runpath=yes
12651 libname_spec='$name'
12654 library_names_spec='$libname${shared_ext} $libname.a'
12655 dynamic_linker='OS/2 ld.exe'
12656 shlibpath_var=LIBPATH
12659 osf3* | osf4* | osf5*)
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665 shlibpath_var=LD_LIBRARY_PATH
12666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 shlibpath_var=LD_LIBRARY_PATH
12677 shlibpath_overrides_runpath=yes
12678 hardcode_into_libs=yes
12679 # ldd complains unless libraries are executable
12680 postinstall_cmds='chmod +x $lib'
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes
12689 if test "$with_gnu_ld" = yes; then
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 shlibpath_var=LD_LIBRARY_PATH
12700 case $host_vendor in
12702 shlibpath_overrides_runpath=no
12704 export_dynamic_flag_spec='${wl}-Blargedynsym'
12705 runpath_var=LD_RUN_PATH
12713 shlibpath_overrides_runpath=no
12714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12720 if test -d /usr/nec ;then
12722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12723 soname_spec='$libname${shared_ext}.$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12729 version_type=freebsd-elf
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 hardcode_into_libs=yes
12736 if test "$with_gnu_ld" = yes; then
12737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12738 shlibpath_overrides_runpath=no
12740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12741 shlibpath_overrides_runpath=yes
12744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12748 sys_lib_dlsearch_path_spec='/usr/lib'
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12762 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12763 echo "${ECHO_T}$dynamic_linker" >&6
12764 test "$dynamic_linker" = no && can_build_shared=no
12766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12767 if test "$GCC" = yes; then
12768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12773 hardcode_action_CXX=
12774 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12775 test -n "$runpath_var_CXX" || \
12776 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12778 # We can hardcode non-existant directories.
12779 if test "$hardcode_direct_CXX" != no &&
12780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12781 # have to relink, otherwise we might link with an installed library
12782 # when we should be linking with a yet-to-be-installed one
12783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12784 test "$hardcode_minus_L_CXX" != no; then
12785 # Linking always hardcodes the temporary library directory.
12786 hardcode_action_CXX=relink
12788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12789 hardcode_action_CXX=immediate
12792 # We cannot hardcode anything, or else we can only hardcode existing
12794 hardcode_action_CXX=unsupported
12796 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12797 echo "${ECHO_T}$hardcode_action_CXX" >&6
12799 if test "$hardcode_action_CXX" = relink; then
12800 # Fast installation is not supported
12801 enable_fast_install=no
12802 elif test "$shlibpath_overrides_runpath" = yes ||
12803 test "$enable_shared" = no; then
12804 # Fast installation is not necessary
12805 enable_fast_install=needless
12809 # The else clause should only fire when bootstrapping the
12810 # libtool distribution, otherwise you forgot to ship ltmain.sh
12811 # with your package, and you will get complaints that there are
12812 # no rules to generate ltmain.sh.
12813 if test -f "$ltmain"; then
12814 # See if we are running on zsh, and set the options which allow our commands through
12815 # without removal of \ escapes.
12816 if test -n "${ZSH_VERSION+set}" ; then
12817 setopt NO_GLOB_SUBST
12819 # Now quote all the things that may contain metacharacters while being
12820 # careful not to overquote the AC_SUBSTed values. We take copies of the
12821 # variables and quote the copies for generation of the libtool script.
12822 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12824 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12825 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12826 deplibs_check_method reload_flag reload_cmds need_locks \
12827 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12828 lt_cv_sys_global_symbol_to_c_name_address \
12829 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12830 old_postinstall_cmds old_postuninstall_cmds \
12834 lt_prog_compiler_wl_CXX \
12835 lt_prog_compiler_pic_CXX \
12836 lt_prog_compiler_static_CXX \
12837 lt_prog_compiler_no_builtin_flag_CXX \
12838 export_dynamic_flag_spec_CXX \
12839 thread_safe_flag_spec_CXX \
12840 whole_archive_flag_spec_CXX \
12841 enable_shared_with_static_runtimes_CXX \
12842 old_archive_cmds_CXX \
12843 old_archive_from_new_cmds_CXX \
12844 predep_objects_CXX \
12845 postdep_objects_CXX \
12848 compiler_lib_search_path_CXX \
12850 archive_expsym_cmds_CXX \
12851 postinstall_cmds_CXX \
12852 postuninstall_cmds_CXX \
12853 old_archive_from_expsyms_cmds_CXX \
12854 allow_undefined_flag_CXX \
12855 no_undefined_flag_CXX \
12856 export_symbols_cmds_CXX \
12857 hardcode_libdir_flag_spec_CXX \
12858 hardcode_libdir_flag_spec_ld_CXX \
12859 hardcode_libdir_separator_CXX \
12860 hardcode_automatic_CXX \
12862 module_expsym_cmds_CXX \
12863 lt_cv_prog_compiler_c_o_CXX \
12864 exclude_expsyms_CXX \
12865 include_expsyms_CXX; do
12868 old_archive_cmds_CXX | \
12869 old_archive_from_new_cmds_CXX | \
12870 archive_cmds_CXX | \
12871 archive_expsym_cmds_CXX | \
12872 module_cmds_CXX | \
12873 module_expsym_cmds_CXX | \
12874 old_archive_from_expsyms_cmds_CXX | \
12875 export_symbols_cmds_CXX | \
12876 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12877 postinstall_cmds | postuninstall_cmds | \
12878 old_postinstall_cmds | old_postuninstall_cmds | \
12879 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12880 # Double-quote double-evaled strings.
12881 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12890 *'\$0 --fallback-echo"')
12891 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12897 cat <<__EOF__ >> "$cfgfile"
12898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12902 # Shell to use when invoking shell scripts.
12905 # Whether or not to build shared libraries.
12906 build_libtool_libs=$enable_shared
12908 # Whether or not to build static libraries.
12909 build_old_libs=$enable_static
12911 # Whether or not to add -lc for building shared libraries.
12912 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12914 # Whether or not to disallow shared libs when runtime libs are static
12915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12917 # Whether or not to optimize for fast installation.
12918 fast_install=$enable_fast_install
12921 host_alias=$host_alias
12925 # The build system.
12926 build_alias=$build_alias
12930 # An echo program that does not interpret backslashes.
12935 AR_FLAGS=$lt_AR_FLAGS
12940 # LTCC compiler flags.
12941 LTCFLAGS=$lt_LTCFLAGS
12943 # A language-specific compiler.
12944 CC=$lt_compiler_CXX
12946 # Is the compiler the GNU C compiler?
12952 # The linker used to build libraries.
12955 # Whether we need hard or soft links.
12958 # A BSD-compatible nm program.
12961 # A symbol stripping program
12964 # Used to examine libraries when file_magic_cmd begins "file"
12965 MAGIC_CMD=$MAGIC_CMD
12967 # Used on cygwin: DLL creation program.
12970 # Used on cygwin: object dumper.
12973 # Used on cygwin: assembler.
12976 # The name of the directory that contains temporary libtool files.
12979 # How to create reloadable object files.
12980 reload_flag=$lt_reload_flag
12981 reload_cmds=$lt_reload_cmds
12983 # How to pass a linker flag through the compiler.
12984 wl=$lt_lt_prog_compiler_wl_CXX
12986 # Object file suffix (normally "o").
12987 objext="$ac_objext"
12989 # Old archive suffix (normally "a").
12992 # Shared library suffix (normally ".so").
12993 shrext_cmds='$shrext_cmds'
12995 # Executable file suffix (normally "").
12998 # Additional compiler flags for building library objects.
12999 pic_flag=$lt_lt_prog_compiler_pic_CXX
13002 # What is the maximum length of a command?
13003 max_cmd_len=$lt_cv_sys_max_cmd_len
13005 # Does compiler simultaneously support -c and -o options?
13006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13008 # Must we lock files when doing compilation?
13009 need_locks=$lt_need_locks
13011 # Do we need the lib prefix for modules?
13012 need_lib_prefix=$need_lib_prefix
13014 # Do we need a version for libraries?
13015 need_version=$need_version
13017 # Whether dlopen is supported.
13018 dlopen_support=$enable_dlopen
13020 # Whether dlopen of programs is supported.
13021 dlopen_self=$enable_dlopen_self
13023 # Whether dlopen of statically linked programs is supported.
13024 dlopen_self_static=$enable_dlopen_self_static
13026 # Compiler flag to prevent dynamic linking.
13027 link_static_flag=$lt_lt_prog_compiler_static_CXX
13029 # Compiler flag to turn off builtin functions.
13030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13032 # Compiler flag to allow reflexive dlopens.
13033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13035 # Compiler flag to generate shared objects directly from archives.
13036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13038 # Compiler flag to generate thread-safe objects.
13039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13041 # Library versioning type.
13042 version_type=$version_type
13044 # Format of library name prefix.
13045 libname_spec=$lt_libname_spec
13047 # List of archive names. First name is the real one, the rest are links.
13048 # The last name is the one that the linker finds with -lNAME.
13049 library_names_spec=$lt_library_names_spec
13051 # The coded name of the library, if different from the real name.
13052 soname_spec=$lt_soname_spec
13054 # Commands used to build and install an old-style archive.
13056 old_archive_cmds=$lt_old_archive_cmds_CXX
13057 old_postinstall_cmds=$lt_old_postinstall_cmds
13058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13060 # Create an old-style archive from a shared archive.
13061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13063 # Create a temporary old-style archive to link instead of a shared archive.
13064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13066 # Commands used to build and install a shared archive.
13067 archive_cmds=$lt_archive_cmds_CXX
13068 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13069 postinstall_cmds=$lt_postinstall_cmds
13070 postuninstall_cmds=$lt_postuninstall_cmds
13072 # Commands used to build a loadable module (assumed same as above if empty)
13073 module_cmds=$lt_module_cmds_CXX
13074 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13076 # Commands to strip libraries.
13077 old_striplib=$lt_old_striplib
13078 striplib=$lt_striplib
13080 # Dependencies to place before the objects being linked to create a
13082 predep_objects=$lt_predep_objects_CXX
13084 # Dependencies to place after the objects being linked to create a
13086 postdep_objects=$lt_postdep_objects_CXX
13088 # Dependencies to place before the objects being linked to create a
13090 predeps=$lt_predeps_CXX
13092 # Dependencies to place after the objects being linked to create a
13094 postdeps=$lt_postdeps_CXX
13096 # The library search path used internally by the compiler when linking
13097 # a shared library.
13098 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13100 # Method to check whether dependent libraries are shared objects.
13101 deplibs_check_method=$lt_deplibs_check_method
13103 # Command to use when deplibs_check_method == file_magic.
13104 file_magic_cmd=$lt_file_magic_cmd
13106 # Flag that allows shared libraries with undefined symbols to be built.
13107 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13109 # Flag that forces no undefined symbols.
13110 no_undefined_flag=$lt_no_undefined_flag_CXX
13112 # Commands used to finish a libtool library installation in a directory.
13113 finish_cmds=$lt_finish_cmds
13115 # Same as above, but a single script fragment to be evaled but not shown.
13116 finish_eval=$lt_finish_eval
13118 # Take the output of nm and produce a listing of raw symbols and C names.
13119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13121 # Transform the output of nm in a proper C declaration
13122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13124 # Transform the output of nm in a C name address pair
13125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13127 # This is the shared library runtime path variable.
13128 runpath_var=$runpath_var
13130 # This is the shared library path variable.
13131 shlibpath_var=$shlibpath_var
13133 # Is shlibpath searched before the hard-coded library search path?
13134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13136 # How to hardcode a shared library path into an executable.
13137 hardcode_action=$hardcode_action_CXX
13139 # Whether we should hardcode library paths into libraries.
13140 hardcode_into_libs=$hardcode_into_libs
13142 # Flag to hardcode \$libdir into a binary during linking.
13143 # This must work even if \$libdir does not exist.
13144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13146 # If ld is used when linking, flag to hardcode \$libdir into
13147 # a binary during linking. This must work even if \$libdir does
13149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13151 # Whether we need a single -rpath flag with a separated argument.
13152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13155 # resulting binary.
13156 hardcode_direct=$hardcode_direct_CXX
13158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13159 # resulting binary.
13160 hardcode_minus_L=$hardcode_minus_L_CXX
13162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13163 # the resulting binary.
13164 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13166 # Set to yes if building a shared library automatically hardcodes DIR into the library
13167 # and all subsequent libraries and executables linked against it.
13168 hardcode_automatic=$hardcode_automatic_CXX
13170 # Variables whose values should be saved in libtool wrapper scripts and
13171 # restored at relink time.
13172 variables_saved_for_relink="$variables_saved_for_relink"
13174 # Whether libtool must link a program against all its dependency libraries.
13175 link_all_deplibs=$link_all_deplibs_CXX
13177 # Compile-time system search path for libraries
13178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13180 # Run-time system search path for libraries
13181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13183 # Fix the shell variable \$srcfile for the compiler.
13184 fix_srcfile_path="$fix_srcfile_path_CXX"
13186 # Set to yes if exported symbols are required.
13187 always_export_symbols=$always_export_symbols_CXX
13189 # The commands to list exported symbols.
13190 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13192 # The commands to extract the exported symbol list from a shared archive.
13193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13195 # Symbols that should not be listed in the preloaded symbols.
13196 exclude_expsyms=$lt_exclude_expsyms_CXX
13198 # Symbols that must always be exported.
13199 include_expsyms=$lt_include_expsyms_CXX
13201 # ### END LIBTOOL TAG CONFIG: $tagname
13207 # If there is no Makefile yet, we rely on a make rule to execute
13208 # `config.status --recheck' to rerun these tests and create the
13209 # libtool script then.
13210 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13211 if test -f "$ltmain_in"; then
13212 test -f Makefile && make "$ltmain"
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13227 with_gnu_ldcxx=$with_gnu_ld
13228 with_gnu_ld=$lt_save_with_gnu_ld
13229 lt_cv_path_LDCXX=$lt_cv_path_LD
13230 lt_cv_path_LD=$lt_save_path_LD
13231 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13232 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13240 if test -n "$F77" && test "X$F77" != "Xno"; then
13243 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13244 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13248 archive_cmds_need_lc_F77=no
13249 allow_undefined_flag_F77=
13250 always_export_symbols_F77=no
13251 archive_expsym_cmds_F77=
13252 export_dynamic_flag_spec_F77=
13253 hardcode_direct_F77=no
13254 hardcode_libdir_flag_spec_F77=
13255 hardcode_libdir_flag_spec_ld_F77=
13256 hardcode_libdir_separator_F77=
13257 hardcode_minus_L_F77=no
13258 hardcode_automatic_F77=no
13260 module_expsym_cmds_F77=
13261 link_all_deplibs_F77=unknown
13262 old_archive_cmds_F77=$old_archive_cmds
13263 no_undefined_flag_F77=
13264 whole_archive_flag_spec_F77=
13265 enable_shared_with_static_runtimes_F77=no
13267 # Source file extension for f77 test sources.
13270 # Object file extension for compiled f77 test sources.
13274 # Code to be used in simple compile tests
13275 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13277 # Code to be used in simple link tests
13278 lt_simple_link_test_code=" program t\n end\n"
13280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13282 # If no C compiler was specified, use CC.
13285 # If no C compiler flags were specified, use CFLAGS.
13286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13288 # Allow CC to be a program name with arguments.
13292 # save warnings/boilerplate of simple test code
13293 ac_outfile=conftest.$ac_objext
13294 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13296 _lt_compiler_boilerplate=`cat conftest.err`
13299 ac_outfile=conftest.$ac_objext
13300 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13302 _lt_linker_boilerplate=`cat conftest.err`
13306 # Allow CC to be a program name with arguments.
13311 for cc_temp in $compiler""; do
13313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13322 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13323 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13324 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13325 echo "${ECHO_T}$can_build_shared" >&6
13327 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13328 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13329 test "$can_build_shared" = "no" && enable_shared=no
13331 # On AIX, shared libraries and static libraries use the same namespace, and
13332 # are all built from PIC.
13335 test "$enable_shared" = yes && enable_static=no
13336 if test -n "$RANLIB"; then
13337 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13338 postinstall_cmds='$RANLIB $lib'
13342 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13343 test "$enable_shared" = yes && enable_static=no
13347 echo "$as_me:$LINENO: result: $enable_shared" >&5
13348 echo "${ECHO_T}$enable_shared" >&6
13350 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13351 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13352 # Make sure either enable_shared or enable_static is yes.
13353 test "$enable_shared" = yes || enable_static=yes
13354 echo "$as_me:$LINENO: result: $enable_static" >&5
13355 echo "${ECHO_T}$enable_static" >&6
13360 lt_prog_compiler_wl_F77=
13361 lt_prog_compiler_pic_F77=
13362 lt_prog_compiler_static_F77=
13364 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13365 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13367 if test "$GCC" = yes; then
13368 lt_prog_compiler_wl_F77='-Wl,'
13369 lt_prog_compiler_static_F77='-static'
13373 # All AIX code is PIC.
13374 if test "$host_cpu" = ia64; then
13375 # AIX 5 now supports IA64 processor
13376 lt_prog_compiler_static_F77='-Bstatic'
13381 # FIXME: we need at least 68020 code to build shared libraries, but
13382 # adding the `-m68020' flag to GCC prevents building anything better,
13384 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13387 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13388 # PIC is the default for these OSes.
13391 mingw* | pw32* | os2*)
13392 # This hack is so that the source file can tell whether it is being
13393 # built for inclusion in a dll (and should export symbols for example).
13394 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397 darwin* | rhapsody*)
13398 # PIC is the default on this platform
13399 # Common symbols not allowed in MH_DYLIB files
13400 lt_prog_compiler_pic_F77='-fno-common'
13404 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13405 # Instead, we relocate shared libraries at runtime.
13409 # Just because we use GCC doesn't mean we suddenly get shared libraries
13410 # on systems that don't support them.
13411 lt_prog_compiler_can_build_shared_F77=no
13416 if test -d /usr/nec; then
13417 lt_prog_compiler_pic_F77=-Kconform_pic
13422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13423 # not for PA HP-UX.
13429 lt_prog_compiler_pic_F77='-fPIC'
13435 lt_prog_compiler_pic_F77='-fPIC'
13439 # PORTME Check for flag to pass linker flags through the system compiler.
13442 lt_prog_compiler_wl_F77='-Wl,'
13443 if test "$host_cpu" = ia64; then
13444 # AIX 5 now supports IA64 processor
13445 lt_prog_compiler_static_F77='-Bstatic'
13447 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13451 # PIC is the default on this platform
13452 # Common symbols not allowed in MH_DYLIB files
13453 case $cc_basename in
13455 lt_prog_compiler_pic_F77='-qnocommon'
13456 lt_prog_compiler_wl_F77='-Wl,'
13461 mingw* | pw32* | os2*)
13462 # This hack is so that the source file can tell whether it is being
13463 # built for inclusion in a dll (and should export symbols for example).
13464 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13467 hpux9* | hpux10* | hpux11*)
13468 lt_prog_compiler_wl_F77='-Wl,'
13469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13470 # not for PA HP-UX.
13476 lt_prog_compiler_pic_F77='+Z'
13479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13480 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13483 irix5* | irix6* | nonstopux*)
13484 lt_prog_compiler_wl_F77='-Wl,'
13485 # PIC (with -KPIC) is the default.
13486 lt_prog_compiler_static_F77='-non_shared'
13490 lt_prog_compiler_pic_F77='-KPIC'
13491 lt_prog_compiler_static_F77='-Bstatic'
13495 case $cc_basename in
13497 lt_prog_compiler_wl_F77='-Wl,'
13498 lt_prog_compiler_pic_F77='-KPIC'
13499 lt_prog_compiler_static_F77='-static'
13501 pgcc* | pgf77* | pgf90* | pgf95*)
13502 # Portland Group compilers (*not* the Pentium gcc compiler,
13503 # which looks to be a dead project)
13504 lt_prog_compiler_wl_F77='-Wl,'
13505 lt_prog_compiler_pic_F77='-fpic'
13506 lt_prog_compiler_static_F77='-Bstatic'
13509 lt_prog_compiler_wl_F77='-Wl,'
13510 # All Alpha code is PIC.
13511 lt_prog_compiler_static_F77='-non_shared'
13516 osf3* | osf4* | osf5*)
13517 lt_prog_compiler_wl_F77='-Wl,'
13518 # All OSF/1 code is PIC.
13519 lt_prog_compiler_static_F77='-non_shared'
13523 lt_prog_compiler_pic_F77='-KPIC'
13524 lt_prog_compiler_static_F77='-Bstatic'
13525 case $cc_basename in
13526 f77* | f90* | f95*)
13527 lt_prog_compiler_wl_F77='-Qoption ld ';;
13529 lt_prog_compiler_wl_F77='-Wl,';;
13534 lt_prog_compiler_wl_F77='-Qoption ld '
13535 lt_prog_compiler_pic_F77='-PIC'
13536 lt_prog_compiler_static_F77='-Bstatic'
13539 sysv4 | sysv4.2uw2* | sysv4.3*)
13540 lt_prog_compiler_wl_F77='-Wl,'
13541 lt_prog_compiler_pic_F77='-KPIC'
13542 lt_prog_compiler_static_F77='-Bstatic'
13546 if test -d /usr/nec ;then
13547 lt_prog_compiler_pic_F77='-Kconform_pic'
13548 lt_prog_compiler_static_F77='-Bstatic'
13552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13553 lt_prog_compiler_wl_F77='-Wl,'
13554 lt_prog_compiler_pic_F77='-KPIC'
13555 lt_prog_compiler_static_F77='-Bstatic'
13559 lt_prog_compiler_wl_F77='-Wl,'
13560 lt_prog_compiler_can_build_shared_F77=no
13564 lt_prog_compiler_pic_F77='-pic'
13565 lt_prog_compiler_static_F77='-Bstatic'
13569 lt_prog_compiler_can_build_shared_F77=no
13574 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13575 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13578 # Check to make sure the PIC flag actually works.
13580 if test -n "$lt_prog_compiler_pic_F77"; then
13582 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13583 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13584 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 lt_prog_compiler_pic_works_F77=no
13588 ac_outfile=conftest.$ac_objext
13589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13590 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13591 # Insert the option either (1) after the last *FLAGS variable, or
13592 # (2) before a word containing "conftest.", or (3) at the end.
13593 # Note that $ac_compile itself does not contain backslashes and begins
13594 # with a dollar sign (not a hyphen), so the echo should work correctly.
13595 # The option is referenced via a variable to avoid confusing sed.
13596 lt_compile=`echo "$ac_compile" | $SED \
13597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13599 -e 's:$: $lt_compiler_flag:'`
13600 (eval echo "\"\$as_me:13600: $lt_compile\"" >&5)
13601 (eval "$lt_compile" 2>conftest.err)
13603 cat conftest.err >&5
13604 echo "$as_me:13604: \$? = $ac_status" >&5
13605 if (exit $ac_status) && test -s "$ac_outfile"; then
13606 # The compiler can only warn and ignore the option if not recognized
13607 # So say no if there are warnings other than the usual output.
13608 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13611 lt_prog_compiler_pic_works_F77=yes
13617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13618 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13620 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13621 case $lt_prog_compiler_pic_F77 in
13623 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13626 lt_prog_compiler_pic_F77=
13627 lt_prog_compiler_can_build_shared_F77=no
13632 # For platforms which do not support PIC, -DPIC is meaningless:
13634 lt_prog_compiler_pic_F77=
13637 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13642 # Check to make sure the static flag actually works.
13644 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13645 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13646 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13647 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 lt_prog_compiler_static_works_F77=no
13651 save_LDFLAGS="$LDFLAGS"
13652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13653 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13655 # The linker can only warn and ignore the option if not recognized
13656 # So say no if there are warnings
13657 if test -s conftest.err; then
13658 # Append any errors to the config.log.
13659 cat conftest.err 1>&5
13660 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13662 if diff conftest.exp conftest.er2 >/dev/null; then
13663 lt_prog_compiler_static_works_F77=yes
13666 lt_prog_compiler_static_works_F77=yes
13670 LDFLAGS="$save_LDFLAGS"
13673 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13674 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13676 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13679 lt_prog_compiler_static_F77=
13683 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13684 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13685 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 lt_cv_prog_compiler_c_o_F77=no
13689 $rm -r conftest 2>/dev/null
13693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13695 lt_compiler_flag="-o out/conftest2.$ac_objext"
13696 # Insert the option either (1) after the last *FLAGS variable, or
13697 # (2) before a word containing "conftest.", or (3) at the end.
13698 # Note that $ac_compile itself does not contain backslashes and begins
13699 # with a dollar sign (not a hyphen), so the echo should work correctly.
13700 lt_compile=`echo "$ac_compile" | $SED \
13701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13703 -e 's:$: $lt_compiler_flag:'`
13704 (eval echo "\"\$as_me:13704: $lt_compile\"" >&5)
13705 (eval "$lt_compile" 2>out/conftest.err)
13707 cat out/conftest.err >&5
13708 echo "$as_me:13708: \$? = $ac_status" >&5
13709 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13711 # The compiler can only warn and ignore the option if not recognized
13712 # So say no if there are warnings
13713 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13716 lt_cv_prog_compiler_c_o_F77=yes
13721 # SGI C++ compiler will create directory out/ii_files/ for
13722 # template instantiation
13723 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13724 $rm out/* && rmdir out
13730 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13731 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13734 hard_links="nottested"
13735 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13736 # do not overwrite the value of need_locks provided by the user
13737 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13738 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13741 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13743 ln conftest.a conftest.b 2>&5 || hard_links=no
13744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13745 echo "$as_me:$LINENO: result: $hard_links" >&5
13746 echo "${ECHO_T}$hard_links" >&6
13747 if test "$hard_links" = no; then
13748 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13749 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13756 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13757 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13760 allow_undefined_flag_F77=
13761 enable_shared_with_static_runtimes_F77=no
13763 archive_expsym_cmds_F77=
13764 old_archive_From_new_cmds_F77=
13765 old_archive_from_expsyms_cmds_F77=
13766 export_dynamic_flag_spec_F77=
13767 whole_archive_flag_spec_F77=
13768 thread_safe_flag_spec_F77=
13769 hardcode_libdir_flag_spec_F77=
13770 hardcode_libdir_flag_spec_ld_F77=
13771 hardcode_libdir_separator_F77=
13772 hardcode_direct_F77=no
13773 hardcode_minus_L_F77=no
13774 hardcode_shlibpath_var_F77=unsupported
13775 link_all_deplibs_F77=unknown
13776 hardcode_automatic_F77=no
13778 module_expsym_cmds_F77=
13779 always_export_symbols_F77=no
13780 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13781 # include_expsyms should be a list of space-separated symbols to be *always*
13782 # included in the symbol list
13783 include_expsyms_F77=
13784 # exclude_expsyms can be an extended regexp of symbols to exclude
13785 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13786 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13787 # as well as any symbol that contains `d'.
13788 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13789 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13790 # platforms (ab)use it in PIC code, but their linkers get confused if
13791 # the symbol is explicitly referenced. Since portable code cannot
13792 # rely on this symbol name, it's probably fine to never include it in
13793 # preloaded symbol tables.
13794 extract_expsyms_cmds=
13795 # Just being paranoid about ensuring that cc_basename is set.
13796 for cc_temp in $compiler""; do
13798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13807 cygwin* | mingw* | pw32*)
13808 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13809 # When not using gcc, we currently assume that we are using
13810 # Microsoft Visual C++.
13811 if test "$GCC" != yes; then
13816 # we just hope/assume this is gcc and not c89 (= MSVC++)
13825 if test "$with_gnu_ld" = yes; then
13826 # If archive_cmds runs LD, not CC, wlarc should be empty
13829 # Set some defaults for GNU ld with shared library support. These
13830 # are reset later if shared libraries are not supported. Putting them
13831 # here allows them to be overridden if necessary.
13832 runpath_var=LD_RUN_PATH
13833 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13834 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13835 # ancient GNU ld didn't support --whole-archive et. al.
13836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13837 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13839 whole_archive_flag_spec_F77=
13841 supports_anon_versioning=no
13842 case `$LD -v 2>/dev/null` in
13843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13846 *\ 2.11.*) ;; # other 2.11 versions
13847 *) supports_anon_versioning=yes ;;
13850 # See if GNU ld supports shared libraries.
13852 aix3* | aix4* | aix5*)
13853 # On AIX/PPC, the GNU linker is very broken
13854 if test "$host_cpu" != ia64; then
13858 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13859 *** to be unable to reliably create shared libraries on AIX.
13860 *** Therefore, libtool is disabling shared libraries support. If you
13861 *** really care for shared libraries, you may want to modify your PATH
13862 *** so that a non-GNU linker is found, and then restart.
13869 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)'
13870 hardcode_libdir_flag_spec_F77='-L$libdir'
13871 hardcode_minus_L_F77=yes
13873 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13874 # that the semantics of dynamic libraries on AmigaOS, at least up
13875 # to version 4, is to share data among multiple programs linked
13876 # with the same dynamic library. Since this doesn't match the
13877 # behavior of shared libraries on other platforms, we can't use
13883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13884 allow_undefined_flag_F77=unsupported
13885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13886 # support --undefined. This deserves some investigation. FIXME
13887 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13893 cygwin* | mingw* | pw32*)
13894 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13895 # as there is no search path for DLLs.
13896 hardcode_libdir_flag_spec_F77='-L$libdir'
13897 allow_undefined_flag_F77=unsupported
13898 always_export_symbols_F77=no
13899 enable_shared_with_static_runtimes_F77=yes
13900 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13902 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13904 # If the export-symbols file already is a .def file (1st line
13905 # is EXPORTS), use it as is; otherwise, prepend...
13906 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13907 cp $export_symbols $output_objdir/$soname.def;
13909 echo EXPORTS > $output_objdir/$soname.def;
13910 cat $export_symbols >> $output_objdir/$soname.def;
13912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13919 hardcode_direct_F77=no
13920 hardcode_shlibpath_var_F77=no
13921 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13922 export_dynamic_flag_spec_F77='${wl}-E'
13923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13924 # Instead, shared libraries are loaded at an image base (0x10000000 by
13925 # default) and relocated if they conflict, which is a slow very memory
13926 # consuming and fragmenting process. To avoid this, we pick a random,
13927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13928 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13929 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'
13930 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'
13934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13936 case $cc_basename,$host_cpu in
13937 pgcc*) # Portland Group C compiler
13938 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'
13939 tmp_addflag=' $pic_flag'
13941 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13942 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'
13943 tmp_addflag=' $pic_flag -Mnomain' ;;
13944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13945 tmp_addflag=' -i_dynamic' ;;
13946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13947 tmp_addflag=' -i_dynamic -nofor_main' ;;
13948 ifc* | ifort*) # Intel Fortran compiler
13949 tmp_addflag=' -nofor_main' ;;
13951 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13953 if test $supports_anon_versioning = yes; then
13954 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13956 $echo "local: *; };" >> $output_objdir/$libname.ver~
13957 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13966 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13969 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13970 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13980 *** create shared libraries on Solaris systems. Therefore, libtool
13981 *** is disabling shared libraries support. We urge you to upgrade GNU
13982 *** binutils to release 2.9.1 or newer. Another option is to modify
13983 *** your PATH or compiler configuration so that the native linker is
13984 *** used, and then restart.
13987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13989 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13996 case `$LD -v 2>&1` in
13997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14002 *** reliably create shared libraries on SCO systems. Therefore, libtool
14003 *** is disabling shared libraries support. We urge you to upgrade GNU
14004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14005 *** your PATH or compiler configuration so that the native linker is
14006 *** used, and then restart.
14011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14012 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14023 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14025 hardcode_direct_F77=yes
14026 hardcode_shlibpath_var_F77=no
14030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14031 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14032 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14039 if test "$ld_shlibs_F77" = no; then
14041 hardcode_libdir_flag_spec_F77=
14042 export_dynamic_flag_spec_F77=
14043 whole_archive_flag_spec_F77=
14046 # PORTME fill in a description of your system's linker (not GNU ld)
14049 allow_undefined_flag_F77=unsupported
14050 always_export_symbols_F77=yes
14051 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'
14052 # Note: this linker hardcodes the directories in LIBPATH if there
14053 # are no directories specified by -L.
14054 hardcode_minus_L_F77=yes
14055 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14056 # Neither direct hardcoding nor static linking is supported with a
14058 hardcode_direct_F77=unsupported
14063 if test "$host_cpu" = ia64; then
14064 # On IA64, the linker does run time linking by default, so we don't
14065 # have to do anything special.
14066 aix_use_runtimelinking=no
14067 exp_sym_flag='-Bexport'
14070 # If we're using GNU nm, then we don't want the "-C" option.
14071 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14072 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14073 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'
14075 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'
14077 aix_use_runtimelinking=no
14079 # Test if we are trying to use run time linking or normal
14080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14081 # need to do runtime linking.
14082 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14083 for ld_flag in $LDFLAGS; do
14084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14085 aix_use_runtimelinking=yes
14092 exp_sym_flag='-bexport'
14093 no_entry_flag='-bnoentry'
14096 # When large executables or shared objects are built, AIX ld can
14097 # have problems creating the table of contents. If linking a library
14098 # or program results in "error TOC overflow" add -mminimal-toc to
14099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14102 archive_cmds_F77=''
14103 hardcode_direct_F77=yes
14104 hardcode_libdir_separator_F77=':'
14105 link_all_deplibs_F77=yes
14107 if test "$GCC" = yes; then
14108 case $host_os in aix4.[012]|aix4.[012].*)
14109 # We only want to do this on AIX 4.2 and lower, the check
14110 # below for broken collect2 doesn't work under 4.3+
14111 collect2name=`${CC} -print-prog-name=collect2`
14112 if test -f "$collect2name" && \
14113 strings "$collect2name" | grep resolve_lib_name >/dev/null
14115 # We have reworked collect2
14116 hardcode_direct_F77=yes
14118 # We have old collect2
14119 hardcode_direct_F77=unsupported
14120 # It fails to find uninstalled libraries when the uninstalled
14121 # path is not listed in the libpath. Setting hardcode_minus_L
14122 # to unsupported forces relinking
14123 hardcode_minus_L_F77=yes
14124 hardcode_libdir_flag_spec_F77='-L$libdir'
14125 hardcode_libdir_separator_F77=
14129 shared_flag='-shared'
14130 if test "$aix_use_runtimelinking" = yes; then
14131 shared_flag="$shared_flag "'${wl}-G'
14135 if test "$host_cpu" = ia64; then
14136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14137 # chokes on -Wl,-G. The following line is correct:
14140 if test "$aix_use_runtimelinking" = yes; then
14141 shared_flag='${wl}-G'
14143 shared_flag='${wl}-bM:SRE'
14148 # It seems that -bexpall does not export symbols beginning with
14149 # underscore (_), so it is better to generate a list of symbols to export.
14150 always_export_symbols_F77=yes
14151 if test "$aix_use_runtimelinking" = yes; then
14152 # Warning - without using the other runtime loading flags (-brtl),
14153 # -berok will link without error, but may produce a broken library.
14154 allow_undefined_flag_F77='-berok'
14155 # Determine the default libpath from the value encoded in an empty executable.
14156 cat >conftest.$ac_ext <<_ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_f77_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14186 # Check for a 64-bit object if we didn't find anything.
14187 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14194 rm -f conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14198 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14199 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"
14201 if test "$host_cpu" = ia64; then
14202 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14203 allow_undefined_flag_F77="-z nodefs"
14204 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"
14206 # Determine the default libpath from the value encoded in an empty executable.
14207 cat >conftest.$ac_ext <<_ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14216 grep -v '^ *+' conftest.er1 >conftest.err
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_f77_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14237 # Check for a 64-bit object if we didn't find anything.
14238 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14245 rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14249 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14250 # Warning - without using the other run time loading flags,
14251 # -berok will link without error, but may produce a broken library.
14252 no_undefined_flag_F77=' ${wl}-bernotok'
14253 allow_undefined_flag_F77=' ${wl}-berok'
14254 # Exported symbols can be pulled into shared objects from archives
14255 whole_archive_flag_spec_F77='$convenience'
14256 archive_cmds_need_lc_F77=yes
14257 # This is similar to how AIX traditionally builds its shared libraries.
14258 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'
14264 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)'
14265 hardcode_libdir_flag_spec_F77='-L$libdir'
14266 hardcode_minus_L_F77=yes
14267 # see comment about different semantics on the GNU ld section
14272 export_dynamic_flag_spec_F77=-rdynamic
14275 cygwin* | mingw* | pw32*)
14276 # When not using gcc, we currently assume that we are using
14277 # Microsoft Visual C++.
14278 # hardcode_libdir_flag_spec is actually meaningless, as there is
14279 # no search path for DLLs.
14280 hardcode_libdir_flag_spec_F77=' '
14281 allow_undefined_flag_F77=unsupported
14282 # Tell ltmain to make .lib files, not .a files.
14284 # Tell ltmain to make .dll files, not .so files.
14286 # FIXME: Setting linknames here is a bad hack.
14287 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14288 # The linker will automatically build a .lib file if we build a DLL.
14289 old_archive_From_new_cmds_F77='true'
14290 # FIXME: Should let the user specify the lib program.
14291 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14292 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14293 enable_shared_with_static_runtimes_F77=yes
14296 darwin* | rhapsody*)
14298 rhapsody* | darwin1.[012])
14299 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14303 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14305 case ${MACOSX_DEPLOYMENT_TARGET} in
14307 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14310 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14316 archive_cmds_need_lc_F77=no
14317 hardcode_direct_F77=no
14318 hardcode_automatic_F77=yes
14319 hardcode_shlibpath_var_F77=unsupported
14320 whole_archive_flag_spec_F77=''
14321 link_all_deplibs_F77=yes
14322 if test "$GCC" = yes ; then
14323 output_verbose_link_cmd='echo'
14324 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14325 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14327 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14328 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}'
14330 case $cc_basename in
14332 output_verbose_link_cmd='echo'
14333 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14334 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14336 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14337 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}'
14347 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348 hardcode_libdir_flag_spec_F77='-L$libdir'
14349 hardcode_shlibpath_var_F77=no
14356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14357 # support. Future versions do this automatically, but an explicit c++rt0.o
14358 # does not break anything, and helps significantly (at the cost of a little
14361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14362 hardcode_libdir_flag_spec_F77='-R$libdir'
14363 hardcode_direct_F77=yes
14364 hardcode_shlibpath_var_F77=no
14367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14370 hardcode_direct_F77=yes
14371 hardcode_minus_L_F77=yes
14372 hardcode_shlibpath_var_F77=no
14375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14376 freebsd* | kfreebsd*-gnu | dragonfly*)
14377 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14378 hardcode_libdir_flag_spec_F77='-R$libdir'
14379 hardcode_direct_F77=yes
14380 hardcode_shlibpath_var_F77=no
14384 if test "$GCC" = yes; then
14385 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'
14387 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'
14389 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14390 hardcode_libdir_separator_F77=:
14391 hardcode_direct_F77=yes
14393 # hardcode_minus_L: Not really in the search PATH,
14394 # but as the default location of the library.
14395 hardcode_minus_L_F77=yes
14396 export_dynamic_flag_spec_F77='${wl}-E'
14400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14401 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14405 if test "$with_gnu_ld" = no; then
14406 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14407 hardcode_libdir_separator_F77=:
14409 hardcode_direct_F77=yes
14410 export_dynamic_flag_spec_F77='${wl}-E'
14412 # hardcode_minus_L: Not really in the search PATH,
14413 # but as the default location of the library.
14414 hardcode_minus_L_F77=yes
14419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14422 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14425 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14428 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14440 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14444 if test "$with_gnu_ld" = no; then
14445 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14446 hardcode_libdir_separator_F77=:
14450 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14451 hardcode_direct_F77=no
14452 hardcode_shlibpath_var_F77=no
14455 hardcode_direct_F77=yes
14456 export_dynamic_flag_spec_F77='${wl}-E'
14458 # hardcode_minus_L: Not really in the search PATH,
14459 # but as the default location of the library.
14460 hardcode_minus_L_F77=yes
14466 irix5* | irix6* | nonstopux*)
14467 if test "$GCC" = yes; then
14468 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'
14470 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'
14471 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14474 hardcode_libdir_separator_F77=:
14475 link_all_deplibs_F77=yes
14479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14480 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14482 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14484 hardcode_libdir_flag_spec_F77='-R$libdir'
14485 hardcode_direct_F77=yes
14486 hardcode_shlibpath_var_F77=no
14490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14491 hardcode_direct_F77=yes
14492 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14493 hardcode_libdir_separator_F77=:
14494 hardcode_shlibpath_var_F77=no
14498 hardcode_direct_F77=yes
14499 hardcode_shlibpath_var_F77=no
14500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14501 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14503 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14504 export_dynamic_flag_spec_F77='${wl}-E'
14507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14508 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_libdir_flag_spec_F77='-R$libdir'
14512 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14513 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14520 hardcode_libdir_flag_spec_F77='-L$libdir'
14521 hardcode_minus_L_F77=yes
14522 allow_undefined_flag_F77=unsupported
14523 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'
14524 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14528 if test "$GCC" = yes; then
14529 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14530 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'
14532 allow_undefined_flag_F77=' -expect_unresolved \*'
14533 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'
14535 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14536 hardcode_libdir_separator_F77=:
14539 osf4* | osf5*) # as osf3* with the addition of -msym flag
14540 if test "$GCC" = yes; then
14541 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14542 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'
14543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14545 allow_undefined_flag_F77=' -expect_unresolved \*'
14546 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'
14547 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~
14548 $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'
14550 # Both c and cxx compiler support -rpath directly
14551 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14553 hardcode_libdir_separator_F77=:
14557 no_undefined_flag_F77=' -z text'
14558 if test "$GCC" = yes; then
14560 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14561 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14562 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14565 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14569 hardcode_libdir_flag_spec_F77='-R$libdir'
14570 hardcode_shlibpath_var_F77=no
14572 solaris2.[0-5] | solaris2.[0-5].*) ;;
14574 # The compiler driver will combine linker options so we
14575 # cannot just pass the convience library names through
14576 # without $wl, iff we do not link with $LD.
14577 # Luckily, gcc supports the same syntax we need for Sun Studio.
14578 # Supported since Solaris 2.6 (maybe 2.5.1?)
14581 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14583 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14586 link_all_deplibs_F77=yes
14590 if test "x$host_vendor" = xsequent; then
14591 # Use $CC to link under sequent, because it throws in some extra .o
14592 # files that make .init and .fini sections work.
14593 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14595 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14597 hardcode_libdir_flag_spec_F77='-L$libdir'
14598 hardcode_direct_F77=yes
14599 hardcode_minus_L_F77=yes
14600 hardcode_shlibpath_var_F77=no
14604 case $host_vendor in
14606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607 hardcode_direct_F77=yes # is this really true???
14610 ## LD is ld it makes a PLAMLIB
14611 ## CC just makes a GrossModule.
14612 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14613 reload_cmds_F77='$CC -r -o $output$reload_objs'
14614 hardcode_direct_F77=no
14617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14621 runpath_var='LD_RUN_PATH'
14622 hardcode_shlibpath_var_F77=no
14626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627 hardcode_shlibpath_var_F77=no
14628 export_dynamic_flag_spec_F77='-Bexport'
14632 if test -d /usr/nec; then
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_shlibpath_var_F77=no
14635 runpath_var=LD_RUN_PATH
14636 hardcode_runpath_var=yes
14641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14642 no_undefined_flag_F77='${wl}-z,text'
14643 archive_cmds_need_lc_F77=no
14644 hardcode_shlibpath_var_F77=no
14645 runpath_var='LD_RUN_PATH'
14647 if test "$GCC" = yes; then
14648 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14652 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14656 sysv5* | sco3.2v5* | sco5v6*)
14657 # Note: We can NOT use -z defs as we might desire, because we do not
14658 # link with -lc, and that would cause any symbols used from libc to
14659 # always be unresolved, which means just about no library would
14660 # ever link correctly. If we're not using GNU ld we use -z text
14661 # though, which does catch some bad symbols but isn't as heavy-handed
14663 no_undefined_flag_F77='${wl}-z,text'
14664 allow_undefined_flag_F77='${wl}-z,nodefs'
14665 archive_cmds_need_lc_F77=no
14666 hardcode_shlibpath_var_F77=no
14667 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14668 hardcode_libdir_separator_F77=':'
14669 link_all_deplibs_F77=yes
14670 export_dynamic_flag_spec_F77='${wl}-Bexport'
14671 runpath_var='LD_RUN_PATH'
14673 if test "$GCC" = yes; then
14674 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14675 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14677 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_shlibpath_var_F77=no
14694 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14695 echo "${ECHO_T}$ld_shlibs_F77" >&6
14696 test "$ld_shlibs_F77" = no && can_build_shared=no
14699 # Do we need to explicitly link libc?
14701 case "x$archive_cmds_need_lc_F77" in
14703 # Assume -lc should be added
14704 archive_cmds_need_lc_F77=yes
14706 if test "$enable_shared" = yes && test "$GCC" = yes; then
14707 case $archive_cmds_F77 in
14709 # FIXME: we may have to deal with multi-command sequences.
14712 # Test whether the compiler implicitly links with -lc since on some
14713 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14714 # to ld, don't add -lc before -lgcc.
14715 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14716 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } 2>conftest.err; then
14727 libobjs=conftest.$ac_objext
14729 wl=$lt_prog_compiler_wl_F77
14730 pic_flag=$lt_prog_compiler_pic_F77
14736 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14737 allow_undefined_flag_F77=
14738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14739 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }
14744 archive_cmds_need_lc_F77=no
14746 archive_cmds_need_lc_F77=yes
14748 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14750 cat conftest.err 1>&5
14753 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14754 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14761 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14762 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14763 library_names_spec=
14764 libname_spec='lib$name'
14768 postuninstall_cmds=
14772 shlibpath_overrides_runpath=unknown
14774 dynamic_linker="$host_os ld.so"
14775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14776 if test "$GCC" = yes; then
14777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14778 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14779 # if the path contains ";" then we assume it to be the separator
14780 # otherwise default to the standard path separator (i.e. ":") - it is
14781 # assumed that no part of a normal pathname contains ";" but that should
14782 # okay in the real world where ";" in dirpaths is itself problematic.
14783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14790 need_lib_prefix=unknown
14791 hardcode_into_libs=no
14793 # when you set need_version to no, make sure it does not cause -set_version
14794 # flags to be left without arguments
14795 need_version=unknown
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14801 shlibpath_var=LIBPATH
14803 # AIX 3 has no versioning support, so we append a major version to the name.
14804 soname_spec='${libname}${release}${shared_ext}$major'
14811 hardcode_into_libs=yes
14812 if test "$host_cpu" = ia64; then
14813 # AIX 5 supports IA64
14814 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14815 shlibpath_var=LD_LIBRARY_PATH
14817 # With GCC up to 2.95.x, collect2 would create an import file
14818 # for dependence libraries. The import file would start with
14819 # the line `#! .'. This would cause the generated library to
14820 # depend on `.', always an invalid library. This was fixed in
14821 # development snapshots of GCC prior to 3.0.
14823 aix4 | aix4.[01] | aix4.[01].*)
14824 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14826 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14829 can_build_shared=no
14833 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14834 # soname into executable. Probably we can add versioning support to
14835 # collect2, so additional links can be useful in future.
14836 if test "$aix_use_runtimelinking" = yes; then
14837 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14838 # instead of lib<name>.a to let people know that these are not
14839 # typical AIX shared libraries.
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 # We preserve .a as extension for shared libraries through AIX4.2
14843 # and later when we are not doing run time linking.
14844 library_names_spec='${libname}${release}.a $libname.a'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LIBPATH
14852 library_names_spec='$libname.ixlibrary $libname.a'
14853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14854 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'
14858 library_names_spec='${libname}${shared_ext}'
14859 dynamic_linker="$host_os ld.so"
14860 shlibpath_var=LIBRARY_PATH
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14872 # the default ld.so.conf also contains /usr/contrib/lib and
14873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14874 # libtool to hard-code these into programs
14877 cygwin* | mingw* | pw32*)
14878 version_type=windows
14883 case $GCC,$host_os in
14884 yes,cygwin* | yes,mingw* | yes,pw32*)
14885 library_names_spec='$libname.dll.a'
14886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14887 postinstall_cmds='base_file=`basename \${file}`~
14888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14889 dldir=$destdir/`dirname \$dlpath`~
14890 test -d \$dldir || mkdir -p \$dldir~
14891 $install_prog $dir/$dlname \$dldir/$dlname~
14892 chmod a+x \$dldir/$dlname'
14893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14894 dlpath=$dir/\$dldll~
14896 shlibpath_overrides_runpath=yes
14900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14902 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14905 # MinGW DLLs use traditional 'lib' prefix
14906 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14908 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14909 # It is most probably a Windows format PATH printed by
14910 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14911 # path with ; separators, and with drive letters. We can handle the
14912 # drive letters (cygwin fileutils understands them), so leave them,
14913 # especially as we might pass files found there to a mingw objdump,
14914 # which wouldn't understand a cygwinified path. Ahh.
14915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14921 # pw32 DLLs use 'pw' prefix rather than 'lib'
14922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14931 dynamic_linker='Win32 ld.exe'
14932 # FIXME: first we should search . and the directory the executable is in
14936 darwin* | rhapsody*)
14937 dynamic_linker="$host_os dyld"
14938 version_type=darwin
14941 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14942 soname_spec='${libname}${release}${major}$shared_ext'
14943 shlibpath_overrides_runpath=yes
14944 shlibpath_var=DYLD_LIBRARY_PATH
14945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14946 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14947 if test "$GCC" = yes; then
14948 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14950 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=no
14976 hardcode_into_libs=yes
14977 dynamic_linker='GNU ld.so'
14980 freebsd* | dragonfly*)
14981 # DragonFly does not have aout. When/if they implement a new
14982 # versioning mechanism, adjust this.
14983 if test -x /usr/bin/objformat; then
14984 objformat=`/usr/bin/objformat`
14987 freebsd[123]*) objformat=aout ;;
14988 *) objformat=elf ;;
14991 version_type=freebsd-$objformat
14992 case $version_type in
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15003 shlibpath_var=LD_LIBRARY_PATH
15006 shlibpath_overrides_runpath=yes
15008 freebsd3.[01]* | freebsdelf3.[01]*)
15009 shlibpath_overrides_runpath=yes
15010 hardcode_into_libs=yes
15012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15014 shlibpath_overrides_runpath=no
15015 hardcode_into_libs=yes
15017 freebsd*) # from 4.6 on
15018 shlibpath_overrides_runpath=yes
15019 hardcode_into_libs=yes
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 hardcode_into_libs=yes
15034 hpux9* | hpux10* | hpux11*)
15035 # Give a soname corresponding to the major version so that dld.sl refuses to
15036 # link against other versions.
15043 hardcode_into_libs=yes
15044 dynamic_linker="$host_os dld.so"
15045 shlibpath_var=LD_LIBRARY_PATH
15046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 if test "X$HPUX_IA64_MODE" = X32; then
15050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15058 hardcode_into_libs=yes
15059 dynamic_linker="$host_os dld.sl"
15060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063 soname_spec='${libname}${release}${shared_ext}$major'
15064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15069 dynamic_linker="$host_os dld.sl"
15070 shlibpath_var=SHLIB_PATH
15071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15077 postinstall_cmds='chmod 555 $lib'
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=no
15089 hardcode_into_libs=yes
15092 irix5* | irix6* | nonstopux*)
15094 nonstopux*) version_type=nonstopux ;;
15096 if test "$lt_cv_prog_gnu_ld" = yes; then
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15107 irix5* | nonstopux*)
15108 libsuff= shlibsuff=
15111 case $LD in # libtool.m4 will add one of these switches to LD
15112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15113 libsuff= shlibsuff= libmagic=32-bit;;
15114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15115 libsuff=32 shlibsuff=N32 libmagic=N32;;
15116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15118 *) libsuff= shlibsuff= libmagic=never-match;;
15122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15123 shlibpath_overrides_runpath=no
15124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15126 hardcode_into_libs=yes
15129 # No shared lib support for Linux oldld, aout, or coff.
15130 linux*oldld* | linux*aout* | linux*coff*)
15134 # This must be Linux ELF.
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=no
15144 # This implies no fast_install, which is unacceptable.
15145 # Some rework will be needed to allow for fast_install
15146 # before this can be enabled.
15147 hardcode_into_libs=yes
15149 # find out which ABI we are using
15151 case "$host_cpu" in
15152 x86_64*|s390x*|powerpc64*)
15153 echo '#line 15153 "configure"' > conftest.$ac_ext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155 (eval $ac_compile) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; then
15159 case `/usr/bin/file conftest.$ac_objext` in
15162 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15170 # Append ld.so.conf contents to the search path
15171 if test -f /etc/ld.so.conf; then
15172 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15173 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15176 # We used to test for /lib/ld.so.1 and disable shared libraries on
15177 # powerpc, because MkLinux only supported shared libraries with the
15178 # GNU dynamic linker. Since this was broken with cross compilers,
15179 # most powerpc-linux boxes support dynamic linking these days and
15180 # people can always --disable-shared, the test was removed, and we
15181 # assume the GNU/Linux dynamic linker is in use.
15182 dynamic_linker='GNU/Linux ld.so'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 hardcode_into_libs=yes
15194 dynamic_linker='GNU ld.so'
15201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204 dynamic_linker='NetBSD (a.out) ld.so'
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 dynamic_linker='NetBSD ld.elf_so'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 hardcode_into_libs=yes
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=yes
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=yes
15234 sys_lib_dlsearch_path_spec="/usr/lib"
15236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15239 *) need_version=no ;;
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15246 openbsd2.[89] | openbsd2.[89].*)
15247 shlibpath_overrides_runpath=no
15250 shlibpath_overrides_runpath=yes
15254 shlibpath_overrides_runpath=yes
15259 libname_spec='$name'
15262 library_names_spec='$libname${shared_ext} $libname.a'
15263 dynamic_linker='OS/2 ld.exe'
15264 shlibpath_var=LIBPATH
15267 osf3* | osf4* | osf5*)
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 # ldd complains unless libraries are executable
15288 postinstall_cmds='chmod +x $lib'
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes
15297 if test "$with_gnu_ld" = yes; then
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 soname_spec='${libname}${release}${shared_ext}$major'
15307 shlibpath_var=LD_LIBRARY_PATH
15308 case $host_vendor in
15310 shlibpath_overrides_runpath=no
15312 export_dynamic_flag_spec='${wl}-Blargedynsym'
15313 runpath_var=LD_RUN_PATH
15321 shlibpath_overrides_runpath=no
15322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15328 if test -d /usr/nec ;then
15330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15331 soname_spec='$libname${shared_ext}.$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15337 version_type=freebsd-elf
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 hardcode_into_libs=yes
15344 if test "$with_gnu_ld" = yes; then
15345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15346 shlibpath_overrides_runpath=no
15348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15349 shlibpath_overrides_runpath=yes
15352 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15356 sys_lib_dlsearch_path_spec='/usr/lib'
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15370 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15371 echo "${ECHO_T}$dynamic_linker" >&6
15372 test "$dynamic_linker" = no && can_build_shared=no
15374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15375 if test "$GCC" = yes; then
15376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15379 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381 hardcode_action_F77=
15382 if test -n "$hardcode_libdir_flag_spec_F77" || \
15383 test -n "$runpath_var_F77" || \
15384 test "X$hardcode_automatic_F77" = "Xyes" ; then
15386 # We can hardcode non-existant directories.
15387 if test "$hardcode_direct_F77" != no &&
15388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389 # have to relink, otherwise we might link with an installed library
15390 # when we should be linking with a yet-to-be-installed one
15391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15392 test "$hardcode_minus_L_F77" != no; then
15393 # Linking always hardcodes the temporary library directory.
15394 hardcode_action_F77=relink
15396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397 hardcode_action_F77=immediate
15400 # We cannot hardcode anything, or else we can only hardcode existing
15402 hardcode_action_F77=unsupported
15404 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15405 echo "${ECHO_T}$hardcode_action_F77" >&6
15407 if test "$hardcode_action_F77" = relink; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411 test "$enable_shared" = no; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15417 # The else clause should only fire when bootstrapping the
15418 # libtool distribution, otherwise you forgot to ship ltmain.sh
15419 # with your package, and you will get complaints that there are
15420 # no rules to generate ltmain.sh.
15421 if test -f "$ltmain"; then
15422 # See if we are running on zsh, and set the options which allow our commands through
15423 # without removal of \ escapes.
15424 if test -n "${ZSH_VERSION+set}" ; then
15425 setopt NO_GLOB_SUBST
15427 # Now quote all the things that may contain metacharacters while being
15428 # careful not to overquote the AC_SUBSTed values. We take copies of the
15429 # variables and quote the copies for generation of the libtool script.
15430 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15432 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15433 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15434 deplibs_check_method reload_flag reload_cmds need_locks \
15435 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15436 lt_cv_sys_global_symbol_to_c_name_address \
15437 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15438 old_postinstall_cmds old_postuninstall_cmds \
15442 lt_prog_compiler_wl_F77 \
15443 lt_prog_compiler_pic_F77 \
15444 lt_prog_compiler_static_F77 \
15445 lt_prog_compiler_no_builtin_flag_F77 \
15446 export_dynamic_flag_spec_F77 \
15447 thread_safe_flag_spec_F77 \
15448 whole_archive_flag_spec_F77 \
15449 enable_shared_with_static_runtimes_F77 \
15450 old_archive_cmds_F77 \
15451 old_archive_from_new_cmds_F77 \
15452 predep_objects_F77 \
15453 postdep_objects_F77 \
15456 compiler_lib_search_path_F77 \
15458 archive_expsym_cmds_F77 \
15459 postinstall_cmds_F77 \
15460 postuninstall_cmds_F77 \
15461 old_archive_from_expsyms_cmds_F77 \
15462 allow_undefined_flag_F77 \
15463 no_undefined_flag_F77 \
15464 export_symbols_cmds_F77 \
15465 hardcode_libdir_flag_spec_F77 \
15466 hardcode_libdir_flag_spec_ld_F77 \
15467 hardcode_libdir_separator_F77 \
15468 hardcode_automatic_F77 \
15470 module_expsym_cmds_F77 \
15471 lt_cv_prog_compiler_c_o_F77 \
15472 exclude_expsyms_F77 \
15473 include_expsyms_F77; do
15476 old_archive_cmds_F77 | \
15477 old_archive_from_new_cmds_F77 | \
15478 archive_cmds_F77 | \
15479 archive_expsym_cmds_F77 | \
15480 module_cmds_F77 | \
15481 module_expsym_cmds_F77 | \
15482 old_archive_from_expsyms_cmds_F77 | \
15483 export_symbols_cmds_F77 | \
15484 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15485 postinstall_cmds | postuninstall_cmds | \
15486 old_postinstall_cmds | old_postuninstall_cmds | \
15487 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15488 # Double-quote double-evaled strings.
15489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15498 *'\$0 --fallback-echo"')
15499 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15505 cat <<__EOF__ >> "$cfgfile"
15506 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15510 # Shell to use when invoking shell scripts.
15513 # Whether or not to build shared libraries.
15514 build_libtool_libs=$enable_shared
15516 # Whether or not to build static libraries.
15517 build_old_libs=$enable_static
15519 # Whether or not to add -lc for building shared libraries.
15520 build_libtool_need_lc=$archive_cmds_need_lc_F77
15522 # Whether or not to disallow shared libs when runtime libs are static
15523 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15525 # Whether or not to optimize for fast installation.
15526 fast_install=$enable_fast_install
15529 host_alias=$host_alias
15533 # The build system.
15534 build_alias=$build_alias
15538 # An echo program that does not interpret backslashes.
15543 AR_FLAGS=$lt_AR_FLAGS
15548 # LTCC compiler flags.
15549 LTCFLAGS=$lt_LTCFLAGS
15551 # A language-specific compiler.
15552 CC=$lt_compiler_F77
15554 # Is the compiler the GNU C compiler?
15560 # The linker used to build libraries.
15563 # Whether we need hard or soft links.
15566 # A BSD-compatible nm program.
15569 # A symbol stripping program
15572 # Used to examine libraries when file_magic_cmd begins "file"
15573 MAGIC_CMD=$MAGIC_CMD
15575 # Used on cygwin: DLL creation program.
15578 # Used on cygwin: object dumper.
15581 # Used on cygwin: assembler.
15584 # The name of the directory that contains temporary libtool files.
15587 # How to create reloadable object files.
15588 reload_flag=$lt_reload_flag
15589 reload_cmds=$lt_reload_cmds
15591 # How to pass a linker flag through the compiler.
15592 wl=$lt_lt_prog_compiler_wl_F77
15594 # Object file suffix (normally "o").
15595 objext="$ac_objext"
15597 # Old archive suffix (normally "a").
15600 # Shared library suffix (normally ".so").
15601 shrext_cmds='$shrext_cmds'
15603 # Executable file suffix (normally "").
15606 # Additional compiler flags for building library objects.
15607 pic_flag=$lt_lt_prog_compiler_pic_F77
15610 # What is the maximum length of a command?
15611 max_cmd_len=$lt_cv_sys_max_cmd_len
15613 # Does compiler simultaneously support -c and -o options?
15614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15616 # Must we lock files when doing compilation?
15617 need_locks=$lt_need_locks
15619 # Do we need the lib prefix for modules?
15620 need_lib_prefix=$need_lib_prefix
15622 # Do we need a version for libraries?
15623 need_version=$need_version
15625 # Whether dlopen is supported.
15626 dlopen_support=$enable_dlopen
15628 # Whether dlopen of programs is supported.
15629 dlopen_self=$enable_dlopen_self
15631 # Whether dlopen of statically linked programs is supported.
15632 dlopen_self_static=$enable_dlopen_self_static
15634 # Compiler flag to prevent dynamic linking.
15635 link_static_flag=$lt_lt_prog_compiler_static_F77
15637 # Compiler flag to turn off builtin functions.
15638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15640 # Compiler flag to allow reflexive dlopens.
15641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15643 # Compiler flag to generate shared objects directly from archives.
15644 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15646 # Compiler flag to generate thread-safe objects.
15647 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15649 # Library versioning type.
15650 version_type=$version_type
15652 # Format of library name prefix.
15653 libname_spec=$lt_libname_spec
15655 # List of archive names. First name is the real one, the rest are links.
15656 # The last name is the one that the linker finds with -lNAME.
15657 library_names_spec=$lt_library_names_spec
15659 # The coded name of the library, if different from the real name.
15660 soname_spec=$lt_soname_spec
15662 # Commands used to build and install an old-style archive.
15664 old_archive_cmds=$lt_old_archive_cmds_F77
15665 old_postinstall_cmds=$lt_old_postinstall_cmds
15666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15668 # Create an old-style archive from a shared archive.
15669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15671 # Create a temporary old-style archive to link instead of a shared archive.
15672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15674 # Commands used to build and install a shared archive.
15675 archive_cmds=$lt_archive_cmds_F77
15676 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15677 postinstall_cmds=$lt_postinstall_cmds
15678 postuninstall_cmds=$lt_postuninstall_cmds
15680 # Commands used to build a loadable module (assumed same as above if empty)
15681 module_cmds=$lt_module_cmds_F77
15682 module_expsym_cmds=$lt_module_expsym_cmds_F77
15684 # Commands to strip libraries.
15685 old_striplib=$lt_old_striplib
15686 striplib=$lt_striplib
15688 # Dependencies to place before the objects being linked to create a
15690 predep_objects=$lt_predep_objects_F77
15692 # Dependencies to place after the objects being linked to create a
15694 postdep_objects=$lt_postdep_objects_F77
15696 # Dependencies to place before the objects being linked to create a
15698 predeps=$lt_predeps_F77
15700 # Dependencies to place after the objects being linked to create a
15702 postdeps=$lt_postdeps_F77
15704 # The library search path used internally by the compiler when linking
15705 # a shared library.
15706 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15708 # Method to check whether dependent libraries are shared objects.
15709 deplibs_check_method=$lt_deplibs_check_method
15711 # Command to use when deplibs_check_method == file_magic.
15712 file_magic_cmd=$lt_file_magic_cmd
15714 # Flag that allows shared libraries with undefined symbols to be built.
15715 allow_undefined_flag=$lt_allow_undefined_flag_F77
15717 # Flag that forces no undefined symbols.
15718 no_undefined_flag=$lt_no_undefined_flag_F77
15720 # Commands used to finish a libtool library installation in a directory.
15721 finish_cmds=$lt_finish_cmds
15723 # Same as above, but a single script fragment to be evaled but not shown.
15724 finish_eval=$lt_finish_eval
15726 # Take the output of nm and produce a listing of raw symbols and C names.
15727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15729 # Transform the output of nm in a proper C declaration
15730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15732 # Transform the output of nm in a C name address pair
15733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15735 # This is the shared library runtime path variable.
15736 runpath_var=$runpath_var
15738 # This is the shared library path variable.
15739 shlibpath_var=$shlibpath_var
15741 # Is shlibpath searched before the hard-coded library search path?
15742 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15744 # How to hardcode a shared library path into an executable.
15745 hardcode_action=$hardcode_action_F77
15747 # Whether we should hardcode library paths into libraries.
15748 hardcode_into_libs=$hardcode_into_libs
15750 # Flag to hardcode \$libdir into a binary during linking.
15751 # This must work even if \$libdir does not exist.
15752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15754 # If ld is used when linking, flag to hardcode \$libdir into
15755 # a binary during linking. This must work even if \$libdir does
15757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15759 # Whether we need a single -rpath flag with a separated argument.
15760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15762 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15763 # resulting binary.
15764 hardcode_direct=$hardcode_direct_F77
15766 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15767 # resulting binary.
15768 hardcode_minus_L=$hardcode_minus_L_F77
15770 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15771 # the resulting binary.
15772 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15774 # Set to yes if building a shared library automatically hardcodes DIR into the library
15775 # and all subsequent libraries and executables linked against it.
15776 hardcode_automatic=$hardcode_automatic_F77
15778 # Variables whose values should be saved in libtool wrapper scripts and
15779 # restored at relink time.
15780 variables_saved_for_relink="$variables_saved_for_relink"
15782 # Whether libtool must link a program against all its dependency libraries.
15783 link_all_deplibs=$link_all_deplibs_F77
15785 # Compile-time system search path for libraries
15786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15788 # Run-time system search path for libraries
15789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15791 # Fix the shell variable \$srcfile for the compiler.
15792 fix_srcfile_path="$fix_srcfile_path_F77"
15794 # Set to yes if exported symbols are required.
15795 always_export_symbols=$always_export_symbols_F77
15797 # The commands to list exported symbols.
15798 export_symbols_cmds=$lt_export_symbols_cmds_F77
15800 # The commands to extract the exported symbol list from a shared archive.
15801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15803 # Symbols that should not be listed in the preloaded symbols.
15804 exclude_expsyms=$lt_exclude_expsyms_F77
15806 # Symbols that must always be exported.
15807 include_expsyms=$lt_include_expsyms_F77
15809 # ### END LIBTOOL TAG CONFIG: $tagname
15815 # If there is no Makefile yet, we rely on a make rule to execute
15816 # `config.status --recheck' to rerun these tests and create the
15817 # libtool script then.
15818 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15819 if test -f "$ltmain_in"; then
15820 test -f Makefile && make "$ltmain"
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15839 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15843 # Source file extension for Java test sources.
15846 # Object file extension for compiled Java test sources.
15850 # Code to be used in simple compile tests
15851 lt_simple_compile_test_code="class foo {}\n"
15853 # Code to be used in simple link tests
15854 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15858 # If no C compiler was specified, use CC.
15861 # If no C compiler flags were specified, use CFLAGS.
15862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15864 # Allow CC to be a program name with arguments.
15868 # save warnings/boilerplate of simple test code
15869 ac_outfile=conftest.$ac_objext
15870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15872 _lt_compiler_boilerplate=`cat conftest.err`
15875 ac_outfile=conftest.$ac_objext
15876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15878 _lt_linker_boilerplate=`cat conftest.err`
15882 # Allow CC to be a program name with arguments.
15887 for cc_temp in $compiler""; do
15889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15898 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15899 archive_cmds_need_lc_GCJ=no
15901 old_archive_cmds_GCJ=$old_archive_cmds
15904 lt_prog_compiler_no_builtin_flag_GCJ=
15906 if test "$GCC" = yes; then
15907 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15910 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15911 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15912 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 lt_cv_prog_compiler_rtti_exceptions=no
15916 ac_outfile=conftest.$ac_objext
15917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15918 lt_compiler_flag="-fno-rtti -fno-exceptions"
15919 # Insert the option either (1) after the last *FLAGS variable, or
15920 # (2) before a word containing "conftest.", or (3) at the end.
15921 # Note that $ac_compile itself does not contain backslashes and begins
15922 # with a dollar sign (not a hyphen), so the echo should work correctly.
15923 # The option is referenced via a variable to avoid confusing sed.
15924 lt_compile=`echo "$ac_compile" | $SED \
15925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15927 -e 's:$: $lt_compiler_flag:'`
15928 (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
15929 (eval "$lt_compile" 2>conftest.err)
15931 cat conftest.err >&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 if (exit $ac_status) && test -s "$ac_outfile"; then
15934 # The compiler can only warn and ignore the option if not recognized
15935 # So say no if there are warnings other than the usual output.
15936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15939 lt_cv_prog_compiler_rtti_exceptions=yes
15945 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15946 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15948 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15949 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15956 lt_prog_compiler_wl_GCJ=
15957 lt_prog_compiler_pic_GCJ=
15958 lt_prog_compiler_static_GCJ=
15960 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15961 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15963 if test "$GCC" = yes; then
15964 lt_prog_compiler_wl_GCJ='-Wl,'
15965 lt_prog_compiler_static_GCJ='-static'
15969 # All AIX code is PIC.
15970 if test "$host_cpu" = ia64; then
15971 # AIX 5 now supports IA64 processor
15972 lt_prog_compiler_static_GCJ='-Bstatic'
15977 # FIXME: we need at least 68020 code to build shared libraries, but
15978 # adding the `-m68020' flag to GCC prevents building anything better,
15980 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15983 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15984 # PIC is the default for these OSes.
15987 mingw* | pw32* | os2*)
15988 # This hack is so that the source file can tell whether it is being
15989 # built for inclusion in a dll (and should export symbols for example).
15990 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15993 darwin* | rhapsody*)
15994 # PIC is the default on this platform
15995 # Common symbols not allowed in MH_DYLIB files
15996 lt_prog_compiler_pic_GCJ='-fno-common'
16000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16001 # Instead, we relocate shared libraries at runtime.
16005 # Just because we use GCC doesn't mean we suddenly get shared libraries
16006 # on systems that don't support them.
16007 lt_prog_compiler_can_build_shared_GCJ=no
16012 if test -d /usr/nec; then
16013 lt_prog_compiler_pic_GCJ=-Kconform_pic
16018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16019 # not for PA HP-UX.
16025 lt_prog_compiler_pic_GCJ='-fPIC'
16031 lt_prog_compiler_pic_GCJ='-fPIC'
16035 # PORTME Check for flag to pass linker flags through the system compiler.
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 if test "$host_cpu" = ia64; then
16040 # AIX 5 now supports IA64 processor
16041 lt_prog_compiler_static_GCJ='-Bstatic'
16043 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16047 # PIC is the default on this platform
16048 # Common symbols not allowed in MH_DYLIB files
16049 case $cc_basename in
16051 lt_prog_compiler_pic_GCJ='-qnocommon'
16052 lt_prog_compiler_wl_GCJ='-Wl,'
16057 mingw* | pw32* | os2*)
16058 # This hack is so that the source file can tell whether it is being
16059 # built for inclusion in a dll (and should export symbols for example).
16060 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16063 hpux9* | hpux10* | hpux11*)
16064 lt_prog_compiler_wl_GCJ='-Wl,'
16065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16066 # not for PA HP-UX.
16072 lt_prog_compiler_pic_GCJ='+Z'
16075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16076 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16079 irix5* | irix6* | nonstopux*)
16080 lt_prog_compiler_wl_GCJ='-Wl,'
16081 # PIC (with -KPIC) is the default.
16082 lt_prog_compiler_static_GCJ='-non_shared'
16086 lt_prog_compiler_pic_GCJ='-KPIC'
16087 lt_prog_compiler_static_GCJ='-Bstatic'
16091 case $cc_basename in
16093 lt_prog_compiler_wl_GCJ='-Wl,'
16094 lt_prog_compiler_pic_GCJ='-KPIC'
16095 lt_prog_compiler_static_GCJ='-static'
16097 pgcc* | pgf77* | pgf90* | pgf95*)
16098 # Portland Group compilers (*not* the Pentium gcc compiler,
16099 # which looks to be a dead project)
16100 lt_prog_compiler_wl_GCJ='-Wl,'
16101 lt_prog_compiler_pic_GCJ='-fpic'
16102 lt_prog_compiler_static_GCJ='-Bstatic'
16105 lt_prog_compiler_wl_GCJ='-Wl,'
16106 # All Alpha code is PIC.
16107 lt_prog_compiler_static_GCJ='-non_shared'
16112 osf3* | osf4* | osf5*)
16113 lt_prog_compiler_wl_GCJ='-Wl,'
16114 # All OSF/1 code is PIC.
16115 lt_prog_compiler_static_GCJ='-non_shared'
16119 lt_prog_compiler_pic_GCJ='-KPIC'
16120 lt_prog_compiler_static_GCJ='-Bstatic'
16121 case $cc_basename in
16122 f77* | f90* | f95*)
16123 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16125 lt_prog_compiler_wl_GCJ='-Wl,';;
16130 lt_prog_compiler_wl_GCJ='-Qoption ld '
16131 lt_prog_compiler_pic_GCJ='-PIC'
16132 lt_prog_compiler_static_GCJ='-Bstatic'
16135 sysv4 | sysv4.2uw2* | sysv4.3*)
16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 lt_prog_compiler_pic_GCJ='-KPIC'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16142 if test -d /usr/nec ;then
16143 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16144 lt_prog_compiler_static_GCJ='-Bstatic'
16148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16149 lt_prog_compiler_wl_GCJ='-Wl,'
16150 lt_prog_compiler_pic_GCJ='-KPIC'
16151 lt_prog_compiler_static_GCJ='-Bstatic'
16155 lt_prog_compiler_wl_GCJ='-Wl,'
16156 lt_prog_compiler_can_build_shared_GCJ=no
16160 lt_prog_compiler_pic_GCJ='-pic'
16161 lt_prog_compiler_static_GCJ='-Bstatic'
16165 lt_prog_compiler_can_build_shared_GCJ=no
16170 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16171 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16174 # Check to make sure the PIC flag actually works.
16176 if test -n "$lt_prog_compiler_pic_GCJ"; then
16178 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16179 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16180 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 lt_prog_compiler_pic_works_GCJ=no
16184 ac_outfile=conftest.$ac_objext
16185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16187 # Insert the option either (1) after the last *FLAGS variable, or
16188 # (2) before a word containing "conftest.", or (3) at the end.
16189 # Note that $ac_compile itself does not contain backslashes and begins
16190 # with a dollar sign (not a hyphen), so the echo should work correctly.
16191 # The option is referenced via a variable to avoid confusing sed.
16192 lt_compile=`echo "$ac_compile" | $SED \
16193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16195 -e 's:$: $lt_compiler_flag:'`
16196 (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
16197 (eval "$lt_compile" 2>conftest.err)
16199 cat conftest.err >&5
16200 echo "$as_me:16200: \$? = $ac_status" >&5
16201 if (exit $ac_status) && test -s "$ac_outfile"; then
16202 # The compiler can only warn and ignore the option if not recognized
16203 # So say no if there are warnings other than the usual output.
16204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16207 lt_prog_compiler_pic_works_GCJ=yes
16213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16214 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16216 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16217 case $lt_prog_compiler_pic_GCJ in
16219 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16222 lt_prog_compiler_pic_GCJ=
16223 lt_prog_compiler_can_build_shared_GCJ=no
16228 # For platforms which do not support PIC, -DPIC is meaningless:
16230 lt_prog_compiler_pic_GCJ=
16233 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16238 # Check to make sure the static flag actually works.
16240 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16241 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16242 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16243 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 lt_prog_compiler_static_works_GCJ=no
16247 save_LDFLAGS="$LDFLAGS"
16248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16249 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251 # The linker can only warn and ignore the option if not recognized
16252 # So say no if there are warnings
16253 if test -s conftest.err; then
16254 # Append any errors to the config.log.
16255 cat conftest.err 1>&5
16256 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_prog_compiler_static_works_GCJ=yes
16262 lt_prog_compiler_static_works_GCJ=yes
16266 LDFLAGS="$save_LDFLAGS"
16269 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16270 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16272 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16275 lt_prog_compiler_static_GCJ=
16279 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16280 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16281 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 lt_cv_prog_compiler_c_o_GCJ=no
16285 $rm -r conftest 2>/dev/null
16289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16291 lt_compiler_flag="-o out/conftest2.$ac_objext"
16292 # Insert the option either (1) after the last *FLAGS variable, or
16293 # (2) before a word containing "conftest.", or (3) at the end.
16294 # Note that $ac_compile itself does not contain backslashes and begins
16295 # with a dollar sign (not a hyphen), so the echo should work correctly.
16296 lt_compile=`echo "$ac_compile" | $SED \
16297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16299 -e 's:$: $lt_compiler_flag:'`
16300 (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
16301 (eval "$lt_compile" 2>out/conftest.err)
16303 cat out/conftest.err >&5
16304 echo "$as_me:16304: \$? = $ac_status" >&5
16305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16307 # The compiler can only warn and ignore the option if not recognized
16308 # So say no if there are warnings
16309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16312 lt_cv_prog_compiler_c_o_GCJ=yes
16317 # SGI C++ compiler will create directory out/ii_files/ for
16318 # template instantiation
16319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16320 $rm out/* && rmdir out
16326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16330 hard_links="nottested"
16331 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16332 # do not overwrite the value of need_locks provided by the user
16333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16339 ln conftest.a conftest.b 2>&5 || hard_links=no
16340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16341 echo "$as_me:$LINENO: result: $hard_links" >&5
16342 echo "${ECHO_T}$hard_links" >&6
16343 if test "$hard_links" = no; then
16344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16356 allow_undefined_flag_GCJ=
16357 enable_shared_with_static_runtimes_GCJ=no
16359 archive_expsym_cmds_GCJ=
16360 old_archive_From_new_cmds_GCJ=
16361 old_archive_from_expsyms_cmds_GCJ=
16362 export_dynamic_flag_spec_GCJ=
16363 whole_archive_flag_spec_GCJ=
16364 thread_safe_flag_spec_GCJ=
16365 hardcode_libdir_flag_spec_GCJ=
16366 hardcode_libdir_flag_spec_ld_GCJ=
16367 hardcode_libdir_separator_GCJ=
16368 hardcode_direct_GCJ=no
16369 hardcode_minus_L_GCJ=no
16370 hardcode_shlibpath_var_GCJ=unsupported
16371 link_all_deplibs_GCJ=unknown
16372 hardcode_automatic_GCJ=no
16374 module_expsym_cmds_GCJ=
16375 always_export_symbols_GCJ=no
16376 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377 # include_expsyms should be a list of space-separated symbols to be *always*
16378 # included in the symbol list
16379 include_expsyms_GCJ=
16380 # exclude_expsyms can be an extended regexp of symbols to exclude
16381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16383 # as well as any symbol that contains `d'.
16384 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16386 # platforms (ab)use it in PIC code, but their linkers get confused if
16387 # the symbol is explicitly referenced. Since portable code cannot
16388 # rely on this symbol name, it's probably fine to never include it in
16389 # preloaded symbol tables.
16390 extract_expsyms_cmds=
16391 # Just being paranoid about ensuring that cc_basename is set.
16392 for cc_temp in $compiler""; do
16394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16403 cygwin* | mingw* | pw32*)
16404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16405 # When not using gcc, we currently assume that we are using
16406 # Microsoft Visual C++.
16407 if test "$GCC" != yes; then
16412 # we just hope/assume this is gcc and not c89 (= MSVC++)
16421 if test "$with_gnu_ld" = yes; then
16422 # If archive_cmds runs LD, not CC, wlarc should be empty
16425 # Set some defaults for GNU ld with shared library support. These
16426 # are reset later if shared libraries are not supported. Putting them
16427 # here allows them to be overridden if necessary.
16428 runpath_var=LD_RUN_PATH
16429 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16430 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16431 # ancient GNU ld didn't support --whole-archive et. al.
16432 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16433 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16435 whole_archive_flag_spec_GCJ=
16437 supports_anon_versioning=no
16438 case `$LD -v 2>/dev/null` in
16439 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16440 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16441 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16442 *\ 2.11.*) ;; # other 2.11 versions
16443 *) supports_anon_versioning=yes ;;
16446 # See if GNU ld supports shared libraries.
16448 aix3* | aix4* | aix5*)
16449 # On AIX/PPC, the GNU linker is very broken
16450 if test "$host_cpu" != ia64; then
16454 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16455 *** to be unable to reliably create shared libraries on AIX.
16456 *** Therefore, libtool is disabling shared libraries support. If you
16457 *** really care for shared libraries, you may want to modify your PATH
16458 *** so that a non-GNU linker is found, and then restart.
16465 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)'
16466 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16467 hardcode_minus_L_GCJ=yes
16469 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16470 # that the semantics of dynamic libraries on AmigaOS, at least up
16471 # to version 4, is to share data among multiple programs linked
16472 # with the same dynamic library. Since this doesn't match the
16473 # behavior of shared libraries on other platforms, we can't use
16479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480 allow_undefined_flag_GCJ=unsupported
16481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16482 # support --undefined. This deserves some investigation. FIXME
16483 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16489 cygwin* | mingw* | pw32*)
16490 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16491 # as there is no search path for DLLs.
16492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16493 allow_undefined_flag_GCJ=unsupported
16494 always_export_symbols_GCJ=no
16495 enable_shared_with_static_runtimes_GCJ=yes
16496 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16498 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16500 # If the export-symbols file already is a .def file (1st line
16501 # is EXPORTS), use it as is; otherwise, prepend...
16502 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16503 cp $export_symbols $output_objdir/$soname.def;
16505 echo EXPORTS > $output_objdir/$soname.def;
16506 cat $export_symbols >> $output_objdir/$soname.def;
16508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16515 hardcode_direct_GCJ=no
16516 hardcode_shlibpath_var_GCJ=no
16517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16518 export_dynamic_flag_spec_GCJ='${wl}-E'
16519 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16520 # Instead, shared libraries are loaded at an image base (0x10000000 by
16521 # default) and relocated if they conflict, which is a slow very memory
16522 # consuming and fragmenting process. To avoid this, we pick a random,
16523 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16524 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16525 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'
16526 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'
16530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532 case $cc_basename,$host_cpu in
16533 pgcc*) # Portland Group C compiler
16534 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'
16535 tmp_addflag=' $pic_flag'
16537 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16538 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'
16539 tmp_addflag=' $pic_flag -Mnomain' ;;
16540 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16541 tmp_addflag=' -i_dynamic' ;;
16542 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16543 tmp_addflag=' -i_dynamic -nofor_main' ;;
16544 ifc* | ifort*) # Intel Fortran compiler
16545 tmp_addflag=' -nofor_main' ;;
16547 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16549 if test $supports_anon_versioning = yes; then
16550 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16551 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16552 $echo "local: *; };" >> $output_objdir/$libname.ver~
16553 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16562 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16571 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16576 *** create shared libraries on Solaris systems. Therefore, libtool
16577 *** is disabling shared libraries support. We urge you to upgrade GNU
16578 *** binutils to release 2.9.1 or newer. Another option is to modify
16579 *** your PATH or compiler configuration so that the native linker is
16580 *** used, and then restart.
16583 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16592 case `$LD -v 2>&1` in
16593 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16598 *** reliably create shared libraries on SCO systems. Therefore, libtool
16599 *** is disabling shared libraries support. We urge you to upgrade GNU
16600 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16601 *** your PATH or compiler configuration so that the native linker is
16602 *** used, and then restart.
16607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16608 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16609 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16610 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16619 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16621 hardcode_direct_GCJ=yes
16622 hardcode_shlibpath_var_GCJ=no
16626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16627 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16628 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16635 if test "$ld_shlibs_GCJ" = no; then
16637 hardcode_libdir_flag_spec_GCJ=
16638 export_dynamic_flag_spec_GCJ=
16639 whole_archive_flag_spec_GCJ=
16642 # PORTME fill in a description of your system's linker (not GNU ld)
16645 allow_undefined_flag_GCJ=unsupported
16646 always_export_symbols_GCJ=yes
16647 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'
16648 # Note: this linker hardcodes the directories in LIBPATH if there
16649 # are no directories specified by -L.
16650 hardcode_minus_L_GCJ=yes
16651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16652 # Neither direct hardcoding nor static linking is supported with a
16654 hardcode_direct_GCJ=unsupported
16659 if test "$host_cpu" = ia64; then
16660 # On IA64, the linker does run time linking by default, so we don't
16661 # have to do anything special.
16662 aix_use_runtimelinking=no
16663 exp_sym_flag='-Bexport'
16666 # If we're using GNU nm, then we don't want the "-C" option.
16667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669 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'
16671 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'
16673 aix_use_runtimelinking=no
16675 # Test if we are trying to use run time linking or normal
16676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16677 # need to do runtime linking.
16678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16679 for ld_flag in $LDFLAGS; do
16680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16681 aix_use_runtimelinking=yes
16688 exp_sym_flag='-bexport'
16689 no_entry_flag='-bnoentry'
16692 # When large executables or shared objects are built, AIX ld can
16693 # have problems creating the table of contents. If linking a library
16694 # or program results in "error TOC overflow" add -mminimal-toc to
16695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16698 archive_cmds_GCJ=''
16699 hardcode_direct_GCJ=yes
16700 hardcode_libdir_separator_GCJ=':'
16701 link_all_deplibs_GCJ=yes
16703 if test "$GCC" = yes; then
16704 case $host_os in aix4.[012]|aix4.[012].*)
16705 # We only want to do this on AIX 4.2 and lower, the check
16706 # below for broken collect2 doesn't work under 4.3+
16707 collect2name=`${CC} -print-prog-name=collect2`
16708 if test -f "$collect2name" && \
16709 strings "$collect2name" | grep resolve_lib_name >/dev/null
16711 # We have reworked collect2
16712 hardcode_direct_GCJ=yes
16714 # We have old collect2
16715 hardcode_direct_GCJ=unsupported
16716 # It fails to find uninstalled libraries when the uninstalled
16717 # path is not listed in the libpath. Setting hardcode_minus_L
16718 # to unsupported forces relinking
16719 hardcode_minus_L_GCJ=yes
16720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721 hardcode_libdir_separator_GCJ=
16725 shared_flag='-shared'
16726 if test "$aix_use_runtimelinking" = yes; then
16727 shared_flag="$shared_flag "'${wl}-G'
16731 if test "$host_cpu" = ia64; then
16732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16733 # chokes on -Wl,-G. The following line is correct:
16736 if test "$aix_use_runtimelinking" = yes; then
16737 shared_flag='${wl}-G'
16739 shared_flag='${wl}-bM:SRE'
16744 # It seems that -bexpall does not export symbols beginning with
16745 # underscore (_), so it is better to generate a list of symbols to export.
16746 always_export_symbols_GCJ=yes
16747 if test "$aix_use_runtimelinking" = yes; then
16748 # Warning - without using the other runtime loading flags (-brtl),
16749 # -berok will link without error, but may produce a broken library.
16750 allow_undefined_flag_GCJ='-berok'
16751 # Determine the default libpath from the value encoded in an empty executable.
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16769 (eval $ac_link) 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16792 # Check for a 64-bit object if we didn't find anything.
16793 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16800 rm -f conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16804 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16805 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"
16807 if test "$host_cpu" = ia64; then
16808 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16809 allow_undefined_flag_GCJ="-z nodefs"
16810 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"
16812 # Determine the default libpath from the value encoded in an empty executable.
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16830 (eval $ac_link) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag"
16838 || test ! -s conftest.err'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest$ac_exeext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16853 # Check for a 64-bit object if we didn't find anything.
16854 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16861 rm -f conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16865 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16866 # Warning - without using the other run time loading flags,
16867 # -berok will link without error, but may produce a broken library.
16868 no_undefined_flag_GCJ=' ${wl}-bernotok'
16869 allow_undefined_flag_GCJ=' ${wl}-berok'
16870 # Exported symbols can be pulled into shared objects from archives
16871 whole_archive_flag_spec_GCJ='$convenience'
16872 archive_cmds_need_lc_GCJ=yes
16873 # This is similar to how AIX traditionally builds its shared libraries.
16874 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'
16880 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)'
16881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882 hardcode_minus_L_GCJ=yes
16883 # see comment about different semantics on the GNU ld section
16888 export_dynamic_flag_spec_GCJ=-rdynamic
16891 cygwin* | mingw* | pw32*)
16892 # When not using gcc, we currently assume that we are using
16893 # Microsoft Visual C++.
16894 # hardcode_libdir_flag_spec is actually meaningless, as there is
16895 # no search path for DLLs.
16896 hardcode_libdir_flag_spec_GCJ=' '
16897 allow_undefined_flag_GCJ=unsupported
16898 # Tell ltmain to make .lib files, not .a files.
16900 # Tell ltmain to make .dll files, not .so files.
16902 # FIXME: Setting linknames here is a bad hack.
16903 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16904 # The linker will automatically build a .lib file if we build a DLL.
16905 old_archive_From_new_cmds_GCJ='true'
16906 # FIXME: Should let the user specify the lib program.
16907 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16908 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16909 enable_shared_with_static_runtimes_GCJ=yes
16912 darwin* | rhapsody*)
16914 rhapsody* | darwin1.[012])
16915 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16918 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16919 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16921 case ${MACOSX_DEPLOYMENT_TARGET} in
16923 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16932 archive_cmds_need_lc_GCJ=no
16933 hardcode_direct_GCJ=no
16934 hardcode_automatic_GCJ=yes
16935 hardcode_shlibpath_var_GCJ=unsupported
16936 whole_archive_flag_spec_GCJ=''
16937 link_all_deplibs_GCJ=yes
16938 if test "$GCC" = yes ; then
16939 output_verbose_link_cmd='echo'
16940 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16941 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16942 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16943 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16944 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}'
16946 case $cc_basename in
16948 output_verbose_link_cmd='echo'
16949 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16950 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16951 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16952 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16953 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}'
16963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965 hardcode_shlibpath_var_GCJ=no
16972 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16973 # support. Future versions do this automatically, but an explicit c++rt0.o
16974 # does not break anything, and helps significantly (at the cost of a little
16977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16978 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979 hardcode_direct_GCJ=yes
16980 hardcode_shlibpath_var_GCJ=no
16983 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct_GCJ=yes
16987 hardcode_minus_L_GCJ=yes
16988 hardcode_shlibpath_var_GCJ=no
16991 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16992 freebsd* | kfreebsd*-gnu | dragonfly*)
16993 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16994 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16995 hardcode_direct_GCJ=yes
16996 hardcode_shlibpath_var_GCJ=no
17000 if test "$GCC" = yes; then
17001 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'
17003 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'
17005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006 hardcode_libdir_separator_GCJ=:
17007 hardcode_direct_GCJ=yes
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17012 export_dynamic_flag_spec_GCJ='${wl}-E'
17016 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17017 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17019 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17021 if test "$with_gnu_ld" = no; then
17022 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17023 hardcode_libdir_separator_GCJ=:
17025 hardcode_direct_GCJ=yes
17026 export_dynamic_flag_spec_GCJ='${wl}-E'
17028 # hardcode_minus_L: Not really in the search PATH,
17029 # but as the default location of the library.
17030 hardcode_minus_L_GCJ=yes
17035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17038 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17044 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17060 if test "$with_gnu_ld" = no; then
17061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17062 hardcode_libdir_separator_GCJ=:
17066 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17067 hardcode_direct_GCJ=no
17068 hardcode_shlibpath_var_GCJ=no
17071 hardcode_direct_GCJ=yes
17072 export_dynamic_flag_spec_GCJ='${wl}-E'
17074 # hardcode_minus_L: Not really in the search PATH,
17075 # but as the default location of the library.
17076 hardcode_minus_L_GCJ=yes
17082 irix5* | irix6* | nonstopux*)
17083 if test "$GCC" = yes; then
17084 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'
17086 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'
17087 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17089 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17090 hardcode_libdir_separator_GCJ=:
17091 link_all_deplibs_GCJ=yes
17095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17096 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17098 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17101 hardcode_direct_GCJ=yes
17102 hardcode_shlibpath_var_GCJ=no
17106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_direct_GCJ=yes
17108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17109 hardcode_libdir_separator_GCJ=:
17110 hardcode_shlibpath_var_GCJ=no
17114 hardcode_direct_GCJ=yes
17115 hardcode_shlibpath_var_GCJ=no
17116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17117 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17120 export_dynamic_flag_spec_GCJ='${wl}-E'
17123 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17136 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17137 hardcode_minus_L_GCJ=yes
17138 allow_undefined_flag_GCJ=unsupported
17139 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'
17140 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17144 if test "$GCC" = yes; then
17145 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17146 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'
17148 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17149 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'
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17155 osf4* | osf5*) # as osf3* with the addition of -msym flag
17156 if test "$GCC" = yes; then
17157 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17158 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'
17159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17161 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17162 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'
17163 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~
17164 $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'
17166 # Both c and cxx compiler support -rpath directly
17167 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17169 hardcode_libdir_separator_GCJ=:
17173 no_undefined_flag_GCJ=' -z text'
17174 if test "$GCC" = yes; then
17176 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17177 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17181 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17183 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17185 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17186 hardcode_shlibpath_var_GCJ=no
17188 solaris2.[0-5] | solaris2.[0-5].*) ;;
17190 # The compiler driver will combine linker options so we
17191 # cannot just pass the convience library names through
17192 # without $wl, iff we do not link with $LD.
17193 # Luckily, gcc supports the same syntax we need for Sun Studio.
17194 # Supported since Solaris 2.6 (maybe 2.5.1?)
17197 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17199 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17202 link_all_deplibs_GCJ=yes
17206 if test "x$host_vendor" = xsequent; then
17207 # Use $CC to link under sequent, because it throws in some extra .o
17208 # files that make .init and .fini sections work.
17209 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17211 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214 hardcode_direct_GCJ=yes
17215 hardcode_minus_L_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17220 case $host_vendor in
17222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_direct_GCJ=yes # is this really true???
17226 ## LD is ld it makes a PLAMLIB
17227 ## CC just makes a GrossModule.
17228 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17229 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17230 hardcode_direct_GCJ=no
17233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17237 runpath_var='LD_RUN_PATH'
17238 hardcode_shlibpath_var_GCJ=no
17242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243 hardcode_shlibpath_var_GCJ=no
17244 export_dynamic_flag_spec_GCJ='-Bexport'
17248 if test -d /usr/nec; then
17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 hardcode_shlibpath_var_GCJ=no
17251 runpath_var=LD_RUN_PATH
17252 hardcode_runpath_var=yes
17257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17258 no_undefined_flag_GCJ='${wl}-z,text'
17259 archive_cmds_need_lc_GCJ=no
17260 hardcode_shlibpath_var_GCJ=no
17261 runpath_var='LD_RUN_PATH'
17263 if test "$GCC" = yes; then
17264 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17265 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17267 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17272 sysv5* | sco3.2v5* | sco5v6*)
17273 # Note: We can NOT use -z defs as we might desire, because we do not
17274 # link with -lc, and that would cause any symbols used from libc to
17275 # always be unresolved, which means just about no library would
17276 # ever link correctly. If we're not using GNU ld we use -z text
17277 # though, which does catch some bad symbols but isn't as heavy-handed
17279 no_undefined_flag_GCJ='${wl}-z,text'
17280 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17281 archive_cmds_need_lc_GCJ=no
17282 hardcode_shlibpath_var_GCJ=no
17283 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17284 hardcode_libdir_separator_GCJ=':'
17285 link_all_deplibs_GCJ=yes
17286 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17287 runpath_var='LD_RUN_PATH'
17289 if test "$GCC" = yes; then
17290 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17291 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17293 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17294 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301 hardcode_shlibpath_var_GCJ=no
17310 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17311 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17312 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17315 # Do we need to explicitly link libc?
17317 case "x$archive_cmds_need_lc_GCJ" in
17319 # Assume -lc should be added
17320 archive_cmds_need_lc_GCJ=yes
17322 if test "$enable_shared" = yes && test "$GCC" = yes; then
17323 case $archive_cmds_GCJ in
17325 # FIXME: we may have to deal with multi-command sequences.
17328 # Test whether the compiler implicitly links with -lc since on some
17329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330 # to ld, don't add -lc before -lgcc.
17331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } 2>conftest.err; then
17343 libobjs=conftest.$ac_objext
17345 wl=$lt_prog_compiler_wl_GCJ
17346 pic_flag=$lt_prog_compiler_pic_GCJ
17352 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17353 allow_undefined_flag_GCJ=
17354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17355 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }
17360 archive_cmds_need_lc_GCJ=no
17362 archive_cmds_need_lc_GCJ=yes
17364 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17366 cat conftest.err 1>&5
17369 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17370 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17377 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17379 library_names_spec=
17380 libname_spec='lib$name'
17384 postuninstall_cmds=
17388 shlibpath_overrides_runpath=unknown
17390 dynamic_linker="$host_os ld.so"
17391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17392 if test "$GCC" = yes; then
17393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17395 # if the path contains ";" then we assume it to be the separator
17396 # otherwise default to the standard path separator (i.e. ":") - it is
17397 # assumed that no part of a normal pathname contains ";" but that should
17398 # okay in the real world where ";" in dirpaths is itself problematic.
17399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17406 need_lib_prefix=unknown
17407 hardcode_into_libs=no
17409 # when you set need_version to no, make sure it does not cause -set_version
17410 # flags to be left without arguments
17411 need_version=unknown
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17417 shlibpath_var=LIBPATH
17419 # AIX 3 has no versioning support, so we append a major version to the name.
17420 soname_spec='${libname}${release}${shared_ext}$major'
17427 hardcode_into_libs=yes
17428 if test "$host_cpu" = ia64; then
17429 # AIX 5 supports IA64
17430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17431 shlibpath_var=LD_LIBRARY_PATH
17433 # With GCC up to 2.95.x, collect2 would create an import file
17434 # for dependence libraries. The import file would start with
17435 # the line `#! .'. This would cause the generated library to
17436 # depend on `.', always an invalid library. This was fixed in
17437 # development snapshots of GCC prior to 3.0.
17439 aix4 | aix4.[01] | aix4.[01].*)
17440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17445 can_build_shared=no
17449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17450 # soname into executable. Probably we can add versioning support to
17451 # collect2, so additional links can be useful in future.
17452 if test "$aix_use_runtimelinking" = yes; then
17453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17454 # instead of lib<name>.a to let people know that these are not
17455 # typical AIX shared libraries.
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 # We preserve .a as extension for shared libraries through AIX4.2
17459 # and later when we are not doing run time linking.
17460 library_names_spec='${libname}${release}.a $libname.a'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LIBPATH
17468 library_names_spec='$libname.ixlibrary $libname.a'
17469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17470 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'
17474 library_names_spec='${libname}${shared_ext}'
17475 dynamic_linker="$host_os ld.so"
17476 shlibpath_var=LIBRARY_PATH
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17488 # the default ld.so.conf also contains /usr/contrib/lib and
17489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17490 # libtool to hard-code these into programs
17493 cygwin* | mingw* | pw32*)
17494 version_type=windows
17499 case $GCC,$host_os in
17500 yes,cygwin* | yes,mingw* | yes,pw32*)
17501 library_names_spec='$libname.dll.a'
17502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17503 postinstall_cmds='base_file=`basename \${file}`~
17504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17505 dldir=$destdir/`dirname \$dlpath`~
17506 test -d \$dldir || mkdir -p \$dldir~
17507 $install_prog $dir/$dlname \$dldir/$dlname~
17508 chmod a+x \$dldir/$dlname'
17509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17510 dlpath=$dir/\$dldll~
17512 shlibpath_overrides_runpath=yes
17516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17521 # MinGW DLLs use traditional 'lib' prefix
17522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17525 # It is most probably a Windows format PATH printed by
17526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17527 # path with ; separators, and with drive letters. We can handle the
17528 # drive letters (cygwin fileutils understands them), so leave them,
17529 # especially as we might pass files found there to a mingw objdump,
17530 # which wouldn't understand a cygwinified path. Ahh.
17531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17537 # pw32 DLLs use 'pw' prefix rather than 'lib'
17538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17547 dynamic_linker='Win32 ld.exe'
17548 # FIXME: first we should search . and the directory the executable is in
17552 darwin* | rhapsody*)
17553 dynamic_linker="$host_os dyld"
17554 version_type=darwin
17557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17558 soname_spec='${libname}${release}${major}$shared_ext'
17559 shlibpath_overrides_runpath=yes
17560 shlibpath_var=DYLD_LIBRARY_PATH
17561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17563 if test "$GCC" = yes; then
17564 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 shlibpath_overrides_runpath=no
17592 hardcode_into_libs=yes
17593 dynamic_linker='GNU ld.so'
17596 freebsd* | dragonfly*)
17597 # DragonFly does not have aout. When/if they implement a new
17598 # versioning mechanism, adjust this.
17599 if test -x /usr/bin/objformat; then
17600 objformat=`/usr/bin/objformat`
17603 freebsd[123]*) objformat=aout ;;
17604 *) objformat=elf ;;
17607 version_type=freebsd-$objformat
17608 case $version_type in
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17619 shlibpath_var=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath=yes
17624 freebsd3.[01]* | freebsdelf3.[01]*)
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17630 shlibpath_overrides_runpath=no
17631 hardcode_into_libs=yes
17633 freebsd*) # from 4.6 on
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 hardcode_into_libs=yes
17650 hpux9* | hpux10* | hpux11*)
17651 # Give a soname corresponding to the major version so that dld.sl refuses to
17652 # link against other versions.
17659 hardcode_into_libs=yes
17660 dynamic_linker="$host_os dld.so"
17661 shlibpath_var=LD_LIBRARY_PATH
17662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 if test "X$HPUX_IA64_MODE" = X32; then
17666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17674 hardcode_into_libs=yes
17675 dynamic_linker="$host_os dld.sl"
17676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17685 dynamic_linker="$host_os dld.sl"
17686 shlibpath_var=SHLIB_PATH
17687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17693 postinstall_cmds='chmod 555 $lib'
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 shlibpath_overrides_runpath=no
17705 hardcode_into_libs=yes
17708 irix5* | irix6* | nonstopux*)
17710 nonstopux*) version_type=nonstopux ;;
17712 if test "$lt_cv_prog_gnu_ld" = yes; then
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17723 irix5* | nonstopux*)
17724 libsuff= shlibsuff=
17727 case $LD in # libtool.m4 will add one of these switches to LD
17728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17729 libsuff= shlibsuff= libmagic=32-bit;;
17730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17731 libsuff=32 shlibsuff=N32 libmagic=N32;;
17732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17734 *) libsuff= shlibsuff= libmagic=never-match;;
17738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17739 shlibpath_overrides_runpath=no
17740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17742 hardcode_into_libs=yes
17745 # No shared lib support for Linux oldld, aout, or coff.
17746 linux*oldld* | linux*aout* | linux*coff*)
17750 # This must be Linux ELF.
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=no
17760 # This implies no fast_install, which is unacceptable.
17761 # Some rework will be needed to allow for fast_install
17762 # before this can be enabled.
17763 hardcode_into_libs=yes
17765 # find out which ABI we are using
17767 case "$host_cpu" in
17768 x86_64*|s390x*|powerpc64*)
17769 echo '#line 17769 "configure"' > conftest.$ac_ext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771 (eval $ac_compile) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; then
17775 case `/usr/bin/file conftest.$ac_objext` in
17778 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17786 # Append ld.so.conf contents to the search path
17787 if test -f /etc/ld.so.conf; then
17788 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17789 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17792 # We used to test for /lib/ld.so.1 and disable shared libraries on
17793 # powerpc, because MkLinux only supported shared libraries with the
17794 # GNU dynamic linker. Since this was broken with cross compilers,
17795 # most powerpc-linux boxes support dynamic linking these days and
17796 # people can always --disable-shared, the test was removed, and we
17797 # assume the GNU/Linux dynamic linker is in use.
17798 dynamic_linker='GNU/Linux ld.so'
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 shlibpath_var=LD_LIBRARY_PATH
17808 shlibpath_overrides_runpath=no
17809 hardcode_into_libs=yes
17810 dynamic_linker='GNU ld.so'
17817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17820 dynamic_linker='NetBSD (a.out) ld.so'
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17824 dynamic_linker='NetBSD ld.elf_so'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=yes
17828 hardcode_into_libs=yes
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 shlibpath_var=LD_LIBRARY_PATH
17835 shlibpath_overrides_runpath=yes
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 soname_spec='${libname}${release}${shared_ext}$major'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17850 sys_lib_dlsearch_path_spec="/usr/lib"
17852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17854 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17855 *) need_version=no ;;
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17862 openbsd2.[89] | openbsd2.[89].*)
17863 shlibpath_overrides_runpath=no
17866 shlibpath_overrides_runpath=yes
17870 shlibpath_overrides_runpath=yes
17875 libname_spec='$name'
17878 library_names_spec='$libname${shared_ext} $libname.a'
17879 dynamic_linker='OS/2 ld.exe'
17880 shlibpath_var=LIBPATH
17883 osf3* | osf4* | osf5*)
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899 soname_spec='${libname}${release}${shared_ext}$major'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 shlibpath_overrides_runpath=yes
17902 hardcode_into_libs=yes
17903 # ldd complains unless libraries are executable
17904 postinstall_cmds='chmod +x $lib'
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes
17913 if test "$with_gnu_ld" = yes; then
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17922 soname_spec='${libname}${release}${shared_ext}$major'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 case $host_vendor in
17926 shlibpath_overrides_runpath=no
17928 export_dynamic_flag_spec='${wl}-Blargedynsym'
17929 runpath_var=LD_RUN_PATH
17937 shlibpath_overrides_runpath=no
17938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17944 if test -d /usr/nec ;then
17946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17947 soname_spec='$libname${shared_ext}.$major'
17948 shlibpath_var=LD_LIBRARY_PATH
17952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17953 version_type=freebsd-elf
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 hardcode_into_libs=yes
17960 if test "$with_gnu_ld" = yes; then
17961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17962 shlibpath_overrides_runpath=no
17964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17965 shlibpath_overrides_runpath=yes
17968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17972 sys_lib_dlsearch_path_spec='/usr/lib'
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978 soname_spec='${libname}${release}${shared_ext}$major'
17979 shlibpath_var=LD_LIBRARY_PATH
17986 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17987 echo "${ECHO_T}$dynamic_linker" >&6
17988 test "$dynamic_linker" = no && can_build_shared=no
17990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17991 if test "$GCC" = yes; then
17992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17997 hardcode_action_GCJ=
17998 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17999 test -n "$runpath_var_GCJ" || \
18000 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18002 # We can hardcode non-existant directories.
18003 if test "$hardcode_direct_GCJ" != no &&
18004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18005 # have to relink, otherwise we might link with an installed library
18006 # when we should be linking with a yet-to-be-installed one
18007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18008 test "$hardcode_minus_L_GCJ" != no; then
18009 # Linking always hardcodes the temporary library directory.
18010 hardcode_action_GCJ=relink
18012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18013 hardcode_action_GCJ=immediate
18016 # We cannot hardcode anything, or else we can only hardcode existing
18018 hardcode_action_GCJ=unsupported
18020 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18021 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18023 if test "$hardcode_action_GCJ" = relink; then
18024 # Fast installation is not supported
18025 enable_fast_install=no
18026 elif test "$shlibpath_overrides_runpath" = yes ||
18027 test "$enable_shared" = no; then
18028 # Fast installation is not necessary
18029 enable_fast_install=needless
18033 # The else clause should only fire when bootstrapping the
18034 # libtool distribution, otherwise you forgot to ship ltmain.sh
18035 # with your package, and you will get complaints that there are
18036 # no rules to generate ltmain.sh.
18037 if test -f "$ltmain"; then
18038 # See if we are running on zsh, and set the options which allow our commands through
18039 # without removal of \ escapes.
18040 if test -n "${ZSH_VERSION+set}" ; then
18041 setopt NO_GLOB_SUBST
18043 # Now quote all the things that may contain metacharacters while being
18044 # careful not to overquote the AC_SUBSTed values. We take copies of the
18045 # variables and quote the copies for generation of the libtool script.
18046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18050 deplibs_check_method reload_flag reload_cmds need_locks \
18051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18052 lt_cv_sys_global_symbol_to_c_name_address \
18053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18054 old_postinstall_cmds old_postuninstall_cmds \
18058 lt_prog_compiler_wl_GCJ \
18059 lt_prog_compiler_pic_GCJ \
18060 lt_prog_compiler_static_GCJ \
18061 lt_prog_compiler_no_builtin_flag_GCJ \
18062 export_dynamic_flag_spec_GCJ \
18063 thread_safe_flag_spec_GCJ \
18064 whole_archive_flag_spec_GCJ \
18065 enable_shared_with_static_runtimes_GCJ \
18066 old_archive_cmds_GCJ \
18067 old_archive_from_new_cmds_GCJ \
18068 predep_objects_GCJ \
18069 postdep_objects_GCJ \
18072 compiler_lib_search_path_GCJ \
18074 archive_expsym_cmds_GCJ \
18075 postinstall_cmds_GCJ \
18076 postuninstall_cmds_GCJ \
18077 old_archive_from_expsyms_cmds_GCJ \
18078 allow_undefined_flag_GCJ \
18079 no_undefined_flag_GCJ \
18080 export_symbols_cmds_GCJ \
18081 hardcode_libdir_flag_spec_GCJ \
18082 hardcode_libdir_flag_spec_ld_GCJ \
18083 hardcode_libdir_separator_GCJ \
18084 hardcode_automatic_GCJ \
18086 module_expsym_cmds_GCJ \
18087 lt_cv_prog_compiler_c_o_GCJ \
18088 exclude_expsyms_GCJ \
18089 include_expsyms_GCJ; do
18092 old_archive_cmds_GCJ | \
18093 old_archive_from_new_cmds_GCJ | \
18094 archive_cmds_GCJ | \
18095 archive_expsym_cmds_GCJ | \
18096 module_cmds_GCJ | \
18097 module_expsym_cmds_GCJ | \
18098 old_archive_from_expsyms_cmds_GCJ | \
18099 export_symbols_cmds_GCJ | \
18100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18101 postinstall_cmds | postuninstall_cmds | \
18102 old_postinstall_cmds | old_postuninstall_cmds | \
18103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18104 # Double-quote double-evaled strings.
18105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18114 *'\$0 --fallback-echo"')
18115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18121 cat <<__EOF__ >> "$cfgfile"
18122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18126 # Shell to use when invoking shell scripts.
18129 # Whether or not to build shared libraries.
18130 build_libtool_libs=$enable_shared
18132 # Whether or not to build static libraries.
18133 build_old_libs=$enable_static
18135 # Whether or not to add -lc for building shared libraries.
18136 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18138 # Whether or not to disallow shared libs when runtime libs are static
18139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18141 # Whether or not to optimize for fast installation.
18142 fast_install=$enable_fast_install
18145 host_alias=$host_alias
18149 # The build system.
18150 build_alias=$build_alias
18154 # An echo program that does not interpret backslashes.
18159 AR_FLAGS=$lt_AR_FLAGS
18164 # LTCC compiler flags.
18165 LTCFLAGS=$lt_LTCFLAGS
18167 # A language-specific compiler.
18168 CC=$lt_compiler_GCJ
18170 # Is the compiler the GNU C compiler?
18176 # The linker used to build libraries.
18179 # Whether we need hard or soft links.
18182 # A BSD-compatible nm program.
18185 # A symbol stripping program
18188 # Used to examine libraries when file_magic_cmd begins "file"
18189 MAGIC_CMD=$MAGIC_CMD
18191 # Used on cygwin: DLL creation program.
18194 # Used on cygwin: object dumper.
18197 # Used on cygwin: assembler.
18200 # The name of the directory that contains temporary libtool files.
18203 # How to create reloadable object files.
18204 reload_flag=$lt_reload_flag
18205 reload_cmds=$lt_reload_cmds
18207 # How to pass a linker flag through the compiler.
18208 wl=$lt_lt_prog_compiler_wl_GCJ
18210 # Object file suffix (normally "o").
18211 objext="$ac_objext"
18213 # Old archive suffix (normally "a").
18216 # Shared library suffix (normally ".so").
18217 shrext_cmds='$shrext_cmds'
18219 # Executable file suffix (normally "").
18222 # Additional compiler flags for building library objects.
18223 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18226 # What is the maximum length of a command?
18227 max_cmd_len=$lt_cv_sys_max_cmd_len
18229 # Does compiler simultaneously support -c and -o options?
18230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18232 # Must we lock files when doing compilation?
18233 need_locks=$lt_need_locks
18235 # Do we need the lib prefix for modules?
18236 need_lib_prefix=$need_lib_prefix
18238 # Do we need a version for libraries?
18239 need_version=$need_version
18241 # Whether dlopen is supported.
18242 dlopen_support=$enable_dlopen
18244 # Whether dlopen of programs is supported.
18245 dlopen_self=$enable_dlopen_self
18247 # Whether dlopen of statically linked programs is supported.
18248 dlopen_self_static=$enable_dlopen_self_static
18250 # Compiler flag to prevent dynamic linking.
18251 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18253 # Compiler flag to turn off builtin functions.
18254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18256 # Compiler flag to allow reflexive dlopens.
18257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18259 # Compiler flag to generate shared objects directly from archives.
18260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18262 # Compiler flag to generate thread-safe objects.
18263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18265 # Library versioning type.
18266 version_type=$version_type
18268 # Format of library name prefix.
18269 libname_spec=$lt_libname_spec
18271 # List of archive names. First name is the real one, the rest are links.
18272 # The last name is the one that the linker finds with -lNAME.
18273 library_names_spec=$lt_library_names_spec
18275 # The coded name of the library, if different from the real name.
18276 soname_spec=$lt_soname_spec
18278 # Commands used to build and install an old-style archive.
18280 old_archive_cmds=$lt_old_archive_cmds_GCJ
18281 old_postinstall_cmds=$lt_old_postinstall_cmds
18282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18284 # Create an old-style archive from a shared archive.
18285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18287 # Create a temporary old-style archive to link instead of a shared archive.
18288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18290 # Commands used to build and install a shared archive.
18291 archive_cmds=$lt_archive_cmds_GCJ
18292 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18293 postinstall_cmds=$lt_postinstall_cmds
18294 postuninstall_cmds=$lt_postuninstall_cmds
18296 # Commands used to build a loadable module (assumed same as above if empty)
18297 module_cmds=$lt_module_cmds_GCJ
18298 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18300 # Commands to strip libraries.
18301 old_striplib=$lt_old_striplib
18302 striplib=$lt_striplib
18304 # Dependencies to place before the objects being linked to create a
18306 predep_objects=$lt_predep_objects_GCJ
18308 # Dependencies to place after the objects being linked to create a
18310 postdep_objects=$lt_postdep_objects_GCJ
18312 # Dependencies to place before the objects being linked to create a
18314 predeps=$lt_predeps_GCJ
18316 # Dependencies to place after the objects being linked to create a
18318 postdeps=$lt_postdeps_GCJ
18320 # The library search path used internally by the compiler when linking
18321 # a shared library.
18322 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18324 # Method to check whether dependent libraries are shared objects.
18325 deplibs_check_method=$lt_deplibs_check_method
18327 # Command to use when deplibs_check_method == file_magic.
18328 file_magic_cmd=$lt_file_magic_cmd
18330 # Flag that allows shared libraries with undefined symbols to be built.
18331 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18333 # Flag that forces no undefined symbols.
18334 no_undefined_flag=$lt_no_undefined_flag_GCJ
18336 # Commands used to finish a libtool library installation in a directory.
18337 finish_cmds=$lt_finish_cmds
18339 # Same as above, but a single script fragment to be evaled but not shown.
18340 finish_eval=$lt_finish_eval
18342 # Take the output of nm and produce a listing of raw symbols and C names.
18343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18345 # Transform the output of nm in a proper C declaration
18346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18348 # Transform the output of nm in a C name address pair
18349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18351 # This is the shared library runtime path variable.
18352 runpath_var=$runpath_var
18354 # This is the shared library path variable.
18355 shlibpath_var=$shlibpath_var
18357 # Is shlibpath searched before the hard-coded library search path?
18358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18360 # How to hardcode a shared library path into an executable.
18361 hardcode_action=$hardcode_action_GCJ
18363 # Whether we should hardcode library paths into libraries.
18364 hardcode_into_libs=$hardcode_into_libs
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist.
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18370 # If ld is used when linking, flag to hardcode \$libdir into
18371 # a binary during linking. This must work even if \$libdir does
18373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18375 # Whether we need a single -rpath flag with a separated argument.
18376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_direct=$hardcode_direct_GCJ
18382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18383 # resulting binary.
18384 hardcode_minus_L=$hardcode_minus_L_GCJ
18386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18387 # the resulting binary.
18388 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18390 # Set to yes if building a shared library automatically hardcodes DIR into the library
18391 # and all subsequent libraries and executables linked against it.
18392 hardcode_automatic=$hardcode_automatic_GCJ
18394 # Variables whose values should be saved in libtool wrapper scripts and
18395 # restored at relink time.
18396 variables_saved_for_relink="$variables_saved_for_relink"
18398 # Whether libtool must link a program against all its dependency libraries.
18399 link_all_deplibs=$link_all_deplibs_GCJ
18401 # Compile-time system search path for libraries
18402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18404 # Run-time system search path for libraries
18405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18407 # Fix the shell variable \$srcfile for the compiler.
18408 fix_srcfile_path="$fix_srcfile_path_GCJ"
18410 # Set to yes if exported symbols are required.
18411 always_export_symbols=$always_export_symbols_GCJ
18413 # The commands to list exported symbols.
18414 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18416 # The commands to extract the exported symbol list from a shared archive.
18417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18419 # Symbols that should not be listed in the preloaded symbols.
18420 exclude_expsyms=$lt_exclude_expsyms_GCJ
18422 # Symbols that must always be exported.
18423 include_expsyms=$lt_include_expsyms_GCJ
18425 # ### END LIBTOOL TAG CONFIG: $tagname
18431 # If there is no Makefile yet, we rely on a make rule to execute
18432 # `config.status --recheck' to rerun these tests and create the
18433 # libtool script then.
18434 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18435 if test -f "$ltmain_in"; then
18436 test -f Makefile && make "$ltmain"
18442 ac_cpp='$CPP $CPPFLAGS'
18443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458 # Source file extension for RC test sources.
18461 # Object file extension for compiled RC test sources.
18465 # Code to be used in simple compile tests
18466 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18468 # Code to be used in simple link tests
18469 lt_simple_link_test_code="$lt_simple_compile_test_code"
18471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18473 # If no C compiler was specified, use CC.
18476 # If no C compiler flags were specified, use CFLAGS.
18477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18479 # Allow CC to be a program name with arguments.
18483 # save warnings/boilerplate of simple test code
18484 ac_outfile=conftest.$ac_objext
18485 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18487 _lt_compiler_boilerplate=`cat conftest.err`
18490 ac_outfile=conftest.$ac_objext
18491 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18493 _lt_linker_boilerplate=`cat conftest.err`
18497 # Allow CC to be a program name with arguments.
18502 for cc_temp in $compiler""; do
18504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18510 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18512 lt_cv_prog_compiler_c_o_RC=yes
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519 # See if we are running on zsh, and set the options which allow our commands through
18520 # without removal of \ escapes.
18521 if test -n "${ZSH_VERSION+set}" ; then
18522 setopt NO_GLOB_SUBST
18524 # Now quote all the things that may contain metacharacters while being
18525 # careful not to overquote the AC_SUBSTed values. We take copies of the
18526 # variables and quote the copies for generation of the libtool script.
18527 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18529 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531 deplibs_check_method reload_flag reload_cmds need_locks \
18532 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533 lt_cv_sys_global_symbol_to_c_name_address \
18534 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535 old_postinstall_cmds old_postuninstall_cmds \
18539 lt_prog_compiler_wl_RC \
18540 lt_prog_compiler_pic_RC \
18541 lt_prog_compiler_static_RC \
18542 lt_prog_compiler_no_builtin_flag_RC \
18543 export_dynamic_flag_spec_RC \
18544 thread_safe_flag_spec_RC \
18545 whole_archive_flag_spec_RC \
18546 enable_shared_with_static_runtimes_RC \
18547 old_archive_cmds_RC \
18548 old_archive_from_new_cmds_RC \
18549 predep_objects_RC \
18550 postdep_objects_RC \
18553 compiler_lib_search_path_RC \
18555 archive_expsym_cmds_RC \
18556 postinstall_cmds_RC \
18557 postuninstall_cmds_RC \
18558 old_archive_from_expsyms_cmds_RC \
18559 allow_undefined_flag_RC \
18560 no_undefined_flag_RC \
18561 export_symbols_cmds_RC \
18562 hardcode_libdir_flag_spec_RC \
18563 hardcode_libdir_flag_spec_ld_RC \
18564 hardcode_libdir_separator_RC \
18565 hardcode_automatic_RC \
18567 module_expsym_cmds_RC \
18568 lt_cv_prog_compiler_c_o_RC \
18569 exclude_expsyms_RC \
18570 include_expsyms_RC; do
18573 old_archive_cmds_RC | \
18574 old_archive_from_new_cmds_RC | \
18575 archive_cmds_RC | \
18576 archive_expsym_cmds_RC | \
18578 module_expsym_cmds_RC | \
18579 old_archive_from_expsyms_cmds_RC | \
18580 export_symbols_cmds_RC | \
18581 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582 postinstall_cmds | postuninstall_cmds | \
18583 old_postinstall_cmds | old_postuninstall_cmds | \
18584 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585 # Double-quote double-evaled strings.
18586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18595 *'\$0 --fallback-echo"')
18596 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18602 cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18607 # Shell to use when invoking shell scripts.
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18626 host_alias=$host_alias
18630 # The build system.
18631 build_alias=$build_alias
18635 # An echo program that does not interpret backslashes.
18640 AR_FLAGS=$lt_AR_FLAGS
18645 # LTCC compiler flags.
18646 LTCFLAGS=$lt_LTCFLAGS
18648 # A language-specific compiler.
18651 # Is the compiler the GNU C compiler?
18657 # The linker used to build libraries.
18660 # Whether we need hard or soft links.
18663 # A BSD-compatible nm program.
18666 # A symbol stripping program
18669 # Used to examine libraries when file_magic_cmd begins "file"
18670 MAGIC_CMD=$MAGIC_CMD
18672 # Used on cygwin: DLL creation program.
18675 # Used on cygwin: object dumper.
18678 # Used on cygwin: assembler.
18681 # The name of the directory that contains temporary libtool files.
18684 # How to create reloadable object files.
18685 reload_flag=$lt_reload_flag
18686 reload_cmds=$lt_reload_cmds
18688 # How to pass a linker flag through the compiler.
18689 wl=$lt_lt_prog_compiler_wl_RC
18691 # Object file suffix (normally "o").
18692 objext="$ac_objext"
18694 # Old archive suffix (normally "a").
18697 # Shared library suffix (normally ".so").
18698 shrext_cmds='$shrext_cmds'
18700 # Executable file suffix (normally "").
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_RC
18707 # What is the maximum length of a command?
18708 max_cmd_len=$lt_cv_sys_max_cmd_len
18710 # Does compiler simultaneously support -c and -o options?
18711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18713 # Must we lock files when doing compilation?
18714 need_locks=$lt_need_locks
18716 # Do we need the lib prefix for modules?
18717 need_lib_prefix=$need_lib_prefix
18719 # Do we need a version for libraries?
18720 need_version=$need_version
18722 # Whether dlopen is supported.
18723 dlopen_support=$enable_dlopen
18725 # Whether dlopen of programs is supported.
18726 dlopen_self=$enable_dlopen_self
18728 # Whether dlopen of statically linked programs is supported.
18729 dlopen_self_static=$enable_dlopen_self_static
18731 # Compiler flag to prevent dynamic linking.
18732 link_static_flag=$lt_lt_prog_compiler_static_RC
18734 # Compiler flag to turn off builtin functions.
18735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18737 # Compiler flag to allow reflexive dlopens.
18738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18740 # Compiler flag to generate shared objects directly from archives.
18741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18743 # Compiler flag to generate thread-safe objects.
18744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18746 # Library versioning type.
18747 version_type=$version_type
18749 # Format of library name prefix.
18750 libname_spec=$lt_libname_spec
18752 # List of archive names. First name is the real one, the rest are links.
18753 # The last name is the one that the linker finds with -lNAME.
18754 library_names_spec=$lt_library_names_spec
18756 # The coded name of the library, if different from the real name.
18757 soname_spec=$lt_soname_spec
18759 # Commands used to build and install an old-style archive.
18761 old_archive_cmds=$lt_old_archive_cmds_RC
18762 old_postinstall_cmds=$lt_old_postinstall_cmds
18763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18771 # Commands used to build and install a shared archive.
18772 archive_cmds=$lt_archive_cmds_RC
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18774 postinstall_cmds=$lt_postinstall_cmds
18775 postuninstall_cmds=$lt_postuninstall_cmds
18777 # Commands used to build a loadable module (assumed same as above if empty)
18778 module_cmds=$lt_module_cmds_RC
18779 module_expsym_cmds=$lt_module_expsym_cmds_RC
18781 # Commands to strip libraries.
18782 old_striplib=$lt_old_striplib
18783 striplib=$lt_striplib
18785 # Dependencies to place before the objects being linked to create a
18787 predep_objects=$lt_predep_objects_RC
18789 # Dependencies to place after the objects being linked to create a
18791 postdep_objects=$lt_postdep_objects_RC
18793 # Dependencies to place before the objects being linked to create a
18795 predeps=$lt_predeps_RC
18797 # Dependencies to place after the objects being linked to create a
18799 postdeps=$lt_postdeps_RC
18801 # The library search path used internally by the compiler when linking
18802 # a shared library.
18803 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18805 # Method to check whether dependent libraries are shared objects.
18806 deplibs_check_method=$lt_deplibs_check_method
18808 # Command to use when deplibs_check_method == file_magic.
18809 file_magic_cmd=$lt_file_magic_cmd
18811 # Flag that allows shared libraries with undefined symbols to be built.
18812 allow_undefined_flag=$lt_allow_undefined_flag_RC
18814 # Flag that forces no undefined symbols.
18815 no_undefined_flag=$lt_no_undefined_flag_RC
18817 # Commands used to finish a libtool library installation in a directory.
18818 finish_cmds=$lt_finish_cmds
18820 # Same as above, but a single script fragment to be evaled but not shown.
18821 finish_eval=$lt_finish_eval
18823 # Take the output of nm and produce a listing of raw symbols and C names.
18824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18826 # Transform the output of nm in a proper C declaration
18827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18829 # Transform the output of nm in a C name address pair
18830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18832 # This is the shared library runtime path variable.
18833 runpath_var=$runpath_var
18835 # This is the shared library path variable.
18836 shlibpath_var=$shlibpath_var
18838 # Is shlibpath searched before the hard-coded library search path?
18839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18841 # How to hardcode a shared library path into an executable.
18842 hardcode_action=$hardcode_action_RC
18844 # Whether we should hardcode library paths into libraries.
18845 hardcode_into_libs=$hardcode_into_libs
18847 # Flag to hardcode \$libdir into a binary during linking.
18848 # This must work even if \$libdir does not exist.
18849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18851 # If ld is used when linking, flag to hardcode \$libdir into
18852 # a binary during linking. This must work even if \$libdir does
18854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18856 # Whether we need a single -rpath flag with a separated argument.
18857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18860 # resulting binary.
18861 hardcode_direct=$hardcode_direct_RC
18863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18864 # resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L_RC
18867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18868 # the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18871 # Set to yes if building a shared library automatically hardcodes DIR into the library
18872 # and all subsequent libraries and executables linked against it.
18873 hardcode_automatic=$hardcode_automatic_RC
18875 # Variables whose values should be saved in libtool wrapper scripts and
18876 # restored at relink time.
18877 variables_saved_for_relink="$variables_saved_for_relink"
18879 # Whether libtool must link a program against all its dependency libraries.
18880 link_all_deplibs=$link_all_deplibs_RC
18882 # Compile-time system search path for libraries
18883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18885 # Run-time system search path for libraries
18886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18888 # Fix the shell variable \$srcfile for the compiler.
18889 fix_srcfile_path="$fix_srcfile_path_RC"
18891 # Set to yes if exported symbols are required.
18892 always_export_symbols=$always_export_symbols_RC
18894 # The commands to list exported symbols.
18895 export_symbols_cmds=$lt_export_symbols_cmds_RC
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18900 # Symbols that should not be listed in the preloaded symbols.
18901 exclude_expsyms=$lt_exclude_expsyms_RC
18903 # Symbols that must always be exported.
18904 include_expsyms=$lt_include_expsyms_RC
18906 # ### END LIBTOOL TAG CONFIG: $tagname
18912 # If there is no Makefile yet, we rely on a make rule to execute
18913 # `config.status --recheck' to rerun these tests and create the
18914 # libtool script then.
18915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18916 if test -f "$ltmain_in"; then
18917 test -f Makefile && make "$ltmain"
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18933 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18934 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18935 { (exit 1); exit 1; }; }
18939 # Append the new tag name to the list of available tags.
18940 if test -n "$tagname" ; then
18941 available_tags="$available_tags $tagname"
18947 # Now substitute the updated list of available tags.
18948 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18949 mv "${ofile}T" "$ofile"
18953 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18954 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18955 { (exit 1); exit 1; }; }
18961 # This can be used to rebuild libtool when needed
18962 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18964 # Always use our own libtool.
18965 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18967 # Prevent multiple expansion
18995 ac_header_dirent=no
18996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
18999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 #include <sys/types.h>
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag"
19031 || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 eval "$as_ac_Header=yes"
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 eval "$as_ac_Header=no"
19050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19059 ac_header_dirent=$ac_hdr; break
19063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19064 if test $ac_header_dirent = dirent.h; then
19065 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19067 if test "${ac_cv_search_opendir+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_func_search_save_LIBS=$LIBS
19071 ac_cv_search_opendir=no
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any gcc2 internal prototype to avoid an error. */
19083 /* We use char because int might match the return type of a gcc2
19084 builtin and then its argument prototype would still apply. */
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_search_opendir="none required"
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19122 rm -f conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124 if test "$ac_cv_search_opendir" = no; then
19125 for ac_lib in dir; do
19126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19134 /* Override any gcc2 internal prototype to avoid an error. */
19138 /* We use char because int might match the return type of a gcc2
19139 builtin and then its argument prototype would still apply. */
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_cv_search_opendir="-l$ac_lib"
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19178 rm -f conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_func_search_save_LIBS
19184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19186 if test "$ac_cv_search_opendir" != no; then
19187 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19192 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19194 if test "${ac_cv_search_opendir+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 ac_func_search_save_LIBS=$LIBS
19198 ac_cv_search_opendir=no
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19206 /* Override any gcc2 internal prototype to avoid an error. */
19210 /* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>conftest.er1
19225 grep -v '^ *+' conftest.er1 >conftest.err
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest$ac_exeext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_search_opendir="none required"
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19249 rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19251 if test "$ac_cv_search_opendir" = no; then
19252 for ac_lib in x; do
19253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19261 /* Override any gcc2 internal prototype to avoid an error. */
19265 /* We use char because int might match the return type of a gcc2
19266 builtin and then its argument prototype would still apply. */
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278 (eval $ac_link) 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest$ac_exeext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_search_opendir="-l$ac_lib"
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19305 rm -f conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_func_search_save_LIBS
19311 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19312 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19313 if test "$ac_cv_search_opendir" != no; then
19314 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19322 if test "${ac_cv_header_stdc+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 #include <stdlib.h>
19332 #include <stdarg.h>
19333 #include <string.h>
19344 rm -f conftest.$ac_objext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346 (eval $ac_compile) 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
19353 { ac_try='test -z "$ac_c_werror_flag"
19354 || test ! -s conftest.err'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_header_stdc=yes
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_header_stdc=no
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19375 if test $ac_cv_header_stdc = yes; then
19376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 #include <string.h>
19386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19387 $EGREP "memchr" >/dev/null 2>&1; then
19390 ac_cv_header_stdc=no
19396 if test $ac_cv_header_stdc = yes; then
19397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <stdlib.h>
19407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19408 $EGREP "free" >/dev/null 2>&1; then
19411 ac_cv_header_stdc=no
19417 if test $ac_cv_header_stdc = yes; then
19418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19419 if test "$cross_compiling" = yes; then
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 #if ((' ' & 0x0FF) == 0x020)
19430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19433 # define ISLOWER(c) \
19434 (('a' <= (c) && (c) <= 'i') \
19435 || ('j' <= (c) && (c) <= 'r') \
19436 || ('s' <= (c) && (c) <= 'z'))
19437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19445 for (i = 0; i < 256; i++)
19446 if (XOR (islower (i), ISLOWER (i))
19447 || toupper (i) != TOUPPER (i))
19452 rm -f conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19465 echo "$as_me: program exited with status $ac_status" >&5
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ( exit $ac_status )
19470 ac_cv_header_stdc=no
19472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19478 if test $ac_cv_header_stdc = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define STDC_HEADERS 1
19486 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 #include <sys/types.h>
19498 #include <sys/wait.h>
19499 #ifndef WEXITSTATUS
19500 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_header_sys_wait_h=yes
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ac_cv_header_sys_wait_h=no
19545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19549 if test $ac_cv_header_sys_wait_h = yes; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE_SYS_WAIT_H 1
19579 for ac_header in errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
19580 utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
19581 utime.h ulimit.h sys/resource.h gshadow.h shadow.h lastlog.h \
19582 locale.h rpc/key_prot.h
19584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19586 echo "$as_me:$LINENO: checking for $ac_header" >&5
19587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19594 # Is the header compilable?
19595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 $ac_includes_default
19604 #include <$ac_header>
19606 rm -f conftest.$ac_objext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608 (eval $ac_compile) 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_c_werror_flag"
19616 || test ! -s conftest.err'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_header_compiler=yes
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 ac_header_compiler=no
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19637 echo "${ECHO_T}$ac_header_compiler" >&6
19639 # Is the header present?
19640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19648 #include <$ac_header>
19650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } >/dev/null; then
19658 if test -s conftest.err; then
19659 ac_cpp_err=$ac_c_preproc_warn_flag
19660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19667 if test -z "$ac_cpp_err"; then
19668 ac_header_preproc=yes
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_header_preproc=no
19675 rm -f conftest.err conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19677 echo "${ECHO_T}$ac_header_preproc" >&6
19679 # So? What about this header?
19680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19686 ac_header_preproc=yes
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19703 ## ------------------------------------------ ##
19704 ## Report this to the AC_PACKAGE_NAME lists. ##
19705 ## ------------------------------------------ ##
19708 sed "s/^/$as_me: WARNING: /" >&2
19711 echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 eval "$as_ac_Header=\$ac_header_preproc"
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19723 cat >>confdefs.h <<_ACEOF
19724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19753 for ac_func in a64l fchmod fchown fsync getgroups gethostname getspnam \
19754 gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
19755 memcpy memset setgroups sigaction strchr updwtmp updwtmpx
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19760 if eval "test \"\${$as_ac_var+set}\" = set"; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define $ac_func innocuous_$ac_func
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19779 # include <limits.h>
19781 # include <assert.h>
19786 /* Override any gcc2 internal prototype to avoid an error. */
19791 /* We use char because int might match the return type of a gcc2
19792 builtin and then its argument prototype would still apply. */
19794 /* The GNU C library defines this for functions which it implements
19795 to always fail with ENOSYS. Some functions are actually named
19796 something starting with __ and the normal name is an alias. */
19797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19800 char (*f) () = $ac_func;
19809 return f != $ac_func;
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19816 (eval $ac_link) 2>conftest.er1
19818 grep -v '^ *+' conftest.er1 >conftest.err
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_c_werror_flag"
19824 || test ! -s conftest.err'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest$ac_exeext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 eval "$as_ac_var=yes"
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 eval "$as_ac_var=no"
19843 rm -f conftest.err conftest.$ac_objext \
19844 conftest$ac_exeext conftest.$ac_ext
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856 # Check whether --enable-largefile or --disable-largefile was given.
19857 if test "${enable_largefile+set}" = set; then
19858 enableval="$enable_largefile"
19861 if test "$enable_largefile" != no; then
19863 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19864 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19865 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 ac_cv_sys_largefile_CC=no
19869 if test "$GCC" != yes; then
19872 # IRIX 6.2 and later do not support large files by default,
19873 # so use the C compiler's -n32 option if that helps.
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <sys/types.h>
19881 /* Check that off_t can represent 2**63 - 1 correctly.
19882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19883 since some C++ compilers masquerading as C compilers
19884 incorrectly reject 9223372036854775807. */
19885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19887 && LARGE_OFF_T % 2147483647 == 1)
19897 rm -f conftest.$ac_objext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_c_werror_flag"
19907 || test ! -s conftest.err'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19925 rm -f conftest.err conftest.$ac_objext
19927 rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929 (eval $ac_compile) 2>conftest.er1
19931 grep -v '^ *+' conftest.er1 >conftest.err
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_c_werror_flag"
19937 || test ! -s conftest.err'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 ac_cv_sys_largefile_CC=' -n32'; break
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19955 rm -f conftest.err conftest.$ac_objext
19959 rm -f conftest.$ac_ext
19962 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19963 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19964 if test "$ac_cv_sys_largefile_CC" != no; then
19965 CC=$CC$ac_cv_sys_largefile_CC
19968 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19969 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19970 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_cv_sys_file_offset_bits=no
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <sys/types.h>
19982 /* Check that off_t can represent 2**63 - 1 correctly.
19983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19984 since some C++ compilers masquerading as C compilers
19985 incorrectly reject 9223372036854775807. */
19986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19988 && LARGE_OFF_T % 2147483647 == 1)
19998 rm -f conftest.$ac_objext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20000 (eval $ac_compile) 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_c_werror_flag"
20008 || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #define _FILE_OFFSET_BITS 64
20034 #include <sys/types.h>
20035 /* Check that off_t can represent 2**63 - 1 correctly.
20036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20037 since some C++ compilers masquerading as C compilers
20038 incorrectly reject 9223372036854775807. */
20039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20041 && LARGE_OFF_T % 2147483647 == 1)
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_sys_file_offset_bits=64; break
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20083 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20084 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20085 if test "$ac_cv_sys_file_offset_bits" != no; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20093 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20094 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20095 if test "${ac_cv_sys_large_files+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 ac_cv_sys_large_files=no
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 #include <sys/types.h>
20107 /* Check that off_t can represent 2**63 - 1 correctly.
20108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20109 since some C++ compilers masquerading as C compilers
20110 incorrectly reject 9223372036854775807. */
20111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20113 && LARGE_OFF_T % 2147483647 == 1)
20123 rm -f conftest.$ac_objext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20125 (eval $ac_compile) 2>conftest.er1
20127 grep -v '^ *+' conftest.er1 >conftest.err
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } &&
20132 { ac_try='test -z "$ac_c_werror_flag"
20133 || test ! -s conftest.err'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 #define _LARGE_FILES 1
20159 #include <sys/types.h>
20160 /* Check that off_t can represent 2**63 - 1 correctly.
20161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20162 since some C++ compilers masquerading as C compilers
20163 incorrectly reject 9223372036854775807. */
20164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20166 && LARGE_OFF_T % 2147483647 == 1)
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178 (eval $ac_compile) 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -z "$ac_c_werror_flag"
20186 || test ! -s conftest.err'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_cv_sys_large_files=1; break
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20209 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20210 if test "$ac_cv_sys_large_files" != no; then
20212 cat >>confdefs.h <<_ACEOF
20213 #define _LARGE_FILES $ac_cv_sys_large_files
20221 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20222 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20223 if test "${ac_cv_c_const+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20236 /* FIXME: Include the comments suggested by Paul. */
20237 #ifndef __cplusplus
20238 /* Ultrix mips cc rejects this. */
20239 typedef int charset[2];
20241 /* SunOS 4.1.1 cc rejects this. */
20242 char const *const *ccp;
20244 /* NEC SVR4.0.2 mips cc rejects this. */
20245 struct point {int x, y;};
20246 static struct point const zero = {0,0};
20247 /* AIX XL C 1.02.0.0 rejects this.
20248 It does not let you subtract one const X* pointer from another in
20249 an arm of an if-expression whose if-part is not a constant
20251 const char *g = "string";
20252 ccp = &g + (g ? g-g : 0);
20253 /* HPUX 7.0 cc rejects these. */
20256 ccp = (char const *const *) p;
20257 { /* SCO 3.2v4 cc rejects this. */
20259 char const *s = 0 ? (char *) 0 : (char const *) 0;
20263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20264 int x[] = {25, 17};
20265 const int *foo = &x[0];
20268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20269 typedef const int *iptr;
20273 { /* AIX XL C 1.02.0.0 rejects this saying
20274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20275 struct s { int j; const int *ap[3]; };
20276 struct s *b; b->j = 5;
20278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20279 const int foo = 10;
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20319 echo "${ECHO_T}$ac_cv_c_const" >&6
20320 if test $ac_cv_c_const = no; then
20322 cat >>confdefs.h <<\_ACEOF
20328 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20329 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20330 if test "${ac_cv_type_uid_t+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <sys/types.h>
20342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20343 $EGREP "uid_t" >/dev/null 2>&1; then
20344 ac_cv_type_uid_t=yes
20346 ac_cv_type_uid_t=no
20351 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20352 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20353 if test $ac_cv_type_uid_t = no; then
20355 cat >>confdefs.h <<\_ACEOF
20360 cat >>confdefs.h <<\_ACEOF
20366 echo "$as_me:$LINENO: checking for off_t" >&5
20367 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20368 if test "${ac_cv_type_off_t+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20383 if (sizeof (off_t))
20389 rm -f conftest.$ac_objext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391 (eval $ac_compile) 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try='test -z "$ac_c_werror_flag"
20399 || test ! -s conftest.err'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_type_off_t=yes
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 ac_cv_type_off_t=no
20418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20420 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20421 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20422 if test $ac_cv_type_off_t = yes; then
20426 cat >>confdefs.h <<_ACEOF
20432 echo "$as_me:$LINENO: checking for pid_t" >&5
20433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20434 if test "${ac_cv_type_pid_t+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 $ac_includes_default
20449 if (sizeof (pid_t))
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_type_pid_t=yes
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_type_pid_t=no
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20487 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20488 if test $ac_cv_type_pid_t = yes; then
20492 cat >>confdefs.h <<_ACEOF
20498 echo "$as_me:$LINENO: checking for mode_t" >&5
20499 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20500 if test "${ac_cv_type_mode_t+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20515 if (sizeof (mode_t))
20521 rm -f conftest.$ac_objext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523 (eval $ac_compile) 2>conftest.er1
20525 grep -v '^ *+' conftest.er1 >conftest.err
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try='test -z "$ac_c_werror_flag"
20531 || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_type_mode_t=yes
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ac_cv_type_mode_t=no
20550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20552 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20553 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20554 if test $ac_cv_type_mode_t = yes; then
20558 cat >>confdefs.h <<_ACEOF
20564 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20565 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20566 if test "${ac_cv_header_stat_broken+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 #include <sys/types.h>
20576 #include <sys/stat.h>
20578 #if defined(S_ISBLK) && defined(S_IFDIR)
20579 # if S_ISBLK (S_IFDIR)
20584 #if defined(S_ISBLK) && defined(S_IFCHR)
20585 # if S_ISBLK (S_IFCHR)
20590 #if defined(S_ISLNK) && defined(S_IFREG)
20591 # if S_ISLNK (S_IFREG)
20596 #if defined(S_ISSOCK) && defined(S_IFREG)
20597 # if S_ISSOCK (S_IFREG)
20603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20604 $EGREP "You lose" >/dev/null 2>&1; then
20605 ac_cv_header_stat_broken=yes
20607 ac_cv_header_stat_broken=no
20612 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20613 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20614 if test $ac_cv_header_stat_broken = yes; then
20616 cat >>confdefs.h <<\_ACEOF
20617 #define STAT_MACROS_BROKEN 1
20622 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20623 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20624 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20637 static struct stat ac_aggr;
20638 if (ac_aggr.st_rdev)
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag"
20654 || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20666 ac_cv_member_struct_stat_st_rdev=yes
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 $ac_includes_default
20681 static struct stat ac_aggr;
20682 if (sizeof ac_aggr.st_rdev)
20688 rm -f conftest.$ac_objext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690 (eval $ac_compile) 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -z "$ac_c_werror_flag"
20698 || test ! -s conftest.err'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_cv_member_struct_stat_st_rdev=yes
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_cv_member_struct_stat_st_rdev=no
20717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
20723 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_STRUCT_STAT_ST_RDEV 1
20732 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20734 if test "${ac_cv_header_time+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #include <sys/types.h>
20744 #include <sys/time.h>
20750 if ((struct tm *) 0)
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_cv_header_time=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_cv_header_time=no
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20788 echo "${ECHO_T}$ac_cv_header_time" >&6
20789 if test $ac_cv_header_time = yes; then
20791 cat >>confdefs.h <<\_ACEOF
20792 #define TIME_WITH_SYS_TIME 1
20797 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20798 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20799 if test "${ac_cv_struct_tm+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 #include <sys/types.h>
20814 struct tm *tp; tp->tm_sec;
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest.$ac_objext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_cv_struct_tm=time.h
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_struct_tm=sys/time.h
20848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20850 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20851 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20852 if test $ac_cv_struct_tm = sys/time.h; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define TM_IN_SYS_TIME 1
20861 if test "$ac_cv_header_utmp_h" = "yes"; then
20862 echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
20863 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
20864 if test "${ac_cv_struct_utmp_ut_host+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20877 struct utmp ut; char *cp = ut.ut_host;
20883 rm -f conftest.$ac_objext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885 (eval $ac_compile) 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } &&
20892 { ac_try='test -z "$ac_c_werror_flag"
20893 || test ! -s conftest.err'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest.$ac_objext'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_struct_utmp_ut_host=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_struct_utmp_ut_host=no
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20916 echo "$as_me:$LINENO: result: $ac_cv_struct_utmp_ut_host" >&5
20917 echo "${ECHO_T}$ac_cv_struct_utmp_ut_host" >&6
20919 if test "$ac_cv_struct_utmp_ut_host" = "yes"; then
20921 cat >>confdefs.h <<\_ACEOF
20927 echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
20928 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
20929 if test "${ac_cv_struct_utmp_ut_user+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20942 struct utmp ut; char *cp = ut.ut_user;
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950 (eval $ac_compile) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag"
20958 || test ! -s conftest.err'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_struct_utmp_ut_user=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_cv_struct_utmp_ut_user=no
20978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981 echo "$as_me:$LINENO: result: $ac_cv_struct_utmp_ut_user" >&5
20982 echo "${ECHO_T}$ac_cv_struct_utmp_ut_user" >&6
20984 if test "$ac_cv_struct_utmp_ut_user" = "no"; then
20986 cat >>confdefs.h <<\_ACEOF
20987 #define ut_user ut_name
20993 if test "$ac_cv_header_lastlog_h" = "yes"; then
20994 echo "$as_me:$LINENO: checking for ll_host in struct lastlog" >&5
20995 echo $ECHO_N "checking for ll_host in struct lastlog... $ECHO_C" >&6
20996 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <lastlog.h>
21009 struct lastlog ll; char *cp = ll.ll_host;
21015 rm -f conftest.$ac_objext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017 (eval $ac_compile) 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_c_werror_flag"
21025 || test ! -s conftest.err'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest.$ac_objext'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; }; then
21037 ac_cv_struct_lastlog_ll_host=yes
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_cv_struct_lastlog_ll_host=no
21045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21048 echo "$as_me:$LINENO: result: $ac_cv_struct_lastlog_ll_host" >&5
21049 echo "${ECHO_T}$ac_cv_struct_lastlog_ll_host" >&6
21051 if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_LL_HOST 1
21060 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
21061 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
21062 if test "${ac_cv_type_getgroups+set}" = set; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 if test "$cross_compiling" = yes; then
21066 ac_cv_type_getgroups=cross
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 /* Thanks to Mike Rendell for this test. */
21075 #include <sys/types.h>
21078 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21083 gid_t gidset[NGID];
21085 union { gid_t gval; long lval; } val;
21088 for (i = 0; i < NGID; i++)
21089 gidset[i] = val.gval;
21090 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21092 /* Exit non-zero if getgroups seems to require an array of ints. This
21093 happens when gid_t is short but getgroups modifies an array of ints. */
21094 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_type_getgroups=gid_t
21110 echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ( exit $ac_status )
21115 ac_cv_type_getgroups=int
21117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21119 if test $ac_cv_type_getgroups = cross; then
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <unistd.h>
21129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21130 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
21131 ac_cv_type_getgroups=gid_t
21133 ac_cv_type_getgroups=int
21139 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
21140 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
21142 cat >>confdefs.h <<_ACEOF
21143 #define GETGROUPS_T $ac_cv_type_getgroups
21147 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21148 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21149 if test "${ac_cv_type_signal+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <sys/types.h>
21159 #include <signal.h>
21164 extern "C" void (*signal (int, void (*)(int)))(int);
21166 void (*signal ()) ();
21177 rm -f conftest.$ac_objext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21179 (eval $ac_compile) 2>conftest.er1
21181 grep -v '^ *+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_c_werror_flag"
21187 || test ! -s conftest.err'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest.$ac_objext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_type_signal=void
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_cv_type_signal=int
21206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21209 echo "${ECHO_T}$ac_cv_type_signal" >&6
21211 cat >>confdefs.h <<_ACEOF
21212 #define RETSIGTYPE $ac_cv_type_signal
21216 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
21217 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
21218 if test "${ac_cv_func_utime_null+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 rm -f conftest.data; >conftest.data
21222 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
21223 if test "$cross_compiling" = yes; then
21224 ac_cv_func_utime_null=no
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21237 exit (!(stat ("conftest.data", &s) == 0
21238 && utime ("conftest.data", (long *)0) == 0
21239 && stat ("conftest.data", &t) == 0
21240 && t.st_mtime >= s.st_mtime
21241 && t.st_mtime - s.st_mtime < 120));
21246 rm -f conftest$ac_exeext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21248 (eval $ac_link) 2>&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_func_utime_null=yes
21259 echo "$as_me: program exited with status $ac_status" >&5
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ( exit $ac_status )
21264 ac_cv_func_utime_null=no
21266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21270 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
21271 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
21272 if test $ac_cv_func_utime_null = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_UTIME_NULL 1
21279 rm -f conftest.data
21282 for ac_func in strftime
21284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21285 echo "$as_me:$LINENO: checking for $ac_func" >&5
21286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21287 if eval "test \"\${$as_ac_var+set}\" = set"; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21298 #define $ac_func innocuous_$ac_func
21300 /* System header to define __stub macros and hopefully few prototypes,
21301 which can conflict with char $ac_func (); below.
21302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21303 <limits.h> exists even on freestanding compilers. */
21306 # include <limits.h>
21308 # include <assert.h>
21313 /* Override any gcc2 internal prototype to avoid an error. */
21318 /* We use char because int might match the return type of a gcc2
21319 builtin and then its argument prototype would still apply. */
21321 /* The GNU C library defines this for functions which it implements
21322 to always fail with ENOSYS. Some functions are actually named
21323 something starting with __ and the normal name is an alias. */
21324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21327 char (*f) () = $ac_func;
21336 return f != $ac_func;
21341 rm -f conftest.$ac_objext conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>conftest.er1
21345 grep -v '^ *+' conftest.er1 >conftest.err
21347 cat conftest.err >&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } &&
21350 { ac_try='test -z "$ac_c_werror_flag"
21351 || test ! -s conftest.err'
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; } &&
21357 { ac_try='test -s conftest$ac_exeext'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; }; then
21363 eval "$as_ac_var=yes"
21365 echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368 eval "$as_ac_var=no"
21370 rm -f conftest.err conftest.$ac_objext \
21371 conftest$ac_exeext conftest.$ac_ext
21373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21375 if test `eval echo '${'$as_ac_var'}'` = yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21381 # strftime is in -lintl on SCO UNIX.
21382 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21383 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21384 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 ac_check_lib_save_LIBS=$LIBS
21388 LIBS="-lintl $LIBS"
21389 cat >conftest.$ac_ext <<_ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21396 /* Override any gcc2 internal prototype to avoid an error. */
21400 /* We use char because int might match the return type of a gcc2
21401 builtin and then its argument prototype would still apply. */
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest$ac_exeext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_lib_intl_strftime=yes
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_cv_lib_intl_strftime=no
21440 rm -f conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21442 LIBS=$ac_check_lib_save_LIBS
21444 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21445 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21446 if test $ac_cv_lib_intl_strftime = yes; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_STRFTIME 1
21451 LIBS="-lintl $LIBS"
21463 for ac_func in mkdir putgrent putpwent putspent rename rmdir
21465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21466 echo "$as_me:$LINENO: checking for $ac_func" >&5
21467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21468 if eval "test \"\${$as_ac_var+set}\" = set"; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21479 #define $ac_func innocuous_$ac_func
21481 /* System header to define __stub macros and hopefully few prototypes,
21482 which can conflict with char $ac_func (); below.
21483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21484 <limits.h> exists even on freestanding compilers. */
21487 # include <limits.h>
21489 # include <assert.h>
21494 /* Override any gcc2 internal prototype to avoid an error. */
21499 /* We use char because int might match the return type of a gcc2
21500 builtin and then its argument prototype would still apply. */
21502 /* The GNU C library defines this for functions which it implements
21503 to always fail with ENOSYS. Some functions are actually named
21504 something starting with __ and the normal name is an alias. */
21505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21508 char (*f) () = $ac_func;
21517 return f != $ac_func;
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524 (eval $ac_link) 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest$ac_exeext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 eval "$as_ac_var=yes"
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 eval "$as_ac_var=no"
21551 rm -f conftest.err conftest.$ac_objext \
21552 conftest$ac_exeext conftest.$ac_ext
21554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21556 if test `eval echo '${'$as_ac_var'}'` = yes; then
21557 cat >>confdefs.h <<_ACEOF
21558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21563 "$ac_func.$ac_objext" | \
21564 *" $ac_func.$ac_objext" | \
21565 "$ac_func.$ac_objext "* | \
21566 *" $ac_func.$ac_objext "* ) ;;
21567 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21577 for ac_func in sgetgrent sgetpwent sgetspent
21579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21580 echo "$as_me:$LINENO: checking for $ac_func" >&5
21581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21582 if eval "test \"\${$as_ac_var+set}\" = set"; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21593 #define $ac_func innocuous_$ac_func
21595 /* System header to define __stub macros and hopefully few prototypes,
21596 which can conflict with char $ac_func (); below.
21597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21598 <limits.h> exists even on freestanding compilers. */
21601 # include <limits.h>
21603 # include <assert.h>
21608 /* Override any gcc2 internal prototype to avoid an error. */
21613 /* We use char because int might match the return type of a gcc2
21614 builtin and then its argument prototype would still apply. */
21616 /* The GNU C library defines this for functions which it implements
21617 to always fail with ENOSYS. Some functions are actually named
21618 something starting with __ and the normal name is an alias. */
21619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21622 char (*f) () = $ac_func;
21631 return f != $ac_func;
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638 (eval $ac_link) 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 eval "$as_ac_var=yes"
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 eval "$as_ac_var=no"
21665 rm -f conftest.err conftest.$ac_objext \
21666 conftest$ac_exeext conftest.$ac_ext
21668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21670 if test `eval echo '${'$as_ac_var'}'` = yes; then
21671 cat >>confdefs.h <<_ACEOF
21672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21677 "$ac_func.$ac_objext" | \
21678 *" $ac_func.$ac_objext" | \
21679 "$ac_func.$ac_objext "* | \
21680 *" $ac_func.$ac_objext "* ) ;;
21681 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21693 for ac_func in snprintf strcasecmp strdup strerror strstr
21695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21696 echo "$as_me:$LINENO: checking for $ac_func" >&5
21697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21698 if eval "test \"\${$as_ac_var+set}\" = set"; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 cat >conftest.$ac_ext <<_ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21709 #define $ac_func innocuous_$ac_func
21711 /* System header to define __stub macros and hopefully few prototypes,
21712 which can conflict with char $ac_func (); below.
21713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21714 <limits.h> exists even on freestanding compilers. */
21717 # include <limits.h>
21719 # include <assert.h>
21724 /* Override any gcc2 internal prototype to avoid an error. */
21729 /* We use char because int might match the return type of a gcc2
21730 builtin and then its argument prototype would still apply. */
21732 /* The GNU C library defines this for functions which it implements
21733 to always fail with ENOSYS. Some functions are actually named
21734 something starting with __ and the normal name is an alias. */
21735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21738 char (*f) () = $ac_func;
21747 return f != $ac_func;
21752 rm -f conftest.$ac_objext conftest$ac_exeext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21754 (eval $ac_link) 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } &&
21761 { ac_try='test -z "$ac_c_werror_flag"
21762 || test ! -s conftest.err'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try='test -s conftest$ac_exeext'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }; then
21774 eval "$as_ac_var=yes"
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21779 eval "$as_ac_var=no"
21781 rm -f conftest.err conftest.$ac_objext \
21782 conftest$ac_exeext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21786 if test `eval echo '${'$as_ac_var'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21793 "$ac_func.$ac_objext" | \
21794 *" $ac_func.$ac_objext" | \
21795 "$ac_func.$ac_objext "* | \
21796 *" $ac_func.$ac_objext "* ) ;;
21797 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21805 echo "$as_me:$LINENO: checking for setpgrp" >&5
21806 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
21807 if test "${ac_cv_func_setpgrp+set}" = set; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 cat >conftest.$ac_ext <<_ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
21817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21818 #define setpgrp innocuous_setpgrp
21820 /* System header to define __stub macros and hopefully few prototypes,
21821 which can conflict with char setpgrp (); below.
21822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21823 <limits.h> exists even on freestanding compilers. */
21826 # include <limits.h>
21828 # include <assert.h>
21833 /* Override any gcc2 internal prototype to avoid an error. */
21838 /* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
21841 /* The GNU C library defines this for functions which it implements
21842 to always fail with ENOSYS. Some functions are actually named
21843 something starting with __ and the normal name is an alias. */
21844 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
21847 char (*f) () = setpgrp;
21856 return f != setpgrp;
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863 (eval $ac_link) 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -z "$ac_c_werror_flag"
21871 || test ! -s conftest.err'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 ac_cv_func_setpgrp=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_cv_func_setpgrp=no
21890 rm -f conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
21894 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
21896 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
21897 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
21898 if test "${ac_cv_func_setpgrp_void+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 if test "$cross_compiling" = yes; then
21902 ac_cv_func_setpgrp_void=yes
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21911 # include <unistd.h>
21917 /* If this system has a BSD-style setpgrp which takes arguments,
21918 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
21919 exit successfully. */
21920 exit (setpgrp (1,1) == -1 ? 0 : 1);
21925 rm -f conftest$ac_exeext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21927 (eval $ac_link) 2>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; }; then
21936 ac_cv_func_setpgrp_void=no
21938 echo "$as_me: program exited with status $ac_status" >&5
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ( exit $ac_status )
21943 ac_cv_func_setpgrp_void=yes
21945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21948 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21949 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21950 if test $ac_cv_func_setpgrp_void = yes; then
21952 cat >>confdefs.h <<\_ACEOF
21953 #define SETPGRP_VOID 1
21959 if test "$ac_cv_header_shadow_h" = "yes"; then
21960 echo "$as_me:$LINENO: checking for working shadow group support" >&5
21961 echo $ECHO_N "checking for working shadow group support... $ECHO_C" >&6
21962 if test "${ac_cv_libc_shadowgrp+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 if test "$cross_compiling" = yes; then
21966 ac_cv_libc_shadowgrp=no
21969 cat >conftest.$ac_ext <<_ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21976 #include <shadow.h>
21979 struct sgrp *sg = sgetsgent("test:x::");
21980 /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
21981 return !sg || !sg->sg_adm || !sg->sg_mem;
21985 rm -f conftest$ac_exeext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21987 (eval $ac_link) 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 ac_cv_libc_shadowgrp=yes
21998 echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ( exit $ac_status )
22003 ac_cv_libc_shadowgrp=no
22005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22009 echo "$as_me:$LINENO: result: $ac_cv_libc_shadowgrp" >&5
22010 echo "${ECHO_T}$ac_cv_libc_shadowgrp" >&6
22012 if test "$ac_cv_libc_shadowgrp" = "yes"; then
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_SHADOWGRP 1
22021 echo "$as_me:$LINENO: checking location of shared mail directory" >&5
22022 echo $ECHO_N "checking location of shared mail directory... $ECHO_C" >&6
22023 if test "${shadow_cv_maildir+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
22027 if test -d $shadow_cv_maildir; then
22032 echo "$as_me:$LINENO: result: $shadow_cv_maildir" >&5
22033 echo "${ECHO_T}$shadow_cv_maildir" >&6
22034 if test $shadow_cv_maildir != none; then
22036 cat >>confdefs.h <<_ACEOF
22037 #define MAIL_SPOOL_DIR "$shadow_cv_maildir"
22042 echo "$as_me:$LINENO: checking location of user mail file" >&5
22043 echo $ECHO_N "checking location of user mail file... $ECHO_C" >&6
22044 if test "${shadow_cv_mailfile+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22047 for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
22048 if test -f $HOME/$shadow_cv_mailfile; then
22053 echo "$as_me:$LINENO: result: $shadow_cv_mailfile" >&5
22054 echo "${ECHO_T}$shadow_cv_mailfile" >&6
22055 if test $shadow_cv_mailfile != none; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define MAIL_SPOOL_FILE "$shadow_cv_mailfile"
22063 echo "$as_me:$LINENO: checking location of utmp" >&5
22064 echo $ECHO_N "checking location of utmp... $ECHO_C" >&6
22065 if test "${shadow_cv_utmpdir+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22068 for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do
22069 if test -f $shadow_cv_utmpdir/utmp; then
22074 echo "$as_me:$LINENO: result: $shadow_cv_utmpdir" >&5
22075 echo "${ECHO_T}$shadow_cv_utmpdir" >&6
22076 if test "$shadow_cv_utmpdir" = "none"; then
22077 { echo "$as_me:$LINENO: WARNING: utmp file not found" >&5
22078 echo "$as_me: WARNING: utmp file not found" >&2;}
22081 cat >>confdefs.h <<_ACEOF
22082 #define _UTMP_FILE "$shadow_cv_utmpdir/utmp"
22086 echo "$as_me:$LINENO: checking location of faillog/lastlog/wtmp" >&5
22087 echo $ECHO_N "checking location of faillog/lastlog/wtmp... $ECHO_C" >&6
22088 if test "${shadow_cv_logdir+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
22092 if test -d $shadow_cv_logdir; then
22097 echo "$as_me:$LINENO: result: $shadow_cv_logdir" >&5
22098 echo "${ECHO_T}$shadow_cv_logdir" >&6
22100 cat >>confdefs.h <<_ACEOF
22101 #define _WTMP_FILE "$shadow_cv_logdir/wtmp"
22105 cat >>confdefs.h <<_ACEOF
22106 #define LASTLOG_FILE "$shadow_cv_logdir/lastlog"
22110 cat >>confdefs.h <<_ACEOF
22111 #define FAILLOG_FILE "$shadow_cv_logdir/faillog"
22115 echo "$as_me:$LINENO: checking location of the passwd program" >&5
22116 echo $ECHO_N "checking location of the passwd program... $ECHO_C" >&6
22117 if test "${shadow_cv_passwd_dir+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22120 if test -f /usr/bin/passwd; then
22121 shadow_cv_passwd_dir=/usr/bin
22123 shadow_cv_passwd_dir=/bin
22126 echo "$as_me:$LINENO: result: $shadow_cv_passwd_dir" >&5
22127 echo "${ECHO_T}$shadow_cv_passwd_dir" >&6
22129 cat >>confdefs.h <<_ACEOF
22130 #define PASSWD_PROGRAM "$shadow_cv_passwd_dir/passwd"
22135 cat >>confdefs.h <<\_ACEOF
22136 #define USE_SYSLOG 1
22140 cat >>confdefs.h <<\_ACEOF
22145 cat >>confdefs.h <<\_ACEOF
22151 cat >>confdefs.h <<\_ACEOF
22152 #define getpass libshadow_getpass
22156 # Check whether --enable-shadowgrp or --disable-shadowgrp was given.
22157 if test "${enable_shadowgrp+set}" = set; then
22158 enableval="$enable_shadowgrp"
22159 case "${enableval}" in
22160 yes) enable_shadowgrp="yes" ;;
22161 no) enable_shadowgrp="no" ;;
22162 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-shadowgrp" >&5
22163 echo "$as_me: error: bad value ${enableval} for --enable-shadowgrp" >&2;}
22164 { (exit 1); exit 1; }; } ;;
22167 enable_shadowgrp="yes"
22171 # Check whether --enable-man or --disable-man was given.
22172 if test "${enable_man+set}" = set; then
22173 enableval="$enable_man"
22181 # Check whether --with-audit or --without-audit was given.
22182 if test "${with_audit+set}" = set; then
22183 withval="$with_audit"
22184 with_audit=$withval
22189 # Check whether --with-libpam or --without-libpam was given.
22190 if test "${with_libpam+set}" = set; then
22191 withval="$with_libpam"
22192 with_libpam=$withval
22197 # Check whether --with-selinux or --without-selinux was given.
22198 if test "${with_selinux+set}" = set; then
22199 withval="$with_selinux"
22200 with_selinux=$withval
22205 # Check whether --with-skey or --without-skey was given.
22206 if test "${with_skey+set}" = set; then
22207 withval="$with_skey"
22213 # Check whether --with-libcrack or --without-libcrack was given.
22214 if test "${with_libcrack+set}" = set; then
22215 withval="$with_libcrack"
22216 with_libcrack=$withval
22222 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
22223 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
22224 if test "${ac_cv_search_inet_ntoa+set}" = set; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 ac_func_search_save_LIBS=$LIBS
22228 ac_cv_search_inet_ntoa=no
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22236 /* Override any gcc2 internal prototype to avoid an error. */
22240 /* We use char because int might match the return type of a gcc2
22241 builtin and then its argument prototype would still apply. */
22251 rm -f conftest.$ac_objext conftest$ac_exeext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253 (eval $ac_link) 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
22260 { ac_try='test -z "$ac_c_werror_flag"
22261 || test ! -s conftest.err'
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest$ac_exeext'
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; }; then
22273 ac_cv_search_inet_ntoa="none required"
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22279 rm -f conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22281 if test "$ac_cv_search_inet_ntoa" = no; then
22282 for ac_lib in inet; do
22283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22284 cat >conftest.$ac_ext <<_ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22291 /* Override any gcc2 internal prototype to avoid an error. */
22295 /* We use char because int might match the return type of a gcc2
22296 builtin and then its argument prototype would still apply. */
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308 (eval $ac_link) 2>conftest.er1
22310 grep -v '^ *+' conftest.er1 >conftest.err
22312 cat conftest.err >&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
22315 { ac_try='test -z "$ac_c_werror_flag"
22316 || test ! -s conftest.err'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest$ac_exeext'
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22328 ac_cv_search_inet_ntoa="-l$ac_lib"
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22335 rm -f conftest.err conftest.$ac_objext \
22336 conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_func_search_save_LIBS
22341 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
22342 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
22343 if test "$ac_cv_search_inet_ntoa" != no; then
22344 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
22348 echo "$as_me:$LINENO: checking for library containing socket" >&5
22349 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
22350 if test "${ac_cv_search_socket+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 ac_func_search_save_LIBS=$LIBS
22354 ac_cv_search_socket=no
22355 cat >conftest.$ac_ext <<_ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 /* Override any gcc2 internal prototype to avoid an error. */
22366 /* We use char because int might match the return type of a gcc2
22367 builtin and then its argument prototype would still apply. */
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379 (eval $ac_link) 2>conftest.er1
22381 grep -v '^ *+' conftest.er1 >conftest.err
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
22386 { ac_try='test -z "$ac_c_werror_flag"
22387 || test ! -s conftest.err'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest$ac_exeext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 ac_cv_search_socket="none required"
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22405 rm -f conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
22407 if test "$ac_cv_search_socket" = no; then
22408 for ac_lib in socket; do
22409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22417 /* Override any gcc2 internal prototype to avoid an error. */
22421 /* We use char because int might match the return type of a gcc2
22422 builtin and then its argument prototype would still apply. */
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22434 (eval $ac_link) 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -z "$ac_c_werror_flag"
22442 || test ! -s conftest.err'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest$ac_exeext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_cv_search_socket="-l$ac_lib"
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22461 rm -f conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
22465 LIBS=$ac_func_search_save_LIBS
22467 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22468 echo "${ECHO_T}$ac_cv_search_socket" >&6
22469 if test "$ac_cv_search_socket" != no; then
22470 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
22474 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22475 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
22476 if test "${ac_cv_search_gethostbyname+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 ac_func_search_save_LIBS=$LIBS
22480 ac_cv_search_gethostbyname=no
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22488 /* Override any gcc2 internal prototype to avoid an error. */
22492 /* We use char because int might match the return type of a gcc2
22493 builtin and then its argument prototype would still apply. */
22494 char gethostbyname ();
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505 (eval $ac_link) 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest$ac_exeext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_search_gethostbyname="none required"
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22531 rm -f conftest.err conftest.$ac_objext \
22532 conftest$ac_exeext conftest.$ac_ext
22533 if test "$ac_cv_search_gethostbyname" = no; then
22534 for ac_lib in nsl; do
22535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22536 cat >conftest.$ac_ext <<_ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22543 /* Override any gcc2 internal prototype to avoid an error. */
22547 /* We use char because int might match the return type of a gcc2
22548 builtin and then its argument prototype would still apply. */
22549 char gethostbyname ();
22558 rm -f conftest.$ac_objext conftest$ac_exeext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560 (eval $ac_link) 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try='test -z "$ac_c_werror_flag"
22568 || test ! -s conftest.err'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try='test -s conftest$ac_exeext'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22580 ac_cv_search_gethostbyname="-l$ac_lib"
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22587 rm -f conftest.err conftest.$ac_objext \
22588 conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_func_search_save_LIBS
22593 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22594 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
22595 if test "$ac_cv_search_gethostbyname" != no; then
22596 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
22601 if test "$enable_shadowgrp" = "yes"; then
22603 cat >>confdefs.h <<\_ACEOF
22604 #define SHADOWGRP 1
22609 if test "$enable_man" = "yes"; then
22610 # Extract the first word of "xsltproc", so it can be a program name with args.
22611 set dummy xsltproc; ac_word=$2
22612 echo "$as_me:$LINENO: checking for $ac_word" >&5
22613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22614 if test "${ac_cv_path_XSLTPROC+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
22622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22623 for as_dir in $PATH
22626 test -z "$as_dir" && as_dir=.
22627 for ac_exec_ext in '' $ac_executable_extensions; do
22628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22629 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
22630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22639 XSLTPROC=$ac_cv_path_XSLTPROC
22641 if test -n "$XSLTPROC"; then
22642 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
22643 echo "${ECHO_T}$XSLTPROC" >&6
22645 echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6
22649 if test -z "$XSLTPROC"; then
22654 # check for the presence of the XML catalog
22656 # Check whether --with-xml-catalog or --without-xml-catalog was given.
22657 if test "${with_xml_catalog+set}" = set; then
22658 withval="$with_xml_catalog"
22661 with_xml_catalog=/etc/xml/catalog
22663 jh_found_xmlcatalog=true
22664 XML_CATALOG_FILE="$with_xml_catalog"
22666 echo "$as_me:$LINENO: checking for XML catalog ($XML_CATALOG_FILE)" >&5
22667 echo $ECHO_N "checking for XML catalog ($XML_CATALOG_FILE)... $ECHO_C" >&6
22668 if test -f "$XML_CATALOG_FILE"; then
22669 echo "$as_me:$LINENO: result: found" >&5
22670 echo "${ECHO_T}found" >&6
22672 jh_found_xmlcatalog=false
22673 echo "$as_me:$LINENO: result: not found" >&5
22674 echo "${ECHO_T}not found" >&6
22677 # check for the xmlcatalog program
22678 # Extract the first word of "xmlcatalog", so it can be a program name with args.
22679 set dummy xmlcatalog; ac_word=$2
22680 echo "$as_me:$LINENO: checking for $ac_word" >&5
22681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22682 if test "${ac_cv_path_XMLCATALOG+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 case $XMLCATALOG in
22687 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
22690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22691 for as_dir in $PATH
22694 test -z "$as_dir" && as_dir=.
22695 for ac_exec_ext in '' $ac_executable_extensions; do
22696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22697 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
22698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22704 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
22708 XMLCATALOG=$ac_cv_path_XMLCATALOG
22710 if test -n "$XMLCATALOG"; then
22711 echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
22712 echo "${ECHO_T}$XMLCATALOG" >&6
22714 echo "$as_me:$LINENO: result: no" >&5
22715 echo "${ECHO_T}no" >&6
22718 if test "x$XMLCATALOG" = xno; then
22719 jh_found_xmlcatalog=false
22722 if $jh_found_xmlcatalog; then
22729 echo "$as_me:$LINENO: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
22730 echo $ECHO_N "checking for DocBook XML DTD V4.1.2 in XML catalog... $ECHO_C" >&6
22731 if $jh_found_xmlcatalog && \
22732 { (echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2") >&5
22733 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; then
22737 echo "$as_me:$LINENO: result: found" >&5
22738 echo "${ECHO_T}found" >&6
22740 echo "$as_me:$LINENO: result: not found" >&5
22741 echo "${ECHO_T}not found" >&6
22746 echo "$as_me:$LINENO: checking for DocBook XSL Stylesheets in XML catalog" >&5
22747 echo $ECHO_N "checking for DocBook XSL Stylesheets in XML catalog... $ECHO_C" >&6
22748 if $jh_found_xmlcatalog && \
22749 { (echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2") >&5
22750 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; then
22754 echo "$as_me:$LINENO: result: found" >&5
22755 echo "${ECHO_T}found" >&6
22757 echo "$as_me:$LINENO: result: not found" >&5
22758 echo "${ECHO_T}not found" >&6
22765 if test x$enable_man != xno; then
22766 ENABLE_REGENERATE_MAN_TRUE=
22767 ENABLE_REGENERATE_MAN_FALSE='#'
22769 ENABLE_REGENERATE_MAN_TRUE='#'
22770 ENABLE_REGENERATE_MAN_FALSE=
22775 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22776 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22777 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 ac_check_lib_save_LIBS=$LIBS
22781 LIBS="-lcrypt $LIBS"
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22789 /* Override any gcc2 internal prototype to avoid an error. */
22793 /* We use char because int might match the return type of a gcc2
22794 builtin and then its argument prototype would still apply. */
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22806 (eval $ac_link) 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest$ac_exeext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_lib_crypt_crypt=yes
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_cv_lib_crypt_crypt=no
22833 rm -f conftest.err conftest.$ac_objext \
22834 conftest$ac_exeext conftest.$ac_ext
22835 LIBS=$ac_check_lib_save_LIBS
22837 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22838 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22839 if test $ac_cv_lib_crypt_crypt = yes; then
22842 { { echo "$as_me:$LINENO: error: crypt() not found" >&5
22843 echo "$as_me: error: crypt() not found" >&2;}
22844 { (exit 1); exit 1; }; }
22849 if test "$with_audit" = "yes"; then
22850 if test "${ac_cv_header_libaudit_h+set}" = set; then
22851 echo "$as_me:$LINENO: checking for libaudit.h" >&5
22852 echo $ECHO_N "checking for libaudit.h... $ECHO_C" >&6
22853 if test "${ac_cv_header_libaudit_h+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
22857 echo "${ECHO_T}$ac_cv_header_libaudit_h" >&6
22859 # Is the header compilable?
22860 echo "$as_me:$LINENO: checking libaudit.h usability" >&5
22861 echo $ECHO_N "checking libaudit.h usability... $ECHO_C" >&6
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 $ac_includes_default
22869 #include <libaudit.h>
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 ac_header_compiler=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_header_compiler=no
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6
22904 # Is the header present?
22905 echo "$as_me:$LINENO: checking libaudit.h presence" >&5
22906 echo $ECHO_N "checking libaudit.h presence... $ECHO_C" >&6
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 #include <libaudit.h>
22915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22918 grep -v '^ *+' conftest.er1 >conftest.err
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } >/dev/null; then
22923 if test -s conftest.err; then
22924 ac_cpp_err=$ac_c_preproc_warn_flag
22925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22932 if test -z "$ac_cpp_err"; then
22933 ac_header_preproc=yes
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_preproc=no
22940 rm -f conftest.err conftest.$ac_ext
22941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22942 echo "${ECHO_T}$ac_header_preproc" >&6
22944 # So? What about this header?
22945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22947 { echo "$as_me:$LINENO: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&5
22948 echo "$as_me: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the compiler's result" >&5
22950 echo "$as_me: WARNING: libaudit.h: proceeding with the compiler's result" >&2;}
22951 ac_header_preproc=yes
22954 { echo "$as_me:$LINENO: WARNING: libaudit.h: present but cannot be compiled" >&5
22955 echo "$as_me: WARNING: libaudit.h: present but cannot be compiled" >&2;}
22956 { echo "$as_me:$LINENO: WARNING: libaudit.h: check for missing prerequisite headers?" >&5
22957 echo "$as_me: WARNING: libaudit.h: check for missing prerequisite headers?" >&2;}
22958 { echo "$as_me:$LINENO: WARNING: libaudit.h: see the Autoconf documentation" >&5
22959 echo "$as_me: WARNING: libaudit.h: see the Autoconf documentation" >&2;}
22960 { echo "$as_me:$LINENO: WARNING: libaudit.h: section \"Present But Cannot Be Compiled\"" >&5
22961 echo "$as_me: WARNING: libaudit.h: section \"Present But Cannot Be Compiled\"" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the preprocessor's result" >&5
22963 echo "$as_me: WARNING: libaudit.h: proceeding with the preprocessor's result" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: libaudit.h: in the future, the compiler will take precedence" >&5
22965 echo "$as_me: WARNING: libaudit.h: in the future, the compiler will take precedence" >&2;}
22968 ## ------------------------------------------ ##
22969 ## Report this to the AC_PACKAGE_NAME lists. ##
22970 ## ------------------------------------------ ##
22973 sed "s/^/$as_me: WARNING: /" >&2
22976 echo "$as_me:$LINENO: checking for libaudit.h" >&5
22977 echo $ECHO_N "checking for libaudit.h... $ECHO_C" >&6
22978 if test "${ac_cv_header_libaudit_h+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 ac_cv_header_libaudit_h=$ac_header_preproc
22983 echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
22984 echo "${ECHO_T}$ac_cv_header_libaudit_h" >&6
22987 if test $ac_cv_header_libaudit_h = yes; then
22994 if test "$audit_header" = "yes"; then
22995 echo "$as_me:$LINENO: checking for audit_log_acct_message in -laudit" >&5
22996 echo $ECHO_N "checking for audit_log_acct_message in -laudit... $ECHO_C" >&6
22997 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 ac_check_lib_save_LIBS=$LIBS
23001 LIBS="-laudit $LIBS"
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23009 /* Override any gcc2 internal prototype to avoid an error. */
23013 /* We use char because int might match the return type of a gcc2
23014 builtin and then its argument prototype would still apply. */
23015 char audit_log_acct_message ();
23019 audit_log_acct_message ();
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026 (eval $ac_link) 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
23033 { ac_try='test -z "$ac_c_werror_flag"
23034 || test ! -s conftest.err'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest$ac_exeext'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; }; then
23046 ac_cv_lib_audit_audit_log_acct_message=yes
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23051 ac_cv_lib_audit_audit_log_acct_message=no
23053 rm -f conftest.err conftest.$ac_objext \
23054 conftest$ac_exeext conftest.$ac_ext
23055 LIBS=$ac_check_lib_save_LIBS
23057 echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
23058 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_acct_message" >&6
23059 if test $ac_cv_lib_audit_audit_log_acct_message = yes; then
23061 cat >>confdefs.h <<\_ACEOF
23062 #define WITH_AUDIT 1
23072 if test "$with_libcrack" = "yes"; then
23073 echo "checking cracklib flavour, don't be surprised by the results"
23074 echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
23075 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
23076 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 ac_check_lib_save_LIBS=$LIBS
23080 LIBS="-lcrack $LIBS"
23081 cat >conftest.$ac_ext <<_ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23088 /* Override any gcc2 internal prototype to avoid an error. */
23092 /* We use char because int might match the return type of a gcc2
23093 builtin and then its argument prototype would still apply. */
23094 char FascistCheck ();
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23105 (eval $ac_link) 2>conftest.er1
23107 grep -v '^ *+' conftest.er1 >conftest.err
23109 cat conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
23112 { ac_try='test -z "$ac_c_werror_flag"
23113 || test ! -s conftest.err'
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; } &&
23119 { ac_try='test -s conftest$ac_exeext'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 ac_cv_lib_crack_FascistCheck=yes
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 ac_cv_lib_crack_FascistCheck=no
23132 rm -f conftest.err conftest.$ac_objext \
23133 conftest$ac_exeext conftest.$ac_ext
23134 LIBS=$ac_check_lib_save_LIBS
23136 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
23137 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
23138 if test $ac_cv_lib_crack_FascistCheck = yes; then
23140 cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_LIBCRACK 1
23146 echo "$as_me:$LINENO: checking for FascistHistory in -lcrack" >&5
23147 echo $ECHO_N "checking for FascistHistory in -lcrack... $ECHO_C" >&6
23148 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 ac_check_lib_save_LIBS=$LIBS
23152 LIBS="-lcrack $LIBS"
23153 cat >conftest.$ac_ext <<_ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23160 /* Override any gcc2 internal prototype to avoid an error. */
23164 /* We use char because int might match the return type of a gcc2
23165 builtin and then its argument prototype would still apply. */
23166 char FascistHistory ();
23175 rm -f conftest.$ac_objext conftest$ac_exeext
23176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23177 (eval $ac_link) 2>conftest.er1
23179 grep -v '^ *+' conftest.er1 >conftest.err
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -z "$ac_c_werror_flag"
23185 || test ! -s conftest.err'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; } &&
23191 { ac_try='test -s conftest$ac_exeext'
23192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193 (eval $ac_try) 2>&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ac_cv_lib_crack_FascistHistory=yes
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 ac_cv_lib_crack_FascistHistory=no
23204 rm -f conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23206 LIBS=$ac_check_lib_save_LIBS
23208 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistHistory" >&5
23209 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistory" >&6
23210 if test $ac_cv_lib_crack_FascistHistory = yes; then
23212 cat >>confdefs.h <<\_ACEOF
23213 #define HAVE_LIBCRACK_HIST 1
23218 echo "$as_me:$LINENO: checking for FascistHistoryPw in -lcrack" >&5
23219 echo $ECHO_N "checking for FascistHistoryPw in -lcrack... $ECHO_C" >&6
23220 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23223 ac_check_lib_save_LIBS=$LIBS
23224 LIBS="-lcrack $LIBS"
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23232 /* Override any gcc2 internal prototype to avoid an error. */
23236 /* We use char because int might match the return type of a gcc2
23237 builtin and then its argument prototype would still apply. */
23238 char FascistHistoryPw ();
23242 FascistHistoryPw ();
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>conftest.er1
23251 grep -v '^ *+' conftest.er1 >conftest.err
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
23256 { ac_try='test -z "$ac_c_werror_flag"
23257 || test ! -s conftest.err'
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest$ac_exeext'
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_lib_crack_FascistHistoryPw=yes
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_lib_crack_FascistHistoryPw=no
23276 rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23278 LIBS=$ac_check_lib_save_LIBS
23280 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
23281 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistoryPw" >&6
23282 if test $ac_cv_lib_crack_FascistHistoryPw = yes; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_LIBCRACK_PW 1
23292 if test "$with_selinux" = "yes"; then
23293 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23294 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
23295 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 ac_check_lib_save_LIBS=$LIBS
23299 LIBS="-lselinux $LIBS"
23300 cat >conftest.$ac_ext <<_ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23307 /* Override any gcc2 internal prototype to avoid an error. */
23311 /* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23313 char is_selinux_enabled ();
23317 is_selinux_enabled ();
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23324 (eval $ac_link) 2>conftest.er1
23326 grep -v '^ *+' conftest.er1 >conftest.err
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
23331 { ac_try='test -z "$ac_c_werror_flag"
23332 || test ! -s conftest.err'
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 ac_cv_lib_selinux_is_selinux_enabled=yes
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_lib_selinux_is_selinux_enabled=no
23351 rm -f conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23355 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23356 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
23357 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
23358 LIBSELINUX="-lselinux"
23360 { { echo "$as_me:$LINENO: error: libselinux not found" >&5
23361 echo "$as_me: error: libselinux not found" >&2;}
23362 { (exit 1); exit 1; }; }
23367 for ac_header in selinux/selinux.h
23369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23371 echo "$as_me:$LINENO: checking for $ac_header" >&5
23372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23379 # Is the header compilable?
23380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23382 cat >conftest.$ac_ext <<_ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 $ac_includes_default
23389 #include <$ac_header>
23391 rm -f conftest.$ac_objext
23392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393 (eval $ac_compile) 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
23400 { ac_try='test -z "$ac_c_werror_flag"
23401 || test ! -s conftest.err'
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; } &&
23407 { ac_try='test -s conftest.$ac_objext'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; }; then
23413 ac_header_compiler=yes
23415 echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23418 ac_header_compiler=no
23420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23422 echo "${ECHO_T}$ac_header_compiler" >&6
23424 # Is the header present?
23425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 #include <$ac_header>
23435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23438 grep -v '^ *+' conftest.er1 >conftest.err
23440 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } >/dev/null; then
23443 if test -s conftest.err; then
23444 ac_cpp_err=$ac_c_preproc_warn_flag
23445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23452 if test -z "$ac_cpp_err"; then
23453 ac_header_preproc=yes
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 ac_header_preproc=no
23460 rm -f conftest.err conftest.$ac_ext
23461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23462 echo "${ECHO_T}$ac_header_preproc" >&6
23464 # So? What about this header?
23465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23471 ac_header_preproc=yes
23474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23488 ## ------------------------------------------ ##
23489 ## Report this to the AC_PACKAGE_NAME lists. ##
23490 ## ------------------------------------------ ##
23493 sed "s/^/$as_me: WARNING: /" >&2
23496 echo "$as_me:$LINENO: checking for $ac_header" >&5
23497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 eval "$as_ac_Header=\$ac_header_preproc"
23503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23508 cat >>confdefs.h <<_ACEOF
23509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23513 selinux/selinux.h is missing
23519 cat >>confdefs.h <<\_ACEOF
23520 #define WITH_SELINUX 1
23526 if test "$with_libpam" = "yes"; then
23527 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
23528 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
23529 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 ac_check_lib_save_LIBS=$LIBS
23533 LIBS="-lpam -ldl $LIBS"
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23541 /* Override any gcc2 internal prototype to avoid an error. */
23545 /* We use char because int might match the return type of a gcc2
23546 builtin and then its argument prototype would still apply. */
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558 (eval $ac_link) 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } &&
23565 { ac_try='test -z "$ac_c_werror_flag"
23566 || test ! -s conftest.err'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; } &&
23572 { ac_try='test -s conftest$ac_exeext'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 ac_cv_lib_pam_pam_start=yes
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_cv_lib_pam_pam_start=no
23585 rm -f conftest.err conftest.$ac_objext \
23586 conftest$ac_exeext conftest.$ac_ext
23587 LIBS=$ac_check_lib_save_LIBS
23589 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
23590 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
23591 if test $ac_cv_lib_pam_pam_start = yes; then
23593 cat >>confdefs.h <<\_ACEOF
23597 LIBPAM="-lpam -ldl"
23598 echo "$as_me:$LINENO: checking for main in -lpam_misc" >&5
23599 echo $ECHO_N "checking for main in -lpam_misc... $ECHO_C" >&6
23600 if test "${ac_cv_lib_pam_misc_main+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lpam_misc $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623 (eval $ac_link) 2>conftest.er1
23625 grep -v '^ *+' conftest.er1 >conftest.err
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } &&
23630 { ac_try='test -z "$ac_c_werror_flag"
23631 || test ! -s conftest.err'
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633 (eval $ac_try) 2>&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; } &&
23637 { ac_try='test -s conftest$ac_exeext'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; }; then
23643 ac_cv_lib_pam_misc_main=yes
23645 echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 ac_cv_lib_pam_misc_main=no
23650 rm -f conftest.err conftest.$ac_objext \
23651 conftest$ac_exeext conftest.$ac_ext
23652 LIBS=$ac_check_lib_save_LIBS
23654 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_main" >&5
23655 echo "${ECHO_T}$ac_cv_lib_pam_misc_main" >&6
23656 ac_cv_lib_pam_misc_main=yes
23657 if test $ac_cv_lib_pam_misc_main = yes; then
23658 LIBPAM="$LIBPAM -lpam_misc"
23660 { { echo "$as_me:$LINENO: error: libpam_misc is missing for enable PAM support" >&5
23661 echo "$as_me: error: libpam_misc is missing for enable PAM support" >&2;}
23662 { (exit 1); exit 1; }; }
23667 echo "$as_me:$LINENO: checking use login access checking if PAM not used" >&5
23668 echo $ECHO_N "checking use login access checking if PAM not used... $ECHO_C" >&6
23669 echo "$as_me:$LINENO: result: yes" >&5
23670 echo "${ECHO_T}yes" >&6
23674 echo "$as_me:$LINENO: checking use login and su access checking if PAM not used" >&5
23675 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
23676 echo "$as_me:$LINENO: result: no" >&5
23677 echo "${ECHO_T}no" >&6
23679 echo "$as_me:$LINENO: checking use login and su access checking if PAM not used" >&5
23680 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
23682 cat >>confdefs.h <<\_ACEOF
23683 #define SU_ACCESS 1
23686 echo "$as_me:$LINENO: result: yes" >&5
23687 echo "${ECHO_T}yes" >&6
23692 if test "$with_skey" = "yes"; then
23693 echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
23694 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
23695 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23698 ac_check_lib_save_LIBS=$LIBS
23700 cat >conftest.$ac_ext <<_ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23707 /* Override any gcc2 internal prototype to avoid an error. */
23711 /* We use char because int might match the return type of a gcc2
23712 builtin and then its argument prototype would still apply. */
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
23726 grep -v '^ *+' conftest.er1 >conftest.err
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } &&
23731 { ac_try='test -z "$ac_c_werror_flag"
23732 || test ! -s conftest.err'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; } &&
23738 { ac_try='test -s conftest$ac_exeext'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
23744 ac_cv_lib_md_MD5Init=yes
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23749 ac_cv_lib_md_MD5Init=no
23751 rm -f conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
23753 LIBS=$ac_check_lib_save_LIBS
23755 echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
23756 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
23757 if test $ac_cv_lib_md_MD5Init = yes; then
23761 echo "$as_me:$LINENO: checking for skeychallenge in -lskey" >&5
23762 echo $ECHO_N "checking for skeychallenge in -lskey... $ECHO_C" >&6
23763 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lskey $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 gcc2 internal prototype to avoid an error. */
23779 /* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23781 char skeychallenge ();
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792 (eval $ac_link) 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
23799 { ac_try='test -z "$ac_c_werror_flag"
23800 || test ! -s conftest.err'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest$ac_exeext'
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_lib_skey_skeychallenge=yes
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23817 ac_cv_lib_skey_skeychallenge=no
23819 rm -f conftest.err conftest.$ac_objext \
23820 conftest$ac_exeext conftest.$ac_ext
23821 LIBS=$ac_check_lib_save_LIBS
23823 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeychallenge" >&5
23824 echo "${ECHO_T}$ac_cv_lib_skey_skeychallenge" >&6
23825 if test $ac_cv_lib_skey_skeychallenge = yes; then
23828 { { echo "$as_me:$LINENO: error: liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" >&5
23829 echo "$as_me: error: liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" >&2;}
23830 { (exit 1); exit 1; }; }
23834 cat >>confdefs.h <<\_ACEOF
23844 if test -n "$ac_aux_dir"; then
23845 case "$ac_aux_dir" in
23846 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
23847 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
23850 if test -z "$MKINSTALLDIRS"; then
23851 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23856 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23857 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23858 # Check whether --enable-nls or --disable-nls was given.
23859 if test "${enable_nls+set}" = set; then
23860 enableval="$enable_nls"
23865 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23866 echo "${ECHO_T}$USE_NLS" >&6
23873 # Prepare PATH_SEPARATOR.
23874 # The user is always right.
23875 if test "${PATH_SEPARATOR+set}" != set; then
23876 echo "#! /bin/sh" >conf$$.sh
23877 echo "exit 0" >>conf$$.sh
23879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23887 # Find out how to test for executable files. Don't use a zero-byte file,
23888 # as systems may use methods other than mode bits to determine executability.
23889 cat >conf$$.file <<_ASEOF
23893 chmod +x conf$$.file
23894 if test -x conf$$.file >/dev/null 2>&1; then
23895 ac_executable_p="test -x"
23897 ac_executable_p="test -f"
23901 # Extract the first word of "msgfmt", so it can be a program name with args.
23902 set dummy msgfmt; ac_word=$2
23903 echo "$as_me:$LINENO: checking for $ac_word" >&5
23904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23905 if test "${ac_cv_path_MSGFMT+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23910 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23913 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23914 for ac_dir in $PATH; do
23916 test -z "$ac_dir" && ac_dir=.
23917 for ac_exec_ext in '' $ac_executable_extensions; do
23918 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23919 echo "$as_me: trying $ac_dir/$ac_word..." >&5
23920 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23921 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23922 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23933 MSGFMT="$ac_cv_path_MSGFMT"
23934 if test "$MSGFMT" != ":"; then
23935 echo "$as_me:$LINENO: result: $MSGFMT" >&5
23936 echo "${ECHO_T}$MSGFMT" >&6
23938 echo "$as_me:$LINENO: result: no" >&5
23939 echo "${ECHO_T}no" >&6
23942 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23943 set dummy gmsgfmt; ac_word=$2
23944 echo "$as_me:$LINENO: checking for $ac_word" >&5
23945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23946 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23955 for as_dir in $PATH
23958 test -z "$as_dir" && as_dir=.
23959 for ac_exec_ext in '' $ac_executable_extensions; do
23960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23961 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23972 GMSGFMT=$ac_cv_path_GMSGFMT
23974 if test -n "$GMSGFMT"; then
23975 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23976 echo "${ECHO_T}$GMSGFMT" >&6
23978 echo "$as_me:$LINENO: result: no" >&5
23979 echo "${ECHO_T}no" >&6
23984 # Prepare PATH_SEPARATOR.
23985 # The user is always right.
23986 if test "${PATH_SEPARATOR+set}" != set; then
23987 echo "#! /bin/sh" >conf$$.sh
23988 echo "exit 0" >>conf$$.sh
23990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23998 # Find out how to test for executable files. Don't use a zero-byte file,
23999 # as systems may use methods other than mode bits to determine executability.
24000 cat >conf$$.file <<_ASEOF
24004 chmod +x conf$$.file
24005 if test -x conf$$.file >/dev/null 2>&1; then
24006 ac_executable_p="test -x"
24008 ac_executable_p="test -f"
24012 # Extract the first word of "xgettext", so it can be a program name with args.
24013 set dummy xgettext; ac_word=$2
24014 echo "$as_me:$LINENO: checking for $ac_word" >&5
24015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24016 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 case "$XGETTEXT" in
24021 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24024 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24025 for ac_dir in $PATH; do
24027 test -z "$ac_dir" && ac_dir=.
24028 for ac_exec_ext in '' $ac_executable_extensions; do
24029 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24030 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24031 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24032 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24040 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24044 XGETTEXT="$ac_cv_path_XGETTEXT"
24045 if test "$XGETTEXT" != ":"; then
24046 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24047 echo "${ECHO_T}$XGETTEXT" >&6
24049 echo "$as_me:$LINENO: result: no" >&5
24050 echo "${ECHO_T}no" >&6
24056 # Prepare PATH_SEPARATOR.
24057 # The user is always right.
24058 if test "${PATH_SEPARATOR+set}" != set; then
24059 echo "#! /bin/sh" >conf$$.sh
24060 echo "exit 0" >>conf$$.sh
24062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24070 # Find out how to test for executable files. Don't use a zero-byte file,
24071 # as systems may use methods other than mode bits to determine executability.
24072 cat >conf$$.file <<_ASEOF
24076 chmod +x conf$$.file
24077 if test -x conf$$.file >/dev/null 2>&1; then
24078 ac_executable_p="test -x"
24080 ac_executable_p="test -f"
24084 # Extract the first word of "msgmerge", so it can be a program name with args.
24085 set dummy msgmerge; ac_word=$2
24086 echo "$as_me:$LINENO: checking for $ac_word" >&5
24087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24088 if test "${ac_cv_path_MSGMERGE+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 case "$MSGMERGE" in
24093 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24097 for ac_dir in $PATH; do
24099 test -z "$ac_dir" && ac_dir=.
24100 for ac_exec_ext in '' $ac_executable_extensions; do
24101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24102 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24103 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24104 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24111 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24115 MSGMERGE="$ac_cv_path_MSGMERGE"
24116 if test "$MSGMERGE" != ":"; then
24117 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24118 echo "${ECHO_T}$MSGMERGE" >&6
24120 echo "$as_me:$LINENO: result: no" >&5
24121 echo "${ECHO_T}no" >&6
24125 if test "$GMSGFMT" != ":"; then
24126 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
24127 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24130 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
24131 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
24132 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
24137 if test "$XGETTEXT" != ":"; then
24138 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
24139 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24142 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24143 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
24149 ac_config_commands="$ac_config_commands default-1"
24153 if test "X$prefix" = "XNONE"; then
24154 acl_final_prefix="$ac_default_prefix"
24156 acl_final_prefix="$prefix"
24158 if test "X$exec_prefix" = "XNONE"; then
24159 acl_final_exec_prefix='${prefix}'
24161 acl_final_exec_prefix="$exec_prefix"
24163 acl_save_prefix="$prefix"
24164 prefix="$acl_final_prefix"
24165 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24166 prefix="$acl_save_prefix"
24169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
24170 if test "${with_gnu_ld+set}" = set; then
24171 withval="$with_gnu_ld"
24172 test "$withval" = no || with_gnu_ld=yes
24176 # Prepare PATH_SEPARATOR.
24177 # The user is always right.
24178 if test "${PATH_SEPARATOR+set}" != set; then
24179 echo "#! /bin/sh" >conf$$.sh
24180 echo "exit 0" >>conf$$.sh
24182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24190 if test "$GCC" = yes; then
24191 # Check if gcc -print-prog-name=ld gives a path.
24192 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24193 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24196 # gcc leaves a trailing carriage return which upsets mingw
24197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24202 # Accept absolute paths.
24203 [\\/]* | [A-Za-z]:[\\/]*)
24204 re_direlt='/[^/][^/]*/\.\./'
24205 # Canonicalize the path of ld
24206 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24208 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24210 test -z "$LD" && LD="$ac_prog"
24213 # If it fails, then pretend we aren't using GCC.
24217 # If it is relative, then search for the first ld in PATH.
24218 with_gnu_ld=unknown
24221 elif test "$with_gnu_ld" = yes; then
24222 echo "$as_me:$LINENO: checking for GNU ld" >&5
24223 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24225 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24226 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24228 if test "${acl_cv_path_LD+set}" = set; then
24229 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 if test -z "$LD"; then
24232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24233 for ac_dir in $PATH; do
24234 test -z "$ac_dir" && ac_dir=.
24235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24236 acl_cv_path_LD="$ac_dir/$ac_prog"
24237 # Check to see if the program is GNU ld. I'd rather use --version,
24238 # but apparently some GNU ld's only accept -v.
24239 # Break only if it was the GNU/non-GNU ld that we prefer.
24240 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24241 *GNU* | *'with BFD'*)
24242 test "$with_gnu_ld" != no && break ;;
24244 test "$with_gnu_ld" != yes && break ;;
24250 acl_cv_path_LD="$LD" # Let the user override the test with a path.
24254 LD="$acl_cv_path_LD"
24255 if test -n "$LD"; then
24256 echo "$as_me:$LINENO: result: $LD" >&5
24257 echo "${ECHO_T}$LD" >&6
24259 echo "$as_me:$LINENO: result: no" >&5
24260 echo "${ECHO_T}no" >&6
24262 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24263 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24264 { (exit 1); exit 1; }; }
24265 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24266 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24267 if test "${acl_cv_prog_gnu_ld+set}" = set; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24271 case `$LD -v 2>&1 </dev/null` in
24272 *GNU* | *'with BFD'*)
24273 acl_cv_prog_gnu_ld=yes ;;
24275 acl_cv_prog_gnu_ld=no ;;
24278 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24279 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24280 with_gnu_ld=$acl_cv_prog_gnu_ld
24285 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24286 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24287 if test "${acl_cv_rpath+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24292 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24294 rm -f ./conftest.sh
24298 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24299 echo "${ECHO_T}$acl_cv_rpath" >&6
24301 libext="$acl_cv_libext"
24302 shlibext="$acl_cv_shlibext"
24303 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24304 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24305 hardcode_direct="$acl_cv_hardcode_direct"
24306 hardcode_minus_L="$acl_cv_hardcode_minus_L"
24307 # Check whether --enable-rpath or --disable-rpath was given.
24308 if test "${enable_rpath+set}" = set; then
24309 enableval="$enable_rpath"
24323 acl_save_prefix="$prefix"
24324 prefix="$acl_final_prefix"
24325 acl_save_exec_prefix="$exec_prefix"
24326 exec_prefix="$acl_final_exec_prefix"
24328 eval additional_includedir=\"$includedir\"
24329 eval additional_libdir=\"$libdir\"
24331 exec_prefix="$acl_save_exec_prefix"
24332 prefix="$acl_save_prefix"
24335 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24336 if test "${with_libiconv_prefix+set}" = set; then
24337 withval="$with_libiconv_prefix"
24339 if test "X$withval" = "Xno"; then
24342 if test "X$withval" = "X"; then
24344 acl_save_prefix="$prefix"
24345 prefix="$acl_final_prefix"
24346 acl_save_exec_prefix="$exec_prefix"
24347 exec_prefix="$acl_final_exec_prefix"
24349 eval additional_includedir=\"$includedir\"
24350 eval additional_libdir=\"$libdir\"
24352 exec_prefix="$acl_save_exec_prefix"
24353 prefix="$acl_save_prefix"
24356 additional_includedir="$withval/include"
24357 additional_libdir="$withval/lib"
24367 names_already_handled=
24368 names_next_round='iconv '
24369 while test -n "$names_next_round"; do
24370 names_this_round="$names_next_round"
24372 for name in $names_this_round; do
24374 for n in $names_already_handled; do
24375 if test "$n" = "$name"; then
24376 already_handled=yes
24380 if test -z "$already_handled"; then
24381 names_already_handled="$names_already_handled $name"
24382 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24383 eval value=\"\$HAVE_LIB$uppername\"
24384 if test -n "$value"; then
24385 if test "$value" = yes; then
24386 eval value=\"\$LIB$uppername\"
24387 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24388 eval value=\"\$LTLIB$uppername\"
24389 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24398 if test $use_additional = yes; then
24399 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24400 found_dir="$additional_libdir"
24401 found_so="$additional_libdir/lib$name.$shlibext"
24402 if test -f "$additional_libdir/lib$name.la"; then
24403 found_la="$additional_libdir/lib$name.la"
24406 if test -f "$additional_libdir/lib$name.$libext"; then
24407 found_dir="$additional_libdir"
24408 found_a="$additional_libdir/lib$name.$libext"
24409 if test -f "$additional_libdir/lib$name.la"; then
24410 found_la="$additional_libdir/lib$name.la"
24415 if test "X$found_dir" = "X"; then
24416 for x in $LDFLAGS $LTLIBICONV; do
24418 acl_save_prefix="$prefix"
24419 prefix="$acl_final_prefix"
24420 acl_save_exec_prefix="$exec_prefix"
24421 exec_prefix="$acl_final_exec_prefix"
24423 exec_prefix="$acl_save_exec_prefix"
24424 prefix="$acl_save_prefix"
24428 dir=`echo "X$x" | sed -e 's/^X-L//'`
24429 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24431 found_so="$dir/lib$name.$shlibext"
24432 if test -f "$dir/lib$name.la"; then
24433 found_la="$dir/lib$name.la"
24436 if test -f "$dir/lib$name.$libext"; then
24438 found_a="$dir/lib$name.$libext"
24439 if test -f "$dir/lib$name.la"; then
24440 found_la="$dir/lib$name.la"
24446 if test "X$found_dir" != "X"; then
24451 if test "X$found_dir" != "X"; then
24452 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24453 if test "X$found_so" != "X"; then
24454 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24458 for x in $ltrpathdirs; do
24459 if test "X$x" = "X$found_dir"; then
24464 if test -z "$haveit"; then
24465 ltrpathdirs="$ltrpathdirs $found_dir"
24467 if test "$hardcode_direct" = yes; then
24468 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24470 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24473 for x in $rpathdirs; do
24474 if test "X$x" = "X$found_dir"; then
24479 if test -z "$haveit"; then
24480 rpathdirs="$rpathdirs $found_dir"
24484 for x in $LDFLAGS $LIBICONV; do
24486 acl_save_prefix="$prefix"
24487 prefix="$acl_final_prefix"
24488 acl_save_exec_prefix="$exec_prefix"
24489 exec_prefix="$acl_final_exec_prefix"
24491 exec_prefix="$acl_save_exec_prefix"
24492 prefix="$acl_save_prefix"
24494 if test "X$x" = "X-L$found_dir"; then
24499 if test -z "$haveit"; then
24500 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24502 if test "$hardcode_minus_L" != no; then
24503 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24505 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24511 if test "X$found_a" != "X"; then
24512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24514 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24517 additional_includedir=
24518 case "$found_dir" in
24520 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24521 additional_includedir="$basedir/include"
24524 if test "X$additional_includedir" != "X"; then
24525 if test "X$additional_includedir" != "X/usr/include"; then
24527 if test "X$additional_includedir" = "X/usr/local/include"; then
24528 if test -n "$GCC"; then
24530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24534 if test -z "$haveit"; then
24535 for x in $CPPFLAGS $INCICONV; do
24537 acl_save_prefix="$prefix"
24538 prefix="$acl_final_prefix"
24539 acl_save_exec_prefix="$exec_prefix"
24540 exec_prefix="$acl_final_exec_prefix"
24542 exec_prefix="$acl_save_exec_prefix"
24543 prefix="$acl_save_prefix"
24545 if test "X$x" = "X-I$additional_includedir"; then
24550 if test -z "$haveit"; then
24551 if test -d "$additional_includedir"; then
24552 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24558 if test -n "$found_la"; then
24559 save_libdir="$libdir"
24560 case "$found_la" in
24561 */* | *\\*) . "$found_la" ;;
24562 *) . "./$found_la" ;;
24564 libdir="$save_libdir"
24565 for dep in $dependency_libs; do
24568 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24569 if test "X$additional_libdir" != "X/usr/lib"; then
24571 if test "X$additional_libdir" = "X/usr/local/lib"; then
24572 if test -n "$GCC"; then
24574 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24578 if test -z "$haveit"; then
24580 for x in $LDFLAGS $LIBICONV; do
24582 acl_save_prefix="$prefix"
24583 prefix="$acl_final_prefix"
24584 acl_save_exec_prefix="$exec_prefix"
24585 exec_prefix="$acl_final_exec_prefix"
24587 exec_prefix="$acl_save_exec_prefix"
24588 prefix="$acl_save_prefix"
24590 if test "X$x" = "X-L$additional_libdir"; then
24595 if test -z "$haveit"; then
24596 if test -d "$additional_libdir"; then
24597 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24601 for x in $LDFLAGS $LTLIBICONV; do
24603 acl_save_prefix="$prefix"
24604 prefix="$acl_final_prefix"
24605 acl_save_exec_prefix="$exec_prefix"
24606 exec_prefix="$acl_final_exec_prefix"
24608 exec_prefix="$acl_save_exec_prefix"
24609 prefix="$acl_save_prefix"
24611 if test "X$x" = "X-L$additional_libdir"; then
24616 if test -z "$haveit"; then
24617 if test -d "$additional_libdir"; then
24618 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24625 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24626 if test "$enable_rpath" != no; then
24628 for x in $rpathdirs; do
24629 if test "X$x" = "X$dir"; then
24634 if test -z "$haveit"; then
24635 rpathdirs="$rpathdirs $dir"
24638 for x in $ltrpathdirs; do
24639 if test "X$x" = "X$dir"; then
24644 if test -z "$haveit"; then
24645 ltrpathdirs="$ltrpathdirs $dir"
24650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24653 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24656 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24663 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24664 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24670 if test "X$rpathdirs" != "X"; then
24671 if test -n "$hardcode_libdir_separator"; then
24673 for found_dir in $rpathdirs; do
24674 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24676 acl_save_libdir="$libdir"
24678 eval flag=\"$hardcode_libdir_flag_spec\"
24679 libdir="$acl_save_libdir"
24680 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24682 for found_dir in $rpathdirs; do
24683 acl_save_libdir="$libdir"
24684 libdir="$found_dir"
24685 eval flag=\"$hardcode_libdir_flag_spec\"
24686 libdir="$acl_save_libdir"
24687 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24691 if test "X$ltrpathdirs" != "X"; then
24692 for found_dir in $ltrpathdirs; do
24693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24714 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24715 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24716 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 gt_save_CPPFLAGS="$CPPFLAGS"
24720 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24721 gt_save_LIBS="$LIBS"
24722 LIBS="$LIBS -framework CoreFoundation"
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 #include <CFPreferences.h>
24733 CFPreferencesCopyAppValue(NULL, NULL)
24738 rm -f conftest.$ac_objext conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740 (eval $ac_link) 2>conftest.er1
24742 grep -v '^ *+' conftest.er1 >conftest.err
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } &&
24747 { ac_try='test -z "$ac_c_werror_flag"
24748 || test ! -s conftest.err'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756 (eval $ac_try) 2>&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); }; }; then
24760 gt_cv_func_CFPreferencesCopyAppValue=yes
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 gt_cv_func_CFPreferencesCopyAppValue=no
24767 rm -f conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 CPPFLAGS="$gt_save_CPPFLAGS"
24770 LIBS="$gt_save_LIBS"
24772 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24773 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24774 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24776 cat >>confdefs.h <<\_ACEOF
24777 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24781 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24782 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24783 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 gt_save_CPPFLAGS="$CPPFLAGS"
24787 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24788 gt_save_LIBS="$LIBS"
24789 LIBS="$LIBS -framework CoreFoundation"
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 #include <CFLocale.h>
24800 CFLocaleCopyCurrent();
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24807 (eval $ac_link) 2>conftest.er1
24809 grep -v '^ *+' conftest.er1 >conftest.err
24811 cat conftest.err >&5
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); } &&
24814 { ac_try='test -z "$ac_c_werror_flag"
24815 || test ! -s conftest.err'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; } &&
24821 { ac_try='test -s conftest$ac_exeext'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; }; then
24827 gt_cv_func_CFLocaleCopyCurrent=yes
24829 echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24832 gt_cv_func_CFLocaleCopyCurrent=no
24834 rm -f conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24836 CPPFLAGS="$gt_save_CPPFLAGS"
24837 LIBS="$gt_save_LIBS"
24839 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24840 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24841 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24843 cat >>confdefs.h <<\_ACEOF
24844 #define HAVE_CFLOCALECOPYCURRENT 1
24849 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24850 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24856 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
24857 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
24858 # Check whether --enable-nls or --disable-nls was given.
24859 if test "${enable_nls+set}" = set; then
24860 enableval="$enable_nls"
24865 echo "$as_me:$LINENO: result: $USE_NLS" >&5
24866 echo "${ECHO_T}$USE_NLS" >&6
24875 if test "$USE_NLS" = "yes"; then
24876 gt_use_preinstalled_gnugettext=no
24883 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
24884 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
24885 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24888 cat >conftest.$ac_ext <<_ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24894 #include <libintl.h>
24895 extern int _nl_msg_cat_cntr;
24896 extern int *_nl_domain_bindings;
24900 bindtextdomain ("", "");
24901 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24908 (eval $ac_link) 2>conftest.er1
24910 grep -v '^ *+' conftest.er1 >conftest.err
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } &&
24915 { ac_try='test -z "$ac_c_werror_flag"
24916 || test ! -s conftest.err'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; } &&
24922 { ac_try='test -s conftest$ac_exeext'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
24928 gt_cv_func_gnugettext2_libc=yes
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 gt_cv_func_gnugettext2_libc=no
24935 rm -f conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
24938 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
24939 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
24941 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
24947 am_save_CPPFLAGS="$CPPFLAGS"
24949 for element in $INCICONV; do
24951 for x in $CPPFLAGS; do
24953 acl_save_prefix="$prefix"
24954 prefix="$acl_final_prefix"
24955 acl_save_exec_prefix="$exec_prefix"
24956 exec_prefix="$acl_final_exec_prefix"
24958 exec_prefix="$acl_save_exec_prefix"
24959 prefix="$acl_save_prefix"
24961 if test "X$x" = "X$element"; then
24966 if test -z "$haveit"; then
24967 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24972 echo "$as_me:$LINENO: checking for iconv" >&5
24973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24974 if test "${am_cv_func_iconv+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 am_cv_func_iconv="no, consider installing GNU libiconv"
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 #include <stdlib.h>
24991 iconv_t cd = iconv_open("","");
24992 iconv(cd,NULL,NULL,NULL,NULL);
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000 (eval $ac_link) 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 am_cv_func_iconv=yes
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25026 rm -f conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
25028 if test "$am_cv_func_iconv" != yes; then
25029 am_save_LIBS="$LIBS"
25030 LIBS="$LIBS $LIBICONV"
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037 #include <stdlib.h>
25042 iconv_t cd = iconv_open("","");
25043 iconv(cd,NULL,NULL,NULL,NULL);
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051 (eval $ac_link) 2>conftest.er1
25053 grep -v '^ *+' conftest.er1 >conftest.err
25055 cat conftest.err >&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } &&
25058 { ac_try='test -z "$ac_c_werror_flag"
25059 || test ! -s conftest.err'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; } &&
25065 { ac_try='test -s conftest$ac_exeext'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; }; then
25071 am_cv_lib_iconv=yes
25072 am_cv_func_iconv=yes
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25078 rm -f conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
25080 LIBS="$am_save_LIBS"
25084 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25085 echo "${ECHO_T}$am_cv_func_iconv" >&6
25086 if test "$am_cv_func_iconv" = yes; then
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_ICONV 1
25093 if test "$am_cv_lib_iconv" = yes; then
25094 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25095 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25096 echo "$as_me:$LINENO: result: $LIBICONV" >&5
25097 echo "${ECHO_T}$LIBICONV" >&6
25099 CPPFLAGS="$am_save_CPPFLAGS"
25111 acl_save_prefix="$prefix"
25112 prefix="$acl_final_prefix"
25113 acl_save_exec_prefix="$exec_prefix"
25114 exec_prefix="$acl_final_exec_prefix"
25116 eval additional_includedir=\"$includedir\"
25117 eval additional_libdir=\"$libdir\"
25119 exec_prefix="$acl_save_exec_prefix"
25120 prefix="$acl_save_prefix"
25123 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
25124 if test "${with_libintl_prefix+set}" = set; then
25125 withval="$with_libintl_prefix"
25127 if test "X$withval" = "Xno"; then
25130 if test "X$withval" = "X"; then
25132 acl_save_prefix="$prefix"
25133 prefix="$acl_final_prefix"
25134 acl_save_exec_prefix="$exec_prefix"
25135 exec_prefix="$acl_final_exec_prefix"
25137 eval additional_includedir=\"$includedir\"
25138 eval additional_libdir=\"$libdir\"
25140 exec_prefix="$acl_save_exec_prefix"
25141 prefix="$acl_save_prefix"
25144 additional_includedir="$withval/include"
25145 additional_libdir="$withval/lib"
25155 names_already_handled=
25156 names_next_round='intl '
25157 while test -n "$names_next_round"; do
25158 names_this_round="$names_next_round"
25160 for name in $names_this_round; do
25162 for n in $names_already_handled; do
25163 if test "$n" = "$name"; then
25164 already_handled=yes
25168 if test -z "$already_handled"; then
25169 names_already_handled="$names_already_handled $name"
25170 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25171 eval value=\"\$HAVE_LIB$uppername\"
25172 if test -n "$value"; then
25173 if test "$value" = yes; then
25174 eval value=\"\$LIB$uppername\"
25175 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
25176 eval value=\"\$LTLIB$uppername\"
25177 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
25186 if test $use_additional = yes; then
25187 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25188 found_dir="$additional_libdir"
25189 found_so="$additional_libdir/lib$name.$shlibext"
25190 if test -f "$additional_libdir/lib$name.la"; then
25191 found_la="$additional_libdir/lib$name.la"
25194 if test -f "$additional_libdir/lib$name.$libext"; then
25195 found_dir="$additional_libdir"
25196 found_a="$additional_libdir/lib$name.$libext"
25197 if test -f "$additional_libdir/lib$name.la"; then
25198 found_la="$additional_libdir/lib$name.la"
25203 if test "X$found_dir" = "X"; then
25204 for x in $LDFLAGS $LTLIBINTL; do
25206 acl_save_prefix="$prefix"
25207 prefix="$acl_final_prefix"
25208 acl_save_exec_prefix="$exec_prefix"
25209 exec_prefix="$acl_final_exec_prefix"
25211 exec_prefix="$acl_save_exec_prefix"
25212 prefix="$acl_save_prefix"
25216 dir=`echo "X$x" | sed -e 's/^X-L//'`
25217 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25219 found_so="$dir/lib$name.$shlibext"
25220 if test -f "$dir/lib$name.la"; then
25221 found_la="$dir/lib$name.la"
25224 if test -f "$dir/lib$name.$libext"; then
25226 found_a="$dir/lib$name.$libext"
25227 if test -f "$dir/lib$name.la"; then
25228 found_la="$dir/lib$name.la"
25234 if test "X$found_dir" != "X"; then
25239 if test "X$found_dir" != "X"; then
25240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
25241 if test "X$found_so" != "X"; then
25242 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25243 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25246 for x in $ltrpathdirs; do
25247 if test "X$x" = "X$found_dir"; then
25252 if test -z "$haveit"; then
25253 ltrpathdirs="$ltrpathdirs $found_dir"
25255 if test "$hardcode_direct" = yes; then
25256 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25258 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25259 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25261 for x in $rpathdirs; do
25262 if test "X$x" = "X$found_dir"; then
25267 if test -z "$haveit"; then
25268 rpathdirs="$rpathdirs $found_dir"
25272 for x in $LDFLAGS $LIBINTL; do
25274 acl_save_prefix="$prefix"
25275 prefix="$acl_final_prefix"
25276 acl_save_exec_prefix="$exec_prefix"
25277 exec_prefix="$acl_final_exec_prefix"
25279 exec_prefix="$acl_save_exec_prefix"
25280 prefix="$acl_save_prefix"
25282 if test "X$x" = "X-L$found_dir"; then
25287 if test -z "$haveit"; then
25288 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25290 if test "$hardcode_minus_L" != no; then
25291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25293 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25299 if test "X$found_a" != "X"; then
25300 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25302 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25305 additional_includedir=
25306 case "$found_dir" in
25308 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25309 additional_includedir="$basedir/include"
25312 if test "X$additional_includedir" != "X"; then
25313 if test "X$additional_includedir" != "X/usr/include"; then
25315 if test "X$additional_includedir" = "X/usr/local/include"; then
25316 if test -n "$GCC"; then
25318 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25322 if test -z "$haveit"; then
25323 for x in $CPPFLAGS $INCINTL; do
25325 acl_save_prefix="$prefix"
25326 prefix="$acl_final_prefix"
25327 acl_save_exec_prefix="$exec_prefix"
25328 exec_prefix="$acl_final_exec_prefix"
25330 exec_prefix="$acl_save_exec_prefix"
25331 prefix="$acl_save_prefix"
25333 if test "X$x" = "X-I$additional_includedir"; then
25338 if test -z "$haveit"; then
25339 if test -d "$additional_includedir"; then
25340 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25346 if test -n "$found_la"; then
25347 save_libdir="$libdir"
25348 case "$found_la" in
25349 */* | *\\*) . "$found_la" ;;
25350 *) . "./$found_la" ;;
25352 libdir="$save_libdir"
25353 for dep in $dependency_libs; do
25356 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25357 if test "X$additional_libdir" != "X/usr/lib"; then
25359 if test "X$additional_libdir" = "X/usr/local/lib"; then
25360 if test -n "$GCC"; then
25362 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25366 if test -z "$haveit"; then
25368 for x in $LDFLAGS $LIBINTL; do
25370 acl_save_prefix="$prefix"
25371 prefix="$acl_final_prefix"
25372 acl_save_exec_prefix="$exec_prefix"
25373 exec_prefix="$acl_final_exec_prefix"
25375 exec_prefix="$acl_save_exec_prefix"
25376 prefix="$acl_save_prefix"
25378 if test "X$x" = "X-L$additional_libdir"; then
25383 if test -z "$haveit"; then
25384 if test -d "$additional_libdir"; then
25385 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25389 for x in $LDFLAGS $LTLIBINTL; do
25391 acl_save_prefix="$prefix"
25392 prefix="$acl_final_prefix"
25393 acl_save_exec_prefix="$exec_prefix"
25394 exec_prefix="$acl_final_exec_prefix"
25396 exec_prefix="$acl_save_exec_prefix"
25397 prefix="$acl_save_prefix"
25399 if test "X$x" = "X-L$additional_libdir"; then
25404 if test -z "$haveit"; then
25405 if test -d "$additional_libdir"; then
25406 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25413 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25414 if test "$enable_rpath" != no; then
25416 for x in $rpathdirs; do
25417 if test "X$x" = "X$dir"; then
25422 if test -z "$haveit"; then
25423 rpathdirs="$rpathdirs $dir"
25426 for x in $ltrpathdirs; do
25427 if test "X$x" = "X$dir"; then
25432 if test -z "$haveit"; then
25433 ltrpathdirs="$ltrpathdirs $dir"
25438 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25441 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25444 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25445 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25451 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25452 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25458 if test "X$rpathdirs" != "X"; then
25459 if test -n "$hardcode_libdir_separator"; then
25461 for found_dir in $rpathdirs; do
25462 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25464 acl_save_libdir="$libdir"
25466 eval flag=\"$hardcode_libdir_flag_spec\"
25467 libdir="$acl_save_libdir"
25468 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25470 for found_dir in $rpathdirs; do
25471 acl_save_libdir="$libdir"
25472 libdir="$found_dir"
25473 eval flag=\"$hardcode_libdir_flag_spec\"
25474 libdir="$acl_save_libdir"
25475 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25479 if test "X$ltrpathdirs" != "X"; then
25480 for found_dir in $ltrpathdirs; do
25481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25485 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
25486 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
25487 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 gt_save_CPPFLAGS="$CPPFLAGS"
25491 CPPFLAGS="$CPPFLAGS $INCINTL"
25492 gt_save_LIBS="$LIBS"
25493 LIBS="$LIBS $LIBINTL"
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 #include <libintl.h>
25501 extern int _nl_msg_cat_cntr;
25506 const char *_nl_expand_alias (const char *);
25510 bindtextdomain ("", "");
25511 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25516 rm -f conftest.$ac_objext conftest$ac_exeext
25517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25518 (eval $ac_link) 2>conftest.er1
25520 grep -v '^ *+' conftest.er1 >conftest.err
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
25525 { ac_try='test -z "$ac_c_werror_flag"
25526 || test ! -s conftest.err'
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; } &&
25532 { ac_try='test -s conftest$ac_exeext'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; }; then
25538 gt_cv_func_gnugettext2_libintl=yes
25540 echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25543 gt_cv_func_gnugettext2_libintl=no
25545 rm -f conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25547 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
25548 LIBS="$LIBS $LIBICONV"
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 #include <libintl.h>
25556 extern int _nl_msg_cat_cntr;
25561 const char *_nl_expand_alias (const char *);
25565 bindtextdomain ("", "");
25566 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25573 (eval $ac_link) 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
25580 { ac_try='test -z "$ac_c_werror_flag"
25581 || test ! -s conftest.err'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; } &&
25587 { ac_try='test -s conftest$ac_exeext'
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; }; then
25593 LIBINTL="$LIBINTL $LIBICONV"
25594 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25595 gt_cv_func_gnugettext2_libintl=yes
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25602 rm -f conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
25605 CPPFLAGS="$gt_save_CPPFLAGS"
25606 LIBS="$gt_save_LIBS"
25608 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
25609 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
25612 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
25613 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
25614 && test "$PACKAGE" != gettext-runtime \
25615 && test "$PACKAGE" != gettext-tools; }; then
25616 gt_use_preinstalled_gnugettext=yes
25625 if test -n "$INTL_MACOSX_LIBS"; then
25626 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25627 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25628 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25629 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25633 if test "$gt_use_preinstalled_gnugettext" = "yes" \
25634 || test "$nls_cv_use_gnu_gettext" = "yes"; then
25636 cat >>confdefs.h <<\_ACEOF
25637 #define ENABLE_NLS 1
25645 echo "$as_me:$LINENO: checking whether to use NLS" >&5
25646 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
25647 echo "$as_me:$LINENO: result: $USE_NLS" >&5
25648 echo "${ECHO_T}$USE_NLS" >&6
25649 if test "$USE_NLS" = "yes"; then
25650 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
25651 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
25652 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25653 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
25654 gt_source="external libintl"
25659 gt_source="included intl directory"
25661 echo "$as_me:$LINENO: result: $gt_source" >&5
25662 echo "${ECHO_T}$gt_source" >&6
25665 if test "$USE_NLS" = "yes"; then
25667 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25668 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
25669 echo "$as_me:$LINENO: checking how to link with libintl" >&5
25670 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
25671 echo "$as_me:$LINENO: result: $LIBINTL" >&5
25672 echo "${ECHO_T}$LIBINTL" >&6
25674 for element in $INCINTL; do
25676 for x in $CPPFLAGS; do
25678 acl_save_prefix="$prefix"
25679 prefix="$acl_final_prefix"
25680 acl_save_exec_prefix="$exec_prefix"
25681 exec_prefix="$acl_final_exec_prefix"
25683 exec_prefix="$acl_save_exec_prefix"
25684 prefix="$acl_save_prefix"
25686 if test "X$x" = "X$element"; then
25691 if test -z "$haveit"; then
25692 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25699 cat >>confdefs.h <<\_ACEOF
25700 #define HAVE_GETTEXT 1
25704 cat >>confdefs.h <<\_ACEOF
25705 #define HAVE_DCGETTEXT 1
25715 INTLLIBS="$LIBINTL"
25723 ac_config_files="$ac_config_files Makefile po/Makefile.in doc/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/es/Makefile man/fi/Makefile man/fr/Makefile man/hu/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/ko/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/tr/Makefile man/zh_CN/Makefile man/zh_TW/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile etc/Makefile etc/pam.d/Makefile shadow.spec"
25725 cat >confcache <<\_ACEOF
25726 # This file is a shell script that caches the results of configure
25727 # tests run on this system so they can be shared between configure
25728 # scripts and configure runs, see configure's option --config-cache.
25729 # It is not useful on other systems. If it contains results you don't
25730 # want to keep, you may remove or edit it.
25732 # config.status only pays attention to the cache file if you give it
25733 # the --recheck option to rerun configure.
25735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25737 # following values.
25741 # The following way of writing the cache mishandles newlines in values,
25742 # but we know of no workaround that is simple, portable, and efficient.
25743 # So, don't put newlines in cache variables' values.
25744 # Ultrix sh set writes to stderr and can't be redirected directly,
25745 # and sets the high bit in the cache file unless we assign to the vars.
25748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25750 # `set' does not quote correctly, so add quotes (double-quote
25751 # substitution turns \\\\ into \\, and sed turns \\ into \).
25754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25757 # `set' quotes correctly as required by POSIX, so do not add quotes.
25759 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25768 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25770 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25771 if test -w $cache_file; then
25772 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25773 cat confcache >$cache_file
25775 echo "not updating unwritable cache $cache_file"
25780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25781 # Let make expand exec_prefix.
25782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25786 # trailing colons and then remove the whole line if VPATH becomes empty
25787 # (actually we leave an empty line to preserve line numbers).
25788 if test "x$srcdir" = x.; then
25789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25790 s/:*\$(srcdir):*/:/;
25791 s/:*\${srcdir}:*/:/;
25793 s/^\([^=]*=[ ]*\):*/\1/;
25799 DEFS=-DHAVE_CONFIG_H
25803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25804 # 1. Remove the extension, and $U if already installed.
25805 ac_i=`echo "$ac_i" |
25806 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25808 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25809 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25811 LIBOBJS=$ac_libobjs
25813 LTLIBOBJS=$ac_ltlibobjs
25816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25817 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25818 Usually this means the macro was only invoked conditionally." >&5
25819 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25820 Usually this means the macro was only invoked conditionally." >&2;}
25821 { (exit 1); exit 1; }; }
25823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25824 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25825 Usually this means the macro was only invoked conditionally." >&5
25826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25827 Usually this means the macro was only invoked conditionally." >&2;}
25828 { (exit 1); exit 1; }; }
25830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&5
25833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25834 Usually this means the macro was only invoked conditionally." >&2;}
25835 { (exit 1); exit 1; }; }
25837 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&5
25840 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25841 Usually this means the macro was only invoked conditionally." >&2;}
25842 { (exit 1); exit 1; }; }
25844 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
25845 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&5
25847 echo "$as_me: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
25848 Usually this means the macro was only invoked conditionally." >&2;}
25849 { (exit 1); exit 1; }; }
25852 : ${CONFIG_STATUS=./config.status}
25853 ac_clean_files_save=$ac_clean_files
25854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25855 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25857 cat >$CONFIG_STATUS <<_ACEOF
25859 # Generated by $as_me.
25860 # Run this file to recreate the current configuration.
25861 # Compiler output produced by configure, useful for debugging
25862 # configure, is in config.log if it exists.
25865 ac_cs_recheck=false
25867 SHELL=\${CONFIG_SHELL-$SHELL}
25870 cat >>$CONFIG_STATUS <<\_ACEOF
25871 ## --------------------- ##
25872 ## M4sh Initialization. ##
25873 ## --------------------- ##
25875 # Be Bourne compatible
25876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25879 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25880 # is contrary to our usage. Disable this feature.
25881 alias -g '${1+"$@"}'='"$@"'
25882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25885 DUALCASE=1; export DUALCASE # for MKS sh
25887 # Support unset when possible.
25888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25895 # Work around bugs in pre-3.0 UWIN ksh.
25896 $as_unset ENV MAIL MAILPATH
25903 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25904 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25905 LC_TELEPHONE LC_TIME
25907 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25908 eval $as_var=C; export $as_var
25914 # Required to use basename.
25915 if expr a : '\(a\)' >/dev/null 2>&1; then
25921 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25922 as_basename=basename
25928 # Name of the executable.
25929 as_me=`$as_basename "$0" ||
25930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25931 X"$0" : 'X\(//\)$' \| \
25932 X"$0" : 'X\(/\)$' \| \
25933 . : '\(.\)' 2>/dev/null ||
25935 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25936 /^X\/\(\/\/\)$/{ s//\1/; q; }
25937 /^X\/\(\/\).*/{ s//\1/; q; }
25941 # PATH needs CR, and LINENO needs CR and PATH.
25942 # Avoid depending upon Character Ranges.
25943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25946 as_cr_digits='0123456789'
25947 as_cr_alnum=$as_cr_Letters$as_cr_digits
25949 # The user is always right.
25950 if test "${PATH_SEPARATOR+set}" != set; then
25951 echo "#! /bin/sh" >conf$$.sh
25952 echo "exit 0" >>conf$$.sh
25954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25963 as_lineno_1=$LINENO
25964 as_lineno_2=$LINENO
25965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25966 test "x$as_lineno_1" != "x$as_lineno_2" &&
25967 test "x$as_lineno_3" = "x$as_lineno_2" || {
25968 # Find who we are. Look in the path if we contain no path at all
25971 *[\\/]* ) as_myself=$0 ;;
25972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25973 for as_dir in $PATH
25976 test -z "$as_dir" && as_dir=.
25977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25982 # We did not find ourselves, most probably we were run as `sh COMMAND'
25983 # in which case we are not to be found in the path.
25984 if test "x$as_myself" = x; then
25987 if test ! -f "$as_myself"; then
25988 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25989 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25990 { (exit 1); exit 1; }; }
25992 case $CONFIG_SHELL in
25994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25998 test -z "$as_dir" && as_dir=.
25999 for as_base in sh bash ksh sh5; do
26002 if ("$as_dir/$as_base" -c '
26003 as_lineno_1=$LINENO
26004 as_lineno_2=$LINENO
26005 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26006 test "x$as_lineno_1" != "x$as_lineno_2" &&
26007 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26008 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26009 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26010 CONFIG_SHELL=$as_dir/$as_base
26011 export CONFIG_SHELL
26012 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26021 # uniformly replaced by the line number. The first 'sed' inserts a
26022 # line-number line before each line; the second 'sed' does the real
26023 # work. The second script uses 'N' to pair each line-number line
26024 # with the numbered line, and appends trailing '-' during
26025 # substitution so that $LINENO is not a special case at line end.
26026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26027 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26028 sed '=' <$as_myself |
26033 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26036 s,^['$as_cr_digits']*\n,,
26037 ' >$as_me.lineno &&
26038 chmod +x $as_me.lineno ||
26039 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26040 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26041 { (exit 1); exit 1; }; }
26043 # Don't try to exec as it changes $[0], causing all sort of problems
26044 # (the dirname of $[0] is not the place where we might find the
26045 # original and so on. Autoconf is especially sensible to this).
26047 # Exit status is that of the last command.
26052 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26053 *c*,-n*) ECHO_N= ECHO_C='
26055 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26056 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26059 if expr a : '\(a\)' >/dev/null 2>&1; then
26065 rm -f conf$$ conf$$.exe conf$$.file
26067 if ln -s conf$$.file conf$$ 2>/dev/null; then
26068 # We could just check for DJGPP; but this test a) works b) is more generic
26069 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26070 if test -f conf$$.exe; then
26071 # Don't use ln at all; we don't have any links
26076 elif ln conf$$.file conf$$ 2>/dev/null; then
26081 rm -f conf$$ conf$$.exe conf$$.file
26083 if mkdir -p . 2>/dev/null; then
26086 test -d ./-p && rmdir ./-p
26090 as_executable_p="test -f"
26092 # Sed expression to map a string onto a valid CPP name.
26093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26095 # Sed expression to map a string onto a valid variable name.
26096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26100 # We need space, tab and new line, in precisely that order.
26110 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26111 # report actual input values of CONFIG_FILES etc. instead of their
26112 # values after options handling. Logging --version etc. is OK.
26116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26117 ## Running $as_me. ##
26122 This file was extended by $as_me, which was
26123 generated by GNU Autoconf 2.59. Invocation command line was
26125 CONFIG_FILES = $CONFIG_FILES
26126 CONFIG_HEADERS = $CONFIG_HEADERS
26127 CONFIG_LINKS = $CONFIG_LINKS
26128 CONFIG_COMMANDS = $CONFIG_COMMANDS
26132 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26136 # Files that config.status was made for.
26137 if test -n "$ac_config_files"; then
26138 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26141 if test -n "$ac_config_headers"; then
26142 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26145 if test -n "$ac_config_links"; then
26146 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26149 if test -n "$ac_config_commands"; then
26150 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26153 cat >>$CONFIG_STATUS <<\_ACEOF
26156 \`$as_me' instantiates files from templates according to the
26157 current configuration.
26159 Usage: $0 [OPTIONS] [FILE]...
26161 -h, --help print this help, then exit
26162 -V, --version print version number, then exit
26163 -q, --quiet do not print progress messages
26164 -d, --debug don't remove temporary files
26165 --recheck update $as_me by reconfiguring in the same conditions
26166 --file=FILE[:TEMPLATE]
26167 instantiate the configuration file FILE
26168 --header=FILE[:TEMPLATE]
26169 instantiate the configuration header FILE
26171 Configuration files:
26174 Configuration headers:
26177 Configuration commands:
26180 Report bugs to <bug-autoconf@gnu.org>."
26183 cat >>$CONFIG_STATUS <<_ACEOF
26186 configured by $0, generated by GNU Autoconf 2.59,
26187 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26189 Copyright (C) 2003 Free Software Foundation, Inc.
26190 This config.status script is free software; the Free Software Foundation
26191 gives unlimited permission to copy, distribute and modify it."
26196 cat >>$CONFIG_STATUS <<\_ACEOF
26197 # If no file are specified by the user, then we need to provide default
26198 # value. By we need to know if files were specified by the user.
26204 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26205 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26213 *) # This is not an option, so the user has probably given explicit
26216 ac_need_defaults=false;;
26220 # Handling of the options.
26222 cat >>$CONFIG_STATUS <<\_ACEOF
26223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26225 --version | --vers* | -V )
26226 echo "$ac_cs_version"; exit 0 ;;
26228 # Conflict between --help and --header
26229 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26230 Try \`$0 --help' for more information." >&5
26231 echo "$as_me: error: ambiguous option: $1
26232 Try \`$0 --help' for more information." >&2;}
26233 { (exit 1); exit 1; }; };;
26234 --help | --hel | -h )
26235 echo "$ac_cs_usage"; exit 0 ;;
26236 --debug | --d* | -d )
26238 --file | --fil | --fi | --f )
26240 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26241 ac_need_defaults=false;;
26242 --header | --heade | --head | --hea )
26244 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26245 ac_need_defaults=false;;
26246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26250 # This is an error.
26251 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26252 Try \`$0 --help' for more information." >&5
26253 echo "$as_me: error: unrecognized option: $1
26254 Try \`$0 --help' for more information." >&2;}
26255 { (exit 1); exit 1; }; } ;;
26257 *) ac_config_targets="$ac_config_targets $1" ;;
26263 ac_configure_extra_args=
26265 if $ac_cs_silent; then
26267 ac_configure_extra_args="$ac_configure_extra_args --silent"
26271 cat >>$CONFIG_STATUS <<_ACEOF
26272 if \$ac_cs_recheck; then
26273 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26274 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26279 cat >>$CONFIG_STATUS <<_ACEOF
26281 # INIT-COMMANDS section.
26284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26285 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26286 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26288 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26289 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26290 LINGUAS="${LINGUAS-%UNSET%}"
26297 cat >>$CONFIG_STATUS <<\_ACEOF
26298 for ac_config_target in $ac_config_targets
26300 case "$ac_config_target" in
26301 # Handling of arguments.
26302 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26303 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26304 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26305 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26306 "man/cs/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
26307 "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
26308 "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
26309 "man/fi/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fi/Makefile" ;;
26310 "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
26311 "man/hu/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
26312 "man/id/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
26313 "man/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
26314 "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
26315 "man/ko/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ko/Makefile" ;;
26316 "man/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
26317 "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
26318 "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
26319 "man/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
26320 "man/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
26321 "man/zh_TW/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/zh_TW/Makefile" ;;
26322 "libmisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
26323 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26324 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26325 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
26326 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
26327 "etc/pam.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
26328 "shadow.spec" ) CONFIG_FILES="$CONFIG_FILES shadow.spec" ;;
26329 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26330 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26331 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26332 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26333 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26334 { (exit 1); exit 1; }; };;
26338 # If the user did not use the arguments to specify the items to instantiate,
26339 # then the envvar interface is used. Set only those that are not.
26340 # We use the long form for the default assignment because of an extremely
26341 # bizarre bug on SunOS 4.1.3.
26342 if $ac_need_defaults; then
26343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26344 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26345 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26348 # Have a temporary directory for convenience. Make it in the build tree
26349 # simply because there is no reason to put it here, and in addition,
26350 # creating and moving files from /tmp can sometimes cause problems.
26351 # Create a temporary directory, and hook for its removal unless debugging.
26354 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26355 trap '{ (exit 1); exit 1; }' 1 2 13 15
26358 # Create a (secure) tmp directory for tmp files.
26361 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26362 test -n "$tmp" && test -d "$tmp"
26365 tmp=./confstat$$-$RANDOM
26366 (umask 077 && mkdir $tmp)
26369 echo "$me: cannot create a temporary directory in ." >&2
26370 { (exit 1); exit 1; }
26375 cat >>$CONFIG_STATUS <<_ACEOF
26378 # CONFIG_FILES section.
26381 # No need to generate the scripts if there are no CONFIG_FILES.
26382 # This happens for instance when ./config.status config.h
26383 if test -n "\$CONFIG_FILES"; then
26384 # Protect against being on the right side of a sed subst in config.status.
26385 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26386 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26387 s,@SHELL@,$SHELL,;t t
26388 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26389 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26390 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26391 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26392 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26393 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26394 s,@exec_prefix@,$exec_prefix,;t t
26395 s,@prefix@,$prefix,;t t
26396 s,@program_transform_name@,$program_transform_name,;t t
26397 s,@bindir@,$bindir,;t t
26398 s,@sbindir@,$sbindir,;t t
26399 s,@libexecdir@,$libexecdir,;t t
26400 s,@datadir@,$datadir,;t t
26401 s,@sysconfdir@,$sysconfdir,;t t
26402 s,@sharedstatedir@,$sharedstatedir,;t t
26403 s,@localstatedir@,$localstatedir,;t t
26404 s,@libdir@,$libdir,;t t
26405 s,@includedir@,$includedir,;t t
26406 s,@oldincludedir@,$oldincludedir,;t t
26407 s,@infodir@,$infodir,;t t
26408 s,@mandir@,$mandir,;t t
26409 s,@build_alias@,$build_alias,;t t
26410 s,@host_alias@,$host_alias,;t t
26411 s,@target_alias@,$target_alias,;t t
26412 s,@DEFS@,$DEFS,;t t
26413 s,@ECHO_C@,$ECHO_C,;t t
26414 s,@ECHO_N@,$ECHO_N,;t t
26415 s,@ECHO_T@,$ECHO_T,;t t
26416 s,@LIBS@,$LIBS,;t t
26417 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26418 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26419 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26420 s,@CYGPATH_W@,$CYGPATH_W,;t t
26421 s,@PACKAGE@,$PACKAGE,;t t
26422 s,@VERSION@,$VERSION,;t t
26423 s,@ACLOCAL@,$ACLOCAL,;t t
26424 s,@AUTOCONF@,$AUTOCONF,;t t
26425 s,@AUTOMAKE@,$AUTOMAKE,;t t
26426 s,@AUTOHEADER@,$AUTOHEADER,;t t
26427 s,@MAKEINFO@,$MAKEINFO,;t t
26428 s,@install_sh@,$install_sh,;t t
26429 s,@STRIP@,$STRIP,;t t
26430 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26431 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26432 s,@mkdir_p@,$mkdir_p,;t t
26434 s,@SET_MAKE@,$SET_MAKE,;t t
26435 s,@am__leading_dot@,$am__leading_dot,;t t
26436 s,@AMTAR@,$AMTAR,;t t
26437 s,@am__tar@,$am__tar,;t t
26438 s,@am__untar@,$am__untar,;t t
26439 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26440 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26441 s,@MAINT@,$MAINT,;t t
26443 s,@CFLAGS@,$CFLAGS,;t t
26444 s,@LDFLAGS@,$LDFLAGS,;t t
26445 s,@CPPFLAGS@,$CPPFLAGS,;t t
26446 s,@ac_ct_CC@,$ac_ct_CC,;t t
26447 s,@EXEEXT@,$EXEEXT,;t t
26448 s,@OBJEXT@,$OBJEXT,;t t
26449 s,@DEPDIR@,$DEPDIR,;t t
26450 s,@am__include@,$am__include,;t t
26451 s,@am__quote@,$am__quote,;t t
26452 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26453 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26454 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26455 s,@CCDEPMODE@,$CCDEPMODE,;t t
26456 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26457 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26458 s,@LN_S@,$LN_S,;t t
26459 s,@YACC@,$YACC,;t t
26461 s,@EGREP@,$EGREP,;t t
26463 s,@ANSI2KNR@,$ANSI2KNR,;t t
26464 s,@build@,$build,;t t
26465 s,@build_cpu@,$build_cpu,;t t
26466 s,@build_vendor@,$build_vendor,;t t
26467 s,@build_os@,$build_os,;t t
26468 s,@host@,$host,;t t
26469 s,@host_cpu@,$host_cpu,;t t
26470 s,@host_vendor@,$host_vendor,;t t
26471 s,@host_os@,$host_os,;t t
26472 s,@ECHO@,$ECHO,;t t
26474 s,@ac_ct_AR@,$ac_ct_AR,;t t
26475 s,@RANLIB@,$RANLIB,;t t
26476 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26478 s,@CXXFLAGS@,$CXXFLAGS,;t t
26479 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26480 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26481 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26482 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26483 s,@CXXCPP@,$CXXCPP,;t t
26485 s,@FFLAGS@,$FFLAGS,;t t
26486 s,@ac_ct_F77@,$ac_ct_F77,;t t
26487 s,@LIBTOOL@,$LIBTOOL,;t t
26488 s,@LIBOBJS@,$LIBOBJS,;t t
26489 s,@XSLTPROC@,$XSLTPROC,;t t
26490 s,@XML_CATALOG_FILE@,$XML_CATALOG_FILE,;t t
26491 s,@XMLCATALOG@,$XMLCATALOG,;t t
26492 s,@ENABLE_REGENERATE_MAN_TRUE@,$ENABLE_REGENERATE_MAN_TRUE,;t t
26493 s,@ENABLE_REGENERATE_MAN_FALSE@,$ENABLE_REGENERATE_MAN_FALSE,;t t
26494 s,@LIBCRYPT@,$LIBCRYPT,;t t
26495 s,@LIBAUDIT@,$LIBAUDIT,;t t
26496 s,@LIBCRACK@,$LIBCRACK,;t t
26497 s,@LIBSELINUX@,$LIBSELINUX,;t t
26498 s,@LIBPAM@,$LIBPAM,;t t
26499 s,@LIBSKEY@,$LIBSKEY,;t t
26500 s,@LIBMD@,$LIBMD,;t t
26501 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
26502 s,@USE_NLS@,$USE_NLS,;t t
26503 s,@MSGFMT@,$MSGFMT,;t t
26504 s,@GMSGFMT@,$GMSGFMT,;t t
26505 s,@XGETTEXT@,$XGETTEXT,;t t
26506 s,@MSGMERGE@,$MSGMERGE,;t t
26507 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
26508 s,@LIBICONV@,$LIBICONV,;t t
26509 s,@LTLIBICONV@,$LTLIBICONV,;t t
26510 s,@INTLLIBS@,$INTLLIBS,;t t
26511 s,@LIBINTL@,$LIBINTL,;t t
26512 s,@LTLIBINTL@,$LTLIBINTL,;t t
26513 s,@POSUB@,$POSUB,;t t
26514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26519 cat >>$CONFIG_STATUS <<\_ACEOF
26520 # Split the substitutions into bite-sized pieces for seds with
26521 # small command number limits, like on Digital OSF/1 and HP-UX.
26522 ac_max_sed_lines=48
26523 ac_sed_frag=1 # Number of current file.
26524 ac_beg=1 # First line for current file.
26525 ac_end=$ac_max_sed_lines # Line after last line for current file.
26528 while $ac_more_lines; do
26529 if test $ac_beg -gt 1; then
26530 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26532 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26534 if test ! -s $tmp/subs.frag; then
26535 ac_more_lines=false
26537 # The purpose of the label and of the branching condition is to
26538 # speed up the sed processing (if there are no `@' at all, there
26539 # is no need to browse any of the substitutions).
26540 # These are the two extra sed commands mentioned above.
26542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26543 if test -z "$ac_sed_cmds"; then
26544 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26546 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26548 ac_sed_frag=`expr $ac_sed_frag + 1`
26550 ac_end=`expr $ac_end + $ac_max_sed_lines`
26553 if test -z "$ac_sed_cmds"; then
26556 fi # test -n "$CONFIG_FILES"
26559 cat >>$CONFIG_STATUS <<\_ACEOF
26560 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26563 - | *:- | *:-:* ) # input from stdin
26565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26569 * ) ac_file_in=$ac_file.in ;;
26572 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26573 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26575 X"$ac_file" : 'X\(//\)[^/]' \| \
26576 X"$ac_file" : 'X\(//\)$' \| \
26577 X"$ac_file" : 'X\(/\)' \| \
26578 . : '\(.\)' 2>/dev/null ||
26580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26582 /^X\(\/\/\)$/{ s//\1/; q; }
26583 /^X\(\/\).*/{ s//\1/; q; }
26585 { if $as_mkdir_p; then
26590 while test ! -d "$as_dir"; do
26591 as_dirs="$as_dir $as_dirs"
26592 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26594 X"$as_dir" : 'X\(//\)[^/]' \| \
26595 X"$as_dir" : 'X\(//\)$' \| \
26596 X"$as_dir" : 'X\(/\)' \| \
26597 . : '\(.\)' 2>/dev/null ||
26599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26601 /^X\(\/\/\)$/{ s//\1/; q; }
26602 /^X\(\/\).*/{ s//\1/; q; }
26605 test ! -n "$as_dirs" || mkdir $as_dirs
26606 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26608 { (exit 1); exit 1; }; }; }
26612 if test "$ac_dir" != .; then
26613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26614 # A "../" for each directory in $ac_dir_suffix.
26615 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26617 ac_dir_suffix= ac_top_builddir=
26621 .) # No --srcdir option. We are building in place.
26623 if test -z "$ac_top_builddir"; then
26626 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26628 [\\/]* | ?:[\\/]* ) # Absolute path.
26629 ac_srcdir=$srcdir$ac_dir_suffix;
26630 ac_top_srcdir=$srcdir ;;
26631 *) # Relative path.
26632 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26633 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26636 # Do not use `cd foo && pwd` to compute absolute paths, because
26637 # the directories may not exist.
26639 .) ac_abs_builddir="$ac_dir";;
26642 .) ac_abs_builddir=`pwd`;;
26643 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26644 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26647 case $ac_abs_builddir in
26648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26650 case ${ac_top_builddir}. in
26651 .) ac_abs_top_builddir=$ac_abs_builddir;;
26652 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26653 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26656 case $ac_abs_builddir in
26657 .) ac_abs_srcdir=$ac_srcdir;;
26660 .) ac_abs_srcdir=$ac_abs_builddir;;
26661 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26662 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26665 case $ac_abs_builddir in
26666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26668 case $ac_top_srcdir in
26669 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26670 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26671 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26677 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26678 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26681 if test x"$ac_file" != x-; then
26682 { echo "$as_me:$LINENO: creating $ac_file" >&5
26683 echo "$as_me: creating $ac_file" >&6;}
26686 # Let's still pretend it is `configure' which instantiates (i.e., don't
26687 # use $as_me), people would be surprised to read:
26688 # /* config.h. Generated by config.status. */
26689 if test x"$ac_file" = x-; then
26692 configure_input="$ac_file. "
26694 configure_input=$configure_input"Generated from `echo $ac_file_in |
26695 sed 's,.*/,,'` by configure."
26697 # First look for the input files in the build tree, otherwise in the
26699 ac_file_inputs=`IFS=:
26700 for f in $ac_file_in; do
26702 -) echo $tmp/stdin ;;
26704 # Absolute (can't be DOS-style, as IFS=:)
26705 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26706 echo "$as_me: error: cannot find input file: $f" >&2;}
26707 { (exit 1); exit 1; }; }
26710 if test -f "$f"; then
26713 elif test -f "$srcdir/$f"; then
26718 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26719 echo "$as_me: error: cannot find input file: $f" >&2;}
26720 { (exit 1); exit 1; }; }
26723 done` || { (exit 1); exit 1; }
26725 cat >>$CONFIG_STATUS <<_ACEOF
26729 cat >>$CONFIG_STATUS <<\_ACEOF
26731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26732 s,@configure_input@,$configure_input,;t t
26733 s,@srcdir@,$ac_srcdir,;t t
26734 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26735 s,@top_srcdir@,$ac_top_srcdir,;t t
26736 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26737 s,@builddir@,$ac_builddir,;t t
26738 s,@abs_builddir@,$ac_abs_builddir,;t t
26739 s,@top_builddir@,$ac_top_builddir,;t t
26740 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26741 s,@INSTALL@,$ac_INSTALL,;t t
26742 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26744 if test x"$ac_file" != x-; then
26745 mv $tmp/out $ac_file
26753 cat >>$CONFIG_STATUS <<\_ACEOF
26756 # CONFIG_HEADER section.
26759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26762 # ac_d sets the value in "#define NAME VALUE" lines.
26763 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26764 ac_dB='[ ].*$,\1#\2'
26767 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26768 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26769 ac_uB='$,\1#\2define\3'
26773 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26776 - | *:- | *:-:* ) # input from stdin
26778 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26780 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26782 * ) ac_file_in=$ac_file.in ;;
26785 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26786 echo "$as_me: creating $ac_file" >&6;}
26788 # First look for the input files in the build tree, otherwise in the
26790 ac_file_inputs=`IFS=:
26791 for f in $ac_file_in; do
26793 -) echo $tmp/stdin ;;
26795 # Absolute (can't be DOS-style, as IFS=:)
26796 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26797 echo "$as_me: error: cannot find input file: $f" >&2;}
26798 { (exit 1); exit 1; }; }
26799 # Do quote $f, to prevent DOS paths from being IFS'd.
26802 if test -f "$f"; then
26805 elif test -f "$srcdir/$f"; then
26810 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26811 echo "$as_me: error: cannot find input file: $f" >&2;}
26812 { (exit 1); exit 1; }; }
26815 done` || { (exit 1); exit 1; }
26816 # Remove the trailing spaces.
26817 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26821 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26822 # `conftest.undefs', that substitutes the proper values into
26823 # config.h.in to produce config.h. The first handles `#define'
26824 # templates, and the second `#undef' templates.
26825 # And first: Protect against being on the right side of a sed subst in
26826 # config.status. Protect against being in an unquoted here document
26827 # in config.status.
26828 rm -f conftest.defines conftest.undefs
26829 # Using a here document instead of a string reduces the quoting nightmare.
26830 # Putting comments in sed scripts is not portable.
26832 # `end' is used to avoid that the second main sed command (meant for
26833 # 0-ary CPP macros) applies to n-ary macro definitions.
26834 # See the Autoconf documentation for `clear'.
26835 cat >confdef2sed.sed <<\_ACEOF
26840 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26842 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26845 # If some macros were called several times there might be several times
26846 # the same #defines, which is useless. Nevertheless, we may not want to
26847 # sort them, since we want the *last* AC-DEFINE to be honored.
26848 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26849 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26850 rm -f confdef2sed.sed
26852 # This sed command replaces #undef with comments. This is necessary, for
26853 # example, in the case of _POSIX_SOURCE, which is predefined and required
26854 # on some systems where configure will not decide to define it.
26855 cat >>conftest.undefs <<\_ACEOF
26856 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26859 # Break up conftest.defines because some shells have a limit on the size
26860 # of here documents, and old seds have small limits too (100 cmds).
26861 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26862 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26863 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26864 echo ' :' >>$CONFIG_STATUS
26865 rm -f conftest.tail
26866 while grep . conftest.defines >/dev/null
26868 # Write a limited-size here document to $tmp/defines.sed.
26869 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26870 # Speed up: don't consider the non `#define' lines.
26871 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26872 # Work around the forget-to-reset-the-flag bug.
26873 echo 't clr' >>$CONFIG_STATUS
26874 echo ': clr' >>$CONFIG_STATUS
26875 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26877 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26879 mv $tmp/out $tmp/in
26881 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26882 rm -f conftest.defines
26883 mv conftest.tail conftest.defines
26885 rm -f conftest.defines
26886 echo ' fi # grep' >>$CONFIG_STATUS
26887 echo >>$CONFIG_STATUS
26889 # Break up conftest.undefs because some shells have a limit on the size
26890 # of here documents, and old seds have small limits too (100 cmds).
26891 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26892 rm -f conftest.tail
26893 while grep . conftest.undefs >/dev/null
26895 # Write a limited-size here document to $tmp/undefs.sed.
26896 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26897 # Speed up: don't consider the non `#undef'
26898 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26899 # Work around the forget-to-reset-the-flag bug.
26900 echo 't clr' >>$CONFIG_STATUS
26901 echo ': clr' >>$CONFIG_STATUS
26902 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26904 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26906 mv $tmp/out $tmp/in
26908 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26909 rm -f conftest.undefs
26910 mv conftest.tail conftest.undefs
26912 rm -f conftest.undefs
26914 cat >>$CONFIG_STATUS <<\_ACEOF
26915 # Let's still pretend it is `configure' which instantiates (i.e., don't
26916 # use $as_me), people would be surprised to read:
26917 # /* config.h. Generated by config.status. */
26918 if test x"$ac_file" = x-; then
26919 echo "/* Generated by configure. */" >$tmp/config.h
26921 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26923 cat $tmp/in >>$tmp/config.h
26925 if test x"$ac_file" != x-; then
26926 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26927 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26928 echo "$as_me: $ac_file is unchanged" >&6;}
26930 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26932 X"$ac_file" : 'X\(//\)[^/]' \| \
26933 X"$ac_file" : 'X\(//\)$' \| \
26934 X"$ac_file" : 'X\(/\)' \| \
26935 . : '\(.\)' 2>/dev/null ||
26937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26939 /^X\(\/\/\)$/{ s//\1/; q; }
26940 /^X\(\/\).*/{ s//\1/; q; }
26942 { if $as_mkdir_p; then
26947 while test ! -d "$as_dir"; do
26948 as_dirs="$as_dir $as_dirs"
26949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26951 X"$as_dir" : 'X\(//\)[^/]' \| \
26952 X"$as_dir" : 'X\(//\)$' \| \
26953 X"$as_dir" : 'X\(/\)' \| \
26954 . : '\(.\)' 2>/dev/null ||
26956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26958 /^X\(\/\/\)$/{ s//\1/; q; }
26959 /^X\(\/\).*/{ s//\1/; q; }
26962 test ! -n "$as_dirs" || mkdir $as_dirs
26963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26965 { (exit 1); exit 1; }; }; }
26968 mv $tmp/config.h $ac_file
26972 rm -f $tmp/config.h
26974 # Compute $ac_file's index in $config_headers.
26976 for _am_header in $config_headers :; do
26977 case $_am_header in
26978 $ac_file | $ac_file:* )
26981 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26984 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26985 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26986 X$ac_file : 'X\(//\)[^/]' \| \
26987 X$ac_file : 'X\(//\)$' \| \
26988 X$ac_file : 'X\(/\)' \| \
26989 . : '\(.\)' 2>/dev/null ||
26991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26993 /^X\(\/\/\)$/{ s//\1/; q; }
26994 /^X\(\/\).*/{ s//\1/; q; }
26995 s/.*/./; q'`/stamp-h$_am_stamp_count
26998 cat >>$CONFIG_STATUS <<\_ACEOF
27001 # CONFIG_COMMANDS section.
27003 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27004 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27005 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27006 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27007 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27008 X"$ac_dest" : 'X\(//\)[^/]' \| \
27009 X"$ac_dest" : 'X\(//\)$' \| \
27010 X"$ac_dest" : 'X\(/\)' \| \
27011 . : '\(.\)' 2>/dev/null ||
27013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27015 /^X\(\/\/\)$/{ s//\1/; q; }
27016 /^X\(\/\).*/{ s//\1/; q; }
27018 { if $as_mkdir_p; then
27023 while test ! -d "$as_dir"; do
27024 as_dirs="$as_dir $as_dirs"
27025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27027 X"$as_dir" : 'X\(//\)[^/]' \| \
27028 X"$as_dir" : 'X\(//\)$' \| \
27029 X"$as_dir" : 'X\(/\)' \| \
27030 . : '\(.\)' 2>/dev/null ||
27032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27034 /^X\(\/\/\)$/{ s//\1/; q; }
27035 /^X\(\/\).*/{ s//\1/; q; }
27038 test ! -n "$as_dirs" || mkdir $as_dirs
27039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27041 { (exit 1); exit 1; }; }; }
27045 if test "$ac_dir" != .; then
27046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27047 # A "../" for each directory in $ac_dir_suffix.
27048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27050 ac_dir_suffix= ac_top_builddir=
27054 .) # No --srcdir option. We are building in place.
27056 if test -z "$ac_top_builddir"; then
27059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27061 [\\/]* | ?:[\\/]* ) # Absolute path.
27062 ac_srcdir=$srcdir$ac_dir_suffix;
27063 ac_top_srcdir=$srcdir ;;
27064 *) # Relative path.
27065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27069 # Do not use `cd foo && pwd` to compute absolute paths, because
27070 # the directories may not exist.
27072 .) ac_abs_builddir="$ac_dir";;
27075 .) ac_abs_builddir=`pwd`;;
27076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27080 case $ac_abs_builddir in
27081 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27083 case ${ac_top_builddir}. in
27084 .) ac_abs_top_builddir=$ac_abs_builddir;;
27085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27089 case $ac_abs_builddir in
27090 .) ac_abs_srcdir=$ac_srcdir;;
27093 .) ac_abs_srcdir=$ac_abs_builddir;;
27094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27098 case $ac_abs_builddir in
27099 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27101 case $ac_top_srcdir in
27102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27109 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27110 echo "$as_me: executing $ac_dest commands" >&6;}
27112 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27113 # Strip MF so we end up with the name of the file.
27114 mf=`echo "$mf" | sed -e 's/:.*$//'`
27115 # Check whether this is an Automake generated Makefile or not.
27116 # We used to match only the files named `Makefile.in', but
27117 # some people rename them; so instead we look at the file content.
27118 # Grep'ing the first line is not enough: some people post-process
27119 # each Makefile.in and add a new line on top of each file to say so.
27120 # So let's grep whole file.
27121 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27122 dirpart=`(dirname "$mf") 2>/dev/null ||
27123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27124 X"$mf" : 'X\(//\)[^/]' \| \
27125 X"$mf" : 'X\(//\)$' \| \
27126 X"$mf" : 'X\(/\)' \| \
27127 . : '\(.\)' 2>/dev/null ||
27129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27131 /^X\(\/\/\)$/{ s//\1/; q; }
27132 /^X\(\/\).*/{ s//\1/; q; }
27137 # Extract the definition of DEPDIR, am__include, and am__quote
27138 # from the Makefile without running `make'.
27139 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27140 test -z "$DEPDIR" && continue
27141 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27142 test -z "am__include" && continue
27143 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27144 # When using ansi2knr, U may be empty or an underscore; expand it
27145 U=`sed -n 's/^U = //p' < "$mf"`
27146 # Find all dependency output files, they are included files with
27147 # $(DEPDIR) in their names. We invoke sed twice because it is the
27148 # simplest approach to changing $(DEPDIR) to its actual value in the
27150 for file in `sed -n "
27151 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27152 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27153 # Make sure the directory exists.
27154 test -f "$dirpart/$file" && continue
27155 fdir=`(dirname "$file") 2>/dev/null ||
27156 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X"$file" : 'X\(//\)[^/]' \| \
27158 X"$file" : 'X\(//\)$' \| \
27159 X"$file" : 'X\(/\)' \| \
27160 . : '\(.\)' 2>/dev/null ||
27162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27164 /^X\(\/\/\)$/{ s//\1/; q; }
27165 /^X\(\/\).*/{ s//\1/; q; }
27167 { if $as_mkdir_p; then
27168 mkdir -p $dirpart/$fdir
27170 as_dir=$dirpart/$fdir
27172 while test ! -d "$as_dir"; do
27173 as_dirs="$as_dir $as_dirs"
27174 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27176 X"$as_dir" : 'X\(//\)[^/]' \| \
27177 X"$as_dir" : 'X\(//\)$' \| \
27178 X"$as_dir" : 'X\(/\)' \| \
27179 . : '\(.\)' 2>/dev/null ||
27181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27183 /^X\(\/\/\)$/{ s//\1/; q; }
27184 /^X\(\/\).*/{ s//\1/; q; }
27187 test ! -n "$as_dirs" || mkdir $as_dirs
27188 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27189 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27190 { (exit 1); exit 1; }; }; }
27192 # echo "creating $dirpart/$file"
27193 echo '# dummy' > "$dirpart/$file"
27198 for ac_file in $CONFIG_FILES; do
27199 # Support "outfile[:infile[:infile...]]"
27201 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27203 # PO directories have a Makefile.in generated from Makefile.in.in.
27204 case "$ac_file" in */Makefile.in)
27205 # Adjust a relative srcdir.
27206 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27207 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
27208 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27209 # In autoconf-2.13 it is called $ac_given_srcdir.
27210 # In autoconf-2.50 it is called $srcdir.
27211 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27212 case "$ac_given_srcdir" in
27213 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27214 /*) top_srcdir="$ac_given_srcdir" ;;
27215 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27217 # Treat a directory as a PO directory if and only if it has a
27218 # POTFILES.in file. This allows packages to have multiple PO
27219 # directories under different names or in different locations.
27220 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27221 rm -f "$ac_dir/POTFILES"
27222 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27223 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27224 POMAKEFILEDEPS="POTFILES.in"
27225 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27226 # on $ac_dir but don't depend on user-specified configuration
27228 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27229 # The LINGUAS file contains the set of available languages.
27230 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27231 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27233 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27234 # Hide the ALL_LINGUAS assigment from automake.
27235 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27236 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27238 # The set of available languages was given in configure.in.
27239 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27242 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27243 # Compute UPDATEPOFILES
27244 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27245 # Compute DUMMYPOFILES
27246 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27248 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27249 case "$ac_given_srcdir" in
27251 *) srcdirpre='$(srcdir)/' ;;
27257 for lang in $ALL_LINGUAS; do
27258 POFILES="$POFILES $srcdirpre$lang.po"
27259 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27260 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27261 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27263 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27264 # environment variable.
27266 if test -n "$ALL_LINGUAS"; then
27267 for presentlang in $ALL_LINGUAS; do
27269 if test "%UNSET%" != "$LINGUAS"; then
27270 desiredlanguages="$LINGUAS"
27272 desiredlanguages="$ALL_LINGUAS"
27274 for desiredlang in $desiredlanguages; do
27275 # Use the presentlang catalog if desiredlang is
27276 # a. equal to presentlang, or
27277 # b. a variant of presentlang (because in this case,
27278 # presentlang can be used as a fallback for messages
27279 # which are not translated in the desiredlang catalog).
27280 case "$desiredlang" in
27281 "$presentlang"*) useit=yes;;
27284 if test $useit = yes; then
27285 INST_LINGUAS="$INST_LINGUAS $presentlang"
27290 if test -n "$INST_LINGUAS"; then
27291 for lang in $INST_LINGUAS; do
27292 CATALOGS="$CATALOGS $lang.gmo"
27295 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27296 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27297 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27298 if test -f "$f"; then
27300 *.orig | *.bak | *~) ;;
27301 *) cat "$f" >> "$ac_dir/Makefile" ;;
27313 cat >>$CONFIG_STATUS <<\_ACEOF
27315 { (exit 0); exit 0; }
27317 chmod +x $CONFIG_STATUS
27318 ac_clean_files=$ac_clean_files_save
27321 # configure is writing to config.log, and then calls config.status.
27322 # config.status does its own redirection, appending to config.log.
27323 # Unfortunately, on DOS this fails, as config.log is still kept open
27324 # by configure, so config.status won't be able to write to it; its
27325 # output is simply discarded. So we exec the FD to /dev/null,
27326 # effectively closing config.log, so it can be properly (re)opened and
27327 # appended to by config.status. When coming back to configure, we
27328 # need to make the FD available again.
27329 if test "$no_create" != yes; then
27331 ac_config_status_args=
27332 test "$silent" = yes &&
27333 ac_config_status_args="$ac_config_status_args --quiet"
27335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27338 # would make configure fail if this is the last instruction.
27339 $ac_cs_success || { (exit 1); exit 1; }
27344 echo "shadow will be compiled with the followig feactures:"
27346 echo " auditing support: $with_audit"
27347 echo " CrackLib support: $with_libcrack"
27348 echo " PAM support: $with_libpam"
27349 echo " SELinux support: $with_selinux"
27350 echo " shadow group support: $enable_shadowgrp"
27351 echo " S/Key support: $with_skey"