2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for webcit 6.80.
5 # Report bugs to <uncensored.citadel.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='webcit'
425 PACKAGE_TARNAME='webcit'
426 PACKAGE_VERSION='6.80'
427 PACKAGE_STRING='webcit 6.80'
428 PACKAGE_BUGREPORT='uncensored.citadel.org'
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_default_prefix=/usr/local/webcit
468 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PROG_SUBDIRS SED PTHREAD_DEFS LIBOBJS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SETUP_LIBS staticdir editordir LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures webcit 6.80 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of webcit 6.80:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-dependency-tracking speeds up one-time build
1037 --enable-dependency-tracking do not reject slow dependency extractors
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --disable-nls do not use Native Language Support
1040 --disable-rpath do not hardcode runtime library paths
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-newt use newt window library
1051 --with-gnu-ld assume the C compiler uses GNU ld default=no
1052 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1053 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1054 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1055 --without-libintl-prefix don't search for libintl in includedir and libdir
1056 --with-rundir=DIR where to find the citadel servers sockets (overridable by -h at runtime.)
1057 --with-staticdir=DIR where to put datafiles
1058 --with-staticrundir=DIR where to search datafiles at runtime
1059 --with-editordir=DIR where to search the editor at runtime
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <uncensored.citadel.org>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1174 webcit configure 6.80
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by webcit $as_me 6.80, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 cat >>confdefs.h <<\_ACEOF
1526 #define _GNU_SOURCE 1
1530 am__api_version="1.9"
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556 # Find a good install program. We prefer a C program (faster),
1557 # so one script is as good as another. But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 # Account for people who put trailing slashes in PATH elements.
1582 ./ | .// | /cC/* | \
1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1587 # OSF1 and SCO ODT 3.0 have their own names for install.
1588 # Don't use installbsd from OSF since it installs stuff as root
1590 for ac_prog in ginstall scoinst install; do
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593 if test $ac_prog = install &&
1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595 # AIX install. It has an incompatible calling convention.
1597 elif test $ac_prog = install &&
1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599 # program-specific install script used by HP pwplus--don't use.
1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 if test "${ac_cv_path_install+set}" = set; then
1615 INSTALL=$ac_cv_path_install
1617 # As a last resort, use the slow shell script. We don't cache a
1618 # path for INSTALL within a source directory, because that will
1619 # break other packages using the cache if that directory is
1620 # removed, or if the path is relative.
1621 INSTALL=$ac_install_sh
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments. Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647 if test "$*" = "X"; then
1649 set X `ls -t $srcdir/configure conftest.file`
1652 if test "$*" != "X $srcdir/configure conftest.file" \
1653 && test "$*" != "X conftest.file $srcdir/configure"; then
1655 # If neither matched, then we have a broken ls. This can happen
1656 # if, for instance, CONFIG_SHELL is bash and it inherits a
1657 # broken ls alias from the environment. This has actually
1658 # happened. Such a system could not be considered "sane".
1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1662 alias in your environment" >&2;}
1663 { (exit 1); exit 1; }; }
1666 test "$2" = conftest.file
1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $. echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699 am_missing_run="$MISSING --run "
1702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707 # We used to keeping the `.' as first argument, in order to
1708 # allow $(mkdir_p) to be used without argument. As in
1709 # $(mkdir_p) $(somedir)
1710 # where $(somedir) is conditionally defined. However this is wrong
1712 # 1. if the package is installed by a user who cannot write `.'
1713 # make install will fail,
1714 # 2. the above comment should most certainly read
1715 # $(mkdir_p) $(DESTDIR)$(somedir)
1716 # so it does not work when $(somedir) is undefined and
1717 # $(DESTDIR) is not.
1718 # To support the latter case, we have to write
1719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720 # so the `.' trick is pointless.
1721 mkdir_p='mkdir -p --'
1723 # On NextStep and OpenStep, the `mkdir' command does not
1724 # recognize any option. It will interpret all options as
1725 # directories to create, and then abort because `.' already
1727 for d in ./-p ./--version;
1729 test -d $d && rmdir $d
1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732 if test -f "$ac_aux_dir/mkinstalldirs"; then
1733 mkdir_p='$(mkinstalldirs)'
1735 mkdir_p='$(install_sh) -d'
1739 for ac_prog in gawk mawk nawk awk
1741 # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$AWK"; then
1749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_AWK="$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$AWK"; then
1769 echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$AWK" && break
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 cat >conftest.make <<\_ACEOF
1787 @echo 'ac_maketemp="$(MAKE)"'
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792 eval ac_cv_prog_make_${ac_make}_set=yes
1794 eval ac_cv_prog_make_${ac_make}_set=no
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 SET_MAKE="MAKE=${MAKE-make}"
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1815 rmdir .tst 2>/dev/null
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819 test -f $srcdir/config.status; then
1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822 { (exit 1); exit 1; }; }
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827 if (cygpath --version) >/dev/null 2>/dev/null; then
1828 CYGPATH_W='cygpath -w'
1835 # Define the identity of the package.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1849 # Some tools Automake needs.
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'. However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$STRIP"; then
1881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901 echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1909 if test -z "$ac_cv_prog_STRIP"; then
1911 # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_STRIP"; then
1919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_STRIP="strip"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1949 STRIP="$ac_cv_prog_STRIP"
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955 # We need awk for the "check" target. The system "awk" is bad on
1957 # Always define AMTAR for backward compatibility.
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1967 ac_config_headers="$ac_config_headers config.h"
1969 # Check whether --enable-shared or --disable-shared was given.
1970 if test "${enable_shared+set}" = set; then
1971 enableval="$enable_shared"
1972 p=${PACKAGE-default}
1974 yes) enable_shared=yes ;;
1975 no) enable_shared=no ;;
1978 # Look at the argument we got. We use all the common list separators.
1979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1980 for pkg in $enableval; do
1982 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
2017 # Check whether --enable-fast-install or --disable-fast-install was given.
2018 if test "${enable_fast_install+set}" = set; then
2019 enableval="$enable_fast_install"
2020 p=${PACKAGE-default}
2022 yes) enable_fast_install=yes ;;
2023 no) enable_fast_install=no ;;
2025 enable_fast_install=no
2026 # Look at the argument we got. We use all the common list separators.
2027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2028 for pkg in $enableval; do
2030 if test "X$pkg" = "X$p"; then
2031 enable_fast_install=yes
2038 enable_fast_install=yes
2041 # Make sure we can run config.sub.
2042 $ac_config_sub sun4 >/dev/null 2>&1 ||
2043 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2045 { (exit 1); exit 1; }; }
2047 echo "$as_me:$LINENO: checking build system type" >&5
2048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2049 if test "${ac_cv_build+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 ac_cv_build_alias=$build_alias
2053 test -z "$ac_cv_build_alias" &&
2054 ac_cv_build_alias=`$ac_config_guess`
2055 test -z "$ac_cv_build_alias" &&
2056 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2058 { (exit 1); exit 1; }; }
2059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2060 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2062 { (exit 1); exit 1; }; }
2065 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2066 echo "${ECHO_T}$ac_cv_build" >&6
2068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2073 echo "$as_me:$LINENO: checking host system type" >&5
2074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2075 if test "${ac_cv_host+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_host_alias=$host_alias
2079 test -z "$ac_cv_host_alias" &&
2080 ac_cv_host_alias=$ac_cv_build_alias
2081 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2082 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6
2090 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2091 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2092 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2095 DEPDIR="${am__leading_dot}deps"
2097 ac_config_commands="$ac_config_commands depfiles"
2100 am_make=${MAKE-make}
2101 cat > confinc << 'END'
2106 # If we don't find an include directive, just comment out the code.
2107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2112 # First try GNU make style include.
2113 echo "include confinc" > confmf
2114 # We grep out `Entering directory' and `Leaving directory'
2115 # messages which can occur if `w' ends up in MAKEFLAGS.
2116 # In particular we don't look at `^make:' because GNU make might
2117 # be invoked under some other name (usually "gmake"), in which
2118 # case it prints its new name instead of `make'.
2119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2124 # Now try BSD make style include.
2125 if test "$am__include" = "#"; then
2126 echo '.include "confinc"' > confmf
2127 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2128 am__include=.include
2135 echo "$as_me:$LINENO: result: $_am_result" >&5
2136 echo "${ECHO_T}$_am_result" >&6
2137 rm -f confinc confmf
2139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2140 if test "${enable_dependency_tracking+set}" = set; then
2141 enableval="$enable_dependency_tracking"
2144 if test "x$enable_dependency_tracking" != xno; then
2145 am_depcomp="$ac_aux_dir/depcomp"
2150 if test "x$enable_dependency_tracking" != xno; then
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2202 if test -z "$ac_cv_prog_CC"; then
2204 # Extract the first word of "gcc", so it can be a program name with args.
2205 set dummy gcc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$ac_ct_CC"; then
2212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_ac_ct_CC="gcc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2235 echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2244 if test -z "$CC"; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}cc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263 ac_cv_prog_CC="${ac_tool_prefix}cc"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 if test -n "$CC"; then
2274 echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6
2277 echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2282 if test -z "$ac_cv_prog_CC"; then
2284 # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301 ac_cv_prog_ac_ct_CC="cc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2315 echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 if test $ac_prog_rejected = yes; then
2356 # We found a bogon in the path, so make sure we never use it.
2357 set dummy $ac_cv_prog_CC
2359 if test $# != 0; then
2360 # We chose a different compiler from the bogus one.
2361 # However, it has the same basename, so the bogon will be chosen
2362 # first if we set CC to just the basename; use the full file name.
2364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 if test -n "$CC"; then
2371 echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6
2374 echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2379 if test -z "$CC"; then
2380 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 if test -n "$CC"; then
2411 echo "$as_me:$LINENO: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2418 test -n "$CC" && break
2421 if test -z "$CC"; then
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_ac_ct_CC="$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6
2456 echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2460 test -n "$ac_ct_CC" && break
2469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2475 # Provide some information about the compiler.
2476 echo "$as_me:$LINENO:" \
2477 "checking for C compiler version" >&5
2478 ac_compiler=`set X $ac_compile; echo $2`
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480 (eval $ac_compiler --version </dev/null >&5) 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485 (eval $ac_compiler -v </dev/null >&5) 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490 (eval $ac_compiler -V </dev/null >&5) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2519 (eval $ac_link_default) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; then
2523 # Find the output, starting from the most likely. This scheme is
2524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2527 # Be careful to initialize this variable, since it used to be cached.
2528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2530 # b.out is created by i960 compilers.
2531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2533 test -f "$ac_file" || continue
2535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2538 # This is the source file.
2541 # We found the default executable, but exeext='' is most
2545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 # FIXME: I believe we export ac_cv_exeext for Libtool,
2547 # but it would be cool to find out if it's true. Does anybody
2548 # maintain Libtool? --akim.
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563 { (exit 77); exit 77; }; }
2566 ac_exeext=$ac_cv_exeext
2567 echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6
2570 # Check the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2575 # If not cross compiling, check that we can run a simple program.
2576 if test "$cross_compiling" != yes; then
2577 if { ac_try='./$ac_file'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 if test "$cross_compiling" = maybe; then
2588 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2598 echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check the compiler produces executables we can run. If not, either
2604 # the compiler is broken, or we cross compile.
2605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6
2610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613 (eval $ac_link) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; then
2617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2619 # work properly (i.e., refer to `conftest.exe'), while it won't with
2621 for ac_file in conftest.exe conftest conftest.*; do
2622 test -f "$ac_file" || continue
2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }
2639 rm -f conftest$ac_cv_exeext
2640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2648 if test "${ac_cv_objext+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.o conftest.obj
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&2;}
2687 { (exit 1); exit 1; }; }
2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT=$ac_cv_objext
2696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2818 if test "$GCC" = yes; then
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_prog_cc_stdc=no
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std1 is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std1. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX -qlanglvl=ansi
2886 # Ultrix and OSF/1 -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions -Aa -D_HPUX_SOURCE
2889 # SVR4 -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895 (eval $ac_compile) 2>conftest.er1
2897 grep -v '^ *+' conftest.er1 >conftest.err
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 ac_cv_prog_cc_stdc=$ac_arg
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2921 rm -f conftest.err conftest.$ac_objext
2923 rm -f conftest.$ac_ext conftest.$ac_objext
2928 case "x$ac_cv_prog_cc_stdc" in
2930 echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6 ;;
2933 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2935 CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 # Some people use a C++ compiler to compile C. Since we use `exit',
2939 # in C++ we need to declare it. In case someone uses the same compiler
2940 # for both compiling C and C++ we need to have the C++ compiler decide
2941 # the declaration of exit, since it's the most demanding environment.
2942 cat >conftest.$ac_ext <<_ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 for ac_declaration in \
2970 'extern "C" void std::exit (int) throw (); using std::exit;' \
2971 'extern "C" void std::exit (int); using std::exit;' \
2972 'extern "C" void exit (int) throw ();' \
2973 'extern "C" void exit (int);' \
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 if test -n "$ac_declaration"; then
3067 echo '#ifdef __cplusplus' >>confdefs.h
3068 echo $ac_declaration >>confdefs.h
3069 echo '#endif' >>confdefs.h
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 depcc="$CC" am_compiler_list=
3086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092 # We make a subdir and do the tests there. Otherwise we can end up
3093 # making bogus files that we don't know about and never remove. For
3094 # instance it was reported that on HP-UX the gcc test will end up
3095 # making a dummy file named `D' -- because `-MD' means `put the output
3098 # Copy depcomp to subdir because otherwise we won't find it if we're
3099 # using a relative directory.
3100 cp "$am_depcomp" conftest.dir
3102 # We will build objects and dependencies in a subdirectory because
3103 # it helps to detect inapplicable dependency modes. For instance
3104 # both Tru64's cc and ICC support -MD to output dependencies as a
3105 # side effect of compilation, but ICC will put the dependencies in
3106 # the current directory while Tru64 will put them in the object
3110 am_cv_CC_dependencies_compiler_type=none
3111 if test "$am_compiler_list" = ""; then
3112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3114 for depmode in $am_compiler_list; do
3115 # Setup a source with many dependencies, because some compilers
3116 # like to wrap large dependency lists on column 80 (with \), and
3117 # we should not choose a depcomp mode which is confused by this.
3119 # We need to recreate these files for each test, as the compiler may
3120 # overwrite some of them when testing with obscure command lines.
3121 # This happens at least with the AIX C compiler.
3123 for i in 1 2 3 4 5 6; do
3124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3126 # Solaris 8's {/usr,}/bin/sh.
3127 touch sub/conftst$i.h
3129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3133 # after this tag, mechanisms are not by side-effect, so they'll
3134 # only be used when explicitly requested
3135 if test "x$enable_dependency_tracking" = xyes; then
3143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144 # mode. It turns out that the SunPro C++ compiler does not properly
3145 # handle `-M -o', and we need to detect this.
3146 if depmode=$depmode \
3147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150 >/dev/null 2>conftest.err &&
3151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154 # icc doesn't choke on unknown options, it will just issue warnings
3155 # or remarks (even with -Werror). So we grep stderr for any message
3156 # that says an option was ignored or not supported.
3157 # When given -MP, icc 7.0 and 7.1 complain thusly:
3158 # icc: Command line warning: ignoring option '-M'; no argument required
3159 # The diagnosis changed in icc 8.0:
3160 # icc: Command line remark: option '-MP' not supported
3161 if (grep 'ignoring option' conftest.err ||
3162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3163 am_cv_CC_dependencies_compiler_type=$depmode
3172 am_cv_CC_dependencies_compiler_type=none
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3183 test "x$enable_dependency_tracking" != xno \
3184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3186 am__fastdepCC_FALSE='#'
3188 am__fastdepCC_TRUE='#'
3189 am__fastdepCC_FALSE=
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for lt_ac_prog in sed gsed; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218 test ! -f $lt_ac_sed && continue
3219 cat /dev/null > conftest.in
3221 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222 # Check for GNU sed and select it if it is found.
3223 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224 lt_cv_path_SED=$lt_ac_sed
3228 cat conftest.in conftest.in >conftest.tmp
3229 mv conftest.tmp conftest.in
3230 cp conftest.in conftest.nl
3232 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233 cmp -s conftest.out conftest.nl || break
3234 # 10000 chars as input seems more than enough
3235 test $lt_ac_count -gt 10 && break
3236 lt_ac_count=`expr $lt_ac_count + 1`
3237 if test $lt_ac_count -gt $lt_ac_max; then
3238 lt_ac_max=$lt_ac_count
3239 lt_cv_path_SED=$lt_ac_sed
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256 then ac_cv_prog_egrep='grep -E'
3257 else ac_cv_prog_egrep='egrep'
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262 EGREP=$ac_cv_prog_egrep
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268 withval="$with_gnu_ld"
3269 test "$withval" = no || with_gnu_ld=yes
3274 if test "$GCC" = yes; then
3275 # Check if gcc -print-prog-name=ld gives a path.
3276 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3280 # gcc leaves a trailing carriage return which upsets mingw
3281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286 # Accept absolute paths.
3288 re_direlt='/[^/][^/]*/\.\./'
3289 # Canonicalize the pathname of ld
3290 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294 test -z "$LD" && LD="$ac_prog"
3297 # If it fails, then pretend we aren't using GCC.
3301 # If it is relative, then search for the first ld in PATH.
3305 elif test "$with_gnu_ld" = yes; then
3306 echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312 if test "${lt_cv_path_LD+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -z "$LD"; then
3316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317 for ac_dir in $PATH; do
3319 test -z "$ac_dir" && ac_dir=.
3320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321 lt_cv_path_LD="$ac_dir/$ac_prog"
3322 # Check to see if the program is GNU ld. I'd rather use --version,
3323 # but apparently some variants of GNU ld only accept -v.
3324 # Break only if it was the GNU/non-GNU ld that we prefer.
3325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326 *GNU* | *'with BFD'*)
3327 test "$with_gnu_ld" != no && break
3330 test "$with_gnu_ld" != yes && break
3337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3342 if test -n "$LD"; then
3343 echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360 lt_cv_prog_gnu_ld=yes
3363 lt_cv_prog_gnu_ld=no
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 lt_cv_ld_reload_flag='-r'
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3384 *) reload_flag=" $reload_flag" ;;
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389 if test "$GCC" = yes; then
3390 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3397 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3399 if test "${lt_cv_path_NM+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -n "$NM"; then
3403 # Let the user override the test.
3406 lt_nm_to_check="${ac_tool_prefix}nm"
3407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3408 lt_nm_to_check="$lt_nm_to_check nm"
3410 for lt_tmp_nm in $lt_nm_to_check; do
3411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3414 test -z "$ac_dir" && ac_dir=.
3415 tmp_nm="$ac_dir/$lt_tmp_nm"
3416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3417 # Check to see if the nm accepts a BSD-compat flag.
3418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3419 # nm: unknown option "B" ignored
3420 # Tru64's nm complains that /dev/null is an invalid object file
3421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3422 */dev/null* | *'Invalid file or object type'*)
3423 lt_cv_path_NM="$tmp_nm -B"
3427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3429 lt_cv_path_NM="$tmp_nm -p"
3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434 continue # so that we can try to find one that supports BSD flags
3443 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3446 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3447 echo "${ECHO_T}$lt_cv_path_NM" >&6
3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3453 if test "$LN_S" = "ln -s"; then
3454 echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3457 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3458 echo "${ECHO_T}no, using $LN_S" >&6
3461 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3463 if test "${lt_cv_deplibs_check_method+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 lt_cv_file_magic_cmd='$MAGIC_CMD'
3467 lt_cv_file_magic_test_file=
3468 lt_cv_deplibs_check_method='unknown'
3469 # Need to set the preceding variable on all platforms that support
3470 # interlibrary dependencies.
3471 # 'none' -- dependencies not supported.
3472 # `unknown' -- same as none, but documents that we really don't know.
3473 # 'pass_all' -- all dependencies passed with no checks.
3474 # 'test_compile' -- check by making test program.
3475 # 'file_magic [[regex]]' -- check by looking for files in library path
3476 # which responds to the $file_magic_cmd with a given extended regex.
3477 # If you have `file' or equivalent on your system and you're not sure
3478 # whether `pass_all' will *always* work, you probably want this one.
3482 lt_cv_deplibs_check_method=pass_all
3486 lt_cv_deplibs_check_method=pass_all
3490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3491 lt_cv_file_magic_cmd='/usr/bin/file -L'
3492 lt_cv_file_magic_test_file=/shlib/libc.so
3496 # func_win32_libid is a shell function defined in ltmain.sh
3497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3498 lt_cv_file_magic_cmd='func_win32_libid'
3502 # Base MSYS/MinGW do not provide the 'file' command needed by
3503 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 darwin* | rhapsody*)
3509 lt_cv_deplibs_check_method=pass_all
3512 freebsd* | dragonfly*)
3513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3516 # Not sure whether the presence of OpenBSD here was a mistake.
3517 # Let's accept both of them until this is cleared up.
3518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3519 lt_cv_file_magic_cmd=/usr/bin/file
3520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3524 lt_cv_deplibs_check_method=pass_all
3529 lt_cv_deplibs_check_method=pass_all
3532 hpux10.20* | hpux11*)
3533 lt_cv_file_magic_cmd=/usr/bin/file
3536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3540 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]'
3541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3555 irix5* | irix6* | nonstopux*)
3557 *-32|*"-32 ") libmagic=32-bit;;
3558 *-n32|*"-n32 ") libmagic=N32;;
3559 *-64|*"-64 ") libmagic=64-bit;;
3560 *) libmagic=never-match;;
3562 lt_cv_deplibs_check_method=pass_all
3565 # This must be Linux ELF.
3566 linux* | k*bsd*-gnu)
3567 lt_cv_deplibs_check_method=pass_all
3570 netbsd* | netbsdelf*-gnu)
3571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580 lt_cv_file_magic_cmd=/usr/bin/file
3581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3585 lt_cv_deplibs_check_method=unknown
3589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3596 osf3* | osf4* | osf5*)
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method=pass_all
3605 case $host_vendor in
3607 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]'
3608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3611 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_cmd='/bin/file'
3615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3618 lt_cv_file_magic_cmd='/bin/file'
3619 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3620 lt_cv_file_magic_test_file=/lib/libc.so
3623 lt_cv_deplibs_check_method=pass_all
3626 lt_cv_deplibs_check_method=pass_all
3631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3632 lt_cv_deplibs_check_method=pass_all
3637 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3639 file_magic_cmd=$lt_cv_file_magic_cmd
3640 deplibs_check_method=$lt_cv_deplibs_check_method
3641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3646 # If no C compiler was specified, use CC.
3649 # If no C compiler flags were specified, use CFLAGS.
3650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3652 # Allow CC to be a program name with arguments.
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658 enableval="$enable_libtool_lock"
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3663 # Some flags need to be propagated to the compiler or linker for good
3667 # Find out which ABI we are using.
3668 echo 'int i;' > conftest.$ac_ext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; then
3674 case `/usr/bin/file conftest.$ac_objext` in
3686 # Find out which ABI we are using.
3687 echo '#line 3687 "configure"' > conftest.$ac_ext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 if test "$lt_cv_prog_gnu_ld" = yes; then
3694 case `/usr/bin/file conftest.$ac_objext` in
3696 LD="${LD-ld} -melf32bsmip"
3699 LD="${LD-ld} -melf32bmipn32"
3702 LD="${LD-ld} -melf64bmip"
3706 case `/usr/bin/file conftest.$ac_objext` in
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723 # Find out which ABI we are using.
3724 echo 'int i;' > conftest.$ac_ext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; then
3730 case `/usr/bin/file conftest.o` in
3734 LD="${LD-ld} -m elf_i386"
3736 ppc64-*linux*|powerpc64-*linux*)
3737 LD="${LD-ld} -m elf32ppclinux"
3740 LD="${LD-ld} -m elf_s390"
3743 LD="${LD-ld} -m elf32_sparc"
3750 LD="${LD-ld} -m elf_x86_64"
3752 ppc*-*linux*|powerpc*-*linux*)
3753 LD="${LD-ld} -m elf64ppc"
3756 LD="${LD-ld} -m elf64_s390"
3759 LD="${LD-ld} -m elf64_sparc"
3769 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770 SAVE_CFLAGS="$CFLAGS"
3771 CFLAGS="$CFLAGS -belf"
3772 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 lt_cv_cc_needs_belf=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 lt_cv_cc_needs_belf=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839 CFLAGS="$SAVE_CFLAGS"
3843 # Find out which ABI we are using.
3844 echo 'int i;' > conftest.$ac_ext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 case `/usr/bin/file conftest.o` in
3852 case $lt_cv_prog_gnu_ld in
3853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3854 *) LD="${LD-ld} -64" ;;
3865 need_locks="$enable_libtool_lock"
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3879 if test -z "$CPP"; then
3880 if test "${ac_cv_prog_CPP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Double quotes because CPP needs to be expanded
3884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887 for ac_c_preproc_warn_flag in '' yes
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # include <limits.h>
3904 # include <assert.h>
3908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3925 if test -z "$ac_cpp_err"; then
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Broken: fails on valid input.
3934 rm -f conftest.err conftest.$ac_ext
3936 # OK, works on sane cases. Now check whether non-existent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #include <ac_nonexistent.h>
3946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } >/dev/null; then
3954 if test -s conftest.err; then
3955 ac_cpp_err=$ac_c_preproc_warn_flag
3956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3963 if test -z "$ac_cpp_err"; then
3964 # Broken: success on invalid input.
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 # Passes both tests.
3974 rm -f conftest.err conftest.$ac_ext
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3991 echo "$as_me:$LINENO: result: $CPP" >&5
3992 echo "${ECHO_T}$CPP" >&6
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4009 # include <limits.h>
4011 # include <assert.h>
4015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev/null; then
4023 if test -s conftest.err; then
4024 ac_cpp_err=$ac_c_preproc_warn_flag
4025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4032 if test -z "$ac_cpp_err"; then
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 # Broken: fails on valid input.
4041 rm -f conftest.err conftest.$ac_ext
4043 # OK, works on sane cases. Now check whether non-existent headers
4044 # can be detected and how.
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null; then
4061 if test -s conftest.err; then
4062 ac_cpp_err=$ac_c_preproc_warn_flag
4063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4070 if test -z "$ac_cpp_err"; then
4071 # Broken: success on invalid input.
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 # Passes both tests.
4081 rm -f conftest.err conftest.$ac_ext
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4090 See \`config.log' for more details." >&5
4091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4092 See \`config.log' for more details." >&2;}
4093 { (exit 1); exit 1; }; }
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_cv_header_stdc=no
4155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157 if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then
4172 ac_cv_header_stdc=no
4178 if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "free" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201 if test "$cross_compiling" = yes; then
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215 # define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cv_header_stdc=no
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4260 if test $ac_cv_header_stdc = yes; then
4262 cat >>confdefs.h <<\_ACEOF
4263 #define STDC_HEADERS 1
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279 inttypes.h stdint.h unistd.h
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4295 #include <$ac_header>
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299 (eval $ac_compile) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 eval "$as_ac_Header=yes"
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 eval "$as_ac_Header=no"
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 for ac_header in dlfcn.h
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344 echo "$as_me:$LINENO: checking for $ac_header" >&5
4345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4352 # Is the header compilable?
4353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4362 #include <$ac_header>
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_header_compiler=yes
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_header_compiler=no
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394 echo "${ECHO_T}$ac_header_compiler" >&6
4396 # Is the header present?
4397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <$ac_header>
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null; then
4415 if test -s conftest.err; then
4416 ac_cpp_err=$ac_c_preproc_warn_flag
4417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4424 if test -z "$ac_cpp_err"; then
4425 ac_header_preproc=yes
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_header_preproc=no
4432 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434 echo "${ECHO_T}$ac_header_preproc" >&6
4436 # So? What about this header?
4437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443 ac_header_preproc=yes
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4460 ## ------------------------------------- ##
4461 ## Report this to uncensored.citadel.org ##
4462 ## ------------------------------------- ##
4465 sed "s/^/$as_me: WARNING: /" >&2
4468 echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 eval "$as_ac_Header=\$ac_header_preproc"
4475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480 cat >>confdefs.h <<_ACEOF
4481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 ac_cpp='$CXXCPP $CPPFLAGS'
4490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_CXX+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$CXX"; then
4504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 if test -n "$CXX"; then
4524 echo "$as_me:$LINENO: result: $CXX" >&5
4525 echo "${ECHO_T}$CXX" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4531 test -n "$CXX" && break
4534 if test -z "$CXX"; then
4536 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test -n "$ac_ct_CXX"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_ac_ct_CXX="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565 if test -n "$ac_ct_CXX"; then
4566 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567 echo "${ECHO_T}$ac_ct_CXX" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 test -n "$ac_ct_CXX" && break
4575 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4581 # Provide some information about the compiler.
4582 echo "$as_me:$LINENO:" \
4583 "checking for C++ compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586 (eval $ac_compiler --version </dev/null >&5) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591 (eval $ac_compiler -v </dev/null >&5) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596 (eval $ac_compiler -V </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4601 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4603 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4658 GXX=`test $ac_compiler_gnu = yes && echo yes`
4659 ac_test_CXXFLAGS=${CXXFLAGS+set}
4660 ac_save_CXXFLAGS=$CXXFLAGS
4662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cxx_g+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_prog_cxx_g=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4713 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4714 if test "$ac_test_CXXFLAGS" = set; then
4715 CXXFLAGS=$ac_save_CXXFLAGS
4716 elif test $ac_cv_prog_cxx_g = yes; then
4717 if test "$GXX" = yes; then
4723 if test "$GXX" = yes; then
4729 for ac_declaration in \
4731 'extern "C" void std::exit (int) throw (); using std::exit;' \
4732 'extern "C" void std::exit (int); using std::exit;' \
4733 'extern "C" void exit (int) throw ();' \
4734 'extern "C" void exit (int);' \
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 cat >conftest.$ac_ext <<_ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4801 grep -v '^ *+' conftest.er1 >conftest.err
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 if test -n "$ac_declaration"; then
4828 echo '#ifdef __cplusplus' >>confdefs.h
4829 echo $ac_declaration >>confdefs.h
4830 echo '#endif' >>confdefs.h
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 depcc="$CXX" am_compiler_list=
4841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4843 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named `D' -- because `-MD' means `put the output
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4865 am_cv_CXX_dependencies_compiler_type=none
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 for depmode in $am_compiler_list; do
4870 # Setup a source with many dependencies, because some compilers
4871 # like to wrap large dependency lists on column 80 (with \), and
4872 # we should not choose a depcomp mode which is confused by this.
4874 # We need to recreate these files for each test, as the compiler may
4875 # overwrite some of them when testing with obscure command lines.
4876 # This happens at least with the AIX C compiler.
4878 for i in 1 2 3 4 5 6; do
4879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4881 # Solaris 8's {/usr,}/bin/sh.
4882 touch sub/conftst$i.h
4884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888 # after this tag, mechanisms are not by side-effect, so they'll
4889 # only be used when explicitly requested
4890 if test "x$enable_dependency_tracking" = xyes; then
4898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4899 # mode. It turns out that the SunPro C++ compiler does not properly
4900 # handle `-M -o', and we need to detect this.
4901 if depmode=$depmode \
4902 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4904 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4905 >/dev/null 2>conftest.err &&
4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type=$depmode
4927 am_cv_CXX_dependencies_compiler_type=none
4931 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4938 test "x$enable_dependency_tracking" != xno \
4939 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4940 am__fastdepCXX_TRUE=
4941 am__fastdepCXX_FALSE='#'
4943 am__fastdepCXX_TRUE='#'
4944 am__fastdepCXX_FALSE=
4950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4951 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4952 (test "X$CXX" != "Xg++"))) ; then
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 # Double quotes because CXXCPP needs to be expanded
4965 for CXXCPP in "$CXX -E" "/lib/cpp"
4968 for ac_cxx_preproc_warn_flag in '' yes
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 # include <limits.h>
4985 # include <assert.h>
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_cxx_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5006 if test -z "$ac_cpp_err"; then
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Broken: fails on valid input.
5015 rm -f conftest.err conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether non-existent headers
5018 # can be detected and how.
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <ac_nonexistent.h>
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null; then
5035 if test -s conftest.err; then
5036 ac_cpp_err=$ac_cxx_preproc_warn_flag
5037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5044 if test -z "$ac_cpp_err"; then
5045 # Broken: success on invalid input.
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 # Passes both tests.
5055 rm -f conftest.err conftest.$ac_ext
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5065 ac_cv_prog_CXXCPP=$CXXCPP
5068 CXXCPP=$ac_cv_prog_CXXCPP
5070 ac_cv_prog_CXXCPP=$CXXCPP
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5075 for ac_cxx_preproc_warn_flag in '' yes
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 # include <limits.h>
5092 # include <assert.h>
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_cxx_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5113 if test -z "$ac_cpp_err"; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 # Broken: fails on valid input.
5122 rm -f conftest.err conftest.$ac_ext
5124 # OK, works on sane cases. Now check whether non-existent headers
5125 # can be detected and how.
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <ac_nonexistent.h>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_cxx_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5151 if test -z "$ac_cpp_err"; then
5152 # Broken: success on invalid input.
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Passes both tests.
5162 rm -f conftest.err conftest.$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5170 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174 { (exit 1); exit 1; }; }
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190 if test -n "$ac_tool_prefix"; then
5191 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_F77+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 if test -n "$F77"; then
5201 ac_cv_prog_F77="$F77" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 if test -n "$F77"; then
5221 echo "$as_me:$LINENO: result: $F77" >&5
5222 echo "${ECHO_T}$F77" >&6
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 test -n "$F77" && break
5231 if test -z "$F77"; then
5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 if test -n "$ac_ct_F77"; then
5243 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_F77="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262 if test -n "$ac_ct_F77"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264 echo "${ECHO_T}$ac_ct_F77" >&6
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 test -n "$ac_ct_F77" && break
5277 # Provide some information about the compiler.
5278 echo "$as_me:5278:" \
5279 "checking for Fortran 77 compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282 (eval $ac_compiler --version </dev/null >&5) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287 (eval $ac_compiler -v </dev/null >&5) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292 (eval $ac_compiler -V </dev/null >&5) 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5298 # If we don't use `.F' as extension, the preprocessor is not run on the
5299 # input file. (Note that this only needs to work for GNU compilers.)
5302 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try='test -s conftest.$ac_objext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5347 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5348 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5350 ac_test_FFLAGS=${FFLAGS+set}
5351 ac_save_FFLAGS=$FFLAGS
5353 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5354 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5355 if test "${ac_cv_prog_f77_g+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_prog_f77_g=yes
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397 if test "$ac_test_FFLAGS" = set; then
5398 FFLAGS=$ac_save_FFLAGS
5399 elif test $ac_cv_prog_f77_g = yes; then
5400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5406 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5413 G77=`test $ac_compiler_gnu = yes && echo yes`
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5424 # find the maximum length of command line arguments
5425 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5426 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5427 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 # On DJGPP, this test can blow up pretty badly due to problems in libc
5436 # (any single argument exceeding 2000 bytes causes a buffer overrun
5437 # during glob expansion). Even if it were fixed, the result of this
5438 # check would be larger than it should be.
5439 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5443 # Under GNU Hurd, this test is not required because there is
5444 # no limit to the length of command line arguments.
5445 # Libtool will interpret -1 as no limit whatsoever
5446 lt_cv_sys_max_cmd_len=-1;
5450 # On Win9x/ME, this test blows up -- it succeeds, but takes
5451 # about 5 minutes as the teststring grows exponentially.
5452 # Worse, since 9x/ME are not pre-emptively multitasking,
5453 # you end up with a "frozen" computer, even though with patience
5454 # the test eventually succeeds (with a max line length of 256k).
5455 # Instead, let's just punt: use the minimum linelength reported by
5456 # all of the supported platforms: 8192 (on NT/2K/XP).
5457 lt_cv_sys_max_cmd_len=8192;
5461 # On AmigaOS with pdksh, this test takes hours, literally.
5462 # So we just punt and use a minimum line length of 8192.
5463 lt_cv_sys_max_cmd_len=8192;
5466 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5467 # This has been around since 386BSD, at least. Likely further.
5468 if test -x /sbin/sysctl; then
5469 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5470 elif test -x /usr/sbin/sysctl; then
5471 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5473 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5475 # And add a safety zone
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5481 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5482 lt_cv_sys_max_cmd_len=196608
5486 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5487 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5488 # nice to cause kernel panics so lets avoid the loop below.
5489 # First set a reasonable default.
5490 lt_cv_sys_max_cmd_len=16384
5492 if test -x /sbin/sysconfig; then
5493 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5494 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499 lt_cv_sys_max_cmd_len=102400
5501 sysv5* | sco5v6* | sysv4.2uw2*)
5502 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5503 if test -n "$kargmax"; then
5504 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5506 lt_cv_sys_max_cmd_len=32768
5510 # If test is not a shell built-in, we'll probably end up computing a
5511 # maximum length that is only half of the actual maximum length, but
5513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5514 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5515 = "XX$teststring") >/dev/null 2>&1 &&
5516 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5517 lt_cv_sys_max_cmd_len=$new_result &&
5518 test $i != 17 # 1/2 MB should be enough
5521 teststring=$teststring$teststring
5524 # Add a significant safety factor because C++ compilers can tack on massive
5525 # amounts of additional arguments before passing them to the linker.
5526 # It appears as though 1/2 is a usable value.
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5533 if test -n $lt_cv_sys_max_cmd_len ; then
5534 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5537 echo "$as_me:$LINENO: result: none" >&5
5538 echo "${ECHO_T}none" >&6
5544 # Check for command to grab the raw symbol name followed by C symbol from nm.
5545 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5546 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 # These are sane defaults that work on at least a few old systems.
5552 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5554 # Character class describing NM global symbol codes.
5555 symcode='[BCDEGRST]'
5557 # Regexp to match symbols that can be accessed directly from C.
5558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5560 # Transform an extracted symbol line into a proper C declaration
5561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5563 # Transform an extracted symbol line into symbol name and symbol address
5564 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'"
5566 # Define system-specific variables.
5571 cygwin* | mingw* | pw32*)
5572 symcode='[ABCDGISTW]'
5574 hpux*) # Its linker distinguishes data from code symbols
5575 if test "$host_cpu" = ia64; then
5576 symcode='[ABCDEGRST]'
5578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5579 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'"
5581 linux* | k*bsd*-gnu)
5582 if test "$host_cpu" = ia64; then
5583 symcode='[ABCDGIRSTW]'
5584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5585 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'"
5589 symcode='[BCDEGRST]'
5592 symcode='[BCDEGQRST]'
5603 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5611 # Handle CRLF in mingw tool chain
5615 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5619 # If we're using GNU nm, then use its standard symbol codes.
5620 case `$NM -V 2>&1` in
5621 *GNU* | *'with BFD'*)
5622 symcode='[ABCDGIRSTW]' ;;
5625 # Try without a prefix undercore, then with it.
5626 for ac_symprfx in "" "_"; do
5628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629 symxfrm="\\1 $ac_symprfx\\2 \\2"
5631 # Write the raw and C identifiers.
5632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5634 # Check to see that the pipe works correctly.
5638 cat > conftest.$ac_ext <<EOF
5643 void nm_test_func(){}
5647 int main(){nm_test_var='a';nm_test_func();return(0);}
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; then
5655 # Now try to grab the symbols.
5657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && test -s "$nlist"; then
5662 # Try sorting and uniquifying the output.
5663 if sort "$nlist" | uniq > "$nlist"T; then
5664 mv -f "$nlist"T "$nlist"
5669 # Make sure that we snagged all the symbols we need.
5670 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5671 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5672 cat <<EOF > conftest.$ac_ext
5678 # Now generate the symbol file.
5679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5681 cat <<EOF >> conftest.$ac_ext
5682 #if defined (__STDC__) && __STDC__
5683 # define lt_ptr_t void *
5685 # define lt_ptr_t char *
5689 /* The mapping between symbol names and symbols. */
5694 lt_preloaded_symbols[] =
5697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5698 cat <<\EOF >> conftest.$ac_ext
5706 # Now try linking the two files.
5707 mv conftest.$ac_objext conftstm.$ac_objext
5708 lt_save_LIBS="$LIBS"
5709 lt_save_CFLAGS="$CFLAGS"
5710 LIBS="conftstm.$ac_objext"
5711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5719 LIBS="$lt_save_LIBS"
5720 CFLAGS="$lt_save_CFLAGS"
5722 echo "cannot find nm_test_func in $nlist" >&5
5725 echo "cannot find nm_test_var in $nlist" >&5
5728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5731 echo "$progname: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 rm -f conftest* conftst*
5736 # Do not use the global_symbol_pipe unless it works.
5737 if test "$pipe_works" = yes; then
5740 lt_cv_sys_global_symbol_pipe=
5746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5747 lt_cv_sys_global_symbol_to_cdecl=
5749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5750 echo "$as_me:$LINENO: result: failed" >&5
5751 echo "${ECHO_T}failed" >&6
5753 echo "$as_me:$LINENO: result: ok" >&5
5754 echo "${ECHO_T}ok" >&6
5757 echo "$as_me:$LINENO: checking for objdir" >&5
5758 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5759 if test "${lt_cv_objdir+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 rm -f .libs 2>/dev/null
5763 mkdir .libs 2>/dev/null
5764 if test -d .libs; then
5767 # MS-DOS does not allow filenames that begin with a dot.
5770 rmdir .libs 2>/dev/null
5772 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5773 echo "${ECHO_T}$lt_cv_objdir" >&6
5774 objdir=$lt_cv_objdir
5782 # AIX sometimes has problems with the GCC collect2 program. For some
5783 # reason, if we set the COLLECT_NAMES environment variable, the problems
5784 # vanish in a puff of smoke.
5785 if test "X${COLLECT_NAMES+set}" != Xset; then
5787 export COLLECT_NAMES
5792 # Sed substitution that helps us do robust quoting. It backslashifies
5793 # metacharacters that are still active within double-quoted strings.
5794 Xsed='sed -e 1s/^X//'
5795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5797 # Same as above, but do not quote variable references.
5798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5800 # Sed substitution to delay expansion of an escaped shell variable in a
5801 # double_quote_subst'ed string.
5802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5804 # Sed substitution to avoid accidental globbing in evaled expressions
5805 no_glob_subst='s/\*/\\\*/g'
5811 default_ofile=libtool
5812 can_build_shared=yes
5814 # All known linkers require a `.a' archive for static linking (except MSVC,
5815 # which needs '.lib').
5817 ltmain="$ac_aux_dir/ltmain.sh"
5818 ofile="$default_ofile"
5819 with_gnu_ld="$lt_cv_prog_gnu_ld"
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_AR+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$AR"; then
5830 ac_cv_prog_AR="$AR" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_AR="${ac_tool_prefix}ar"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 if test -n "$AR"; then
5850 echo "$as_me:$LINENO: result: $AR" >&5
5851 echo "${ECHO_T}$AR" >&6
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5858 if test -z "$ac_cv_prog_AR"; then
5860 # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$ac_ct_AR"; then
5868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_AR="ar"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5890 echo "${ECHO_T}$ac_ct_AR" >&6
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939 ac_ct_RANLIB=$RANLIB
5940 # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_RANLIB"; then
5948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_RANLIB="ranlib"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5976 RANLIB=$ac_ct_RANLIB
5978 RANLIB="$ac_cv_prog_RANLIB"
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_STRIP+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 if test -n "$STRIP"; then
5990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 STRIP=$ac_cv_prog_STRIP
6009 if test -n "$STRIP"; then
6010 echo "$as_me:$LINENO: result: $STRIP" >&5
6011 echo "${ECHO_T}$STRIP" >&6
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6018 if test -z "$ac_cv_prog_STRIP"; then
6020 # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$ac_ct_STRIP"; then
6028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_STRIP="strip"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6050 echo "${ECHO_T}$ac_ct_STRIP" >&6
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6058 STRIP="$ac_cv_prog_STRIP"
6063 old_CFLAGS="$CFLAGS"
6065 # Set sane defaults for various variables
6066 test -z "$AR" && AR=ar
6067 test -z "$AR_FLAGS" && AR_FLAGS=cru
6068 test -z "$AS" && AS=as
6069 test -z "$CC" && CC=cc
6070 test -z "$LTCC" && LTCC=$CC
6071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6072 test -z "$DLLTOOL" && DLLTOOL=dlltool
6073 test -z "$LD" && LD=ld
6074 test -z "$LN_S" && LN_S="ln -s"
6075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6076 test -z "$NM" && NM=nm
6077 test -z "$SED" && SED=sed
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6079 test -z "$RANLIB" && RANLIB=:
6080 test -z "$STRIP" && STRIP=:
6081 test -z "$ac_objext" && ac_objext=o
6083 # Determine commands to create old-style static archives.
6084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6085 old_postinstall_cmds='chmod 644 $oldlib'
6086 old_postuninstall_cmds=
6088 if test -n "$RANLIB"; then
6091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6100 for cc_temp in $compiler""; do
6102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6111 # Only perform the check for file, if the check method requires it
6112 case $deplibs_check_method in
6114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6115 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6116 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6125 lt_save_MAGIC_CMD="$MAGIC_CMD"
6126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6128 for ac_dir in $ac_dummy; do
6130 test -z "$ac_dir" && ac_dir=.
6131 if test -f $ac_dir/${ac_tool_prefix}file; then
6132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6133 if test -n "$file_magic_test_file"; then
6134 case $deplibs_check_method in
6136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6139 $EGREP "$file_magic_regex" > /dev/null; then
6144 *** Warning: the command libtool uses to detect shared libraries,
6145 *** $file_magic_cmd, produces output that libtool cannot recognize.
6146 *** The result is that libtool may fail to recognize shared libraries
6147 *** as such. This will affect the creation of libtool libraries that
6148 *** depend on shared libraries, but programs linked with such libtool
6149 *** libraries will work regardless of this problem. Nevertheless, you
6150 *** may want to report the problem to your system manager and/or to
6151 *** bug-libtool@gnu.org
6161 MAGIC_CMD="$lt_save_MAGIC_CMD"
6166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6167 if test -n "$MAGIC_CMD"; then
6168 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6169 echo "${ECHO_T}$MAGIC_CMD" >&6
6171 echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6175 if test -z "$lt_cv_path_MAGIC_CMD"; then
6176 if test -n "$ac_tool_prefix"; then
6177 echo "$as_me:$LINENO: checking for file" >&5
6178 echo $ECHO_N "checking for file... $ECHO_C" >&6
6179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6187 lt_save_MAGIC_CMD="$MAGIC_CMD"
6188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6190 for ac_dir in $ac_dummy; do
6192 test -z "$ac_dir" && ac_dir=.
6193 if test -f $ac_dir/file; then
6194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6195 if test -n "$file_magic_test_file"; then
6196 case $deplibs_check_method in
6198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6201 $EGREP "$file_magic_regex" > /dev/null; then
6206 *** Warning: the command libtool uses to detect shared libraries,
6207 *** $file_magic_cmd, produces output that libtool cannot recognize.
6208 *** The result is that libtool may fail to recognize shared libraries
6209 *** as such. This will affect the creation of libtool libraries that
6210 *** depend on shared libraries, but programs linked with such libtool
6211 *** libraries will work regardless of this problem. Nevertheless, you
6212 *** may want to report the problem to your system manager and/or to
6213 *** bug-libtool@gnu.org
6223 MAGIC_CMD="$lt_save_MAGIC_CMD"
6228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229 if test -n "$MAGIC_CMD"; then
6230 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6231 echo "${ECHO_T}$MAGIC_CMD" >&6
6233 echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then
6251 enableval="$enable_libtool_lock"
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6257 # Check whether --with-pic or --without-pic was given.
6258 if test "${with_pic+set}" = set; then
6264 test -z "$pic_mode" && pic_mode=default
6266 # Use C for the default configuration in the libtool script
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276 # Source file extension for C test sources.
6279 # Object file extension for compiled C test sources.
6283 # Code to be used in simple compile tests
6284 lt_simple_compile_test_code="int some_variable = 0;\n"
6286 # Code to be used in simple link tests
6287 lt_simple_link_test_code='int main(){return(0);}\n'
6290 # If no C compiler was specified, use CC.
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6296 # Allow CC to be a program name with arguments.
6300 # save warnings/boilerplate of simple test code
6301 ac_outfile=conftest.$ac_objext
6302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6304 _lt_compiler_boilerplate=`cat conftest.err`
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6310 _lt_linker_boilerplate=`cat conftest.err`
6315 lt_prog_compiler_no_builtin_flag=
6317 if test "$GCC" = yes; then
6318 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6321 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6322 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6323 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 lt_cv_prog_compiler_rtti_exceptions=no
6327 ac_outfile=conftest.$ac_objext
6328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6329 lt_compiler_flag="-fno-rtti -fno-exceptions"
6330 # Insert the option either (1) after the last *FLAGS variable, or
6331 # (2) before a word containing "conftest.", or (3) at the end.
6332 # Note that $ac_compile itself does not contain backslashes and begins
6333 # with a dollar sign (not a hyphen), so the echo should work correctly.
6334 # The option is referenced via a variable to avoid confusing sed.
6335 lt_compile=`echo "$ac_compile" | $SED \
6336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6338 -e 's:$: $lt_compiler_flag:'`
6339 (eval echo "\"\$as_me:6339: $lt_compile\"" >&5)
6340 (eval "$lt_compile" 2>conftest.err)
6342 cat conftest.err >&5
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 if (exit $ac_status) && test -s "$ac_outfile"; then
6345 # The compiler can only warn and ignore the option if not recognized
6346 # So say no if there are warnings other than the usual output.
6347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6350 lt_cv_prog_compiler_rtti_exceptions=yes
6356 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6360 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6367 lt_prog_compiler_wl=
6368 lt_prog_compiler_pic=
6369 lt_prog_compiler_static=
6371 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6374 if test "$GCC" = yes; then
6375 lt_prog_compiler_wl='-Wl,'
6376 lt_prog_compiler_static='-static'
6380 # All AIX code is PIC.
6381 if test "$host_cpu" = ia64; then
6382 # AIX 5 now supports IA64 processor
6383 lt_prog_compiler_static='-Bstatic'
6388 # FIXME: we need at least 68020 code to build shared libraries, but
6389 # adding the `-m68020' flag to GCC prevents building anything better,
6391 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6395 # PIC is the default for these OSes.
6398 mingw* | pw32* | os2*)
6399 # This hack is so that the source file can tell whether it is being
6400 # built for inclusion in a dll (and should export symbols for example).
6401 lt_prog_compiler_pic='-DDLL_EXPORT'
6404 darwin* | rhapsody*)
6405 # PIC is the default on this platform
6406 # Common symbols not allowed in MH_DYLIB files
6407 lt_prog_compiler_pic='-fno-common'
6411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6412 # Instead, we relocate shared libraries at runtime.
6416 # Just because we use GCC doesn't mean we suddenly get shared libraries
6417 # on systems that don't support them.
6418 lt_prog_compiler_can_build_shared=no
6423 if test -d /usr/nec; then
6424 lt_prog_compiler_pic=-Kconform_pic
6429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6436 lt_prog_compiler_pic='-fPIC'
6442 lt_prog_compiler_pic='-fPIC'
6446 # PORTME Check for flag to pass linker flags through the system compiler.
6449 lt_prog_compiler_wl='-Wl,'
6450 if test "$host_cpu" = ia64; then
6451 # AIX 5 now supports IA64 processor
6452 lt_prog_compiler_static='-Bstatic'
6454 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6458 # PIC is the default on this platform
6459 # Common symbols not allowed in MH_DYLIB files
6460 case $cc_basename in
6462 lt_prog_compiler_pic='-qnocommon'
6463 lt_prog_compiler_wl='-Wl,'
6468 mingw* | pw32* | os2*)
6469 # This hack is so that the source file can tell whether it is being
6470 # built for inclusion in a dll (and should export symbols for example).
6471 lt_prog_compiler_pic='-DDLL_EXPORT'
6474 hpux9* | hpux10* | hpux11*)
6475 lt_prog_compiler_wl='-Wl,'
6476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6483 lt_prog_compiler_pic='+Z'
6486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6487 lt_prog_compiler_static='${wl}-a ${wl}archive'
6490 irix5* | irix6* | nonstopux*)
6491 lt_prog_compiler_wl='-Wl,'
6492 # PIC (with -KPIC) is the default.
6493 lt_prog_compiler_static='-non_shared'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6501 linux* | k*bsd*-gnu)
6502 case $cc_basename in
6504 lt_prog_compiler_wl='-Wl,'
6505 lt_prog_compiler_pic='-KPIC'
6506 lt_prog_compiler_static='-static'
6508 pgcc* | pgf77* | pgf90* | pgf95*)
6509 # Portland Group compilers (*not* the Pentium gcc compiler,
6510 # which looks to be a dead project)
6511 lt_prog_compiler_wl='-Wl,'
6512 lt_prog_compiler_pic='-fpic'
6513 lt_prog_compiler_static='-Bstatic'
6516 lt_prog_compiler_wl='-Wl,'
6517 # All Alpha code is PIC.
6518 lt_prog_compiler_static='-non_shared'
6523 osf3* | osf4* | osf5*)
6524 lt_prog_compiler_wl='-Wl,'
6525 # All OSF/1 code is PIC.
6526 lt_prog_compiler_static='-non_shared'
6530 lt_prog_compiler_pic='-KPIC'
6531 lt_prog_compiler_static='-Bstatic'
6532 case $cc_basename in
6534 lt_prog_compiler_wl='-Qoption ld ';;
6536 lt_prog_compiler_wl='-Wl,';;
6541 lt_prog_compiler_wl='-Qoption ld '
6542 lt_prog_compiler_pic='-PIC'
6543 lt_prog_compiler_static='-Bstatic'
6546 sysv4 | sysv4.2uw2* | sysv4.3*)
6547 lt_prog_compiler_wl='-Wl,'
6548 lt_prog_compiler_pic='-KPIC'
6549 lt_prog_compiler_static='-Bstatic'
6553 if test -d /usr/nec ;then
6554 lt_prog_compiler_pic='-Kconform_pic'
6555 lt_prog_compiler_static='-Bstatic'
6559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-Bstatic'
6566 lt_prog_compiler_wl='-Wl,'
6567 lt_prog_compiler_can_build_shared=no
6571 lt_prog_compiler_pic='-pic'
6572 lt_prog_compiler_static='-Bstatic'
6576 lt_prog_compiler_can_build_shared=no
6581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6582 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6585 # Check to make sure the PIC flag actually works.
6587 if test -n "$lt_prog_compiler_pic"; then
6589 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6591 if test "${lt_prog_compiler_pic_works+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 lt_prog_compiler_pic_works=no
6595 ac_outfile=conftest.$ac_objext
6596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6597 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6598 # Insert the option either (1) after the last *FLAGS variable, or
6599 # (2) before a word containing "conftest.", or (3) at the end.
6600 # Note that $ac_compile itself does not contain backslashes and begins
6601 # with a dollar sign (not a hyphen), so the echo should work correctly.
6602 # The option is referenced via a variable to avoid confusing sed.
6603 lt_compile=`echo "$ac_compile" | $SED \
6604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6606 -e 's:$: $lt_compiler_flag:'`
6607 (eval echo "\"\$as_me:6607: $lt_compile\"" >&5)
6608 (eval "$lt_compile" 2>conftest.err)
6610 cat conftest.err >&5
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 if (exit $ac_status) && test -s "$ac_outfile"; then
6613 # The compiler can only warn and ignore the option if not recognized
6614 # So say no if there are warnings other than the usual output.
6615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6618 lt_prog_compiler_pic_works=yes
6624 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6625 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6627 if test x"$lt_prog_compiler_pic_works" = xyes; then
6628 case $lt_prog_compiler_pic in
6630 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6633 lt_prog_compiler_pic=
6634 lt_prog_compiler_can_build_shared=no
6639 # For platforms which do not support PIC, -DPIC is meaningless:
6641 lt_prog_compiler_pic=
6644 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6649 # Check to make sure the static flag actually works.
6651 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6652 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6654 if test "${lt_prog_compiler_static_works+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 lt_prog_compiler_static_works=no
6658 save_LDFLAGS="$LDFLAGS"
6659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6662 # The linker can only warn and ignore the option if not recognized
6663 # So say no if there are warnings
6664 if test -s conftest.err; then
6665 # Append any errors to the config.log.
6666 cat conftest.err 1>&5
6667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6669 if diff conftest.exp conftest.er2 >/dev/null; then
6670 lt_prog_compiler_static_works=yes
6673 lt_prog_compiler_static_works=yes
6677 LDFLAGS="$save_LDFLAGS"
6680 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6681 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6683 if test x"$lt_prog_compiler_static_works" = xyes; then
6686 lt_prog_compiler_static=
6690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6692 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 lt_cv_prog_compiler_c_o=no
6696 $rm -r conftest 2>/dev/null
6700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6702 lt_compiler_flag="-o out/conftest2.$ac_objext"
6703 # Insert the option either (1) after the last *FLAGS variable, or
6704 # (2) before a word containing "conftest.", or (3) at the end.
6705 # Note that $ac_compile itself does not contain backslashes and begins
6706 # with a dollar sign (not a hyphen), so the echo should work correctly.
6707 lt_compile=`echo "$ac_compile" | $SED \
6708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710 -e 's:$: $lt_compiler_flag:'`
6711 (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712 (eval "$lt_compile" 2>out/conftest.err)
6714 cat out/conftest.err >&5
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6718 # The compiler can only warn and ignore the option if not recognized
6719 # So say no if there are warnings
6720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6723 lt_cv_prog_compiler_c_o=yes
6728 # SGI C++ compiler will create directory out/ii_files/ for
6729 # template instantiation
6730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6731 $rm out/* && rmdir out
6737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6741 hard_links="nottested"
6742 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6743 # do not overwrite the value of need_locks provided by the user
6744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6750 ln conftest.a conftest.b 2>&5 || hard_links=no
6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752 echo "$as_me:$LINENO: result: $hard_links" >&5
6753 echo "${ECHO_T}$hard_links" >&6
6754 if test "$hard_links" = no; then
6755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6767 allow_undefined_flag=
6768 enable_shared_with_static_runtimes=no
6770 archive_expsym_cmds=
6771 old_archive_From_new_cmds=
6772 old_archive_from_expsyms_cmds=
6773 export_dynamic_flag_spec=
6774 whole_archive_flag_spec=
6775 thread_safe_flag_spec=
6776 hardcode_libdir_flag_spec=
6777 hardcode_libdir_flag_spec_ld=
6778 hardcode_libdir_separator=
6781 hardcode_shlibpath_var=unsupported
6782 link_all_deplibs=unknown
6783 hardcode_automatic=no
6786 always_export_symbols=no
6787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6788 # include_expsyms should be a list of space-separated symbols to be *always*
6789 # included in the symbol list
6791 # exclude_expsyms can be an extended regexp of symbols to exclude
6792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6794 # as well as any symbol that contains `d'.
6795 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6797 # platforms (ab)use it in PIC code, but their linkers get confused if
6798 # the symbol is explicitly referenced. Since portable code cannot
6799 # rely on this symbol name, it's probably fine to never include it in
6800 # preloaded symbol tables.
6801 extract_expsyms_cmds=
6802 # Just being paranoid about ensuring that cc_basename is set.
6803 for cc_temp in $compiler""; do
6805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6814 cygwin* | mingw* | pw32*)
6815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6816 # When not using gcc, we currently assume that we are using
6817 # Microsoft Visual C++.
6818 if test "$GCC" != yes; then
6823 # we just hope/assume this is gcc and not c89 (= MSVC++)
6832 if test "$with_gnu_ld" = yes; then
6833 # If archive_cmds runs LD, not CC, wlarc should be empty
6836 # Set some defaults for GNU ld with shared library support. These
6837 # are reset later if shared libraries are not supported. Putting them
6838 # here allows them to be overridden if necessary.
6839 runpath_var=LD_RUN_PATH
6840 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6841 export_dynamic_flag_spec='${wl}--export-dynamic'
6842 # ancient GNU ld didn't support --whole-archive et. al.
6843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6844 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6846 whole_archive_flag_spec=
6848 supports_anon_versioning=no
6849 case `$LD -v 2>/dev/null` in
6850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6853 *\ 2.11.*) ;; # other 2.11 versions
6854 *) supports_anon_versioning=yes ;;
6857 # See if GNU ld supports shared libraries.
6859 aix3* | aix4* | aix5*)
6860 # On AIX/PPC, the GNU linker is very broken
6861 if test "$host_cpu" != ia64; then
6865 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6866 *** to be unable to reliably create shared libraries on AIX.
6867 *** Therefore, libtool is disabling shared libraries support. If you
6868 *** really care for shared libraries, you may want to modify your PATH
6869 *** so that a non-GNU linker is found, and then restart.
6876 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)'
6877 hardcode_libdir_flag_spec='-L$libdir'
6878 hardcode_minus_L=yes
6880 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6881 # that the semantics of dynamic libraries on AmigaOS, at least up
6882 # to version 4, is to share data among multiple programs linked
6883 # with the same dynamic library. Since this doesn't match the
6884 # behavior of shared libraries on other platforms, we can't use
6890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6891 allow_undefined_flag=unsupported
6892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6893 # support --undefined. This deserves some investigation. FIXME
6894 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900 cygwin* | mingw* | pw32*)
6901 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6902 # as there is no search path for DLLs.
6903 hardcode_libdir_flag_spec='-L$libdir'
6904 allow_undefined_flag=unsupported
6905 always_export_symbols=no
6906 enable_shared_with_static_runtimes=yes
6907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6909 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6911 # If the export-symbols file already is a .def file (1st line
6912 # is EXPORTS), use it as is; otherwise, prepend...
6913 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6914 cp $export_symbols $output_objdir/$soname.def;
6916 echo EXPORTS > $output_objdir/$soname.def;
6917 cat $export_symbols >> $output_objdir/$soname.def;
6919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6927 hardcode_shlibpath_var=no
6928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6929 export_dynamic_flag_spec='${wl}-E'
6930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6931 # Instead, shared libraries are loaded at an image base (0x10000000 by
6932 # default) and relocated if they conflict, which is a slow very memory
6933 # consuming and fragmenting process. To avoid this, we pick a random,
6934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6937 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'
6940 linux* | k*bsd*-gnu)
6941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6943 case $cc_basename,$host_cpu in
6944 pgcc*) # Portland Group C compiler
6945 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'
6946 tmp_addflag=' $pic_flag'
6948 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6949 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'
6950 tmp_addflag=' $pic_flag -Mnomain' ;;
6951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6952 tmp_addflag=' -i_dynamic' ;;
6953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6954 tmp_addflag=' -i_dynamic -nofor_main' ;;
6955 ifc* | ifort*) # Intel Fortran compiler
6956 tmp_addflag=' -nofor_main' ;;
6958 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6960 if test $supports_anon_versioning = yes; then
6961 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6963 $echo "local: *; };" >> $output_objdir/$libname.ver~
6964 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6972 netbsd* | netbsdelf*-gnu)
6973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6974 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6988 *** create shared libraries on Solaris systems. Therefore, libtool
6989 *** is disabling shared libraries support. We urge you to upgrade GNU
6990 *** binutils to release 2.9.1 or newer. Another option is to modify
6991 *** your PATH or compiler configuration so that the native linker is
6992 *** used, and then restart.
6995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7004 case `$LD -v 2>&1` in
7005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7010 *** reliably create shared libraries on SCO systems. Therefore, libtool
7011 *** is disabling shared libraries support. We urge you to upgrade GNU
7012 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7013 *** your PATH or compiler configuration so that the native linker is
7014 *** used, and then restart.
7019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7031 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7034 hardcode_shlibpath_var=no
7038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7047 if test "$ld_shlibs" = no; then
7049 hardcode_libdir_flag_spec=
7050 export_dynamic_flag_spec=
7051 whole_archive_flag_spec=
7054 # PORTME fill in a description of your system's linker (not GNU ld)
7057 allow_undefined_flag=unsupported
7058 always_export_symbols=yes
7059 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'
7060 # Note: this linker hardcodes the directories in LIBPATH if there
7061 # are no directories specified by -L.
7062 hardcode_minus_L=yes
7063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7064 # Neither direct hardcoding nor static linking is supported with a
7066 hardcode_direct=unsupported
7071 if test "$host_cpu" = ia64; then
7072 # On IA64, the linker does run time linking by default, so we don't
7073 # have to do anything special.
7074 aix_use_runtimelinking=no
7075 exp_sym_flag='-Bexport'
7078 # If we're using GNU nm, then we don't want the "-C" option.
7079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7081 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'
7083 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'
7085 aix_use_runtimelinking=no
7087 # Test if we are trying to use run time linking or normal
7088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7089 # need to do runtime linking.
7090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7091 for ld_flag in $LDFLAGS; do
7092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7093 aix_use_runtimelinking=yes
7100 exp_sym_flag='-bexport'
7101 no_entry_flag='-bnoentry'
7104 # When large executables or shared objects are built, AIX ld can
7105 # have problems creating the table of contents. If linking a library
7106 # or program results in "error TOC overflow" add -mminimal-toc to
7107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7112 hardcode_libdir_separator=':'
7113 link_all_deplibs=yes
7115 if test "$GCC" = yes; then
7116 case $host_os in aix4.[012]|aix4.[012].*)
7117 # We only want to do this on AIX 4.2 and lower, the check
7118 # below for broken collect2 doesn't work under 4.3+
7119 collect2name=`${CC} -print-prog-name=collect2`
7120 if test -f "$collect2name" && \
7121 strings "$collect2name" | grep resolve_lib_name >/dev/null
7123 # We have reworked collect2
7126 # We have old collect2
7127 hardcode_direct=unsupported
7128 # It fails to find uninstalled libraries when the uninstalled
7129 # path is not listed in the libpath. Setting hardcode_minus_L
7130 # to unsupported forces relinking
7131 hardcode_minus_L=yes
7132 hardcode_libdir_flag_spec='-L$libdir'
7133 hardcode_libdir_separator=
7137 shared_flag='-shared'
7138 if test "$aix_use_runtimelinking" = yes; then
7139 shared_flag="$shared_flag "'${wl}-G'
7143 if test "$host_cpu" = ia64; then
7144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7145 # chokes on -Wl,-G. The following line is correct:
7148 if test "$aix_use_runtimelinking" = yes; then
7149 shared_flag='${wl}-G'
7151 shared_flag='${wl}-bM:SRE'
7156 # It seems that -bexpall does not export symbols beginning with
7157 # underscore (_), so it is better to generate a list of symbols to export.
7158 always_export_symbols=yes
7159 if test "$aix_use_runtimelinking" = yes; then
7160 # Warning - without using the other runtime loading flags (-brtl),
7161 # -berok will link without error, but may produce a broken library.
7162 allow_undefined_flag='-berok'
7163 # Determine the default libpath from the value encoded in an empty executable.
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7203 # Check for a 64-bit object if we didn't find anything.
7204 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; }
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7211 rm -f conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7216 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"
7218 if test "$host_cpu" = ia64; then
7219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7220 allow_undefined_flag="-z nodefs"
7221 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"
7223 # Determine the default libpath from the value encoded in an empty executable.
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>conftest.er1
7243 grep -v '^ *+' conftest.er1 >conftest.err
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest$ac_exeext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7263 # Check for a 64-bit object if we didn't find anything.
7264 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; }
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7276 # Warning - without using the other run time loading flags,
7277 # -berok will link without error, but may produce a broken library.
7278 no_undefined_flag=' ${wl}-bernotok'
7279 allow_undefined_flag=' ${wl}-berok'
7280 # Exported symbols can be pulled into shared objects from archives
7281 whole_archive_flag_spec='$convenience'
7282 archive_cmds_need_lc=yes
7283 # This is similar to how AIX traditionally builds its shared libraries.
7284 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'
7290 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)'
7291 hardcode_libdir_flag_spec='-L$libdir'
7292 hardcode_minus_L=yes
7293 # see comment about different semantics on the GNU ld section
7298 export_dynamic_flag_spec=-rdynamic
7301 cygwin* | mingw* | pw32*)
7302 # When not using gcc, we currently assume that we are using
7303 # Microsoft Visual C++.
7304 # hardcode_libdir_flag_spec is actually meaningless, as there is
7305 # no search path for DLLs.
7306 hardcode_libdir_flag_spec=' '
7307 allow_undefined_flag=unsupported
7308 # Tell ltmain to make .lib files, not .a files.
7310 # Tell ltmain to make .dll files, not .so files.
7312 # FIXME: Setting linknames here is a bad hack.
7313 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7314 # The linker will automatically build a .lib file if we build a DLL.
7315 old_archive_From_new_cmds='true'
7316 # FIXME: Should let the user specify the lib program.
7317 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7318 fix_srcfile_path='`cygpath -w "$srcfile"`'
7319 enable_shared_with_static_runtimes=yes
7322 darwin* | rhapsody*)
7324 rhapsody* | darwin1.[012])
7325 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7328 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7329 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7331 case ${MACOSX_DEPLOYMENT_TARGET} in
7333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7336 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7342 archive_cmds_need_lc=no
7344 hardcode_automatic=yes
7345 hardcode_shlibpath_var=unsupported
7346 whole_archive_flag_spec=''
7347 link_all_deplibs=yes
7348 if test "$GCC" = yes ; then
7349 output_verbose_link_cmd='echo'
7350 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7351 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7352 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7353 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}'
7354 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}'
7356 case $cc_basename in
7358 output_verbose_link_cmd='echo'
7359 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7360 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7362 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}'
7363 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}'
7373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 hardcode_shlibpath_var=no
7382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7383 # support. Future versions do this automatically, but an explicit c++rt0.o
7384 # does not break anything, and helps significantly (at the cost of a little
7387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7388 hardcode_libdir_flag_spec='-R$libdir'
7390 hardcode_shlibpath_var=no
7393 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7397 hardcode_minus_L=yes
7398 hardcode_shlibpath_var=no
7401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7402 freebsd* | dragonfly*)
7403 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7404 hardcode_libdir_flag_spec='-R$libdir'
7406 hardcode_shlibpath_var=no
7410 if test "$GCC" = yes; then
7411 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'
7413 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'
7415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7416 hardcode_libdir_separator=:
7419 # hardcode_minus_L: Not really in the search PATH,
7420 # but as the default location of the library.
7421 hardcode_minus_L=yes
7422 export_dynamic_flag_spec='${wl}-E'
7426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7431 if test "$with_gnu_ld" = no; then
7432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433 hardcode_libdir_separator=:
7436 export_dynamic_flag_spec='${wl}-E'
7438 # hardcode_minus_L: Not really in the search PATH,
7439 # but as the default location of the library.
7440 hardcode_minus_L=yes
7445 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7448 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7451 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7460 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7470 if test "$with_gnu_ld" = no; then
7471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7472 hardcode_libdir_separator=:
7476 hardcode_libdir_flag_spec_ld='+b $libdir'
7478 hardcode_shlibpath_var=no
7482 export_dynamic_flag_spec='${wl}-E'
7484 # hardcode_minus_L: Not really in the search PATH,
7485 # but as the default location of the library.
7486 hardcode_minus_L=yes
7492 irix5* | irix6* | nonstopux*)
7493 if test "$GCC" = yes; then
7494 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'
7496 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'
7497 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7500 hardcode_libdir_separator=:
7501 link_all_deplibs=yes
7504 netbsd* | netbsdelf*-gnu)
7505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7508 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7510 hardcode_libdir_flag_spec='-R$libdir'
7512 hardcode_shlibpath_var=no
7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7519 hardcode_libdir_separator=:
7520 hardcode_shlibpath_var=no
7525 hardcode_shlibpath_var=no
7526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7528 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7530 export_dynamic_flag_spec='${wl}-E'
7533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7535 hardcode_libdir_flag_spec='-R$libdir'
7538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7546 hardcode_libdir_flag_spec='-L$libdir'
7547 hardcode_minus_L=yes
7548 allow_undefined_flag=unsupported
7549 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'
7550 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7554 if test "$GCC" = yes; then
7555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7556 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'
7558 allow_undefined_flag=' -expect_unresolved \*'
7559 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'
7561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7562 hardcode_libdir_separator=:
7565 osf4* | osf5*) # as osf3* with the addition of -msym flag
7566 if test "$GCC" = yes; then
7567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7568 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'
7569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7571 allow_undefined_flag=' -expect_unresolved \*'
7572 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'
7573 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7574 $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'
7576 # Both c and cxx compiler support -rpath directly
7577 hardcode_libdir_flag_spec='-rpath $libdir'
7579 hardcode_libdir_separator=:
7583 no_undefined_flag=' -z text'
7584 if test "$GCC" = yes; then
7586 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7595 hardcode_libdir_flag_spec='-R$libdir'
7596 hardcode_shlibpath_var=no
7598 solaris2.[0-5] | solaris2.[0-5].*) ;;
7600 # The compiler driver will combine linker options so we
7601 # cannot just pass the convience library names through
7602 # without $wl, iff we do not link with $LD.
7603 # Luckily, gcc supports the same syntax we need for Sun Studio.
7604 # Supported since Solaris 2.6 (maybe 2.5.1?)
7607 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7609 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' ;;
7612 link_all_deplibs=yes
7616 if test "x$host_vendor" = xsequent; then
7617 # Use $CC to link under sequent, because it throws in some extra .o
7618 # files that make .init and .fini sections work.
7619 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7623 hardcode_libdir_flag_spec='-L$libdir'
7625 hardcode_minus_L=yes
7626 hardcode_shlibpath_var=no
7630 case $host_vendor in
7632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633 hardcode_direct=yes # is this really true???
7636 ## LD is ld it makes a PLAMLIB
7637 ## CC just makes a GrossModule.
7638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7639 reload_cmds='$CC -r -o $output$reload_objs'
7643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7647 runpath_var='LD_RUN_PATH'
7648 hardcode_shlibpath_var=no
7652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7653 hardcode_shlibpath_var=no
7654 export_dynamic_flag_spec='-Bexport'
7658 if test -d /usr/nec; then
7659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 hardcode_shlibpath_var=no
7661 runpath_var=LD_RUN_PATH
7662 hardcode_runpath_var=yes
7667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7668 no_undefined_flag='${wl}-z,text'
7669 archive_cmds_need_lc=no
7670 hardcode_shlibpath_var=no
7671 runpath_var='LD_RUN_PATH'
7673 if test "$GCC" = yes; then
7674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682 sysv5* | sco3.2v5* | sco5v6*)
7683 # Note: We can NOT use -z defs as we might desire, because we do not
7684 # link with -lc, and that would cause any symbols used from libc to
7685 # always be unresolved, which means just about no library would
7686 # ever link correctly. If we're not using GNU ld we use -z text
7687 # though, which does catch some bad symbols but isn't as heavy-handed
7689 no_undefined_flag='${wl}-z,text'
7690 allow_undefined_flag='${wl}-z,nodefs'
7691 archive_cmds_need_lc=no
7692 hardcode_shlibpath_var=no
7693 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7694 hardcode_libdir_separator=':'
7695 link_all_deplibs=yes
7696 export_dynamic_flag_spec='${wl}-Bexport'
7697 runpath_var='LD_RUN_PATH'
7699 if test "$GCC" = yes; then
7700 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710 hardcode_libdir_flag_spec='-L$libdir'
7711 hardcode_shlibpath_var=no
7720 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7721 echo "${ECHO_T}$ld_shlibs" >&6
7722 test "$ld_shlibs" = no && can_build_shared=no
7725 # Do we need to explicitly link libc?
7727 case "x$archive_cmds_need_lc" in
7729 # Assume -lc should be added
7730 archive_cmds_need_lc=yes
7732 if test "$enable_shared" = yes && test "$GCC" = yes; then
7733 case $archive_cmds in
7735 # FIXME: we may have to deal with multi-command sequences.
7738 # Test whether the compiler implicitly links with -lc since on some
7739 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7740 # to ld, don't add -lc before -lgcc.
7741 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7742 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747 (eval $ac_compile) 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } 2>conftest.err; then
7753 libobjs=conftest.$ac_objext
7755 wl=$lt_prog_compiler_wl
7756 pic_flag=$lt_prog_compiler_pic
7762 lt_save_allow_undefined_flag=$allow_undefined_flag
7763 allow_undefined_flag=
7764 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7765 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }
7770 archive_cmds_need_lc=no
7772 archive_cmds_need_lc=yes
7774 allow_undefined_flag=$lt_save_allow_undefined_flag
7776 cat conftest.err 1>&5
7779 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7780 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7787 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7790 libname_spec='lib$name'
7798 shlibpath_overrides_runpath=unknown
7800 dynamic_linker="$host_os ld.so"
7801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7802 if test "$GCC" = yes; then
7803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7804 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7805 # if the path contains ";" then we assume it to be the separator
7806 # otherwise default to the standard path separator (i.e. ":") - it is
7807 # assumed that no part of a normal pathname contains ";" but that should
7808 # okay in the real world where ";" in dirpaths is itself problematic.
7809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7814 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7816 need_lib_prefix=unknown
7817 hardcode_into_libs=no
7819 # when you set need_version to no, make sure it does not cause -set_version
7820 # flags to be left without arguments
7821 need_version=unknown
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7827 shlibpath_var=LIBPATH
7829 # AIX 3 has no versioning support, so we append a major version to the name.
7830 soname_spec='${libname}${release}${shared_ext}$major'
7837 hardcode_into_libs=yes
7838 if test "$host_cpu" = ia64; then
7839 # AIX 5 supports IA64
7840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7841 shlibpath_var=LD_LIBRARY_PATH
7843 # With GCC up to 2.95.x, collect2 would create an import file
7844 # for dependence libraries. The import file would start with
7845 # the line `#! .'. This would cause the generated library to
7846 # depend on `.', always an invalid library. This was fixed in
7847 # development snapshots of GCC prior to 3.0.
7849 aix4 | aix4.[01] | aix4.[01].*)
7850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7860 # soname into executable. Probably we can add versioning support to
7861 # collect2, so additional links can be useful in future.
7862 if test "$aix_use_runtimelinking" = yes; then
7863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7864 # instead of lib<name>.a to let people know that these are not
7865 # typical AIX shared libraries.
7866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868 # We preserve .a as extension for shared libraries through AIX4.2
7869 # and later when we are not doing run time linking.
7870 library_names_spec='${libname}${release}.a $libname.a'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7873 shlibpath_var=LIBPATH
7878 library_names_spec='$libname.ixlibrary $libname.a'
7879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7880 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'
7884 library_names_spec='${libname}${shared_ext}'
7885 dynamic_linker="$host_os ld.so"
7886 shlibpath_var=LIBRARY_PATH
7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893 soname_spec='${libname}${release}${shared_ext}$major'
7894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7895 shlibpath_var=LD_LIBRARY_PATH
7896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7898 # the default ld.so.conf also contains /usr/contrib/lib and
7899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7900 # libtool to hard-code these into programs
7903 cygwin* | mingw* | pw32*)
7904 version_type=windows
7909 case $GCC,$host_os in
7910 yes,cygwin* | yes,mingw* | yes,pw32*)
7911 library_names_spec='$libname.dll.a'
7912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7913 postinstall_cmds='base_file=`basename \${file}`~
7914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7915 dldir=$destdir/`dirname \$dlpath`~
7916 test -d \$dldir || mkdir -p \$dldir~
7917 $install_prog $dir/$dlname \$dldir/$dlname~
7918 chmod a+x \$dldir/$dlname'
7919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7920 dlpath=$dir/\$dldll~
7922 shlibpath_overrides_runpath=yes
7926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7931 # MinGW DLLs use traditional 'lib' prefix
7932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7935 # It is most probably a Windows format PATH printed by
7936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7937 # path with ; separators, and with drive letters. We can handle the
7938 # drive letters (cygwin fileutils understands them), so leave them,
7939 # especially as we might pass files found there to a mingw objdump,
7940 # which wouldn't understand a cygwinified path. Ahh.
7941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7947 # pw32 DLLs use 'pw' prefix rather than 'lib'
7948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7957 dynamic_linker='Win32 ld.exe'
7958 # FIXME: first we should search . and the directory the executable is in
7962 darwin* | rhapsody*)
7963 dynamic_linker="$host_os dyld"
7967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7968 soname_spec='${libname}${release}${major}$shared_ext'
7969 shlibpath_overrides_runpath=yes
7970 shlibpath_var=DYLD_LIBRARY_PATH
7971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7972 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7973 if test "$GCC" = yes; then
7974 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"`
7976 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7986 soname_spec='${libname}${release}${shared_ext}$major'
7987 shlibpath_var=LD_LIBRARY_PATH
7994 freebsd* | dragonfly*)
7995 # DragonFly does not have aout. When/if they implement a new
7996 # versioning mechanism, adjust this.
7997 if test -x /usr/bin/objformat; then
7998 objformat=`/usr/bin/objformat`
8001 freebsd[123]*) objformat=aout ;;
8005 version_type=freebsd-$objformat
8006 case $version_type in
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8017 shlibpath_var=LD_LIBRARY_PATH
8020 shlibpath_overrides_runpath=yes
8022 freebsd3.[01]* | freebsdelf3.[01]*)
8023 shlibpath_overrides_runpath=yes
8024 hardcode_into_libs=yes
8026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8028 shlibpath_overrides_runpath=no
8029 hardcode_into_libs=yes
8031 freebsd*) # from 4.6 on
8032 shlibpath_overrides_runpath=yes
8033 hardcode_into_libs=yes
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8045 hardcode_into_libs=yes
8048 hpux9* | hpux10* | hpux11*)
8049 # Give a soname corresponding to the major version so that dld.sl refuses to
8050 # link against other versions.
8057 hardcode_into_libs=yes
8058 dynamic_linker="$host_os dld.so"
8059 shlibpath_var=LD_LIBRARY_PATH
8060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062 soname_spec='${libname}${release}${shared_ext}$major'
8063 if test "X$HPUX_IA64_MODE" = X32; then
8064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8072 hardcode_into_libs=yes
8073 dynamic_linker="$host_os dld.sl"
8074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8083 dynamic_linker="$host_os dld.sl"
8084 shlibpath_var=SHLIB_PATH
8085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8091 postinstall_cmds='chmod 555 $lib'
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8099 soname_spec='${libname}${release}${shared_ext}$major'
8100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8101 shlibpath_var=LD_LIBRARY_PATH
8102 shlibpath_overrides_runpath=no
8103 hardcode_into_libs=yes
8106 irix5* | irix6* | nonstopux*)
8108 nonstopux*) version_type=nonstopux ;;
8110 if test "$lt_cv_prog_gnu_ld" = yes; then
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8121 irix5* | nonstopux*)
8125 case $LD in # libtool.m4 will add one of these switches to LD
8126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8127 libsuff= shlibsuff= libmagic=32-bit;;
8128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8129 libsuff=32 shlibsuff=N32 libmagic=N32;;
8130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8132 *) libsuff= shlibsuff= libmagic=never-match;;
8136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8137 shlibpath_overrides_runpath=no
8138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8140 hardcode_into_libs=yes
8143 # No shared lib support for Linux oldld, aout, or coff.
8144 linux*oldld* | linux*aout* | linux*coff*)
8148 # This must be Linux ELF.
8149 linux* | k*bsd*-gnu)
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8156 shlibpath_var=LD_LIBRARY_PATH
8157 shlibpath_overrides_runpath=no
8158 # This implies no fast_install, which is unacceptable.
8159 # Some rework will be needed to allow for fast_install
8160 # before this can be enabled.
8161 hardcode_into_libs=yes
8163 # Append ld.so.conf contents to the search path
8164 if test -f /etc/ld.so.conf; then
8165 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' ' '`
8166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8169 # We used to test for /lib/ld.so.1 and disable shared libraries on
8170 # powerpc, because MkLinux only supported shared libraries with the
8171 # GNU dynamic linker. Since this was broken with cross compilers,
8172 # most powerpc-linux boxes support dynamic linking these days and
8173 # people can always --disable-shared, the test was removed, and we
8174 # assume the GNU/Linux dynamic linker is in use.
8175 dynamic_linker='GNU/Linux ld.so'
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 shlibpath_var=LD_LIBRARY_PATH
8185 shlibpath_overrides_runpath=no
8186 hardcode_into_libs=yes
8187 dynamic_linker='NetBSD ld.elf_so'
8194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8197 dynamic_linker='NetBSD (a.out) ld.so'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 dynamic_linker='NetBSD ld.elf_so'
8203 shlibpath_var=LD_LIBRARY_PATH
8204 shlibpath_overrides_runpath=yes
8205 hardcode_into_libs=yes
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211 shlibpath_var=LD_LIBRARY_PATH
8212 shlibpath_overrides_runpath=yes
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8220 soname_spec='${libname}${release}${shared_ext}$major'
8221 shlibpath_var=LD_LIBRARY_PATH
8222 shlibpath_overrides_runpath=yes
8227 sys_lib_dlsearch_path_spec="/usr/lib"
8229 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8231 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8232 *) need_version=no ;;
8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8239 openbsd2.[89] | openbsd2.[89].*)
8240 shlibpath_overrides_runpath=no
8243 shlibpath_overrides_runpath=yes
8247 shlibpath_overrides_runpath=yes
8252 libname_spec='$name'
8255 library_names_spec='$libname${shared_ext} $libname.a'
8256 dynamic_linker='OS/2 ld.exe'
8257 shlibpath_var=LIBPATH
8260 osf3* | osf4* | osf5*)
8264 soname_spec='${libname}${release}${shared_ext}$major'
8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266 shlibpath_var=LD_LIBRARY_PATH
8267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8268 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276 soname_spec='${libname}${release}${shared_ext}$major'
8277 shlibpath_var=LD_LIBRARY_PATH
8278 shlibpath_overrides_runpath=yes
8279 hardcode_into_libs=yes
8280 # ldd complains unless libraries are executable
8281 postinstall_cmds='chmod +x $lib'
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8288 shlibpath_var=LD_LIBRARY_PATH
8289 shlibpath_overrides_runpath=yes
8290 if test "$with_gnu_ld" = yes; then
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 case $host_vendor in
8303 shlibpath_overrides_runpath=no
8305 export_dynamic_flag_spec='${wl}-Blargedynsym'
8306 runpath_var=LD_RUN_PATH
8314 shlibpath_overrides_runpath=no
8315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8321 if test -d /usr/nec ;then
8323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8324 soname_spec='$libname${shared_ext}.$major'
8325 shlibpath_var=LD_LIBRARY_PATH
8329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8330 version_type=freebsd-elf
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8334 soname_spec='${libname}${release}${shared_ext}$major'
8335 shlibpath_var=LD_LIBRARY_PATH
8336 hardcode_into_libs=yes
8337 if test "$with_gnu_ld" = yes; then
8338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8339 shlibpath_overrides_runpath=no
8341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8342 shlibpath_overrides_runpath=yes
8345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8349 sys_lib_dlsearch_path_spec='/usr/lib'
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8355 soname_spec='${libname}${release}${shared_ext}$major'
8356 shlibpath_var=LD_LIBRARY_PATH
8363 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8364 echo "${ECHO_T}$dynamic_linker" >&6
8365 test "$dynamic_linker" = no && can_build_shared=no
8367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8368 if test "$GCC" = yes; then
8369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8372 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8373 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8375 if test -n "$hardcode_libdir_flag_spec" || \
8376 test -n "$runpath_var" || \
8377 test "X$hardcode_automatic" = "Xyes" ; then
8379 # We can hardcode non-existant directories.
8380 if test "$hardcode_direct" != no &&
8381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8382 # have to relink, otherwise we might link with an installed library
8383 # when we should be linking with a yet-to-be-installed one
8384 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8385 test "$hardcode_minus_L" != no; then
8386 # Linking always hardcodes the temporary library directory.
8387 hardcode_action=relink
8389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8390 hardcode_action=immediate
8393 # We cannot hardcode anything, or else we can only hardcode existing
8395 hardcode_action=unsupported
8397 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8398 echo "${ECHO_T}$hardcode_action" >&6
8400 if test "$hardcode_action" = relink; then
8401 # Fast installation is not supported
8402 enable_fast_install=no
8403 elif test "$shlibpath_overrides_runpath" = yes ||
8404 test "$enable_shared" = no; then
8405 # Fast installation is not necessary
8406 enable_fast_install=needless
8411 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8412 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8413 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8414 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8415 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8416 echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8419 # FIXME - insert some real tests, host_os isn't really good enough
8422 if test -n "$STRIP" ; then
8423 striplib="$STRIP -x"
8424 echo "$as_me:$LINENO: result: yes" >&5
8425 echo "${ECHO_T}yes" >&6
8427 echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6
8432 echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8438 if test "x$enable_dlopen" != xyes; then
8439 enable_dlopen=unknown
8440 enable_dlopen_self=unknown
8441 enable_dlopen_self_static=unknown
8448 lt_cv_dlopen="load_add_on"
8450 lt_cv_dlopen_self=yes
8454 lt_cv_dlopen="LoadLibrary"
8459 lt_cv_dlopen="dlopen"
8464 # if libdl is installed we need to link against it
8465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 ac_check_lib_save_LIBS=$LIBS
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8479 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_cv_lib_dl_dlopen=yes
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_cv_lib_dl_dlopen=no
8522 rm -f conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8526 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8528 if test $ac_cv_lib_dl_dlopen = yes; then
8529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8534 lt_cv_dlopen_self=yes
8541 echo "$as_me:$LINENO: checking for shl_load" >&5
8542 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8543 if test "${ac_cv_func_shl_load+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8554 #define shl_load innocuous_shl_load
8556 /* System header to define __stub macros and hopefully few prototypes,
8557 which can conflict with char shl_load (); below.
8558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8559 <limits.h> exists even on freestanding compilers. */
8562 # include <limits.h>
8564 # include <assert.h>
8569 /* Override any gcc2 internal prototype to avoid an error. */
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8583 char (*f) () = shl_load;
8592 return f != shl_load;
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_func_shl_load=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_func_shl_load=no
8625 rm -f conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8629 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8630 if test $ac_cv_func_shl_load = yes; then
8631 lt_cv_dlopen="shl_load"
8633 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_check_lib_save_LIBS=$LIBS
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 /* Override any gcc2 internal prototype to avoid an error. */
8651 /* We use char because int might match the return type of a gcc2
8652 builtin and then its argument prototype would still apply. */
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_lib_dld_shl_load=yes
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_cv_lib_dld_shl_load=no
8690 rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8696 if test $ac_cv_lib_dld_shl_load = yes; then
8697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8699 echo "$as_me:$LINENO: checking for dlopen" >&5
8700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8701 if test "${ac_cv_func_dlopen+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8712 #define dlopen innocuous_dlopen
8714 /* System header to define __stub macros and hopefully few prototypes,
8715 which can conflict with char dlopen (); below.
8716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 <limits.h> exists even on freestanding compilers. */
8720 # include <limits.h>
8722 # include <assert.h>
8727 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8735 /* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8741 char (*f) () = dlopen;
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_func_dlopen=yes
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 ac_cv_func_dlopen=no
8783 rm -f conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8788 if test $ac_cv_func_dlopen = yes; then
8789 lt_cv_dlopen="dlopen"
8791 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 ac_check_lib_save_LIBS=$LIBS
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_lib_dl_dlopen=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_lib_dl_dlopen=no
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8854 if test $ac_cv_lib_dl_dlopen = yes; then
8855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8857 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8858 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_check_lib_save_LIBS=$LIBS
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any gcc2 internal prototype to avoid an error. */
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_cv_lib_svld_dlopen=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_cv_lib_svld_dlopen=no
8914 rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8918 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8919 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8920 if test $ac_cv_lib_svld_dlopen = yes; then
8921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8923 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8924 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8925 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 ac_check_lib_save_LIBS=$LIBS
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 /* Override any gcc2 internal prototype to avoid an error. */
8941 /* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_cv_lib_dld_dld_link=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_cv_lib_dld_dld_link=no
8980 rm -f conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8985 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8986 if test $ac_cv_lib_dld_dld_link = yes; then
8987 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9008 if test "x$lt_cv_dlopen" != xno; then
9014 case $lt_cv_dlopen in
9016 save_CPPFLAGS="$CPPFLAGS"
9017 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9019 save_LDFLAGS="$LDFLAGS"
9020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9023 LIBS="$lt_cv_dlopen_libs $LIBS"
9025 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9026 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9027 if test "${lt_cv_dlopen_self+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 if test "$cross_compiling" = yes; then :
9031 lt_cv_dlopen_self=cross
9033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9034 lt_status=$lt_dlunknown
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9036 "configure"
9037 #include "confdefs.h"
9046 # define LT_DLGLOBAL RTLD_GLOBAL
9049 # define LT_DLGLOBAL DL_GLOBAL
9051 # define LT_DLGLOBAL 0
9055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9056 find out it does not work in some platform. */
9057 #ifndef LT_DLLAZY_OR_NOW
9059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9062 # define LT_DLLAZY_OR_NOW DL_LAZY
9065 # define LT_DLLAZY_OR_NOW RTLD_NOW
9068 # define LT_DLLAZY_OR_NOW DL_NOW
9070 # define LT_DLLAZY_OR_NOW 0
9078 extern "C" void exit (int);
9081 void fnord() { int i=42;}
9084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9085 int status = $lt_dlunknown;
9089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9091 /* dlclose (self); */
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9104 (./conftest; exit; ) >&5 2>/dev/null
9107 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9108 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9109 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9112 # compilation failed
9113 lt_cv_dlopen_self=no
9120 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9121 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9123 if test "x$lt_cv_dlopen_self" = xyes; then
9124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9125 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9126 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9127 if test "${lt_cv_dlopen_self_static+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 if test "$cross_compiling" = yes; then :
9131 lt_cv_dlopen_self_static=cross
9133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9134 lt_status=$lt_dlunknown
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9136 "configure"
9137 #include "confdefs.h"
9146 # define LT_DLGLOBAL RTLD_GLOBAL
9149 # define LT_DLGLOBAL DL_GLOBAL
9151 # define LT_DLGLOBAL 0
9155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9156 find out it does not work in some platform. */
9157 #ifndef LT_DLLAZY_OR_NOW
9159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9162 # define LT_DLLAZY_OR_NOW DL_LAZY
9165 # define LT_DLLAZY_OR_NOW RTLD_NOW
9168 # define LT_DLLAZY_OR_NOW DL_NOW
9170 # define LT_DLLAZY_OR_NOW 0
9178 extern "C" void exit (int);
9181 void fnord() { int i=42;}
9184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9185 int status = $lt_dlunknown;
9189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9191 /* dlclose (self); */
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9204 (./conftest; exit; ) >&5 2>/dev/null
9207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9209 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9212 # compilation failed
9213 lt_cv_dlopen_self_static=no
9220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9221 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9224 CPPFLAGS="$save_CPPFLAGS"
9225 LDFLAGS="$save_LDFLAGS"
9230 case $lt_cv_dlopen_self in
9231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9232 *) enable_dlopen_self=unknown ;;
9235 case $lt_cv_dlopen_self_static in
9236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9237 *) enable_dlopen_self_static=unknown ;;
9242 # Report which library types will actually be built
9243 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9244 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9245 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9246 echo "${ECHO_T}$can_build_shared" >&6
9248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9249 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9250 test "$can_build_shared" = "no" && enable_shared=no
9252 # On AIX, shared libraries and static libraries use the same namespace, and
9253 # are all built from PIC.
9256 test "$enable_shared" = yes && enable_static=no
9257 if test -n "$RANLIB"; then
9258 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9259 postinstall_cmds='$RANLIB $lib'
9264 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9265 test "$enable_shared" = yes && enable_static=no
9269 echo "$as_me:$LINENO: result: $enable_shared" >&5
9270 echo "${ECHO_T}$enable_shared" >&6
9272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9273 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9274 # Make sure either enable_shared or enable_static is yes.
9275 test "$enable_shared" = yes || enable_static=yes
9276 echo "$as_me:$LINENO: result: $enable_static" >&5
9277 echo "${ECHO_T}$enable_static" >&6
9279 # The else clause should only fire when bootstrapping the
9280 # libtool distribution, otherwise you forgot to ship ltmain.sh
9281 # with your package, and you will get complaints that there are
9282 # no rules to generate ltmain.sh.
9283 if test -f "$ltmain"; then
9284 # See if we are running on zsh, and set the options which allow our commands through
9285 # without removal of \ escapes.
9286 if test -n "${ZSH_VERSION+set}" ; then
9287 setopt NO_GLOB_SUBST
9289 # Now quote all the things that may contain metacharacters while being
9290 # careful not to overquote the AC_SUBSTed values. We take copies of the
9291 # variables and quote the copies for generation of the libtool script.
9292 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9296 deplibs_check_method reload_flag reload_cmds need_locks \
9297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9298 lt_cv_sys_global_symbol_to_c_name_address \
9299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9300 old_postinstall_cmds old_postuninstall_cmds \
9304 lt_prog_compiler_wl \
9305 lt_prog_compiler_pic \
9306 lt_prog_compiler_static \
9307 lt_prog_compiler_no_builtin_flag \
9308 export_dynamic_flag_spec \
9309 thread_safe_flag_spec \
9310 whole_archive_flag_spec \
9311 enable_shared_with_static_runtimes \
9313 old_archive_from_new_cmds \
9318 compiler_lib_search_path \
9320 archive_expsym_cmds \
9322 postuninstall_cmds \
9323 old_archive_from_expsyms_cmds \
9324 allow_undefined_flag \
9326 export_symbols_cmds \
9327 hardcode_libdir_flag_spec \
9328 hardcode_libdir_flag_spec_ld \
9329 hardcode_libdir_separator \
9330 hardcode_automatic \
9332 module_expsym_cmds \
9333 lt_cv_prog_compiler_c_o \
9338 old_archive_cmds | \
9339 old_archive_from_new_cmds | \
9341 archive_expsym_cmds | \
9343 module_expsym_cmds | \
9344 old_archive_from_expsyms_cmds | \
9345 export_symbols_cmds | \
9346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9347 postinstall_cmds | postuninstall_cmds | \
9348 old_postinstall_cmds | old_postuninstall_cmds | \
9349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9350 # Double-quote double-evaled strings.
9351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9360 *'\$0 --fallback-echo"')
9361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9366 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9368 { echo "$as_me:$LINENO: creating $ofile" >&5
9369 echo "$as_me: creating $ofile" >&6;}
9371 cat <<__EOF__ >> "$cfgfile"
9374 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9375 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9379 # Free Software Foundation, Inc.
9381 # This file is part of GNU Libtool:
9382 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9384 # This program is free software; you can redistribute it and/or modify
9385 # it under the terms of the GNU General Public License as published by
9386 # the Free Software Foundation; either version 2 of the License, or
9387 # (at your option) any later version.
9389 # This program is distributed in the hope that it will be useful, but
9390 # WITHOUT ANY WARRANTY; without even the implied warranty of
9391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9392 # General Public License for more details.
9394 # You should have received a copy of the GNU General Public License
9395 # along with this program; if not, write to the Free Software
9396 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9398 # As a special exception to the GNU General Public License, if you
9399 # distribute this file as part of a program that contains a
9400 # configuration script generated by Autoconf, you may include it under
9401 # the same distribution terms that you use for the rest of that program.
9403 # A sed program that does not truncate output.
9406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9407 Xsed="$SED -e 1s/^X//"
9409 # The HP-UX ksh and POSIX shell print the target directory to stdout
9411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9413 # The names of the tagged configurations supported by this script.
9416 # ### BEGIN LIBTOOL CONFIG
9418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9420 # Shell to use when invoking shell scripts.
9423 # Whether or not to build shared libraries.
9424 build_libtool_libs=$enable_shared
9426 # Whether or not to build static libraries.
9427 build_old_libs=$enable_static
9429 # Whether or not to add -lc for building shared libraries.
9430 build_libtool_need_lc=$archive_cmds_need_lc
9432 # Whether or not to disallow shared libs when runtime libs are static
9433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9435 # Whether or not to optimize for fast installation.
9436 fast_install=$enable_fast_install
9439 host_alias=$host_alias
9444 build_alias=$build_alias
9448 # An echo program that does not interpret backslashes.
9453 AR_FLAGS=$lt_AR_FLAGS
9458 # LTCC compiler flags.
9459 LTCFLAGS=$lt_LTCFLAGS
9461 # A language-specific compiler.
9464 # Is the compiler the GNU C compiler?
9470 # The linker used to build libraries.
9473 # Whether we need hard or soft links.
9476 # A BSD-compatible nm program.
9479 # A symbol stripping program
9482 # Used to examine libraries when file_magic_cmd begins "file"
9483 MAGIC_CMD=$MAGIC_CMD
9485 # Used on cygwin: DLL creation program.
9488 # Used on cygwin: object dumper.
9491 # Used on cygwin: assembler.
9494 # The name of the directory that contains temporary libtool files.
9497 # How to create reloadable object files.
9498 reload_flag=$lt_reload_flag
9499 reload_cmds=$lt_reload_cmds
9501 # How to pass a linker flag through the compiler.
9502 wl=$lt_lt_prog_compiler_wl
9504 # Object file suffix (normally "o").
9507 # Old archive suffix (normally "a").
9510 # Shared library suffix (normally ".so").
9511 shrext_cmds='$shrext_cmds'
9513 # Executable file suffix (normally "").
9516 # Additional compiler flags for building library objects.
9517 pic_flag=$lt_lt_prog_compiler_pic
9520 # What is the maximum length of a command?
9521 max_cmd_len=$lt_cv_sys_max_cmd_len
9523 # Does compiler simultaneously support -c and -o options?
9524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9526 # Must we lock files when doing compilation?
9527 need_locks=$lt_need_locks
9529 # Do we need the lib prefix for modules?
9530 need_lib_prefix=$need_lib_prefix
9532 # Do we need a version for libraries?
9533 need_version=$need_version
9535 # Whether dlopen is supported.
9536 dlopen_support=$enable_dlopen
9538 # Whether dlopen of programs is supported.
9539 dlopen_self=$enable_dlopen_self
9541 # Whether dlopen of statically linked programs is supported.
9542 dlopen_self_static=$enable_dlopen_self_static
9544 # Compiler flag to prevent dynamic linking.
9545 link_static_flag=$lt_lt_prog_compiler_static
9547 # Compiler flag to turn off builtin functions.
9548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9550 # Compiler flag to allow reflexive dlopens.
9551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9553 # Compiler flag to generate shared objects directly from archives.
9554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9556 # Compiler flag to generate thread-safe objects.
9557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9559 # Library versioning type.
9560 version_type=$version_type
9562 # Format of library name prefix.
9563 libname_spec=$lt_libname_spec
9565 # List of archive names. First name is the real one, the rest are links.
9566 # The last name is the one that the linker finds with -lNAME.
9567 library_names_spec=$lt_library_names_spec
9569 # The coded name of the library, if different from the real name.
9570 soname_spec=$lt_soname_spec
9572 # Commands used to build and install an old-style archive.
9574 old_archive_cmds=$lt_old_archive_cmds
9575 old_postinstall_cmds=$lt_old_postinstall_cmds
9576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9578 # Create an old-style archive from a shared archive.
9579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9581 # Create a temporary old-style archive to link instead of a shared archive.
9582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9584 # Commands used to build and install a shared archive.
9585 archive_cmds=$lt_archive_cmds
9586 archive_expsym_cmds=$lt_archive_expsym_cmds
9587 postinstall_cmds=$lt_postinstall_cmds
9588 postuninstall_cmds=$lt_postuninstall_cmds
9590 # Commands used to build a loadable module (assumed same as above if empty)
9591 module_cmds=$lt_module_cmds
9592 module_expsym_cmds=$lt_module_expsym_cmds
9594 # Commands to strip libraries.
9595 old_striplib=$lt_old_striplib
9596 striplib=$lt_striplib
9598 # Dependencies to place before the objects being linked to create a
9600 predep_objects=$lt_predep_objects
9602 # Dependencies to place after the objects being linked to create a
9604 postdep_objects=$lt_postdep_objects
9606 # Dependencies to place before the objects being linked to create a
9610 # Dependencies to place after the objects being linked to create a
9612 postdeps=$lt_postdeps
9614 # The library search path used internally by the compiler when linking
9616 compiler_lib_search_path=$lt_compiler_lib_search_path
9618 # Method to check whether dependent libraries are shared objects.
9619 deplibs_check_method=$lt_deplibs_check_method
9621 # Command to use when deplibs_check_method == file_magic.
9622 file_magic_cmd=$lt_file_magic_cmd
9624 # Flag that allows shared libraries with undefined symbols to be built.
9625 allow_undefined_flag=$lt_allow_undefined_flag
9627 # Flag that forces no undefined symbols.
9628 no_undefined_flag=$lt_no_undefined_flag
9630 # Commands used to finish a libtool library installation in a directory.
9631 finish_cmds=$lt_finish_cmds
9633 # Same as above, but a single script fragment to be evaled but not shown.
9634 finish_eval=$lt_finish_eval
9636 # Take the output of nm and produce a listing of raw symbols and C names.
9637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9639 # Transform the output of nm in a proper C declaration
9640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9642 # Transform the output of nm in a C name address pair
9643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9645 # This is the shared library runtime path variable.
9646 runpath_var=$runpath_var
9648 # This is the shared library path variable.
9649 shlibpath_var=$shlibpath_var
9651 # Is shlibpath searched before the hard-coded library search path?
9652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9654 # How to hardcode a shared library path into an executable.
9655 hardcode_action=$hardcode_action
9657 # Whether we should hardcode library paths into libraries.
9658 hardcode_into_libs=$hardcode_into_libs
9660 # Flag to hardcode \$libdir into a binary during linking.
9661 # This must work even if \$libdir does not exist.
9662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9664 # If ld is used when linking, flag to hardcode \$libdir into
9665 # a binary during linking. This must work even if \$libdir does
9667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9669 # Whether we need a single -rpath flag with a separated argument.
9670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9674 hardcode_direct=$hardcode_direct
9676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9678 hardcode_minus_L=$hardcode_minus_L
9680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9681 # the resulting binary.
9682 hardcode_shlibpath_var=$hardcode_shlibpath_var
9684 # Set to yes if building a shared library automatically hardcodes DIR into the library
9685 # and all subsequent libraries and executables linked against it.
9686 hardcode_automatic=$hardcode_automatic
9688 # Variables whose values should be saved in libtool wrapper scripts and
9689 # restored at relink time.
9690 variables_saved_for_relink="$variables_saved_for_relink"
9692 # Whether libtool must link a program against all its dependency libraries.
9693 link_all_deplibs=$link_all_deplibs
9695 # Compile-time system search path for libraries
9696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9698 # Run-time system search path for libraries
9699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9701 # Fix the shell variable \$srcfile for the compiler.
9702 fix_srcfile_path="$fix_srcfile_path"
9704 # Set to yes if exported symbols are required.
9705 always_export_symbols=$always_export_symbols
9707 # The commands to list exported symbols.
9708 export_symbols_cmds=$lt_export_symbols_cmds
9710 # The commands to extract the exported symbol list from a shared archive.
9711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9713 # Symbols that should not be listed in the preloaded symbols.
9714 exclude_expsyms=$lt_exclude_expsyms
9716 # Symbols that must always be exported.
9717 include_expsyms=$lt_include_expsyms
9719 # ### END LIBTOOL CONFIG
9726 cat <<\EOF >> "$cfgfile"
9728 # AIX sometimes has problems with the GCC collect2 program. For some
9729 # reason, if we set the COLLECT_NAMES environment variable, the problems
9730 # vanish in a puff of smoke.
9731 if test "X${COLLECT_NAMES+set}" != Xset; then
9733 export COLLECT_NAMES
9739 # We use sed instead of cat because bash on DJGPP gets confused if
9740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9741 # text mode, it properly converts lines to CR/LF. This bash problem
9742 # is reportedly fixed, but why not run on old versions too?
9743 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9745 mv -f "$cfgfile" "$ofile" || \
9746 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9750 # If there is no Makefile yet, we rely on a make rule to execute
9751 # `config.status --recheck' to rerun these tests and create the
9752 # libtool script then.
9753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9754 if test -f "$ltmain_in"; then
9755 test -f Makefile && make "$ltmain"
9761 ac_cpp='$CPP $CPPFLAGS'
9762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769 # Check whether --with-tags or --without-tags was given.
9770 if test "${with_tags+set}" = set; then
9771 withval="$with_tags"
9775 if test -f "$ltmain" && test -n "$tagnames"; then
9776 if test ! -f "${ofile}"; then
9777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9781 if test -z "$LTCC"; then
9782 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9783 if test -z "$LTCC"; then
9784 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9791 if test -z "$LTCFLAGS"; then
9792 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9795 # Extract list of available tagged configurations in $ofile.
9796 # Note that this assumes the entire list is on one line.
9797 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9800 for tagname in $tagnames; do
9802 # Check whether tagname contains only valid characters
9803 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9805 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9806 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9807 { (exit 1); exit 1; }; }
9811 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9813 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9814 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9815 { (exit 1); exit 1; }; }
9818 # Update the list of available tags.
9819 if test -n "$tagname"; then
9820 echo appending configuration tag \"$tagname\" to $ofile
9824 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9825 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9826 (test "X$CXX" != "Xg++"))) ; then
9828 ac_cpp='$CXXCPP $CPPFLAGS'
9829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9836 archive_cmds_need_lc_CXX=no
9837 allow_undefined_flag_CXX=
9838 always_export_symbols_CXX=no
9839 archive_expsym_cmds_CXX=
9840 export_dynamic_flag_spec_CXX=
9841 hardcode_direct_CXX=no
9842 hardcode_libdir_flag_spec_CXX=
9843 hardcode_libdir_flag_spec_ld_CXX=
9844 hardcode_libdir_separator_CXX=
9845 hardcode_minus_L_CXX=no
9846 hardcode_shlibpath_var_CXX=unsupported
9847 hardcode_automatic_CXX=no
9849 module_expsym_cmds_CXX=
9850 link_all_deplibs_CXX=unknown
9851 old_archive_cmds_CXX=$old_archive_cmds
9852 no_undefined_flag_CXX=
9853 whole_archive_flag_spec_CXX=
9854 enable_shared_with_static_runtimes_CXX=no
9856 # Dependencies to place before and after the object being linked:
9858 postdep_objects_CXX=
9861 compiler_lib_search_path_CXX=
9863 # Source file extension for C++ test sources.
9866 # Object file extension for compiled C++ test sources.
9870 # Code to be used in simple compile tests
9871 lt_simple_compile_test_code="int some_variable = 0;\n"
9873 # Code to be used in simple link tests
9874 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9878 # If no C compiler was specified, use CC.
9881 # If no C compiler flags were specified, use CFLAGS.
9882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9884 # Allow CC to be a program name with arguments.
9888 # save warnings/boilerplate of simple test code
9889 ac_outfile=conftest.$ac_objext
9890 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9891 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9892 _lt_compiler_boilerplate=`cat conftest.err`
9895 ac_outfile=conftest.$ac_objext
9896 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9897 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9898 _lt_linker_boilerplate=`cat conftest.err`
9902 # Allow CC to be a program name with arguments.
9907 lt_save_with_gnu_ld=$with_gnu_ld
9908 lt_save_path_LD=$lt_cv_path_LD
9909 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9910 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9912 $as_unset lt_cv_prog_gnu_ld
9914 if test -n "${lt_cv_path_LDCXX+set}"; then
9915 lt_cv_path_LD=$lt_cv_path_LDCXX
9917 $as_unset lt_cv_path_LD
9919 test -z "${LDCXX+set}" || LD=$LDCXX
9923 for cc_temp in $compiler""; do
9925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9934 # We don't want -fno-exception wen compiling C++ code, so set the
9935 # no_builtin_flag separately
9936 if test "$GXX" = yes; then
9937 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9939 lt_prog_compiler_no_builtin_flag_CXX=
9942 if test "$GXX" = yes; then
9943 # Set up default GNU C++ configuration
9946 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9947 if test "${with_gnu_ld+set}" = set; then
9948 withval="$with_gnu_ld"
9949 test "$withval" = no || with_gnu_ld=yes
9954 if test "$GCC" = yes; then
9955 # Check if gcc -print-prog-name=ld gives a path.
9956 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9957 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9960 # gcc leaves a trailing carriage return which upsets mingw
9961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9966 # Accept absolute paths.
9968 re_direlt='/[^/][^/]*/\.\./'
9969 # Canonicalize the pathname of ld
9970 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9971 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9972 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9974 test -z "$LD" && LD="$ac_prog"
9977 # If it fails, then pretend we aren't using GCC.
9981 # If it is relative, then search for the first ld in PATH.
9985 elif test "$with_gnu_ld" = yes; then
9986 echo "$as_me:$LINENO: checking for GNU ld" >&5
9987 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9989 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9990 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9992 if test "${lt_cv_path_LD+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 if test -z "$LD"; then
9996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9997 for ac_dir in $PATH; do
9999 test -z "$ac_dir" && ac_dir=.
10000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10001 lt_cv_path_LD="$ac_dir/$ac_prog"
10002 # Check to see if the program is GNU ld. I'd rather use --version,
10003 # but apparently some variants of GNU ld only accept -v.
10004 # Break only if it was the GNU/non-GNU ld that we prefer.
10005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10006 *GNU* | *'with BFD'*)
10007 test "$with_gnu_ld" != no && break
10010 test "$with_gnu_ld" != yes && break
10017 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10021 LD="$lt_cv_path_LD"
10022 if test -n "$LD"; then
10023 echo "$as_me:$LINENO: result: $LD" >&5
10024 echo "${ECHO_T}$LD" >&6
10026 echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6
10029 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10030 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10031 { (exit 1); exit 1; }; }
10032 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10033 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10034 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10038 case `$LD -v 2>&1 </dev/null` in
10039 *GNU* | *'with BFD'*)
10040 lt_cv_prog_gnu_ld=yes
10043 lt_cv_prog_gnu_ld=no
10047 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10048 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10049 with_gnu_ld=$lt_cv_prog_gnu_ld
10053 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10054 # archiving commands below assume that GNU ld is being used.
10055 if test "$with_gnu_ld" = yes; then
10056 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 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'
10059 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10062 # If archive_cmds runs LD, not CC, wlarc should be empty
10063 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10064 # investigate it a little bit more. (MM)
10067 # ancient GNU ld didn't support --whole-archive et. al.
10068 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10069 grep 'no-whole-archive' > /dev/null; then
10070 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072 whole_archive_flag_spec_CXX=
10078 # A generic and very simple default shared library creation
10079 # command for GNU C++ for the case where it uses the native
10080 # linker, instead of GNU ld. If possible, this setting should
10081 # overridden to take advantage of the native linker features on
10082 # the platform it is being used on.
10083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10086 # Commands to make compiler produce verbose output that lists
10087 # what "hidden" libraries, object files and flags are used when
10088 # linking a shared library.
10089 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10097 # PORTME: fill in a description of your system's C++ link characteristics
10098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10103 # FIXME: insert proper C++ library support
10107 if test "$host_cpu" = ia64; then
10108 # On IA64, the linker does run time linking by default, so we don't
10109 # have to do anything special.
10110 aix_use_runtimelinking=no
10111 exp_sym_flag='-Bexport'
10114 aix_use_runtimelinking=no
10116 # Test if we are trying to use run time linking or normal
10117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10118 # need to do runtime linking.
10119 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10120 for ld_flag in $LDFLAGS; do
10123 aix_use_runtimelinking=yes
10131 exp_sym_flag='-bexport'
10132 no_entry_flag='-bnoentry'
10135 # When large executables or shared objects are built, AIX ld can
10136 # have problems creating the table of contents. If linking a library
10137 # or program results in "error TOC overflow" add -mminimal-toc to
10138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10141 archive_cmds_CXX=''
10142 hardcode_direct_CXX=yes
10143 hardcode_libdir_separator_CXX=':'
10144 link_all_deplibs_CXX=yes
10146 if test "$GXX" = yes; then
10147 case $host_os in aix4.[012]|aix4.[012].*)
10148 # We only want to do this on AIX 4.2 and lower, the check
10149 # below for broken collect2 doesn't work under 4.3+
10150 collect2name=`${CC} -print-prog-name=collect2`
10151 if test -f "$collect2name" && \
10152 strings "$collect2name" | grep resolve_lib_name >/dev/null
10154 # We have reworked collect2
10155 hardcode_direct_CXX=yes
10157 # We have old collect2
10158 hardcode_direct_CXX=unsupported
10159 # It fails to find uninstalled libraries when the uninstalled
10160 # path is not listed in the libpath. Setting hardcode_minus_L
10161 # to unsupported forces relinking
10162 hardcode_minus_L_CXX=yes
10163 hardcode_libdir_flag_spec_CXX='-L$libdir'
10164 hardcode_libdir_separator_CXX=
10168 shared_flag='-shared'
10169 if test "$aix_use_runtimelinking" = yes; then
10170 shared_flag="$shared_flag "'${wl}-G'
10174 if test "$host_cpu" = ia64; then
10175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10176 # chokes on -Wl,-G. The following line is correct:
10179 if test "$aix_use_runtimelinking" = yes; then
10180 shared_flag='${wl}-G'
10182 shared_flag='${wl}-bM:SRE'
10187 # It seems that -bexpall does not export symbols beginning with
10188 # underscore (_), so it is better to generate a list of symbols to export.
10189 always_export_symbols_CXX=yes
10190 if test "$aix_use_runtimelinking" = yes; then
10191 # Warning - without using the other runtime loading flags (-brtl),
10192 # -berok will link without error, but may produce a broken library.
10193 allow_undefined_flag_CXX='-berok'
10194 # Determine the default libpath from the value encoded in an empty executable.
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10234 # Check for a 64-bit object if we didn't find anything.
10235 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; }
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10242 rm -f conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10246 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10248 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"
10250 if test "$host_cpu" = ia64; then
10251 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10252 allow_undefined_flag_CXX="-z nodefs"
10253 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"
10255 # Determine the default libpath from the value encoded in an empty executable.
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10295 # Check for a 64-bit object if we didn't find anything.
10296 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; }
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10303 rm -f conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10307 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10308 # Warning - without using the other run time loading flags,
10309 # -berok will link without error, but may produce a broken library.
10310 no_undefined_flag_CXX=' ${wl}-bernotok'
10311 allow_undefined_flag_CXX=' ${wl}-berok'
10312 # Exported symbols can be pulled into shared objects from archives
10313 whole_archive_flag_spec_CXX='$convenience'
10314 archive_cmds_need_lc_CXX=yes
10315 # This is similar to how AIX traditionally builds its shared libraries.
10316 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'
10322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10323 allow_undefined_flag_CXX=unsupported
10324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10325 # support --undefined. This deserves some investigation. FIXME
10326 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 case $cc_basename in
10335 # FIXME: insert proper C++ library support
10341 cygwin* | mingw* | pw32*)
10342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10343 # as there is no search path for DLLs.
10344 hardcode_libdir_flag_spec_CXX='-L$libdir'
10345 allow_undefined_flag_CXX=unsupported
10346 always_export_symbols_CXX=no
10347 enable_shared_with_static_runtimes_CXX=yes
10349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10350 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'
10351 # If the export-symbols file already is a .def file (1st line
10352 # is EXPORTS), use it as is; otherwise, prepend...
10353 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10354 cp $export_symbols $output_objdir/$soname.def;
10356 echo EXPORTS > $output_objdir/$soname.def;
10357 cat $export_symbols >> $output_objdir/$soname.def;
10359 $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'
10364 darwin* | rhapsody*)
10366 rhapsody* | darwin1.[012])
10367 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10370 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10371 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10373 case ${MACOSX_DEPLOYMENT_TARGET} in
10375 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10378 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10384 archive_cmds_need_lc_CXX=no
10385 hardcode_direct_CXX=no
10386 hardcode_automatic_CXX=yes
10387 hardcode_shlibpath_var_CXX=unsupported
10388 whole_archive_flag_spec_CXX=''
10389 link_all_deplibs_CXX=yes
10391 if test "$GXX" = yes ; then
10392 lt_int_apple_cc_single_mod=no
10393 output_verbose_link_cmd='echo'
10394 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10395 lt_int_apple_cc_single_mod=yes
10397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10398 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10400 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'
10402 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10404 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10405 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}'
10407 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}'
10409 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}'
10411 case $cc_basename in
10413 output_verbose_link_cmd='echo'
10414 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'
10415 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10417 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}'
10418 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}'
10428 case $cc_basename in
10430 # FIXME: insert proper C++ library support
10434 # Green Hills C++ Compiler
10435 # FIXME: insert proper C++ library support
10439 # FIXME: insert proper C++ library support
10445 # C++ shared libraries reported to be fairly broken before switch to ELF
10449 archive_cmds_need_lc_CXX=no
10451 freebsd* | dragonfly*)
10452 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10460 hardcode_libdir_separator_CXX=:
10461 export_dynamic_flag_spec_CXX='${wl}-E'
10462 hardcode_direct_CXX=yes
10463 hardcode_minus_L_CXX=yes # Not in the search PATH,
10464 # but as the default
10465 # location of the library.
10467 case $cc_basename in
10469 # FIXME: insert proper C++ library support
10473 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'
10474 # Commands to make compiler produce verbose output that lists
10475 # what "hidden" libraries, object files and flags are used when
10476 # linking a shared library.
10478 # There doesn't appear to be a way to prevent this compiler from
10479 # explicitly linking system object files so we need to strip them
10480 # from the output so that they don't get included in the library
10482 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'
10485 if test "$GXX" = yes; then
10486 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'
10488 # FIXME: insert proper C++ library support
10495 if test $with_gnu_ld = no; then
10496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497 hardcode_libdir_separator_CXX=:
10501 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10504 export_dynamic_flag_spec_CXX='${wl}-E'
10510 hardcode_direct_CXX=no
10511 hardcode_shlibpath_var_CXX=no
10514 hardcode_direct_CXX=yes
10515 hardcode_minus_L_CXX=yes # Not in the search PATH,
10516 # but as the default
10517 # location of the library.
10521 case $cc_basename in
10523 # FIXME: insert proper C++ library support
10529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10538 # Commands to make compiler produce verbose output that lists
10539 # what "hidden" libraries, object files and flags are used when
10540 # linking a shared library.
10542 # There doesn't appear to be a way to prevent this compiler from
10543 # explicitly linking system object files so we need to strip them
10544 # from the output so that they don't get included in the library
10546 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'
10549 if test "$GXX" = yes; then
10550 if test $with_gnu_ld = no; then
10553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10559 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'
10564 # FIXME: insert proper C++ library support
10571 hardcode_direct_CXX=no
10572 hardcode_shlibpath_var_CXX=no
10573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10574 export_dynamic_flag_spec_CXX='${wl}-E'
10575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10576 # Instead, shared libraries are loaded at an image base (0x10000000 by
10577 # default) and relocated if they conflict, which is a slow very memory
10578 # consuming and fragmenting process. To avoid this, we pick a random,
10579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10581 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'
10582 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'
10585 case $cc_basename in
10588 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'
10590 # Archives containing C++ object files must be created using
10591 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10592 # necessary to make sure instantiated templates are included
10594 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10597 if test "$GXX" = yes; then
10598 if test "$with_gnu_ld" = no; then
10599 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'
10601 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'
10604 link_all_deplibs_CXX=yes
10607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10608 hardcode_libdir_separator_CXX=:
10610 linux* | k*bsd*-gnu)
10611 case $cc_basename in
10613 # Kuck and Associates, Inc. (KAI) C++ Compiler
10615 # KCC will only create a shared library if the output file
10616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10617 # to its proper name (with version) after linking.
10618 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'
10619 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'
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10624 # There doesn't appear to be a way to prevent this compiler from
10625 # explicitly linking system object files so we need to strip them
10626 # from the output so that they don't get included in the library
10628 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'
10630 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10633 # Archives containing C++ object files must be created using
10634 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10640 # version 8.0 and above of icpc choke on multiply defined symbols
10641 # if we add $predep_objects and $postdep_objects, however 7.1 and
10642 # earlier do not add the objects themselves.
10643 case `$CC -V 2>&1` in
10645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646 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'
10648 *) # Version 8.0 or newer
10651 ia64*) tmp_idyn=' -i_dynamic';;
10653 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10654 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'
10657 archive_cmds_need_lc_CXX=no
10658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10660 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10663 # Portland Group C++ compiler
10664 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10665 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'
10667 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669 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'
10673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674 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'
10676 runpath_var=LD_RUN_PATH
10677 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10678 hardcode_libdir_separator_CXX=:
10680 # Commands to make compiler produce verbose output that lists
10681 # what "hidden" libraries, object files and flags are used when
10682 # linking a shared library.
10684 # There doesn't appear to be a way to prevent this compiler from
10685 # explicitly linking system object files so we need to strip them
10686 # from the output so that they don't get included in the library
10688 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'
10693 # FIXME: insert proper C++ library support
10697 # FIXME: insert proper C++ library support
10701 case $cc_basename in
10703 # FIXME: insert proper C++ library support
10707 # FIXME: insert proper C++ library support
10712 netbsd* | netbsdelf*-gnu)
10713 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10714 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10716 hardcode_libdir_flag_spec_CXX='-R$libdir'
10717 hardcode_direct_CXX=yes
10718 hardcode_shlibpath_var_CXX=no
10720 # Workaround some broken pre-1.5 toolchains
10721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10724 # C++ shared libraries are fairly broken
10728 hardcode_direct_CXX=yes
10729 hardcode_shlibpath_var_CXX=no
10730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10733 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10734 export_dynamic_flag_spec_CXX='${wl}-E'
10735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10737 output_verbose_link_cmd='echo'
10740 case $cc_basename in
10742 # Kuck and Associates, Inc. (KAI) C++ Compiler
10744 # KCC will only create a shared library if the output file
10745 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10746 # to its proper name (with version) after linking.
10747 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'
10749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10750 hardcode_libdir_separator_CXX=:
10752 # Archives containing C++ object files must be created using
10753 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10754 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10758 # Rational C++ 2.4.1
10759 # FIXME: insert proper C++ library support
10763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10764 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'
10766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10767 hardcode_libdir_separator_CXX=:
10769 # Commands to make compiler produce verbose output that lists
10770 # what "hidden" libraries, object files and flags are used when
10771 # linking a shared library.
10773 # There doesn't appear to be a way to prevent this compiler from
10774 # explicitly linking system object files so we need to strip them
10775 # from the output so that they don't get included in the library
10777 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'
10780 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10781 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10782 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'
10784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10785 hardcode_libdir_separator_CXX=:
10787 # Commands to make compiler produce verbose output that lists
10788 # what "hidden" libraries, object files and flags are used when
10789 # linking a shared library.
10790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10793 # FIXME: insert proper C++ library support
10800 case $cc_basename in
10802 # Kuck and Associates, Inc. (KAI) C++ Compiler
10804 # KCC will only create a shared library if the output file
10805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10806 # to its proper name (with version) after linking.
10807 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'
10809 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10810 hardcode_libdir_separator_CXX=:
10812 # Archives containing C++ object files must be created using
10813 # the KAI C++ compiler.
10814 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10817 # Rational C++ 2.4.1
10818 # FIXME: insert proper C++ library support
10822 allow_undefined_flag_CXX=' -expect_unresolved \*'
10823 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'
10824 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10825 echo "-hidden">> $lib.exp~
10826 $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~
10829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10830 hardcode_libdir_separator_CXX=:
10832 # Commands to make compiler produce verbose output that lists
10833 # what "hidden" libraries, object files and flags are used when
10834 # linking a shared library.
10836 # There doesn't appear to be a way to prevent this compiler from
10837 # explicitly linking system object files so we need to strip them
10838 # from the output so that they don't get included in the library
10840 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'
10843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10844 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10845 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'
10847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10848 hardcode_libdir_separator_CXX=:
10850 # Commands to make compiler produce verbose output that lists
10851 # what "hidden" libraries, object files and flags are used when
10852 # linking a shared library.
10853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10856 # FIXME: insert proper C++ library support
10863 # FIXME: insert proper C++ library support
10867 case $cc_basename in
10870 # FIXME: insert proper C++ library support
10875 # FIXME: insert proper C++ library support
10879 # FIXME: insert proper C++ library support
10885 case $cc_basename in
10887 # Sun C++ 4.2, 5.x and Centerline C++
10888 archive_cmds_need_lc_CXX=yes
10889 no_undefined_flag_CXX=' -zdefs'
10890 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10891 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10892 $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'
10894 hardcode_libdir_flag_spec_CXX='-R$libdir'
10895 hardcode_shlibpath_var_CXX=no
10897 solaris2.[0-5] | solaris2.[0-5].*) ;;
10899 # The C++ compiler is used as linker so we must use $wl
10900 # flag to pass the commands to the underlying system
10901 # linker. We must also pass each convience library through
10902 # to the system linker between allextract/defaultextract.
10903 # The C++ compiler will combine linker options so we
10904 # cannot just pass the convience library names through
10906 # Supported since Solaris 2.6 (maybe 2.5.1?)
10907 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'
10910 link_all_deplibs_CXX=yes
10912 output_verbose_link_cmd='echo'
10914 # Archives containing C++ object files must be created using
10915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10916 # necessary to make sure instantiated templates are included
10918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10921 # Green Hills C++ Compiler
10922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10924 # The C++ compiler must be used to create the archive.
10925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10928 # GNU C++ compiler with Solaris linker
10929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10931 if $CC --version | grep -v '^2\.7' > /dev/null; then
10932 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10934 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10936 # Commands to make compiler produce verbose output that lists
10937 # what "hidden" libraries, object files and flags are used when
10938 # linking a shared library.
10939 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10944 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10950 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10959 no_undefined_flag_CXX='${wl}-z,text'
10960 archive_cmds_need_lc_CXX=no
10961 hardcode_shlibpath_var_CXX=no
10962 runpath_var='LD_RUN_PATH'
10964 case $cc_basename in
10966 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 sysv5* | sco3.2v5* | sco5v6*)
10976 # Note: We can NOT use -z defs as we might desire, because we do not
10977 # link with -lc, and that would cause any symbols used from libc to
10978 # always be unresolved, which means just about no library would
10979 # ever link correctly. If we're not using GNU ld we use -z text
10980 # though, which does catch some bad symbols but isn't as heavy-handed
10982 # For security reasons, it is highly recommended that you always
10983 # use absolute paths for naming shared libraries, and exclude the
10984 # DT_RUNPATH tag from executables and libraries. But doing so
10985 # requires that you compile everything twice, which is a pain.
10986 # So that behaviour is only enabled if SCOABSPATH is set to a
10987 # non-empty value in the environment. Most likely only useful for
10988 # creating official distributions of packages.
10989 # This is a hack until libtool officially supports absolute path
10990 # names for shared libraries.
10991 no_undefined_flag_CXX='${wl}-z,text'
10992 allow_undefined_flag_CXX='${wl}-z,nodefs'
10993 archive_cmds_need_lc_CXX=no
10994 hardcode_shlibpath_var_CXX=no
10995 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10996 hardcode_libdir_separator_CXX=':'
10997 link_all_deplibs_CXX=yes
10998 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10999 runpath_var='LD_RUN_PATH'
11001 case $cc_basename in
11003 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 case $cc_basename in
11015 # NonStop-UX NCC 3.20
11016 # FIXME: insert proper C++ library support
11020 # FIXME: insert proper C++ library support
11026 # FIXME: insert proper C++ library support
11030 # FIXME: insert proper C++ library support
11034 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11035 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11036 test "$ld_shlibs_CXX" = no && can_build_shared=no
11042 cat > conftest.$ac_ext <<EOF
11046 Foo (void) { a = 0; }
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053 (eval $ac_compile) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; then
11057 # Parse the compiler output and extract the necessary
11058 # objects, libraries and library flags.
11060 # Sentinel used to keep track of whether or not we are before
11061 # the conftest object file.
11062 pre_test_object_deps_done=no
11064 # The `*' in the case matches for architectures that use `case' in
11065 # $output_verbose_cmd can trigger glob expansion during the loop
11066 # eval without this substitution.
11067 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11069 for p in `eval $output_verbose_link_cmd`; do
11073 # Some compilers place space between "-{L,R}" and the path.
11074 # Remove the space.
11075 if test $p = "-L" \
11076 || test $p = "-R"; then
11083 if test "$pre_test_object_deps_done" = no; then
11086 # Internal compiler library paths should come after those
11087 # provided the user. The postdeps already come after the
11088 # user supplied libs so there is no need to process them.
11089 if test -z "$compiler_lib_search_path_CXX"; then
11090 compiler_lib_search_path_CXX="${prev}${p}"
11092 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11095 # The "-l" case would never come before the object being
11096 # linked, so don't bother handling this case.
11099 if test -z "$postdeps_CXX"; then
11100 postdeps_CXX="${prev}${p}"
11102 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11108 # This assumes that the test object file only shows up
11109 # once in the compiler output.
11110 if test "$p" = "conftest.$objext"; then
11111 pre_test_object_deps_done=yes
11115 if test "$pre_test_object_deps_done" = no; then
11116 if test -z "$predep_objects_CXX"; then
11117 predep_objects_CXX="$p"
11119 predep_objects_CXX="$predep_objects_CXX $p"
11122 if test -z "$postdep_objects_CXX"; then
11123 postdep_objects_CXX="$p"
11125 postdep_objects_CXX="$postdep_objects_CXX $p"
11130 *) ;; # Ignore the rest.
11138 echo "libtool.m4: error: problem compiling CXX test program"
11141 $rm -f confest.$objext
11143 # PORTME: override above test on systems where it is broken
11146 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11147 # hack all around it, let's just trust "g++" to DTRT.
11148 predep_objects_CXX=
11149 postdep_objects_CXX=
11154 case $cc_basename in
11156 # Adding this requires a known-good setup of shared libraries for
11157 # Sun compiler versions before 5.6, else PIC objects from an old
11158 # archive will be linked into the output, leading to subtle bugs.
11159 postdeps_CXX='-lCstd -lCrun'
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11174 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11177 # C++ specific cases for pic, static, wl, etc.
11178 if test "$GXX" = yes; then
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 lt_prog_compiler_static_CXX='-static'
11184 # All AIX code is PIC.
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 now supports IA64 processor
11187 lt_prog_compiler_static_CXX='-Bstatic'
11191 # FIXME: we need at least 68020 code to build shared libraries, but
11192 # adding the `-m68020' flag to GCC prevents building anything better,
11194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197 # PIC is the default for these OSes.
11199 mingw* | os2* | pw32*)
11200 # This hack is so that the source file can tell whether it is being
11201 # built for inclusion in a dll (and should export symbols for example).
11202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11204 darwin* | rhapsody*)
11205 # PIC is the default on this platform
11206 # Common symbols not allowed in MH_DYLIB files
11207 lt_prog_compiler_pic_CXX='-fno-common'
11210 # DJGPP does not support shared libraries at all
11211 lt_prog_compiler_pic_CXX=
11214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11215 # Instead, we relocate shared libraries at runtime.
11218 if test -d /usr/nec; then
11219 lt_prog_compiler_pic_CXX=-Kconform_pic
11223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11224 # not for PA HP-UX.
11229 lt_prog_compiler_pic_CXX='-fPIC'
11234 lt_prog_compiler_pic_CXX='-fPIC'
11240 # All AIX code is PIC.
11241 if test "$host_cpu" = ia64; then
11242 # AIX 5 now supports IA64 processor
11243 lt_prog_compiler_static_CXX='-Bstatic'
11245 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11249 case $cc_basename in
11251 # Green Hills C++ Compiler
11252 # _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"
11257 # PIC is the default on this platform
11258 # Common symbols not allowed in MH_DYLIB files
11259 case $cc_basename in
11261 lt_prog_compiler_pic_CXX='-qnocommon'
11262 lt_prog_compiler_wl_CXX='-Wl,'
11267 case $cc_basename in
11269 lt_prog_compiler_pic_CXX='-KPIC'
11272 # Green Hills C++ Compiler
11273 lt_prog_compiler_pic_CXX='-pic'
11279 freebsd* | dragonfly*)
11280 # FreeBSD uses GNU C++
11282 hpux9* | hpux10* | hpux11*)
11283 case $cc_basename in
11285 lt_prog_compiler_wl_CXX='-Wl,'
11286 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11287 if test "$host_cpu" != ia64; then
11288 lt_prog_compiler_pic_CXX='+Z'
11292 lt_prog_compiler_wl_CXX='-Wl,'
11293 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11299 lt_prog_compiler_pic_CXX='+Z'
11308 # This is c89, which is MS Visual C++ (no shared libs)
11309 # Anyone wants to do a port?
11311 irix5* | irix6* | nonstopux*)
11312 case $cc_basename in
11314 lt_prog_compiler_wl_CXX='-Wl,'
11315 lt_prog_compiler_static_CXX='-non_shared'
11316 # CC pic flag -KPIC is the default.
11322 linux* | k*bsd*-gnu)
11323 case $cc_basename in
11326 lt_prog_compiler_wl_CXX='--backend -Wl,'
11327 lt_prog_compiler_pic_CXX='-fPIC'
11331 lt_prog_compiler_wl_CXX='-Wl,'
11332 lt_prog_compiler_pic_CXX='-KPIC'
11333 lt_prog_compiler_static_CXX='-static'
11336 # Portland Group C++ compiler.
11337 lt_prog_compiler_wl_CXX='-Wl,'
11338 lt_prog_compiler_pic_CXX='-fpic'
11339 lt_prog_compiler_static_CXX='-Bstatic'
11343 # Make sure the PIC flag is empty. It appears that all Alpha
11344 # Linux and Compaq Tru64 Unix objects are PIC.
11345 lt_prog_compiler_pic_CXX=
11346 lt_prog_compiler_static_CXX='-non_shared'
11357 case $cc_basename in
11359 lt_prog_compiler_pic_CXX='-W c,exportall'
11365 netbsd* | netbsdelf*-gnu)
11367 osf3* | osf4* | osf5*)
11368 case $cc_basename in
11370 lt_prog_compiler_wl_CXX='--backend -Wl,'
11373 # Rational C++ 2.4.1
11374 lt_prog_compiler_pic_CXX='-pic'
11377 # Digital/Compaq C++
11378 lt_prog_compiler_wl_CXX='-Wl,'
11379 # Make sure the PIC flag is empty. It appears that all Alpha
11380 # Linux and Compaq Tru64 Unix objects are PIC.
11381 lt_prog_compiler_pic_CXX=
11382 lt_prog_compiler_static_CXX='-non_shared'
11391 case $cc_basename in
11393 # Sun C++ 4.2, 5.x and Centerline C++
11394 lt_prog_compiler_pic_CXX='-KPIC'
11395 lt_prog_compiler_static_CXX='-Bstatic'
11396 lt_prog_compiler_wl_CXX='-Qoption ld '
11399 # Green Hills C++ Compiler
11400 lt_prog_compiler_pic_CXX='-PIC'
11407 case $cc_basename in
11410 lt_prog_compiler_pic_CXX='-pic'
11411 lt_prog_compiler_static_CXX='-Bstatic'
11415 lt_prog_compiler_pic_CXX='-pic'
11422 case $cc_basename in
11424 # NonStop-UX NCC 3.20
11425 lt_prog_compiler_pic_CXX='-KPIC'
11431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11432 case $cc_basename in
11434 lt_prog_compiler_wl_CXX='-Wl,'
11435 lt_prog_compiler_pic_CXX='-KPIC'
11436 lt_prog_compiler_static_CXX='-Bstatic'
11443 lt_prog_compiler_can_build_shared_CXX=no
11448 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11449 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11452 # Check to make sure the PIC flag actually works.
11454 if test -n "$lt_prog_compiler_pic_CXX"; then
11456 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11458 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 lt_prog_compiler_pic_works_CXX=no
11462 ac_outfile=conftest.$ac_objext
11463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11464 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11465 # Insert the option either (1) after the last *FLAGS variable, or
11466 # (2) before a word containing "conftest.", or (3) at the end.
11467 # Note that $ac_compile itself does not contain backslashes and begins
11468 # with a dollar sign (not a hyphen), so the echo should work correctly.
11469 # The option is referenced via a variable to avoid confusing sed.
11470 lt_compile=`echo "$ac_compile" | $SED \
11471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11473 -e 's:$: $lt_compiler_flag:'`
11474 (eval echo "\"\$as_me:11474: $lt_compile\"" >&5)
11475 (eval "$lt_compile" 2>conftest.err)
11477 cat conftest.err >&5
11478 echo "$as_me:11478: \$? = $ac_status" >&5
11479 if (exit $ac_status) && test -s "$ac_outfile"; then
11480 # The compiler can only warn and ignore the option if not recognized
11481 # So say no if there are warnings other than the usual output.
11482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11485 lt_prog_compiler_pic_works_CXX=yes
11491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11492 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11494 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11495 case $lt_prog_compiler_pic_CXX in
11497 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11500 lt_prog_compiler_pic_CXX=
11501 lt_prog_compiler_can_build_shared_CXX=no
11506 # For platforms which do not support PIC, -DPIC is meaningless:
11508 lt_prog_compiler_pic_CXX=
11511 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11516 # Check to make sure the static flag actually works.
11518 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11519 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11521 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 lt_prog_compiler_static_works_CXX=no
11525 save_LDFLAGS="$LDFLAGS"
11526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11527 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11529 # The linker can only warn and ignore the option if not recognized
11530 # So say no if there are warnings
11531 if test -s conftest.err; then
11532 # Append any errors to the config.log.
11533 cat conftest.err 1>&5
11534 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11536 if diff conftest.exp conftest.er2 >/dev/null; then
11537 lt_prog_compiler_static_works_CXX=yes
11540 lt_prog_compiler_static_works_CXX=yes
11544 LDFLAGS="$save_LDFLAGS"
11547 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11548 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11550 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11553 lt_prog_compiler_static_CXX=
11557 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 lt_cv_prog_compiler_c_o_CXX=no
11563 $rm -r conftest 2>/dev/null
11567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11569 lt_compiler_flag="-o out/conftest2.$ac_objext"
11570 # Insert the option either (1) after the last *FLAGS variable, or
11571 # (2) before a word containing "conftest.", or (3) at the end.
11572 # Note that $ac_compile itself does not contain backslashes and begins
11573 # with a dollar sign (not a hyphen), so the echo should work correctly.
11574 lt_compile=`echo "$ac_compile" | $SED \
11575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11577 -e 's:$: $lt_compiler_flag:'`
11578 (eval echo "\"\$as_me:11578: $lt_compile\"" >&5)
11579 (eval "$lt_compile" 2>out/conftest.err)
11581 cat out/conftest.err >&5
11582 echo "$as_me:11582: \$? = $ac_status" >&5
11583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11585 # The compiler can only warn and ignore the option if not recognized
11586 # So say no if there are warnings
11587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11590 lt_cv_prog_compiler_c_o_CXX=yes
11595 # SGI C++ compiler will create directory out/ii_files/ for
11596 # template instantiation
11597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11598 $rm out/* && rmdir out
11604 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11608 hard_links="nottested"
11609 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11610 # do not overwrite the value of need_locks provided by the user
11611 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11617 ln conftest.a conftest.b 2>&5 || hard_links=no
11618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11619 echo "$as_me:$LINENO: result: $hard_links" >&5
11620 echo "${ECHO_T}$hard_links" >&6
11621 if test "$hard_links" = no; then
11622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11630 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11636 # If we're using GNU nm, then we don't want the "-C" option.
11637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11638 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11639 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'
11641 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'
11645 export_symbols_cmds_CXX="$ltdll_cmds"
11648 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'
11650 linux* | k*bsd*-gnu)
11651 link_all_deplibs_CXX=no
11654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11658 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11659 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11660 test "$ld_shlibs_CXX" = no && can_build_shared=no
11663 # Do we need to explicitly link libc?
11665 case "x$archive_cmds_need_lc_CXX" in
11667 # Assume -lc should be added
11668 archive_cmds_need_lc_CXX=yes
11670 if test "$enable_shared" = yes && test "$GCC" = yes; then
11671 case $archive_cmds_CXX in
11673 # FIXME: we may have to deal with multi-command sequences.
11676 # Test whether the compiler implicitly links with -lc since on some
11677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11678 # to ld, don't add -lc before -lgcc.
11679 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11680 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } 2>conftest.err; then
11691 libobjs=conftest.$ac_objext
11693 wl=$lt_prog_compiler_wl_CXX
11694 pic_flag=$lt_prog_compiler_pic_CXX
11700 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11701 allow_undefined_flag_CXX=
11702 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11703 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }
11708 archive_cmds_need_lc_CXX=no
11710 archive_cmds_need_lc_CXX=yes
11712 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11714 cat conftest.err 1>&5
11717 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11718 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11725 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11727 library_names_spec=
11728 libname_spec='lib$name'
11732 postuninstall_cmds=
11736 shlibpath_overrides_runpath=unknown
11738 dynamic_linker="$host_os ld.so"
11739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11740 if test "$GCC" = yes; then
11741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11742 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11743 # if the path contains ";" then we assume it to be the separator
11744 # otherwise default to the standard path separator (i.e. ":") - it is
11745 # assumed that no part of a normal pathname contains ";" but that should
11746 # okay in the real world where ";" in dirpaths is itself problematic.
11747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11754 need_lib_prefix=unknown
11755 hardcode_into_libs=no
11757 # when you set need_version to no, make sure it does not cause -set_version
11758 # flags to be left without arguments
11759 need_version=unknown
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11765 shlibpath_var=LIBPATH
11767 # AIX 3 has no versioning support, so we append a major version to the name.
11768 soname_spec='${libname}${release}${shared_ext}$major'
11775 hardcode_into_libs=yes
11776 if test "$host_cpu" = ia64; then
11777 # AIX 5 supports IA64
11778 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11779 shlibpath_var=LD_LIBRARY_PATH
11781 # With GCC up to 2.95.x, collect2 would create an import file
11782 # for dependence libraries. The import file would start with
11783 # the line `#! .'. This would cause the generated library to
11784 # depend on `.', always an invalid library. This was fixed in
11785 # development snapshots of GCC prior to 3.0.
11787 aix4 | aix4.[01] | aix4.[01].*)
11788 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11790 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11793 can_build_shared=no
11797 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11798 # soname into executable. Probably we can add versioning support to
11799 # collect2, so additional links can be useful in future.
11800 if test "$aix_use_runtimelinking" = yes; then
11801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11802 # instead of lib<name>.a to let people know that these are not
11803 # typical AIX shared libraries.
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 # We preserve .a as extension for shared libraries through AIX4.2
11807 # and later when we are not doing run time linking.
11808 library_names_spec='${libname}${release}.a $libname.a'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LIBPATH
11816 library_names_spec='$libname.ixlibrary $libname.a'
11817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818 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'
11822 library_names_spec='${libname}${shared_ext}'
11823 dynamic_linker="$host_os ld.so"
11824 shlibpath_var=LIBRARY_PATH
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831 soname_spec='${libname}${release}${shared_ext}$major'
11832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11836 # the default ld.so.conf also contains /usr/contrib/lib and
11837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11838 # libtool to hard-code these into programs
11841 cygwin* | mingw* | pw32*)
11842 version_type=windows
11847 case $GCC,$host_os in
11848 yes,cygwin* | yes,mingw* | yes,pw32*)
11849 library_names_spec='$libname.dll.a'
11850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851 postinstall_cmds='base_file=`basename \${file}`~
11852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11853 dldir=$destdir/`dirname \$dlpath`~
11854 test -d \$dldir || mkdir -p \$dldir~
11855 $install_prog $dir/$dlname \$dldir/$dlname~
11856 chmod a+x \$dldir/$dlname'
11857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11858 dlpath=$dir/\$dldll~
11860 shlibpath_overrides_runpath=yes
11864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11866 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11869 # MinGW DLLs use traditional 'lib' prefix
11870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11872 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11873 # It is most probably a Windows format PATH printed by
11874 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11875 # path with ; separators, and with drive letters. We can handle the
11876 # drive letters (cygwin fileutils understands them), so leave them,
11877 # especially as we might pass files found there to a mingw objdump,
11878 # which wouldn't understand a cygwinified path. Ahh.
11879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11885 # pw32 DLLs use 'pw' prefix rather than 'lib'
11886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11895 dynamic_linker='Win32 ld.exe'
11896 # FIXME: first we should search . and the directory the executable is in
11900 darwin* | rhapsody*)
11901 dynamic_linker="$host_os dyld"
11902 version_type=darwin
11905 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11906 soname_spec='${libname}${release}${major}$shared_ext'
11907 shlibpath_overrides_runpath=yes
11908 shlibpath_var=DYLD_LIBRARY_PATH
11909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11910 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11911 if test "$GCC" = yes; then
11912 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"`
11914 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 shlibpath_var=LD_LIBRARY_PATH
11932 freebsd* | dragonfly*)
11933 # DragonFly does not have aout. When/if they implement a new
11934 # versioning mechanism, adjust this.
11935 if test -x /usr/bin/objformat; then
11936 objformat=`/usr/bin/objformat`
11939 freebsd[123]*) objformat=aout ;;
11940 *) objformat=elf ;;
11943 version_type=freebsd-$objformat
11944 case $version_type in
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11955 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11960 freebsd3.[01]* | freebsdelf3.[01]*)
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11966 shlibpath_overrides_runpath=no
11967 hardcode_into_libs=yes
11969 freebsd*) # from 4.6 on
11970 shlibpath_overrides_runpath=yes
11971 hardcode_into_libs=yes
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11981 soname_spec='${libname}${release}${shared_ext}$major'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 hardcode_into_libs=yes
11986 hpux9* | hpux10* | hpux11*)
11987 # Give a soname corresponding to the major version so that dld.sl refuses to
11988 # link against other versions.
11995 hardcode_into_libs=yes
11996 dynamic_linker="$host_os dld.so"
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 if test "X$HPUX_IA64_MODE" = X32; then
12002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12010 hardcode_into_libs=yes
12011 dynamic_linker="$host_os dld.sl"
12012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12021 dynamic_linker="$host_os dld.sl"
12022 shlibpath_var=SHLIB_PATH
12023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12028 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12029 postinstall_cmds='chmod 555 $lib'
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=no
12041 hardcode_into_libs=yes
12044 irix5* | irix6* | nonstopux*)
12046 nonstopux*) version_type=nonstopux ;;
12048 if test "$lt_cv_prog_gnu_ld" = yes; then
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12059 irix5* | nonstopux*)
12060 libsuff= shlibsuff=
12063 case $LD in # libtool.m4 will add one of these switches to LD
12064 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12065 libsuff= shlibsuff= libmagic=32-bit;;
12066 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12067 libsuff=32 shlibsuff=N32 libmagic=N32;;
12068 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12069 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12070 *) libsuff= shlibsuff= libmagic=never-match;;
12074 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12075 shlibpath_overrides_runpath=no
12076 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12077 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12078 hardcode_into_libs=yes
12081 # No shared lib support for Linux oldld, aout, or coff.
12082 linux*oldld* | linux*aout* | linux*coff*)
12086 # This must be Linux ELF.
12087 linux* | k*bsd*-gnu)
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=no
12096 # This implies no fast_install, which is unacceptable.
12097 # Some rework will be needed to allow for fast_install
12098 # before this can be enabled.
12099 hardcode_into_libs=yes
12101 # Append ld.so.conf contents to the search path
12102 if test -f /etc/ld.so.conf; then
12103 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' ' '`
12104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12107 # We used to test for /lib/ld.so.1 and disable shared libraries on
12108 # powerpc, because MkLinux only supported shared libraries with the
12109 # GNU dynamic linker. Since this was broken with cross compilers,
12110 # most powerpc-linux boxes support dynamic linking these days and
12111 # people can always --disable-shared, the test was removed, and we
12112 # assume the GNU/Linux dynamic linker is in use.
12113 dynamic_linker='GNU/Linux ld.so'
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 shlibpath_var=LD_LIBRARY_PATH
12123 shlibpath_overrides_runpath=no
12124 hardcode_into_libs=yes
12125 dynamic_linker='NetBSD ld.elf_so'
12132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12135 dynamic_linker='NetBSD (a.out) ld.so'
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 dynamic_linker='NetBSD ld.elf_so'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=yes
12143 hardcode_into_libs=yes
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=yes
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=yes
12165 sys_lib_dlsearch_path_spec="/usr/lib"
12167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12169 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12170 *) need_version=no ;;
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12177 openbsd2.[89] | openbsd2.[89].*)
12178 shlibpath_overrides_runpath=no
12181 shlibpath_overrides_runpath=yes
12185 shlibpath_overrides_runpath=yes
12190 libname_spec='$name'
12193 library_names_spec='$libname${shared_ext} $libname.a'
12194 dynamic_linker='OS/2 ld.exe'
12195 shlibpath_var=LIBPATH
12198 osf3* | osf4* | osf5*)
12202 soname_spec='${libname}${release}${shared_ext}$major'
12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=yes
12217 hardcode_into_libs=yes
12218 # ldd complains unless libraries are executable
12219 postinstall_cmds='chmod +x $lib'
12224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12228 if test "$with_gnu_ld" = yes; then
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237 soname_spec='${libname}${release}${shared_ext}$major'
12238 shlibpath_var=LD_LIBRARY_PATH
12239 case $host_vendor in
12241 shlibpath_overrides_runpath=no
12243 export_dynamic_flag_spec='${wl}-Blargedynsym'
12244 runpath_var=LD_RUN_PATH
12252 shlibpath_overrides_runpath=no
12253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12259 if test -d /usr/nec ;then
12261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12262 soname_spec='$libname${shared_ext}.$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12268 version_type=freebsd-elf
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12272 soname_spec='${libname}${release}${shared_ext}$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 hardcode_into_libs=yes
12275 if test "$with_gnu_ld" = yes; then
12276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12277 shlibpath_overrides_runpath=no
12279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12280 shlibpath_overrides_runpath=yes
12283 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12287 sys_lib_dlsearch_path_spec='/usr/lib'
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12301 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12302 echo "${ECHO_T}$dynamic_linker" >&6
12303 test "$dynamic_linker" = no && can_build_shared=no
12305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12306 if test "$GCC" = yes; then
12307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12311 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12312 hardcode_action_CXX=
12313 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12314 test -n "$runpath_var_CXX" || \
12315 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12317 # We can hardcode non-existant directories.
12318 if test "$hardcode_direct_CXX" != no &&
12319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12320 # have to relink, otherwise we might link with an installed library
12321 # when we should be linking with a yet-to-be-installed one
12322 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12323 test "$hardcode_minus_L_CXX" != no; then
12324 # Linking always hardcodes the temporary library directory.
12325 hardcode_action_CXX=relink
12327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12328 hardcode_action_CXX=immediate
12331 # We cannot hardcode anything, or else we can only hardcode existing
12333 hardcode_action_CXX=unsupported
12335 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12336 echo "${ECHO_T}$hardcode_action_CXX" >&6
12338 if test "$hardcode_action_CXX" = relink; then
12339 # Fast installation is not supported
12340 enable_fast_install=no
12341 elif test "$shlibpath_overrides_runpath" = yes ||
12342 test "$enable_shared" = no; then
12343 # Fast installation is not necessary
12344 enable_fast_install=needless
12348 # The else clause should only fire when bootstrapping the
12349 # libtool distribution, otherwise you forgot to ship ltmain.sh
12350 # with your package, and you will get complaints that there are
12351 # no rules to generate ltmain.sh.
12352 if test -f "$ltmain"; then
12353 # See if we are running on zsh, and set the options which allow our commands through
12354 # without removal of \ escapes.
12355 if test -n "${ZSH_VERSION+set}" ; then
12356 setopt NO_GLOB_SUBST
12358 # Now quote all the things that may contain metacharacters while being
12359 # careful not to overquote the AC_SUBSTed values. We take copies of the
12360 # variables and quote the copies for generation of the libtool script.
12361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12365 deplibs_check_method reload_flag reload_cmds need_locks \
12366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12367 lt_cv_sys_global_symbol_to_c_name_address \
12368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12369 old_postinstall_cmds old_postuninstall_cmds \
12373 lt_prog_compiler_wl_CXX \
12374 lt_prog_compiler_pic_CXX \
12375 lt_prog_compiler_static_CXX \
12376 lt_prog_compiler_no_builtin_flag_CXX \
12377 export_dynamic_flag_spec_CXX \
12378 thread_safe_flag_spec_CXX \
12379 whole_archive_flag_spec_CXX \
12380 enable_shared_with_static_runtimes_CXX \
12381 old_archive_cmds_CXX \
12382 old_archive_from_new_cmds_CXX \
12383 predep_objects_CXX \
12384 postdep_objects_CXX \
12387 compiler_lib_search_path_CXX \
12389 archive_expsym_cmds_CXX \
12390 postinstall_cmds_CXX \
12391 postuninstall_cmds_CXX \
12392 old_archive_from_expsyms_cmds_CXX \
12393 allow_undefined_flag_CXX \
12394 no_undefined_flag_CXX \
12395 export_symbols_cmds_CXX \
12396 hardcode_libdir_flag_spec_CXX \
12397 hardcode_libdir_flag_spec_ld_CXX \
12398 hardcode_libdir_separator_CXX \
12399 hardcode_automatic_CXX \
12401 module_expsym_cmds_CXX \
12402 lt_cv_prog_compiler_c_o_CXX \
12403 exclude_expsyms_CXX \
12404 include_expsyms_CXX; do
12407 old_archive_cmds_CXX | \
12408 old_archive_from_new_cmds_CXX | \
12409 archive_cmds_CXX | \
12410 archive_expsym_cmds_CXX | \
12411 module_cmds_CXX | \
12412 module_expsym_cmds_CXX | \
12413 old_archive_from_expsyms_cmds_CXX | \
12414 export_symbols_cmds_CXX | \
12415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12416 postinstall_cmds | postuninstall_cmds | \
12417 old_postinstall_cmds | old_postuninstall_cmds | \
12418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12419 # Double-quote double-evaled strings.
12420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12429 *'\$0 --fallback-echo"')
12430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12436 cat <<__EOF__ >> "$cfgfile"
12437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12441 # Shell to use when invoking shell scripts.
12444 # Whether or not to build shared libraries.
12445 build_libtool_libs=$enable_shared
12447 # Whether or not to build static libraries.
12448 build_old_libs=$enable_static
12450 # Whether or not to add -lc for building shared libraries.
12451 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12453 # Whether or not to disallow shared libs when runtime libs are static
12454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12456 # Whether or not to optimize for fast installation.
12457 fast_install=$enable_fast_install
12460 host_alias=$host_alias
12464 # The build system.
12465 build_alias=$build_alias
12469 # An echo program that does not interpret backslashes.
12474 AR_FLAGS=$lt_AR_FLAGS
12479 # LTCC compiler flags.
12480 LTCFLAGS=$lt_LTCFLAGS
12482 # A language-specific compiler.
12483 CC=$lt_compiler_CXX
12485 # Is the compiler the GNU C compiler?
12491 # The linker used to build libraries.
12494 # Whether we need hard or soft links.
12497 # A BSD-compatible nm program.
12500 # A symbol stripping program
12503 # Used to examine libraries when file_magic_cmd begins "file"
12504 MAGIC_CMD=$MAGIC_CMD
12506 # Used on cygwin: DLL creation program.
12509 # Used on cygwin: object dumper.
12512 # Used on cygwin: assembler.
12515 # The name of the directory that contains temporary libtool files.
12518 # How to create reloadable object files.
12519 reload_flag=$lt_reload_flag
12520 reload_cmds=$lt_reload_cmds
12522 # How to pass a linker flag through the compiler.
12523 wl=$lt_lt_prog_compiler_wl_CXX
12525 # Object file suffix (normally "o").
12526 objext="$ac_objext"
12528 # Old archive suffix (normally "a").
12531 # Shared library suffix (normally ".so").
12532 shrext_cmds='$shrext_cmds'
12534 # Executable file suffix (normally "").
12537 # Additional compiler flags for building library objects.
12538 pic_flag=$lt_lt_prog_compiler_pic_CXX
12541 # What is the maximum length of a command?
12542 max_cmd_len=$lt_cv_sys_max_cmd_len
12544 # Does compiler simultaneously support -c and -o options?
12545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12547 # Must we lock files when doing compilation?
12548 need_locks=$lt_need_locks
12550 # Do we need the lib prefix for modules?
12551 need_lib_prefix=$need_lib_prefix
12553 # Do we need a version for libraries?
12554 need_version=$need_version
12556 # Whether dlopen is supported.
12557 dlopen_support=$enable_dlopen
12559 # Whether dlopen of programs is supported.
12560 dlopen_self=$enable_dlopen_self
12562 # Whether dlopen of statically linked programs is supported.
12563 dlopen_self_static=$enable_dlopen_self_static
12565 # Compiler flag to prevent dynamic linking.
12566 link_static_flag=$lt_lt_prog_compiler_static_CXX
12568 # Compiler flag to turn off builtin functions.
12569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12571 # Compiler flag to allow reflexive dlopens.
12572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12574 # Compiler flag to generate shared objects directly from archives.
12575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12577 # Compiler flag to generate thread-safe objects.
12578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12580 # Library versioning type.
12581 version_type=$version_type
12583 # Format of library name prefix.
12584 libname_spec=$lt_libname_spec
12586 # List of archive names. First name is the real one, the rest are links.
12587 # The last name is the one that the linker finds with -lNAME.
12588 library_names_spec=$lt_library_names_spec
12590 # The coded name of the library, if different from the real name.
12591 soname_spec=$lt_soname_spec
12593 # Commands used to build and install an old-style archive.
12595 old_archive_cmds=$lt_old_archive_cmds_CXX
12596 old_postinstall_cmds=$lt_old_postinstall_cmds
12597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12599 # Create an old-style archive from a shared archive.
12600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12602 # Create a temporary old-style archive to link instead of a shared archive.
12603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12605 # Commands used to build and install a shared archive.
12606 archive_cmds=$lt_archive_cmds_CXX
12607 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12608 postinstall_cmds=$lt_postinstall_cmds
12609 postuninstall_cmds=$lt_postuninstall_cmds
12611 # Commands used to build a loadable module (assumed same as above if empty)
12612 module_cmds=$lt_module_cmds_CXX
12613 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12615 # Commands to strip libraries.
12616 old_striplib=$lt_old_striplib
12617 striplib=$lt_striplib
12619 # Dependencies to place before the objects being linked to create a
12621 predep_objects=$lt_predep_objects_CXX
12623 # Dependencies to place after the objects being linked to create a
12625 postdep_objects=$lt_postdep_objects_CXX
12627 # Dependencies to place before the objects being linked to create a
12629 predeps=$lt_predeps_CXX
12631 # Dependencies to place after the objects being linked to create a
12633 postdeps=$lt_postdeps_CXX
12635 # The library search path used internally by the compiler when linking
12636 # a shared library.
12637 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12639 # Method to check whether dependent libraries are shared objects.
12640 deplibs_check_method=$lt_deplibs_check_method
12642 # Command to use when deplibs_check_method == file_magic.
12643 file_magic_cmd=$lt_file_magic_cmd
12645 # Flag that allows shared libraries with undefined symbols to be built.
12646 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12648 # Flag that forces no undefined symbols.
12649 no_undefined_flag=$lt_no_undefined_flag_CXX
12651 # Commands used to finish a libtool library installation in a directory.
12652 finish_cmds=$lt_finish_cmds
12654 # Same as above, but a single script fragment to be evaled but not shown.
12655 finish_eval=$lt_finish_eval
12657 # Take the output of nm and produce a listing of raw symbols and C names.
12658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12660 # Transform the output of nm in a proper C declaration
12661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12663 # Transform the output of nm in a C name address pair
12664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12666 # This is the shared library runtime path variable.
12667 runpath_var=$runpath_var
12669 # This is the shared library path variable.
12670 shlibpath_var=$shlibpath_var
12672 # Is shlibpath searched before the hard-coded library search path?
12673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12675 # How to hardcode a shared library path into an executable.
12676 hardcode_action=$hardcode_action_CXX
12678 # Whether we should hardcode library paths into libraries.
12679 hardcode_into_libs=$hardcode_into_libs
12681 # Flag to hardcode \$libdir into a binary during linking.
12682 # This must work even if \$libdir does not exist.
12683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12685 # If ld is used when linking, flag to hardcode \$libdir into
12686 # a binary during linking. This must work even if \$libdir does
12688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12690 # Whether we need a single -rpath flag with a separated argument.
12691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12694 # resulting binary.
12695 hardcode_direct=$hardcode_direct_CXX
12697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12698 # resulting binary.
12699 hardcode_minus_L=$hardcode_minus_L_CXX
12701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12702 # the resulting binary.
12703 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12705 # Set to yes if building a shared library automatically hardcodes DIR into the library
12706 # and all subsequent libraries and executables linked against it.
12707 hardcode_automatic=$hardcode_automatic_CXX
12709 # Variables whose values should be saved in libtool wrapper scripts and
12710 # restored at relink time.
12711 variables_saved_for_relink="$variables_saved_for_relink"
12713 # Whether libtool must link a program against all its dependency libraries.
12714 link_all_deplibs=$link_all_deplibs_CXX
12716 # Compile-time system search path for libraries
12717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12719 # Run-time system search path for libraries
12720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12722 # Fix the shell variable \$srcfile for the compiler.
12723 fix_srcfile_path="$fix_srcfile_path_CXX"
12725 # Set to yes if exported symbols are required.
12726 always_export_symbols=$always_export_symbols_CXX
12728 # The commands to list exported symbols.
12729 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12731 # The commands to extract the exported symbol list from a shared archive.
12732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12734 # Symbols that should not be listed in the preloaded symbols.
12735 exclude_expsyms=$lt_exclude_expsyms_CXX
12737 # Symbols that must always be exported.
12738 include_expsyms=$lt_include_expsyms_CXX
12740 # ### END LIBTOOL TAG CONFIG: $tagname
12746 # If there is no Makefile yet, we rely on a make rule to execute
12747 # `config.status --recheck' to rerun these tests and create the
12748 # libtool script then.
12749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12750 if test -f "$ltmain_in"; then
12751 test -f Makefile && make "$ltmain"
12757 ac_cpp='$CPP $CPPFLAGS'
12758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766 with_gnu_ldcxx=$with_gnu_ld
12767 with_gnu_ld=$lt_save_with_gnu_ld
12768 lt_cv_path_LDCXX=$lt_cv_path_LD
12769 lt_cv_path_LD=$lt_save_path_LD
12770 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12771 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12779 if test -n "$F77" && test "X$F77" != "Xno"; then
12782 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12783 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12787 archive_cmds_need_lc_F77=no
12788 allow_undefined_flag_F77=
12789 always_export_symbols_F77=no
12790 archive_expsym_cmds_F77=
12791 export_dynamic_flag_spec_F77=
12792 hardcode_direct_F77=no
12793 hardcode_libdir_flag_spec_F77=
12794 hardcode_libdir_flag_spec_ld_F77=
12795 hardcode_libdir_separator_F77=
12796 hardcode_minus_L_F77=no
12797 hardcode_automatic_F77=no
12799 module_expsym_cmds_F77=
12800 link_all_deplibs_F77=unknown
12801 old_archive_cmds_F77=$old_archive_cmds
12802 no_undefined_flag_F77=
12803 whole_archive_flag_spec_F77=
12804 enable_shared_with_static_runtimes_F77=no
12806 # Source file extension for f77 test sources.
12809 # Object file extension for compiled f77 test sources.
12813 # Code to be used in simple compile tests
12814 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12816 # Code to be used in simple link tests
12817 lt_simple_link_test_code=" program t\n end\n"
12819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12821 # If no C compiler was specified, use CC.
12824 # If no C compiler flags were specified, use CFLAGS.
12825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12827 # Allow CC to be a program name with arguments.
12831 # save warnings/boilerplate of simple test code
12832 ac_outfile=conftest.$ac_objext
12833 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12835 _lt_compiler_boilerplate=`cat conftest.err`
12838 ac_outfile=conftest.$ac_objext
12839 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12841 _lt_linker_boilerplate=`cat conftest.err`
12845 # Allow CC to be a program name with arguments.
12850 for cc_temp in $compiler""; do
12852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12861 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12862 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12863 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12864 echo "${ECHO_T}$can_build_shared" >&6
12866 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12867 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12868 test "$can_build_shared" = "no" && enable_shared=no
12870 # On AIX, shared libraries and static libraries use the same namespace, and
12871 # are all built from PIC.
12874 test "$enable_shared" = yes && enable_static=no
12875 if test -n "$RANLIB"; then
12876 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12877 postinstall_cmds='$RANLIB $lib'
12881 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12882 test "$enable_shared" = yes && enable_static=no
12886 echo "$as_me:$LINENO: result: $enable_shared" >&5
12887 echo "${ECHO_T}$enable_shared" >&6
12889 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12890 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12891 # Make sure either enable_shared or enable_static is yes.
12892 test "$enable_shared" = yes || enable_static=yes
12893 echo "$as_me:$LINENO: result: $enable_static" >&5
12894 echo "${ECHO_T}$enable_static" >&6
12899 lt_prog_compiler_wl_F77=
12900 lt_prog_compiler_pic_F77=
12901 lt_prog_compiler_static_F77=
12903 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12904 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12906 if test "$GCC" = yes; then
12907 lt_prog_compiler_wl_F77='-Wl,'
12908 lt_prog_compiler_static_F77='-static'
12912 # All AIX code is PIC.
12913 if test "$host_cpu" = ia64; then
12914 # AIX 5 now supports IA64 processor
12915 lt_prog_compiler_static_F77='-Bstatic'
12920 # FIXME: we need at least 68020 code to build shared libraries, but
12921 # adding the `-m68020' flag to GCC prevents building anything better,
12923 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12926 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12927 # PIC is the default for these OSes.
12930 mingw* | pw32* | os2*)
12931 # This hack is so that the source file can tell whether it is being
12932 # built for inclusion in a dll (and should export symbols for example).
12933 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12936 darwin* | rhapsody*)
12937 # PIC is the default on this platform
12938 # Common symbols not allowed in MH_DYLIB files
12939 lt_prog_compiler_pic_F77='-fno-common'
12943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12944 # Instead, we relocate shared libraries at runtime.
12948 # Just because we use GCC doesn't mean we suddenly get shared libraries
12949 # on systems that don't support them.
12950 lt_prog_compiler_can_build_shared_F77=no
12955 if test -d /usr/nec; then
12956 lt_prog_compiler_pic_F77=-Kconform_pic
12961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12962 # not for PA HP-UX.
12968 lt_prog_compiler_pic_F77='-fPIC'
12974 lt_prog_compiler_pic_F77='-fPIC'
12978 # PORTME Check for flag to pass linker flags through the system compiler.
12981 lt_prog_compiler_wl_F77='-Wl,'
12982 if test "$host_cpu" = ia64; then
12983 # AIX 5 now supports IA64 processor
12984 lt_prog_compiler_static_F77='-Bstatic'
12986 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12990 # PIC is the default on this platform
12991 # Common symbols not allowed in MH_DYLIB files
12992 case $cc_basename in
12994 lt_prog_compiler_pic_F77='-qnocommon'
12995 lt_prog_compiler_wl_F77='-Wl,'
13000 mingw* | pw32* | os2*)
13001 # This hack is so that the source file can tell whether it is being
13002 # built for inclusion in a dll (and should export symbols for example).
13003 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13006 hpux9* | hpux10* | hpux11*)
13007 lt_prog_compiler_wl_F77='-Wl,'
13008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13009 # not for PA HP-UX.
13015 lt_prog_compiler_pic_F77='+Z'
13018 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13019 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13022 irix5* | irix6* | nonstopux*)
13023 lt_prog_compiler_wl_F77='-Wl,'
13024 # PIC (with -KPIC) is the default.
13025 lt_prog_compiler_static_F77='-non_shared'
13029 lt_prog_compiler_pic_F77='-KPIC'
13030 lt_prog_compiler_static_F77='-Bstatic'
13033 linux* | k*bsd*-gnu)
13034 case $cc_basename in
13036 lt_prog_compiler_wl_F77='-Wl,'
13037 lt_prog_compiler_pic_F77='-KPIC'
13038 lt_prog_compiler_static_F77='-static'
13040 pgcc* | pgf77* | pgf90* | pgf95*)
13041 # Portland Group compilers (*not* the Pentium gcc compiler,
13042 # which looks to be a dead project)
13043 lt_prog_compiler_wl_F77='-Wl,'
13044 lt_prog_compiler_pic_F77='-fpic'
13045 lt_prog_compiler_static_F77='-Bstatic'
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 # All Alpha code is PIC.
13050 lt_prog_compiler_static_F77='-non_shared'
13055 osf3* | osf4* | osf5*)
13056 lt_prog_compiler_wl_F77='-Wl,'
13057 # All OSF/1 code is PIC.
13058 lt_prog_compiler_static_F77='-non_shared'
13062 lt_prog_compiler_pic_F77='-KPIC'
13063 lt_prog_compiler_static_F77='-Bstatic'
13064 case $cc_basename in
13065 f77* | f90* | f95*)
13066 lt_prog_compiler_wl_F77='-Qoption ld ';;
13068 lt_prog_compiler_wl_F77='-Wl,';;
13073 lt_prog_compiler_wl_F77='-Qoption ld '
13074 lt_prog_compiler_pic_F77='-PIC'
13075 lt_prog_compiler_static_F77='-Bstatic'
13078 sysv4 | sysv4.2uw2* | sysv4.3*)
13079 lt_prog_compiler_wl_F77='-Wl,'
13080 lt_prog_compiler_pic_F77='-KPIC'
13081 lt_prog_compiler_static_F77='-Bstatic'
13085 if test -d /usr/nec ;then
13086 lt_prog_compiler_pic_F77='-Kconform_pic'
13087 lt_prog_compiler_static_F77='-Bstatic'
13091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13092 lt_prog_compiler_wl_F77='-Wl,'
13093 lt_prog_compiler_pic_F77='-KPIC'
13094 lt_prog_compiler_static_F77='-Bstatic'
13098 lt_prog_compiler_wl_F77='-Wl,'
13099 lt_prog_compiler_can_build_shared_F77=no
13103 lt_prog_compiler_pic_F77='-pic'
13104 lt_prog_compiler_static_F77='-Bstatic'
13108 lt_prog_compiler_can_build_shared_F77=no
13113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13114 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13117 # Check to make sure the PIC flag actually works.
13119 if test -n "$lt_prog_compiler_pic_F77"; then
13121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13123 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 lt_prog_compiler_pic_works_F77=no
13127 ac_outfile=conftest.$ac_objext
13128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13129 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13130 # Insert the option either (1) after the last *FLAGS variable, or
13131 # (2) before a word containing "conftest.", or (3) at the end.
13132 # Note that $ac_compile itself does not contain backslashes and begins
13133 # with a dollar sign (not a hyphen), so the echo should work correctly.
13134 # The option is referenced via a variable to avoid confusing sed.
13135 lt_compile=`echo "$ac_compile" | $SED \
13136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138 -e 's:$: $lt_compiler_flag:'`
13139 (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
13140 (eval "$lt_compile" 2>conftest.err)
13142 cat conftest.err >&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 if (exit $ac_status) && test -s "$ac_outfile"; then
13145 # The compiler can only warn and ignore the option if not recognized
13146 # So say no if there are warnings other than the usual output.
13147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13150 lt_prog_compiler_pic_works_F77=yes
13156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13157 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13159 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13160 case $lt_prog_compiler_pic_F77 in
13162 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13165 lt_prog_compiler_pic_F77=
13166 lt_prog_compiler_can_build_shared_F77=no
13171 # For platforms which do not support PIC, -DPIC is meaningless:
13173 lt_prog_compiler_pic_F77=
13176 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13181 # Check to make sure the static flag actually works.
13183 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13184 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13185 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13186 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 lt_prog_compiler_static_works_F77=no
13190 save_LDFLAGS="$LDFLAGS"
13191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13192 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13194 # The linker can only warn and ignore the option if not recognized
13195 # So say no if there are warnings
13196 if test -s conftest.err; then
13197 # Append any errors to the config.log.
13198 cat conftest.err 1>&5
13199 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13201 if diff conftest.exp conftest.er2 >/dev/null; then
13202 lt_prog_compiler_static_works_F77=yes
13205 lt_prog_compiler_static_works_F77=yes
13209 LDFLAGS="$save_LDFLAGS"
13212 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13213 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13215 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13218 lt_prog_compiler_static_F77=
13222 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13223 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13224 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 lt_cv_prog_compiler_c_o_F77=no
13228 $rm -r conftest 2>/dev/null
13232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13234 lt_compiler_flag="-o out/conftest2.$ac_objext"
13235 # Insert the option either (1) after the last *FLAGS variable, or
13236 # (2) before a word containing "conftest.", or (3) at the end.
13237 # Note that $ac_compile itself does not contain backslashes and begins
13238 # with a dollar sign (not a hyphen), so the echo should work correctly.
13239 lt_compile=`echo "$ac_compile" | $SED \
13240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13242 -e 's:$: $lt_compiler_flag:'`
13243 (eval echo "\"\$as_me:13243: $lt_compile\"" >&5)
13244 (eval "$lt_compile" 2>out/conftest.err)
13246 cat out/conftest.err >&5
13247 echo "$as_me:13247: \$? = $ac_status" >&5
13248 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13250 # The compiler can only warn and ignore the option if not recognized
13251 # So say no if there are warnings
13252 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13253 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13254 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13255 lt_cv_prog_compiler_c_o_F77=yes
13260 # SGI C++ compiler will create directory out/ii_files/ for
13261 # template instantiation
13262 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13263 $rm out/* && rmdir out
13269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13273 hard_links="nottested"
13274 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13275 # do not overwrite the value of need_locks provided by the user
13276 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13282 ln conftest.a conftest.b 2>&5 || hard_links=no
13283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13284 echo "$as_me:$LINENO: result: $hard_links" >&5
13285 echo "${ECHO_T}$hard_links" >&6
13286 if test "$hard_links" = no; then
13287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13299 allow_undefined_flag_F77=
13300 enable_shared_with_static_runtimes_F77=no
13302 archive_expsym_cmds_F77=
13303 old_archive_From_new_cmds_F77=
13304 old_archive_from_expsyms_cmds_F77=
13305 export_dynamic_flag_spec_F77=
13306 whole_archive_flag_spec_F77=
13307 thread_safe_flag_spec_F77=
13308 hardcode_libdir_flag_spec_F77=
13309 hardcode_libdir_flag_spec_ld_F77=
13310 hardcode_libdir_separator_F77=
13311 hardcode_direct_F77=no
13312 hardcode_minus_L_F77=no
13313 hardcode_shlibpath_var_F77=unsupported
13314 link_all_deplibs_F77=unknown
13315 hardcode_automatic_F77=no
13317 module_expsym_cmds_F77=
13318 always_export_symbols_F77=no
13319 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13320 # include_expsyms should be a list of space-separated symbols to be *always*
13321 # included in the symbol list
13322 include_expsyms_F77=
13323 # exclude_expsyms can be an extended regexp of symbols to exclude
13324 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13326 # as well as any symbol that contains `d'.
13327 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13329 # platforms (ab)use it in PIC code, but their linkers get confused if
13330 # the symbol is explicitly referenced. Since portable code cannot
13331 # rely on this symbol name, it's probably fine to never include it in
13332 # preloaded symbol tables.
13333 extract_expsyms_cmds=
13334 # Just being paranoid about ensuring that cc_basename is set.
13335 for cc_temp in $compiler""; do
13337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13346 cygwin* | mingw* | pw32*)
13347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13348 # When not using gcc, we currently assume that we are using
13349 # Microsoft Visual C++.
13350 if test "$GCC" != yes; then
13355 # we just hope/assume this is gcc and not c89 (= MSVC++)
13364 if test "$with_gnu_ld" = yes; then
13365 # If archive_cmds runs LD, not CC, wlarc should be empty
13368 # Set some defaults for GNU ld with shared library support. These
13369 # are reset later if shared libraries are not supported. Putting them
13370 # here allows them to be overridden if necessary.
13371 runpath_var=LD_RUN_PATH
13372 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13373 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13374 # ancient GNU ld didn't support --whole-archive et. al.
13375 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13376 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13378 whole_archive_flag_spec_F77=
13380 supports_anon_versioning=no
13381 case `$LD -v 2>/dev/null` in
13382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13385 *\ 2.11.*) ;; # other 2.11 versions
13386 *) supports_anon_versioning=yes ;;
13389 # See if GNU ld supports shared libraries.
13391 aix3* | aix4* | aix5*)
13392 # On AIX/PPC, the GNU linker is very broken
13393 if test "$host_cpu" != ia64; then
13397 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13398 *** to be unable to reliably create shared libraries on AIX.
13399 *** Therefore, libtool is disabling shared libraries support. If you
13400 *** really care for shared libraries, you may want to modify your PATH
13401 *** so that a non-GNU linker is found, and then restart.
13408 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)'
13409 hardcode_libdir_flag_spec_F77='-L$libdir'
13410 hardcode_minus_L_F77=yes
13412 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13413 # that the semantics of dynamic libraries on AmigaOS, at least up
13414 # to version 4, is to share data among multiple programs linked
13415 # with the same dynamic library. Since this doesn't match the
13416 # behavior of shared libraries on other platforms, we can't use
13422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13423 allow_undefined_flag_F77=unsupported
13424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13425 # support --undefined. This deserves some investigation. FIXME
13426 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13432 cygwin* | mingw* | pw32*)
13433 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13434 # as there is no search path for DLLs.
13435 hardcode_libdir_flag_spec_F77='-L$libdir'
13436 allow_undefined_flag_F77=unsupported
13437 always_export_symbols_F77=no
13438 enable_shared_with_static_runtimes_F77=yes
13439 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13441 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13442 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13443 # If the export-symbols file already is a .def file (1st line
13444 # is EXPORTS), use it as is; otherwise, prepend...
13445 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13446 cp $export_symbols $output_objdir/$soname.def;
13448 echo EXPORTS > $output_objdir/$soname.def;
13449 cat $export_symbols >> $output_objdir/$soname.def;
13451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13458 hardcode_direct_F77=no
13459 hardcode_shlibpath_var_F77=no
13460 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13461 export_dynamic_flag_spec_F77='${wl}-E'
13462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13463 # Instead, shared libraries are loaded at an image base (0x10000000 by
13464 # default) and relocated if they conflict, which is a slow very memory
13465 # consuming and fragmenting process. To avoid this, we pick a random,
13466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13468 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'
13469 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'
13472 linux* | k*bsd*-gnu)
13473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13475 case $cc_basename,$host_cpu in
13476 pgcc*) # Portland Group C compiler
13477 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'
13478 tmp_addflag=' $pic_flag'
13480 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13481 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'
13482 tmp_addflag=' $pic_flag -Mnomain' ;;
13483 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13484 tmp_addflag=' -i_dynamic' ;;
13485 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13486 tmp_addflag=' -i_dynamic -nofor_main' ;;
13487 ifc* | ifort*) # Intel Fortran compiler
13488 tmp_addflag=' -nofor_main' ;;
13490 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492 if test $supports_anon_versioning = yes; then
13493 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13495 $echo "local: *; };" >> $output_objdir/$libname.ver~
13496 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13498 link_all_deplibs_F77=no
13504 netbsd* | netbsdelf*-gnu)
13505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13520 *** create shared libraries on Solaris systems. Therefore, libtool
13521 *** is disabling shared libraries support. We urge you to upgrade GNU
13522 *** binutils to release 2.9.1 or newer. Another option is to modify
13523 *** your PATH or compiler configuration so that the native linker is
13524 *** used, and then restart.
13527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13536 case `$LD -v 2>&1` in
13537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13542 *** reliably create shared libraries on SCO systems. Therefore, libtool
13543 *** is disabling shared libraries support. We urge you to upgrade GNU
13544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13545 *** your PATH or compiler configuration so that the native linker is
13546 *** used, and then restart.
13551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13552 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13563 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13565 hardcode_direct_F77=yes
13566 hardcode_shlibpath_var_F77=no
13570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13579 if test "$ld_shlibs_F77" = no; then
13581 hardcode_libdir_flag_spec_F77=
13582 export_dynamic_flag_spec_F77=
13583 whole_archive_flag_spec_F77=
13586 # PORTME fill in a description of your system's linker (not GNU ld)
13589 allow_undefined_flag_F77=unsupported
13590 always_export_symbols_F77=yes
13591 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'
13592 # Note: this linker hardcodes the directories in LIBPATH if there
13593 # are no directories specified by -L.
13594 hardcode_minus_L_F77=yes
13595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13596 # Neither direct hardcoding nor static linking is supported with a
13598 hardcode_direct_F77=unsupported
13603 if test "$host_cpu" = ia64; then
13604 # On IA64, the linker does run time linking by default, so we don't
13605 # have to do anything special.
13606 aix_use_runtimelinking=no
13607 exp_sym_flag='-Bexport'
13610 # If we're using GNU nm, then we don't want the "-C" option.
13611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13613 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'
13615 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'
13617 aix_use_runtimelinking=no
13619 # Test if we are trying to use run time linking or normal
13620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13621 # need to do runtime linking.
13622 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13623 for ld_flag in $LDFLAGS; do
13624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13625 aix_use_runtimelinking=yes
13632 exp_sym_flag='-bexport'
13633 no_entry_flag='-bnoentry'
13636 # When large executables or shared objects are built, AIX ld can
13637 # have problems creating the table of contents. If linking a library
13638 # or program results in "error TOC overflow" add -mminimal-toc to
13639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13642 archive_cmds_F77=''
13643 hardcode_direct_F77=yes
13644 hardcode_libdir_separator_F77=':'
13645 link_all_deplibs_F77=yes
13647 if test "$GCC" = yes; then
13648 case $host_os in aix4.[012]|aix4.[012].*)
13649 # We only want to do this on AIX 4.2 and lower, the check
13650 # below for broken collect2 doesn't work under 4.3+
13651 collect2name=`${CC} -print-prog-name=collect2`
13652 if test -f "$collect2name" && \
13653 strings "$collect2name" | grep resolve_lib_name >/dev/null
13655 # We have reworked collect2
13656 hardcode_direct_F77=yes
13658 # We have old collect2
13659 hardcode_direct_F77=unsupported
13660 # It fails to find uninstalled libraries when the uninstalled
13661 # path is not listed in the libpath. Setting hardcode_minus_L
13662 # to unsupported forces relinking
13663 hardcode_minus_L_F77=yes
13664 hardcode_libdir_flag_spec_F77='-L$libdir'
13665 hardcode_libdir_separator_F77=
13669 shared_flag='-shared'
13670 if test "$aix_use_runtimelinking" = yes; then
13671 shared_flag="$shared_flag "'${wl}-G'
13675 if test "$host_cpu" = ia64; then
13676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13677 # chokes on -Wl,-G. The following line is correct:
13680 if test "$aix_use_runtimelinking" = yes; then
13681 shared_flag='${wl}-G'
13683 shared_flag='${wl}-bM:SRE'
13688 # It seems that -bexpall does not export symbols beginning with
13689 # underscore (_), so it is better to generate a list of symbols to export.
13690 always_export_symbols_F77=yes
13691 if test "$aix_use_runtimelinking" = yes; then
13692 # Warning - without using the other runtime loading flags (-brtl),
13693 # -berok will link without error, but may produce a broken library.
13694 allow_undefined_flag_F77='-berok'
13695 # Determine the default libpath from the value encoded in an empty executable.
13696 cat >conftest.$ac_ext <<_ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>conftest.er1
13705 grep -v '^ *+' conftest.er1 >conftest.err
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13725 # Check for a 64-bit object if we didn't find anything.
13726 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; }
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13733 rm -f conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13737 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13738 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"
13740 if test "$host_cpu" = ia64; then
13741 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13742 allow_undefined_flag_F77="-z nodefs"
13743 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"
13745 # Determine the default libpath from the value encoded in an empty executable.
13746 cat >conftest.$ac_ext <<_ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753 (eval $ac_link) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest$ac_exeext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13775 # Check for a 64-bit object if we didn't find anything.
13776 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; }
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13783 rm -f conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13787 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13788 # Warning - without using the other run time loading flags,
13789 # -berok will link without error, but may produce a broken library.
13790 no_undefined_flag_F77=' ${wl}-bernotok'
13791 allow_undefined_flag_F77=' ${wl}-berok'
13792 # Exported symbols can be pulled into shared objects from archives
13793 whole_archive_flag_spec_F77='$convenience'
13794 archive_cmds_need_lc_F77=yes
13795 # This is similar to how AIX traditionally builds its shared libraries.
13796 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'
13802 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)'
13803 hardcode_libdir_flag_spec_F77='-L$libdir'
13804 hardcode_minus_L_F77=yes
13805 # see comment about different semantics on the GNU ld section
13810 export_dynamic_flag_spec_F77=-rdynamic
13813 cygwin* | mingw* | pw32*)
13814 # When not using gcc, we currently assume that we are using
13815 # Microsoft Visual C++.
13816 # hardcode_libdir_flag_spec is actually meaningless, as there is
13817 # no search path for DLLs.
13818 hardcode_libdir_flag_spec_F77=' '
13819 allow_undefined_flag_F77=unsupported
13820 # Tell ltmain to make .lib files, not .a files.
13822 # Tell ltmain to make .dll files, not .so files.
13824 # FIXME: Setting linknames here is a bad hack.
13825 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13826 # The linker will automatically build a .lib file if we build a DLL.
13827 old_archive_From_new_cmds_F77='true'
13828 # FIXME: Should let the user specify the lib program.
13829 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13830 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13831 enable_shared_with_static_runtimes_F77=yes
13834 darwin* | rhapsody*)
13836 rhapsody* | darwin1.[012])
13837 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13841 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13843 case ${MACOSX_DEPLOYMENT_TARGET} in
13845 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13848 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13854 archive_cmds_need_lc_F77=no
13855 hardcode_direct_F77=no
13856 hardcode_automatic_F77=yes
13857 hardcode_shlibpath_var_F77=unsupported
13858 whole_archive_flag_spec_F77=''
13859 link_all_deplibs_F77=yes
13860 if test "$GCC" = yes ; then
13861 output_verbose_link_cmd='echo'
13862 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13863 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13865 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}'
13866 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}'
13868 case $cc_basename in
13870 output_verbose_link_cmd='echo'
13871 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13872 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13874 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}'
13875 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}'
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_libdir_flag_spec_F77='-L$libdir'
13887 hardcode_shlibpath_var_F77=no
13894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13895 # support. Future versions do this automatically, but an explicit c++rt0.o
13896 # does not break anything, and helps significantly (at the cost of a little
13899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13900 hardcode_libdir_flag_spec_F77='-R$libdir'
13901 hardcode_direct_F77=yes
13902 hardcode_shlibpath_var_F77=no
13905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13907 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13908 hardcode_direct_F77=yes
13909 hardcode_minus_L_F77=yes
13910 hardcode_shlibpath_var_F77=no
13913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13914 freebsd* | dragonfly*)
13915 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13916 hardcode_libdir_flag_spec_F77='-R$libdir'
13917 hardcode_direct_F77=yes
13918 hardcode_shlibpath_var_F77=no
13922 if test "$GCC" = yes; then
13923 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'
13925 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'
13927 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13928 hardcode_libdir_separator_F77=:
13929 hardcode_direct_F77=yes
13931 # hardcode_minus_L: Not really in the search PATH,
13932 # but as the default location of the library.
13933 hardcode_minus_L_F77=yes
13934 export_dynamic_flag_spec_F77='${wl}-E'
13938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13939 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13941 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13943 if test "$with_gnu_ld" = no; then
13944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945 hardcode_libdir_separator_F77=:
13947 hardcode_direct_F77=yes
13948 export_dynamic_flag_spec_F77='${wl}-E'
13950 # hardcode_minus_L: Not really in the search PATH,
13951 # but as the default location of the library.
13952 hardcode_minus_L_F77=yes
13957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13960 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13963 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13966 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13975 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13978 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13982 if test "$with_gnu_ld" = no; then
13983 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13984 hardcode_libdir_separator_F77=:
13988 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13989 hardcode_direct_F77=no
13990 hardcode_shlibpath_var_F77=no
13993 hardcode_direct_F77=yes
13994 export_dynamic_flag_spec_F77='${wl}-E'
13996 # hardcode_minus_L: Not really in the search PATH,
13997 # but as the default location of the library.
13998 hardcode_minus_L_F77=yes
14004 irix5* | irix6* | nonstopux*)
14005 if test "$GCC" = yes; then
14006 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'
14008 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'
14009 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14011 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14012 hardcode_libdir_separator_F77=:
14013 link_all_deplibs_F77=yes
14016 netbsd* | netbsdelf*-gnu)
14017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14018 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14020 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14022 hardcode_libdir_flag_spec_F77='-R$libdir'
14023 hardcode_direct_F77=yes
14024 hardcode_shlibpath_var_F77=no
14028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029 hardcode_direct_F77=yes
14030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14031 hardcode_libdir_separator_F77=:
14032 hardcode_shlibpath_var_F77=no
14036 hardcode_direct_F77=yes
14037 hardcode_shlibpath_var_F77=no
14038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14039 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14040 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14041 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14042 export_dynamic_flag_spec_F77='${wl}-E'
14045 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14050 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14051 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14058 hardcode_libdir_flag_spec_F77='-L$libdir'
14059 hardcode_minus_L_F77=yes
14060 allow_undefined_flag_F77=unsupported
14061 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'
14062 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14066 if test "$GCC" = yes; then
14067 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14068 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'
14070 allow_undefined_flag_F77=' -expect_unresolved \*'
14071 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'
14073 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14074 hardcode_libdir_separator_F77=:
14077 osf4* | osf5*) # as osf3* with the addition of -msym flag
14078 if test "$GCC" = yes; then
14079 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14080 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'
14081 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14083 allow_undefined_flag_F77=' -expect_unresolved \*'
14084 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'
14085 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~
14086 $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'
14088 # Both c and cxx compiler support -rpath directly
14089 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14091 hardcode_libdir_separator_F77=:
14095 no_undefined_flag_F77=' -z text'
14096 if test "$GCC" = yes; then
14098 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14099 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14100 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14103 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14104 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14107 hardcode_libdir_flag_spec_F77='-R$libdir'
14108 hardcode_shlibpath_var_F77=no
14110 solaris2.[0-5] | solaris2.[0-5].*) ;;
14112 # The compiler driver will combine linker options so we
14113 # cannot just pass the convience library names through
14114 # without $wl, iff we do not link with $LD.
14115 # Luckily, gcc supports the same syntax we need for Sun Studio.
14116 # Supported since Solaris 2.6 (maybe 2.5.1?)
14119 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14121 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' ;;
14124 link_all_deplibs_F77=yes
14128 if test "x$host_vendor" = xsequent; then
14129 # Use $CC to link under sequent, because it throws in some extra .o
14130 # files that make .init and .fini sections work.
14131 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14133 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14135 hardcode_libdir_flag_spec_F77='-L$libdir'
14136 hardcode_direct_F77=yes
14137 hardcode_minus_L_F77=yes
14138 hardcode_shlibpath_var_F77=no
14142 case $host_vendor in
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_direct_F77=yes # is this really true???
14148 ## LD is ld it makes a PLAMLIB
14149 ## CC just makes a GrossModule.
14150 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14151 reload_cmds_F77='$CC -r -o $output$reload_objs'
14152 hardcode_direct_F77=no
14155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14156 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14159 runpath_var='LD_RUN_PATH'
14160 hardcode_shlibpath_var_F77=no
14164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_shlibpath_var_F77=no
14166 export_dynamic_flag_spec_F77='-Bexport'
14170 if test -d /usr/nec; then
14171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_shlibpath_var_F77=no
14173 runpath_var=LD_RUN_PATH
14174 hardcode_runpath_var=yes
14179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14180 no_undefined_flag_F77='${wl}-z,text'
14181 archive_cmds_need_lc_F77=no
14182 hardcode_shlibpath_var_F77=no
14183 runpath_var='LD_RUN_PATH'
14185 if test "$GCC" = yes; then
14186 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194 sysv5* | sco3.2v5* | sco5v6*)
14195 # Note: We can NOT use -z defs as we might desire, because we do not
14196 # link with -lc, and that would cause any symbols used from libc to
14197 # always be unresolved, which means just about no library would
14198 # ever link correctly. If we're not using GNU ld we use -z text
14199 # though, which does catch some bad symbols but isn't as heavy-handed
14201 no_undefined_flag_F77='${wl}-z,text'
14202 allow_undefined_flag_F77='${wl}-z,nodefs'
14203 archive_cmds_need_lc_F77=no
14204 hardcode_shlibpath_var_F77=no
14205 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14206 hardcode_libdir_separator_F77=':'
14207 link_all_deplibs_F77=yes
14208 export_dynamic_flag_spec_F77='${wl}-Bexport'
14209 runpath_var='LD_RUN_PATH'
14211 if test "$GCC" = yes; then
14212 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14216 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222 hardcode_libdir_flag_spec_F77='-L$libdir'
14223 hardcode_shlibpath_var_F77=no
14232 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14233 echo "${ECHO_T}$ld_shlibs_F77" >&6
14234 test "$ld_shlibs_F77" = no && can_build_shared=no
14237 # Do we need to explicitly link libc?
14239 case "x$archive_cmds_need_lc_F77" in
14241 # Assume -lc should be added
14242 archive_cmds_need_lc_F77=yes
14244 if test "$enable_shared" = yes && test "$GCC" = yes; then
14245 case $archive_cmds_F77 in
14247 # FIXME: we may have to deal with multi-command sequences.
14250 # Test whether the compiler implicitly links with -lc since on some
14251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14252 # to ld, don't add -lc before -lgcc.
14253 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14254 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } 2>conftest.err; then
14265 libobjs=conftest.$ac_objext
14267 wl=$lt_prog_compiler_wl_F77
14268 pic_flag=$lt_prog_compiler_pic_F77
14274 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14275 allow_undefined_flag_F77=
14276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14277 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }
14282 archive_cmds_need_lc_F77=no
14284 archive_cmds_need_lc_F77=yes
14286 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14288 cat conftest.err 1>&5
14291 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14292 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14301 library_names_spec=
14302 libname_spec='lib$name'
14306 postuninstall_cmds=
14310 shlibpath_overrides_runpath=unknown
14312 dynamic_linker="$host_os ld.so"
14313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14314 if test "$GCC" = yes; then
14315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14316 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14317 # if the path contains ";" then we assume it to be the separator
14318 # otherwise default to the standard path separator (i.e. ":") - it is
14319 # assumed that no part of a normal pathname contains ";" but that should
14320 # okay in the real world where ";" in dirpaths is itself problematic.
14321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14328 need_lib_prefix=unknown
14329 hardcode_into_libs=no
14331 # when you set need_version to no, make sure it does not cause -set_version
14332 # flags to be left without arguments
14333 need_version=unknown
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14339 shlibpath_var=LIBPATH
14341 # AIX 3 has no versioning support, so we append a major version to the name.
14342 soname_spec='${libname}${release}${shared_ext}$major'
14349 hardcode_into_libs=yes
14350 if test "$host_cpu" = ia64; then
14351 # AIX 5 supports IA64
14352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14353 shlibpath_var=LD_LIBRARY_PATH
14355 # With GCC up to 2.95.x, collect2 would create an import file
14356 # for dependence libraries. The import file would start with
14357 # the line `#! .'. This would cause the generated library to
14358 # depend on `.', always an invalid library. This was fixed in
14359 # development snapshots of GCC prior to 3.0.
14361 aix4 | aix4.[01] | aix4.[01].*)
14362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14364 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14367 can_build_shared=no
14371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14372 # soname into executable. Probably we can add versioning support to
14373 # collect2, so additional links can be useful in future.
14374 if test "$aix_use_runtimelinking" = yes; then
14375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14376 # instead of lib<name>.a to let people know that these are not
14377 # typical AIX shared libraries.
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 # We preserve .a as extension for shared libraries through AIX4.2
14381 # and later when we are not doing run time linking.
14382 library_names_spec='${libname}${release}.a $libname.a'
14383 soname_spec='${libname}${release}${shared_ext}$major'
14385 shlibpath_var=LIBPATH
14390 library_names_spec='$libname.ixlibrary $libname.a'
14391 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14392 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'
14396 library_names_spec='${libname}${shared_ext}'
14397 dynamic_linker="$host_os ld.so"
14398 shlibpath_var=LIBRARY_PATH
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14410 # the default ld.so.conf also contains /usr/contrib/lib and
14411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14412 # libtool to hard-code these into programs
14415 cygwin* | mingw* | pw32*)
14416 version_type=windows
14421 case $GCC,$host_os in
14422 yes,cygwin* | yes,mingw* | yes,pw32*)
14423 library_names_spec='$libname.dll.a'
14424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14425 postinstall_cmds='base_file=`basename \${file}`~
14426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14427 dldir=$destdir/`dirname \$dlpath`~
14428 test -d \$dldir || mkdir -p \$dldir~
14429 $install_prog $dir/$dlname \$dldir/$dlname~
14430 chmod a+x \$dldir/$dlname'
14431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14432 dlpath=$dir/\$dldll~
14434 shlibpath_overrides_runpath=yes
14438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14443 # MinGW DLLs use traditional 'lib' prefix
14444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14446 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14447 # It is most probably a Windows format PATH printed by
14448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14449 # path with ; separators, and with drive letters. We can handle the
14450 # drive letters (cygwin fileutils understands them), so leave them,
14451 # especially as we might pass files found there to a mingw objdump,
14452 # which wouldn't understand a cygwinified path. Ahh.
14453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14459 # pw32 DLLs use 'pw' prefix rather than 'lib'
14460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14469 dynamic_linker='Win32 ld.exe'
14470 # FIXME: first we should search . and the directory the executable is in
14474 darwin* | rhapsody*)
14475 dynamic_linker="$host_os dyld"
14476 version_type=darwin
14479 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14480 soname_spec='${libname}${release}${major}$shared_ext'
14481 shlibpath_overrides_runpath=yes
14482 shlibpath_var=DYLD_LIBRARY_PATH
14483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14484 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14485 if test "$GCC" = yes; then
14486 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"`
14488 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14499 shlibpath_var=LD_LIBRARY_PATH
14506 freebsd* | dragonfly*)
14507 # DragonFly does not have aout. When/if they implement a new
14508 # versioning mechanism, adjust this.
14509 if test -x /usr/bin/objformat; then
14510 objformat=`/usr/bin/objformat`
14513 freebsd[123]*) objformat=aout ;;
14514 *) objformat=elf ;;
14517 version_type=freebsd-$objformat
14518 case $version_type in
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14529 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes
14534 freebsd3.[01]* | freebsdelf3.[01]*)
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14540 shlibpath_overrides_runpath=no
14541 hardcode_into_libs=yes
14543 freebsd*) # from 4.6 on
14544 shlibpath_overrides_runpath=yes
14545 hardcode_into_libs=yes
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 hardcode_into_libs=yes
14560 hpux9* | hpux10* | hpux11*)
14561 # Give a soname corresponding to the major version so that dld.sl refuses to
14562 # link against other versions.
14569 hardcode_into_libs=yes
14570 dynamic_linker="$host_os dld.so"
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 if test "X$HPUX_IA64_MODE" = X32; then
14576 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14578 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14584 hardcode_into_libs=yes
14585 dynamic_linker="$host_os dld.sl"
14586 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14595 dynamic_linker="$host_os dld.sl"
14596 shlibpath_var=SHLIB_PATH
14597 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14602 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14603 postinstall_cmds='chmod 555 $lib'
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 hardcode_into_libs=yes
14618 irix5* | irix6* | nonstopux*)
14620 nonstopux*) version_type=nonstopux ;;
14622 if test "$lt_cv_prog_gnu_ld" = yes; then
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14633 irix5* | nonstopux*)
14634 libsuff= shlibsuff=
14637 case $LD in # libtool.m4 will add one of these switches to LD
14638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14639 libsuff= shlibsuff= libmagic=32-bit;;
14640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14641 libsuff=32 shlibsuff=N32 libmagic=N32;;
14642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14643 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14644 *) libsuff= shlibsuff= libmagic=never-match;;
14648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14649 shlibpath_overrides_runpath=no
14650 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14651 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14652 hardcode_into_libs=yes
14655 # No shared lib support for Linux oldld, aout, or coff.
14656 linux*oldld* | linux*aout* | linux*coff*)
14660 # This must be Linux ELF.
14661 linux* | k*bsd*-gnu)
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=no
14670 # This implies no fast_install, which is unacceptable.
14671 # Some rework will be needed to allow for fast_install
14672 # before this can be enabled.
14673 hardcode_into_libs=yes
14675 # Append ld.so.conf contents to the search path
14676 if test -f /etc/ld.so.conf; then
14677 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' ' '`
14678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14681 # We used to test for /lib/ld.so.1 and disable shared libraries on
14682 # powerpc, because MkLinux only supported shared libraries with the
14683 # GNU dynamic linker. Since this was broken with cross compilers,
14684 # most powerpc-linux boxes support dynamic linking these days and
14685 # people can always --disable-shared, the test was removed, and we
14686 # assume the GNU/Linux dynamic linker is in use.
14687 dynamic_linker='GNU/Linux ld.so'
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14698 hardcode_into_libs=yes
14699 dynamic_linker='NetBSD ld.elf_so'
14706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14709 dynamic_linker='NetBSD (a.out) ld.so'
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 dynamic_linker='NetBSD ld.elf_so'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=yes
14717 hardcode_into_libs=yes
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes
14739 sys_lib_dlsearch_path_spec="/usr/lib"
14741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14744 *) need_version=no ;;
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14751 openbsd2.[89] | openbsd2.[89].*)
14752 shlibpath_overrides_runpath=no
14755 shlibpath_overrides_runpath=yes
14759 shlibpath_overrides_runpath=yes
14764 libname_spec='$name'
14767 library_names_spec='$libname${shared_ext} $libname.a'
14768 dynamic_linker='OS/2 ld.exe'
14769 shlibpath_var=LIBPATH
14772 osf3* | osf4* | osf5*)
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 shlibpath_overrides_runpath=yes
14791 hardcode_into_libs=yes
14792 # ldd complains unless libraries are executable
14793 postinstall_cmds='chmod +x $lib'
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 shlibpath_overrides_runpath=yes
14802 if test "$with_gnu_ld" = yes; then
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 case $host_vendor in
14815 shlibpath_overrides_runpath=no
14817 export_dynamic_flag_spec='${wl}-Blargedynsym'
14818 runpath_var=LD_RUN_PATH
14826 shlibpath_overrides_runpath=no
14827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14833 if test -d /usr/nec ;then
14835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14836 soname_spec='$libname${shared_ext}.$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14842 version_type=freebsd-elf
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 hardcode_into_libs=yes
14849 if test "$with_gnu_ld" = yes; then
14850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14851 shlibpath_overrides_runpath=no
14853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14854 shlibpath_overrides_runpath=yes
14857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14861 sys_lib_dlsearch_path_spec='/usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
14875 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14876 echo "${ECHO_T}$dynamic_linker" >&6
14877 test "$dynamic_linker" = no && can_build_shared=no
14879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14880 if test "$GCC" = yes; then
14881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14884 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14885 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14886 hardcode_action_F77=
14887 if test -n "$hardcode_libdir_flag_spec_F77" || \
14888 test -n "$runpath_var_F77" || \
14889 test "X$hardcode_automatic_F77" = "Xyes" ; then
14891 # We can hardcode non-existant directories.
14892 if test "$hardcode_direct_F77" != no &&
14893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14894 # have to relink, otherwise we might link with an installed library
14895 # when we should be linking with a yet-to-be-installed one
14896 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14897 test "$hardcode_minus_L_F77" != no; then
14898 # Linking always hardcodes the temporary library directory.
14899 hardcode_action_F77=relink
14901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14902 hardcode_action_F77=immediate
14905 # We cannot hardcode anything, or else we can only hardcode existing
14907 hardcode_action_F77=unsupported
14909 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14910 echo "${ECHO_T}$hardcode_action_F77" >&6
14912 if test "$hardcode_action_F77" = relink; then
14913 # Fast installation is not supported
14914 enable_fast_install=no
14915 elif test "$shlibpath_overrides_runpath" = yes ||
14916 test "$enable_shared" = no; then
14917 # Fast installation is not necessary
14918 enable_fast_install=needless
14922 # The else clause should only fire when bootstrapping the
14923 # libtool distribution, otherwise you forgot to ship ltmain.sh
14924 # with your package, and you will get complaints that there are
14925 # no rules to generate ltmain.sh.
14926 if test -f "$ltmain"; then
14927 # See if we are running on zsh, and set the options which allow our commands through
14928 # without removal of \ escapes.
14929 if test -n "${ZSH_VERSION+set}" ; then
14930 setopt NO_GLOB_SUBST
14932 # Now quote all the things that may contain metacharacters while being
14933 # careful not to overquote the AC_SUBSTed values. We take copies of the
14934 # variables and quote the copies for generation of the libtool script.
14935 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14937 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14938 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14939 deplibs_check_method reload_flag reload_cmds need_locks \
14940 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14941 lt_cv_sys_global_symbol_to_c_name_address \
14942 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14943 old_postinstall_cmds old_postuninstall_cmds \
14947 lt_prog_compiler_wl_F77 \
14948 lt_prog_compiler_pic_F77 \
14949 lt_prog_compiler_static_F77 \
14950 lt_prog_compiler_no_builtin_flag_F77 \
14951 export_dynamic_flag_spec_F77 \
14952 thread_safe_flag_spec_F77 \
14953 whole_archive_flag_spec_F77 \
14954 enable_shared_with_static_runtimes_F77 \
14955 old_archive_cmds_F77 \
14956 old_archive_from_new_cmds_F77 \
14957 predep_objects_F77 \
14958 postdep_objects_F77 \
14961 compiler_lib_search_path_F77 \
14963 archive_expsym_cmds_F77 \
14964 postinstall_cmds_F77 \
14965 postuninstall_cmds_F77 \
14966 old_archive_from_expsyms_cmds_F77 \
14967 allow_undefined_flag_F77 \
14968 no_undefined_flag_F77 \
14969 export_symbols_cmds_F77 \
14970 hardcode_libdir_flag_spec_F77 \
14971 hardcode_libdir_flag_spec_ld_F77 \
14972 hardcode_libdir_separator_F77 \
14973 hardcode_automatic_F77 \
14975 module_expsym_cmds_F77 \
14976 lt_cv_prog_compiler_c_o_F77 \
14977 exclude_expsyms_F77 \
14978 include_expsyms_F77; do
14981 old_archive_cmds_F77 | \
14982 old_archive_from_new_cmds_F77 | \
14983 archive_cmds_F77 | \
14984 archive_expsym_cmds_F77 | \
14985 module_cmds_F77 | \
14986 module_expsym_cmds_F77 | \
14987 old_archive_from_expsyms_cmds_F77 | \
14988 export_symbols_cmds_F77 | \
14989 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14990 postinstall_cmds | postuninstall_cmds | \
14991 old_postinstall_cmds | old_postuninstall_cmds | \
14992 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14993 # Double-quote double-evaled strings.
14994 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15003 *'\$0 --fallback-echo"')
15004 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15010 cat <<__EOF__ >> "$cfgfile"
15011 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15015 # Shell to use when invoking shell scripts.
15018 # Whether or not to build shared libraries.
15019 build_libtool_libs=$enable_shared
15021 # Whether or not to build static libraries.
15022 build_old_libs=$enable_static
15024 # Whether or not to add -lc for building shared libraries.
15025 build_libtool_need_lc=$archive_cmds_need_lc_F77
15027 # Whether or not to disallow shared libs when runtime libs are static
15028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15030 # Whether or not to optimize for fast installation.
15031 fast_install=$enable_fast_install
15034 host_alias=$host_alias
15038 # The build system.
15039 build_alias=$build_alias
15043 # An echo program that does not interpret backslashes.
15048 AR_FLAGS=$lt_AR_FLAGS
15053 # LTCC compiler flags.
15054 LTCFLAGS=$lt_LTCFLAGS
15056 # A language-specific compiler.
15057 CC=$lt_compiler_F77
15059 # Is the compiler the GNU C compiler?
15065 # The linker used to build libraries.
15068 # Whether we need hard or soft links.
15071 # A BSD-compatible nm program.
15074 # A symbol stripping program
15077 # Used to examine libraries when file_magic_cmd begins "file"
15078 MAGIC_CMD=$MAGIC_CMD
15080 # Used on cygwin: DLL creation program.
15083 # Used on cygwin: object dumper.
15086 # Used on cygwin: assembler.
15089 # The name of the directory that contains temporary libtool files.
15092 # How to create reloadable object files.
15093 reload_flag=$lt_reload_flag
15094 reload_cmds=$lt_reload_cmds
15096 # How to pass a linker flag through the compiler.
15097 wl=$lt_lt_prog_compiler_wl_F77
15099 # Object file suffix (normally "o").
15100 objext="$ac_objext"
15102 # Old archive suffix (normally "a").
15105 # Shared library suffix (normally ".so").
15106 shrext_cmds='$shrext_cmds'
15108 # Executable file suffix (normally "").
15111 # Additional compiler flags for building library objects.
15112 pic_flag=$lt_lt_prog_compiler_pic_F77
15115 # What is the maximum length of a command?
15116 max_cmd_len=$lt_cv_sys_max_cmd_len
15118 # Does compiler simultaneously support -c and -o options?
15119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15121 # Must we lock files when doing compilation?
15122 need_locks=$lt_need_locks
15124 # Do we need the lib prefix for modules?
15125 need_lib_prefix=$need_lib_prefix
15127 # Do we need a version for libraries?
15128 need_version=$need_version
15130 # Whether dlopen is supported.
15131 dlopen_support=$enable_dlopen
15133 # Whether dlopen of programs is supported.
15134 dlopen_self=$enable_dlopen_self
15136 # Whether dlopen of statically linked programs is supported.
15137 dlopen_self_static=$enable_dlopen_self_static
15139 # Compiler flag to prevent dynamic linking.
15140 link_static_flag=$lt_lt_prog_compiler_static_F77
15142 # Compiler flag to turn off builtin functions.
15143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15145 # Compiler flag to allow reflexive dlopens.
15146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15148 # Compiler flag to generate shared objects directly from archives.
15149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15151 # Compiler flag to generate thread-safe objects.
15152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15154 # Library versioning type.
15155 version_type=$version_type
15157 # Format of library name prefix.
15158 libname_spec=$lt_libname_spec
15160 # List of archive names. First name is the real one, the rest are links.
15161 # The last name is the one that the linker finds with -lNAME.
15162 library_names_spec=$lt_library_names_spec
15164 # The coded name of the library, if different from the real name.
15165 soname_spec=$lt_soname_spec
15167 # Commands used to build and install an old-style archive.
15169 old_archive_cmds=$lt_old_archive_cmds_F77
15170 old_postinstall_cmds=$lt_old_postinstall_cmds
15171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15173 # Create an old-style archive from a shared archive.
15174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15176 # Create a temporary old-style archive to link instead of a shared archive.
15177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15179 # Commands used to build and install a shared archive.
15180 archive_cmds=$lt_archive_cmds_F77
15181 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15182 postinstall_cmds=$lt_postinstall_cmds
15183 postuninstall_cmds=$lt_postuninstall_cmds
15185 # Commands used to build a loadable module (assumed same as above if empty)
15186 module_cmds=$lt_module_cmds_F77
15187 module_expsym_cmds=$lt_module_expsym_cmds_F77
15189 # Commands to strip libraries.
15190 old_striplib=$lt_old_striplib
15191 striplib=$lt_striplib
15193 # Dependencies to place before the objects being linked to create a
15195 predep_objects=$lt_predep_objects_F77
15197 # Dependencies to place after the objects being linked to create a
15199 postdep_objects=$lt_postdep_objects_F77
15201 # Dependencies to place before the objects being linked to create a
15203 predeps=$lt_predeps_F77
15205 # Dependencies to place after the objects being linked to create a
15207 postdeps=$lt_postdeps_F77
15209 # The library search path used internally by the compiler when linking
15210 # a shared library.
15211 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15213 # Method to check whether dependent libraries are shared objects.
15214 deplibs_check_method=$lt_deplibs_check_method
15216 # Command to use when deplibs_check_method == file_magic.
15217 file_magic_cmd=$lt_file_magic_cmd
15219 # Flag that allows shared libraries with undefined symbols to be built.
15220 allow_undefined_flag=$lt_allow_undefined_flag_F77
15222 # Flag that forces no undefined symbols.
15223 no_undefined_flag=$lt_no_undefined_flag_F77
15225 # Commands used to finish a libtool library installation in a directory.
15226 finish_cmds=$lt_finish_cmds
15228 # Same as above, but a single script fragment to be evaled but not shown.
15229 finish_eval=$lt_finish_eval
15231 # Take the output of nm and produce a listing of raw symbols and C names.
15232 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15234 # Transform the output of nm in a proper C declaration
15235 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15237 # Transform the output of nm in a C name address pair
15238 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15240 # This is the shared library runtime path variable.
15241 runpath_var=$runpath_var
15243 # This is the shared library path variable.
15244 shlibpath_var=$shlibpath_var
15246 # Is shlibpath searched before the hard-coded library search path?
15247 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15249 # How to hardcode a shared library path into an executable.
15250 hardcode_action=$hardcode_action_F77
15252 # Whether we should hardcode library paths into libraries.
15253 hardcode_into_libs=$hardcode_into_libs
15255 # Flag to hardcode \$libdir into a binary during linking.
15256 # This must work even if \$libdir does not exist.
15257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15259 # If ld is used when linking, flag to hardcode \$libdir into
15260 # a binary during linking. This must work even if \$libdir does
15262 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15264 # Whether we need a single -rpath flag with a separated argument.
15265 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15267 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15268 # resulting binary.
15269 hardcode_direct=$hardcode_direct_F77
15271 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15272 # resulting binary.
15273 hardcode_minus_L=$hardcode_minus_L_F77
15275 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15276 # the resulting binary.
15277 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15279 # Set to yes if building a shared library automatically hardcodes DIR into the library
15280 # and all subsequent libraries and executables linked against it.
15281 hardcode_automatic=$hardcode_automatic_F77
15283 # Variables whose values should be saved in libtool wrapper scripts and
15284 # restored at relink time.
15285 variables_saved_for_relink="$variables_saved_for_relink"
15287 # Whether libtool must link a program against all its dependency libraries.
15288 link_all_deplibs=$link_all_deplibs_F77
15290 # Compile-time system search path for libraries
15291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15293 # Run-time system search path for libraries
15294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15296 # Fix the shell variable \$srcfile for the compiler.
15297 fix_srcfile_path="$fix_srcfile_path_F77"
15299 # Set to yes if exported symbols are required.
15300 always_export_symbols=$always_export_symbols_F77
15302 # The commands to list exported symbols.
15303 export_symbols_cmds=$lt_export_symbols_cmds_F77
15305 # The commands to extract the exported symbol list from a shared archive.
15306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15308 # Symbols that should not be listed in the preloaded symbols.
15309 exclude_expsyms=$lt_exclude_expsyms_F77
15311 # Symbols that must always be exported.
15312 include_expsyms=$lt_include_expsyms_F77
15314 # ### END LIBTOOL TAG CONFIG: $tagname
15320 # If there is no Makefile yet, we rely on a make rule to execute
15321 # `config.status --recheck' to rerun these tests and create the
15322 # libtool script then.
15323 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15324 if test -f "$ltmain_in"; then
15325 test -f Makefile && make "$ltmain"
15331 ac_cpp='$CPP $CPPFLAGS'
15332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15344 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15348 # Source file extension for Java test sources.
15351 # Object file extension for compiled Java test sources.
15355 # Code to be used in simple compile tests
15356 lt_simple_compile_test_code="class foo {}\n"
15358 # Code to be used in simple link tests
15359 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15363 # If no C compiler was specified, use CC.
15366 # If no C compiler flags were specified, use CFLAGS.
15367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15369 # Allow CC to be a program name with arguments.
15373 # save warnings/boilerplate of simple test code
15374 ac_outfile=conftest.$ac_objext
15375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15377 _lt_compiler_boilerplate=`cat conftest.err`
15380 ac_outfile=conftest.$ac_objext
15381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15383 _lt_linker_boilerplate=`cat conftest.err`
15387 # Allow CC to be a program name with arguments.
15392 for cc_temp in $compiler""; do
15394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15403 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15404 archive_cmds_need_lc_GCJ=no
15406 old_archive_cmds_GCJ=$old_archive_cmds
15409 lt_prog_compiler_no_builtin_flag_GCJ=
15411 if test "$GCC" = yes; then
15412 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15415 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 lt_cv_prog_compiler_rtti_exceptions=no
15421 ac_outfile=conftest.$ac_objext
15422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15423 lt_compiler_flag="-fno-rtti -fno-exceptions"
15424 # Insert the option either (1) after the last *FLAGS variable, or
15425 # (2) before a word containing "conftest.", or (3) at the end.
15426 # Note that $ac_compile itself does not contain backslashes and begins
15427 # with a dollar sign (not a hyphen), so the echo should work correctly.
15428 # The option is referenced via a variable to avoid confusing sed.
15429 lt_compile=`echo "$ac_compile" | $SED \
15430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432 -e 's:$: $lt_compiler_flag:'`
15433 (eval echo "\"\$as_me:15433: $lt_compile\"" >&5)
15434 (eval "$lt_compile" 2>conftest.err)
15436 cat conftest.err >&5
15437 echo "$as_me:15437: \$? = $ac_status" >&5
15438 if (exit $ac_status) && test -s "$ac_outfile"; then
15439 # The compiler can only warn and ignore the option if not recognized
15440 # So say no if there are warnings other than the usual output.
15441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15444 lt_cv_prog_compiler_rtti_exceptions=yes
15450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15454 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15461 lt_prog_compiler_wl_GCJ=
15462 lt_prog_compiler_pic_GCJ=
15463 lt_prog_compiler_static_GCJ=
15465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15468 if test "$GCC" = yes; then
15469 lt_prog_compiler_wl_GCJ='-Wl,'
15470 lt_prog_compiler_static_GCJ='-static'
15474 # All AIX code is PIC.
15475 if test "$host_cpu" = ia64; then
15476 # AIX 5 now supports IA64 processor
15477 lt_prog_compiler_static_GCJ='-Bstatic'
15482 # FIXME: we need at least 68020 code to build shared libraries, but
15483 # adding the `-m68020' flag to GCC prevents building anything better,
15485 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15489 # PIC is the default for these OSes.
15492 mingw* | pw32* | os2*)
15493 # This hack is so that the source file can tell whether it is being
15494 # built for inclusion in a dll (and should export symbols for example).
15495 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15498 darwin* | rhapsody*)
15499 # PIC is the default on this platform
15500 # Common symbols not allowed in MH_DYLIB files
15501 lt_prog_compiler_pic_GCJ='-fno-common'
15505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15506 # Instead, we relocate shared libraries at runtime.
15510 # Just because we use GCC doesn't mean we suddenly get shared libraries
15511 # on systems that don't support them.
15512 lt_prog_compiler_can_build_shared_GCJ=no
15517 if test -d /usr/nec; then
15518 lt_prog_compiler_pic_GCJ=-Kconform_pic
15523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15524 # not for PA HP-UX.
15530 lt_prog_compiler_pic_GCJ='-fPIC'
15536 lt_prog_compiler_pic_GCJ='-fPIC'
15540 # PORTME Check for flag to pass linker flags through the system compiler.
15543 lt_prog_compiler_wl_GCJ='-Wl,'
15544 if test "$host_cpu" = ia64; then
15545 # AIX 5 now supports IA64 processor
15546 lt_prog_compiler_static_GCJ='-Bstatic'
15548 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15552 # PIC is the default on this platform
15553 # Common symbols not allowed in MH_DYLIB files
15554 case $cc_basename in
15556 lt_prog_compiler_pic_GCJ='-qnocommon'
15557 lt_prog_compiler_wl_GCJ='-Wl,'
15562 mingw* | pw32* | os2*)
15563 # This hack is so that the source file can tell whether it is being
15564 # built for inclusion in a dll (and should export symbols for example).
15565 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15568 hpux9* | hpux10* | hpux11*)
15569 lt_prog_compiler_wl_GCJ='-Wl,'
15570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571 # not for PA HP-UX.
15577 lt_prog_compiler_pic_GCJ='+Z'
15580 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15584 irix5* | irix6* | nonstopux*)
15585 lt_prog_compiler_wl_GCJ='-Wl,'
15586 # PIC (with -KPIC) is the default.
15587 lt_prog_compiler_static_GCJ='-non_shared'
15591 lt_prog_compiler_pic_GCJ='-KPIC'
15592 lt_prog_compiler_static_GCJ='-Bstatic'
15595 linux* | k*bsd*-gnu)
15596 case $cc_basename in
15598 lt_prog_compiler_wl_GCJ='-Wl,'
15599 lt_prog_compiler_pic_GCJ='-KPIC'
15600 lt_prog_compiler_static_GCJ='-static'
15602 pgcc* | pgf77* | pgf90* | pgf95*)
15603 # Portland Group compilers (*not* the Pentium gcc compiler,
15604 # which looks to be a dead project)
15605 lt_prog_compiler_wl_GCJ='-Wl,'
15606 lt_prog_compiler_pic_GCJ='-fpic'
15607 lt_prog_compiler_static_GCJ='-Bstatic'
15610 lt_prog_compiler_wl_GCJ='-Wl,'
15611 # All Alpha code is PIC.
15612 lt_prog_compiler_static_GCJ='-non_shared'
15617 osf3* | osf4* | osf5*)
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 # All OSF/1 code is PIC.
15620 lt_prog_compiler_static_GCJ='-non_shared'
15624 lt_prog_compiler_pic_GCJ='-KPIC'
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15626 case $cc_basename in
15627 f77* | f90* | f95*)
15628 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15630 lt_prog_compiler_wl_GCJ='-Wl,';;
15635 lt_prog_compiler_wl_GCJ='-Qoption ld '
15636 lt_prog_compiler_pic_GCJ='-PIC'
15637 lt_prog_compiler_static_GCJ='-Bstatic'
15640 sysv4 | sysv4.2uw2* | sysv4.3*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 lt_prog_compiler_pic_GCJ='-KPIC'
15643 lt_prog_compiler_static_GCJ='-Bstatic'
15647 if test -d /usr/nec ;then
15648 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15649 lt_prog_compiler_static_GCJ='-Bstatic'
15653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 lt_prog_compiler_pic_GCJ='-KPIC'
15656 lt_prog_compiler_static_GCJ='-Bstatic'
15660 lt_prog_compiler_wl_GCJ='-Wl,'
15661 lt_prog_compiler_can_build_shared_GCJ=no
15665 lt_prog_compiler_pic_GCJ='-pic'
15666 lt_prog_compiler_static_GCJ='-Bstatic'
15670 lt_prog_compiler_can_build_shared_GCJ=no
15675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15676 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15679 # Check to make sure the PIC flag actually works.
15681 if test -n "$lt_prog_compiler_pic_GCJ"; then
15683 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15685 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 lt_prog_compiler_pic_works_GCJ=no
15689 ac_outfile=conftest.$ac_objext
15690 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15691 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15692 # Insert the option either (1) after the last *FLAGS variable, or
15693 # (2) before a word containing "conftest.", or (3) at the end.
15694 # Note that $ac_compile itself does not contain backslashes and begins
15695 # with a dollar sign (not a hyphen), so the echo should work correctly.
15696 # The option is referenced via a variable to avoid confusing sed.
15697 lt_compile=`echo "$ac_compile" | $SED \
15698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15700 -e 's:$: $lt_compiler_flag:'`
15701 (eval echo "\"\$as_me:15701: $lt_compile\"" >&5)
15702 (eval "$lt_compile" 2>conftest.err)
15704 cat conftest.err >&5
15705 echo "$as_me:15705: \$? = $ac_status" >&5
15706 if (exit $ac_status) && test -s "$ac_outfile"; then
15707 # The compiler can only warn and ignore the option if not recognized
15708 # So say no if there are warnings other than the usual output.
15709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15712 lt_prog_compiler_pic_works_GCJ=yes
15718 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15719 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15721 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15722 case $lt_prog_compiler_pic_GCJ in
15724 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15727 lt_prog_compiler_pic_GCJ=
15728 lt_prog_compiler_can_build_shared_GCJ=no
15733 # For platforms which do not support PIC, -DPIC is meaningless:
15735 lt_prog_compiler_pic_GCJ=
15738 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15743 # Check to make sure the static flag actually works.
15745 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15746 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15748 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 lt_prog_compiler_static_works_GCJ=no
15752 save_LDFLAGS="$LDFLAGS"
15753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15754 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15756 # The linker can only warn and ignore the option if not recognized
15757 # So say no if there are warnings
15758 if test -s conftest.err; then
15759 # Append any errors to the config.log.
15760 cat conftest.err 1>&5
15761 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15763 if diff conftest.exp conftest.er2 >/dev/null; then
15764 lt_prog_compiler_static_works_GCJ=yes
15767 lt_prog_compiler_static_works_GCJ=yes
15771 LDFLAGS="$save_LDFLAGS"
15774 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15775 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15777 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15780 lt_prog_compiler_static_GCJ=
15784 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15786 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 lt_cv_prog_compiler_c_o_GCJ=no
15790 $rm -r conftest 2>/dev/null
15794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15796 lt_compiler_flag="-o out/conftest2.$ac_objext"
15797 # Insert the option either (1) after the last *FLAGS variable, or
15798 # (2) before a word containing "conftest.", or (3) at the end.
15799 # Note that $ac_compile itself does not contain backslashes and begins
15800 # with a dollar sign (not a hyphen), so the echo should work correctly.
15801 lt_compile=`echo "$ac_compile" | $SED \
15802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15804 -e 's:$: $lt_compiler_flag:'`
15805 (eval echo "\"\$as_me:15805: $lt_compile\"" >&5)
15806 (eval "$lt_compile" 2>out/conftest.err)
15808 cat out/conftest.err >&5
15809 echo "$as_me:15809: \$? = $ac_status" >&5
15810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15812 # The compiler can only warn and ignore the option if not recognized
15813 # So say no if there are warnings
15814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15817 lt_cv_prog_compiler_c_o_GCJ=yes
15822 # SGI C++ compiler will create directory out/ii_files/ for
15823 # template instantiation
15824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15825 $rm out/* && rmdir out
15831 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15835 hard_links="nottested"
15836 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15837 # do not overwrite the value of need_locks provided by the user
15838 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15844 ln conftest.a conftest.b 2>&5 || hard_links=no
15845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15846 echo "$as_me:$LINENO: result: $hard_links" >&5
15847 echo "${ECHO_T}$hard_links" >&6
15848 if test "$hard_links" = no; then
15849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15861 allow_undefined_flag_GCJ=
15862 enable_shared_with_static_runtimes_GCJ=no
15864 archive_expsym_cmds_GCJ=
15865 old_archive_From_new_cmds_GCJ=
15866 old_archive_from_expsyms_cmds_GCJ=
15867 export_dynamic_flag_spec_GCJ=
15868 whole_archive_flag_spec_GCJ=
15869 thread_safe_flag_spec_GCJ=
15870 hardcode_libdir_flag_spec_GCJ=
15871 hardcode_libdir_flag_spec_ld_GCJ=
15872 hardcode_libdir_separator_GCJ=
15873 hardcode_direct_GCJ=no
15874 hardcode_minus_L_GCJ=no
15875 hardcode_shlibpath_var_GCJ=unsupported
15876 link_all_deplibs_GCJ=unknown
15877 hardcode_automatic_GCJ=no
15879 module_expsym_cmds_GCJ=
15880 always_export_symbols_GCJ=no
15881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15882 # include_expsyms should be a list of space-separated symbols to be *always*
15883 # included in the symbol list
15884 include_expsyms_GCJ=
15885 # exclude_expsyms can be an extended regexp of symbols to exclude
15886 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15888 # as well as any symbol that contains `d'.
15889 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15891 # platforms (ab)use it in PIC code, but their linkers get confused if
15892 # the symbol is explicitly referenced. Since portable code cannot
15893 # rely on this symbol name, it's probably fine to never include it in
15894 # preloaded symbol tables.
15895 extract_expsyms_cmds=
15896 # Just being paranoid about ensuring that cc_basename is set.
15897 for cc_temp in $compiler""; do
15899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15908 cygwin* | mingw* | pw32*)
15909 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15910 # When not using gcc, we currently assume that we are using
15911 # Microsoft Visual C++.
15912 if test "$GCC" != yes; then
15917 # we just hope/assume this is gcc and not c89 (= MSVC++)
15926 if test "$with_gnu_ld" = yes; then
15927 # If archive_cmds runs LD, not CC, wlarc should be empty
15930 # Set some defaults for GNU ld with shared library support. These
15931 # are reset later if shared libraries are not supported. Putting them
15932 # here allows them to be overridden if necessary.
15933 runpath_var=LD_RUN_PATH
15934 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15935 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15936 # ancient GNU ld didn't support --whole-archive et. al.
15937 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15938 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15940 whole_archive_flag_spec_GCJ=
15942 supports_anon_versioning=no
15943 case `$LD -v 2>/dev/null` in
15944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15947 *\ 2.11.*) ;; # other 2.11 versions
15948 *) supports_anon_versioning=yes ;;
15951 # See if GNU ld supports shared libraries.
15953 aix3* | aix4* | aix5*)
15954 # On AIX/PPC, the GNU linker is very broken
15955 if test "$host_cpu" != ia64; then
15959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15960 *** to be unable to reliably create shared libraries on AIX.
15961 *** Therefore, libtool is disabling shared libraries support. If you
15962 *** really care for shared libraries, you may want to modify your PATH
15963 *** so that a non-GNU linker is found, and then restart.
15970 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)'
15971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15972 hardcode_minus_L_GCJ=yes
15974 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15975 # that the semantics of dynamic libraries on AmigaOS, at least up
15976 # to version 4, is to share data among multiple programs linked
15977 # with the same dynamic library. Since this doesn't match the
15978 # behavior of shared libraries on other platforms, we can't use
15984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15985 allow_undefined_flag_GCJ=unsupported
15986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15987 # support --undefined. This deserves some investigation. FIXME
15988 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15994 cygwin* | mingw* | pw32*)
15995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15996 # as there is no search path for DLLs.
15997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15998 allow_undefined_flag_GCJ=unsupported
15999 always_export_symbols_GCJ=no
16000 enable_shared_with_static_runtimes_GCJ=yes
16001 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16005 # If the export-symbols file already is a .def file (1st line
16006 # is EXPORTS), use it as is; otherwise, prepend...
16007 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16008 cp $export_symbols $output_objdir/$soname.def;
16010 echo EXPORTS > $output_objdir/$soname.def;
16011 cat $export_symbols >> $output_objdir/$soname.def;
16013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16020 hardcode_direct_GCJ=no
16021 hardcode_shlibpath_var_GCJ=no
16022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16023 export_dynamic_flag_spec_GCJ='${wl}-E'
16024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16025 # Instead, shared libraries are loaded at an image base (0x10000000 by
16026 # default) and relocated if they conflict, which is a slow very memory
16027 # consuming and fragmenting process. To avoid this, we pick a random,
16028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16030 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'
16031 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'
16034 linux* | k*bsd*-gnu)
16035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16037 case $cc_basename,$host_cpu in
16038 pgcc*) # Portland Group C compiler
16039 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'
16040 tmp_addflag=' $pic_flag'
16042 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16043 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'
16044 tmp_addflag=' $pic_flag -Mnomain' ;;
16045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16046 tmp_addflag=' -i_dynamic' ;;
16047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16048 tmp_addflag=' -i_dynamic -nofor_main' ;;
16049 ifc* | ifort*) # Intel Fortran compiler
16050 tmp_addflag=' -nofor_main' ;;
16052 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 if test $supports_anon_versioning = yes; then
16055 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16057 $echo "local: *; };" >> $output_objdir/$libname.ver~
16058 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16060 link_all_deplibs_GCJ=no
16066 netbsd* | netbsdelf*-gnu)
16067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16072 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16077 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16081 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16082 *** create shared libraries on Solaris systems. Therefore, libtool
16083 *** is disabling shared libraries support. We urge you to upgrade GNU
16084 *** binutils to release 2.9.1 or newer. Another option is to modify
16085 *** your PATH or compiler configuration so that the native linker is
16086 *** used, and then restart.
16089 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16098 case `$LD -v 2>&1` in
16099 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16103 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16104 *** reliably create shared libraries on SCO systems. Therefore, libtool
16105 *** is disabling shared libraries support. We urge you to upgrade GNU
16106 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16107 *** your PATH or compiler configuration so that the native linker is
16108 *** used, and then restart.
16113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16114 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16125 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_direct_GCJ=yes
16128 hardcode_shlibpath_var_GCJ=no
16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16141 if test "$ld_shlibs_GCJ" = no; then
16143 hardcode_libdir_flag_spec_GCJ=
16144 export_dynamic_flag_spec_GCJ=
16145 whole_archive_flag_spec_GCJ=
16148 # PORTME fill in a description of your system's linker (not GNU ld)
16151 allow_undefined_flag_GCJ=unsupported
16152 always_export_symbols_GCJ=yes
16153 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'
16154 # Note: this linker hardcodes the directories in LIBPATH if there
16155 # are no directories specified by -L.
16156 hardcode_minus_L_GCJ=yes
16157 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16158 # Neither direct hardcoding nor static linking is supported with a
16160 hardcode_direct_GCJ=unsupported
16165 if test "$host_cpu" = ia64; then
16166 # On IA64, the linker does run time linking by default, so we don't
16167 # have to do anything special.
16168 aix_use_runtimelinking=no
16169 exp_sym_flag='-Bexport'
16172 # If we're using GNU nm, then we don't want the "-C" option.
16173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16174 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16175 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'
16177 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'
16179 aix_use_runtimelinking=no
16181 # Test if we are trying to use run time linking or normal
16182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16183 # need to do runtime linking.
16184 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16185 for ld_flag in $LDFLAGS; do
16186 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16187 aix_use_runtimelinking=yes
16194 exp_sym_flag='-bexport'
16195 no_entry_flag='-bnoentry'
16198 # When large executables or shared objects are built, AIX ld can
16199 # have problems creating the table of contents. If linking a library
16200 # or program results in "error TOC overflow" add -mminimal-toc to
16201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16204 archive_cmds_GCJ=''
16205 hardcode_direct_GCJ=yes
16206 hardcode_libdir_separator_GCJ=':'
16207 link_all_deplibs_GCJ=yes
16209 if test "$GCC" = yes; then
16210 case $host_os in aix4.[012]|aix4.[012].*)
16211 # We only want to do this on AIX 4.2 and lower, the check
16212 # below for broken collect2 doesn't work under 4.3+
16213 collect2name=`${CC} -print-prog-name=collect2`
16214 if test -f "$collect2name" && \
16215 strings "$collect2name" | grep resolve_lib_name >/dev/null
16217 # We have reworked collect2
16218 hardcode_direct_GCJ=yes
16220 # We have old collect2
16221 hardcode_direct_GCJ=unsupported
16222 # It fails to find uninstalled libraries when the uninstalled
16223 # path is not listed in the libpath. Setting hardcode_minus_L
16224 # to unsupported forces relinking
16225 hardcode_minus_L_GCJ=yes
16226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16227 hardcode_libdir_separator_GCJ=
16231 shared_flag='-shared'
16232 if test "$aix_use_runtimelinking" = yes; then
16233 shared_flag="$shared_flag "'${wl}-G'
16237 if test "$host_cpu" = ia64; then
16238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16239 # chokes on -Wl,-G. The following line is correct:
16242 if test "$aix_use_runtimelinking" = yes; then
16243 shared_flag='${wl}-G'
16245 shared_flag='${wl}-bM:SRE'
16250 # It seems that -bexpall does not export symbols beginning with
16251 # underscore (_), so it is better to generate a list of symbols to export.
16252 always_export_symbols_GCJ=yes
16253 if test "$aix_use_runtimelinking" = yes; then
16254 # Warning - without using the other runtime loading flags (-brtl),
16255 # -berok will link without error, but may produce a broken library.
16256 allow_undefined_flag_GCJ='-berok'
16257 # Determine the default libpath from the value encoded in an empty executable.
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest$ac_exeext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297 # Check for a 64-bit object if we didn't find anything.
16298 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; }
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16310 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"
16312 if test "$host_cpu" = ia64; then
16313 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16314 allow_undefined_flag_GCJ="-z nodefs"
16315 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"
16317 # Determine the default libpath from the value encoded in an empty executable.
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335 (eval $ac_link) 2>conftest.er1
16337 grep -v '^ *+' conftest.er1 >conftest.err
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16357 # Check for a 64-bit object if we didn't find anything.
16358 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; }
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16365 rm -f conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16369 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16370 # Warning - without using the other run time loading flags,
16371 # -berok will link without error, but may produce a broken library.
16372 no_undefined_flag_GCJ=' ${wl}-bernotok'
16373 allow_undefined_flag_GCJ=' ${wl}-berok'
16374 # Exported symbols can be pulled into shared objects from archives
16375 whole_archive_flag_spec_GCJ='$convenience'
16376 archive_cmds_need_lc_GCJ=yes
16377 # This is similar to how AIX traditionally builds its shared libraries.
16378 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'
16384 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)'
16385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16386 hardcode_minus_L_GCJ=yes
16387 # see comment about different semantics on the GNU ld section
16392 export_dynamic_flag_spec_GCJ=-rdynamic
16395 cygwin* | mingw* | pw32*)
16396 # When not using gcc, we currently assume that we are using
16397 # Microsoft Visual C++.
16398 # hardcode_libdir_flag_spec is actually meaningless, as there is
16399 # no search path for DLLs.
16400 hardcode_libdir_flag_spec_GCJ=' '
16401 allow_undefined_flag_GCJ=unsupported
16402 # Tell ltmain to make .lib files, not .a files.
16404 # Tell ltmain to make .dll files, not .so files.
16406 # FIXME: Setting linknames here is a bad hack.
16407 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16408 # The linker will automatically build a .lib file if we build a DLL.
16409 old_archive_From_new_cmds_GCJ='true'
16410 # FIXME: Should let the user specify the lib program.
16411 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16412 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16413 enable_shared_with_static_runtimes_GCJ=yes
16416 darwin* | rhapsody*)
16418 rhapsody* | darwin1.[012])
16419 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16423 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16425 case ${MACOSX_DEPLOYMENT_TARGET} in
16427 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16430 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16436 archive_cmds_need_lc_GCJ=no
16437 hardcode_direct_GCJ=no
16438 hardcode_automatic_GCJ=yes
16439 hardcode_shlibpath_var_GCJ=unsupported
16440 whole_archive_flag_spec_GCJ=''
16441 link_all_deplibs_GCJ=yes
16442 if test "$GCC" = yes ; then
16443 output_verbose_link_cmd='echo'
16444 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16445 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16447 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}'
16448 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}'
16450 case $cc_basename in
16452 output_verbose_link_cmd='echo'
16453 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16454 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16456 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}'
16457 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}'
16467 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16469 hardcode_shlibpath_var_GCJ=no
16476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16477 # support. Future versions do this automatically, but an explicit c++rt0.o
16478 # does not break anything, and helps significantly (at the cost of a little
16481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16482 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16483 hardcode_direct_GCJ=yes
16484 hardcode_shlibpath_var_GCJ=no
16487 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16489 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_direct_GCJ=yes
16491 hardcode_minus_L_GCJ=yes
16492 hardcode_shlibpath_var_GCJ=no
16495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16496 freebsd* | dragonfly*)
16497 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16498 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16499 hardcode_direct_GCJ=yes
16500 hardcode_shlibpath_var_GCJ=no
16504 if test "$GCC" = yes; then
16505 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'
16507 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'
16509 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16510 hardcode_libdir_separator_GCJ=:
16511 hardcode_direct_GCJ=yes
16513 # hardcode_minus_L: Not really in the search PATH,
16514 # but as the default location of the library.
16515 hardcode_minus_L_GCJ=yes
16516 export_dynamic_flag_spec_GCJ='${wl}-E'
16520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16521 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16523 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16525 if test "$with_gnu_ld" = no; then
16526 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16527 hardcode_libdir_separator_GCJ=:
16529 hardcode_direct_GCJ=yes
16530 export_dynamic_flag_spec_GCJ='${wl}-E'
16532 # hardcode_minus_L: Not really in the search PATH,
16533 # but as the default location of the library.
16534 hardcode_minus_L_GCJ=yes
16539 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16542 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16564 if test "$with_gnu_ld" = no; then
16565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16566 hardcode_libdir_separator_GCJ=:
16570 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16571 hardcode_direct_GCJ=no
16572 hardcode_shlibpath_var_GCJ=no
16575 hardcode_direct_GCJ=yes
16576 export_dynamic_flag_spec_GCJ='${wl}-E'
16578 # hardcode_minus_L: Not really in the search PATH,
16579 # but as the default location of the library.
16580 hardcode_minus_L_GCJ=yes
16586 irix5* | irix6* | nonstopux*)
16587 if test "$GCC" = yes; then
16588 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'
16590 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'
16591 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16594 hardcode_libdir_separator_GCJ=:
16595 link_all_deplibs_GCJ=yes
16598 netbsd* | netbsdelf*-gnu)
16599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16600 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16602 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16605 hardcode_direct_GCJ=yes
16606 hardcode_shlibpath_var_GCJ=no
16610 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_direct_GCJ=yes
16612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16613 hardcode_libdir_separator_GCJ=:
16614 hardcode_shlibpath_var_GCJ=no
16618 hardcode_direct_GCJ=yes
16619 hardcode_shlibpath_var_GCJ=no
16620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16621 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16624 export_dynamic_flag_spec_GCJ='${wl}-E'
16627 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16628 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16632 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16641 hardcode_minus_L_GCJ=yes
16642 allow_undefined_flag_GCJ=unsupported
16643 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'
16644 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16648 if test "$GCC" = yes; then
16649 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16650 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'
16652 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16653 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'
16655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16656 hardcode_libdir_separator_GCJ=:
16659 osf4* | osf5*) # as osf3* with the addition of -msym flag
16660 if test "$GCC" = yes; then
16661 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16662 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'
16663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16665 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16666 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'
16667 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~
16668 $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'
16670 # Both c and cxx compiler support -rpath directly
16671 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16673 hardcode_libdir_separator_GCJ=:
16677 no_undefined_flag_GCJ=' -z text'
16678 if test "$GCC" = yes; then
16680 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16681 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16682 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16685 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16689 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16690 hardcode_shlibpath_var_GCJ=no
16692 solaris2.[0-5] | solaris2.[0-5].*) ;;
16694 # The compiler driver will combine linker options so we
16695 # cannot just pass the convience library names through
16696 # without $wl, iff we do not link with $LD.
16697 # Luckily, gcc supports the same syntax we need for Sun Studio.
16698 # Supported since Solaris 2.6 (maybe 2.5.1?)
16701 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16703 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' ;;
16706 link_all_deplibs_GCJ=yes
16710 if test "x$host_vendor" = xsequent; then
16711 # Use $CC to link under sequent, because it throws in some extra .o
16712 # files that make .init and .fini sections work.
16713 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16715 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718 hardcode_direct_GCJ=yes
16719 hardcode_minus_L_GCJ=yes
16720 hardcode_shlibpath_var_GCJ=no
16724 case $host_vendor in
16726 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_direct_GCJ=yes # is this really true???
16730 ## LD is ld it makes a PLAMLIB
16731 ## CC just makes a GrossModule.
16732 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16733 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16734 hardcode_direct_GCJ=no
16737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16741 runpath_var='LD_RUN_PATH'
16742 hardcode_shlibpath_var_GCJ=no
16746 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_shlibpath_var_GCJ=no
16748 export_dynamic_flag_spec_GCJ='-Bexport'
16752 if test -d /usr/nec; then
16753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16754 hardcode_shlibpath_var_GCJ=no
16755 runpath_var=LD_RUN_PATH
16756 hardcode_runpath_var=yes
16761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16762 no_undefined_flag_GCJ='${wl}-z,text'
16763 archive_cmds_need_lc_GCJ=no
16764 hardcode_shlibpath_var_GCJ=no
16765 runpath_var='LD_RUN_PATH'
16767 if test "$GCC" = yes; then
16768 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 sysv5* | sco3.2v5* | sco5v6*)
16777 # Note: We can NOT use -z defs as we might desire, because we do not
16778 # link with -lc, and that would cause any symbols used from libc to
16779 # always be unresolved, which means just about no library would
16780 # ever link correctly. If we're not using GNU ld we use -z text
16781 # though, which does catch some bad symbols but isn't as heavy-handed
16783 no_undefined_flag_GCJ='${wl}-z,text'
16784 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16785 archive_cmds_need_lc_GCJ=no
16786 hardcode_shlibpath_var_GCJ=no
16787 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16788 hardcode_libdir_separator_GCJ=':'
16789 link_all_deplibs_GCJ=yes
16790 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16791 runpath_var='LD_RUN_PATH'
16793 if test "$GCC" = yes; then
16794 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805 hardcode_shlibpath_var_GCJ=no
16814 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16815 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16816 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16819 # Do we need to explicitly link libc?
16821 case "x$archive_cmds_need_lc_GCJ" in
16823 # Assume -lc should be added
16824 archive_cmds_need_lc_GCJ=yes
16826 if test "$enable_shared" = yes && test "$GCC" = yes; then
16827 case $archive_cmds_GCJ in
16829 # FIXME: we may have to deal with multi-command sequences.
16832 # Test whether the compiler implicitly links with -lc since on some
16833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16834 # to ld, don't add -lc before -lgcc.
16835 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } 2>conftest.err; then
16847 libobjs=conftest.$ac_objext
16849 wl=$lt_prog_compiler_wl_GCJ
16850 pic_flag=$lt_prog_compiler_pic_GCJ
16856 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16857 allow_undefined_flag_GCJ=
16858 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16859 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }
16864 archive_cmds_need_lc_GCJ=no
16866 archive_cmds_need_lc_GCJ=yes
16868 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16870 cat conftest.err 1>&5
16873 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16874 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16881 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16883 library_names_spec=
16884 libname_spec='lib$name'
16888 postuninstall_cmds=
16892 shlibpath_overrides_runpath=unknown
16894 dynamic_linker="$host_os ld.so"
16895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16896 if test "$GCC" = yes; then
16897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16898 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16899 # if the path contains ";" then we assume it to be the separator
16900 # otherwise default to the standard path separator (i.e. ":") - it is
16901 # assumed that no part of a normal pathname contains ";" but that should
16902 # okay in the real world where ";" in dirpaths is itself problematic.
16903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16910 need_lib_prefix=unknown
16911 hardcode_into_libs=no
16913 # when you set need_version to no, make sure it does not cause -set_version
16914 # flags to be left without arguments
16915 need_version=unknown
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16921 shlibpath_var=LIBPATH
16923 # AIX 3 has no versioning support, so we append a major version to the name.
16924 soname_spec='${libname}${release}${shared_ext}$major'
16931 hardcode_into_libs=yes
16932 if test "$host_cpu" = ia64; then
16933 # AIX 5 supports IA64
16934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16935 shlibpath_var=LD_LIBRARY_PATH
16937 # With GCC up to 2.95.x, collect2 would create an import file
16938 # for dependence libraries. The import file would start with
16939 # the line `#! .'. This would cause the generated library to
16940 # depend on `.', always an invalid library. This was fixed in
16941 # development snapshots of GCC prior to 3.0.
16943 aix4 | aix4.[01] | aix4.[01].*)
16944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16946 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16949 can_build_shared=no
16953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16954 # soname into executable. Probably we can add versioning support to
16955 # collect2, so additional links can be useful in future.
16956 if test "$aix_use_runtimelinking" = yes; then
16957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16958 # instead of lib<name>.a to let people know that these are not
16959 # typical AIX shared libraries.
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962 # We preserve .a as extension for shared libraries through AIX4.2
16963 # and later when we are not doing run time linking.
16964 library_names_spec='${libname}${release}.a $libname.a'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LIBPATH
16972 library_names_spec='$libname.ixlibrary $libname.a'
16973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16974 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'
16978 library_names_spec='${libname}${shared_ext}'
16979 dynamic_linker="$host_os ld.so"
16980 shlibpath_var=LIBRARY_PATH
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16992 # the default ld.so.conf also contains /usr/contrib/lib and
16993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16994 # libtool to hard-code these into programs
16997 cygwin* | mingw* | pw32*)
16998 version_type=windows
17003 case $GCC,$host_os in
17004 yes,cygwin* | yes,mingw* | yes,pw32*)
17005 library_names_spec='$libname.dll.a'
17006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17007 postinstall_cmds='base_file=`basename \${file}`~
17008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17009 dldir=$destdir/`dirname \$dlpath`~
17010 test -d \$dldir || mkdir -p \$dldir~
17011 $install_prog $dir/$dlname \$dldir/$dlname~
17012 chmod a+x \$dldir/$dlname'
17013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17014 dlpath=$dir/\$dldll~
17016 shlibpath_overrides_runpath=yes
17020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17025 # MinGW DLLs use traditional 'lib' prefix
17026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17028 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17029 # It is most probably a Windows format PATH printed by
17030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17031 # path with ; separators, and with drive letters. We can handle the
17032 # drive letters (cygwin fileutils understands them), so leave them,
17033 # especially as we might pass files found there to a mingw objdump,
17034 # which wouldn't understand a cygwinified path. Ahh.
17035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17041 # pw32 DLLs use 'pw' prefix rather than 'lib'
17042 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17051 dynamic_linker='Win32 ld.exe'
17052 # FIXME: first we should search . and the directory the executable is in
17056 darwin* | rhapsody*)
17057 dynamic_linker="$host_os dyld"
17058 version_type=darwin
17061 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17062 soname_spec='${libname}${release}${major}$shared_ext'
17063 shlibpath_overrides_runpath=yes
17064 shlibpath_var=DYLD_LIBRARY_PATH
17065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17067 if test "$GCC" = yes; then
17068 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"`
17070 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17081 shlibpath_var=LD_LIBRARY_PATH
17088 freebsd* | dragonfly*)
17089 # DragonFly does not have aout. When/if they implement a new
17090 # versioning mechanism, adjust this.
17091 if test -x /usr/bin/objformat; then
17092 objformat=`/usr/bin/objformat`
17095 freebsd[123]*) objformat=aout ;;
17096 *) objformat=elf ;;
17099 version_type=freebsd-$objformat
17100 case $version_type in
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17111 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes
17116 freebsd3.[01]* | freebsdelf3.[01]*)
17117 shlibpath_overrides_runpath=yes
17118 hardcode_into_libs=yes
17120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17122 shlibpath_overrides_runpath=no
17123 hardcode_into_libs=yes
17125 freebsd*) # from 4.6 on
17126 shlibpath_overrides_runpath=yes
17127 hardcode_into_libs=yes
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 hardcode_into_libs=yes
17142 hpux9* | hpux10* | hpux11*)
17143 # Give a soname corresponding to the major version so that dld.sl refuses to
17144 # link against other versions.
17151 hardcode_into_libs=yes
17152 dynamic_linker="$host_os dld.so"
17153 shlibpath_var=LD_LIBRARY_PATH
17154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 if test "X$HPUX_IA64_MODE" = X32; then
17158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17166 hardcode_into_libs=yes
17167 dynamic_linker="$host_os dld.sl"
17168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177 dynamic_linker="$host_os dld.sl"
17178 shlibpath_var=SHLIB_PATH
17179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17185 postinstall_cmds='chmod 555 $lib'
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=no
17197 hardcode_into_libs=yes
17200 irix5* | irix6* | nonstopux*)
17202 nonstopux*) version_type=nonstopux ;;
17204 if test "$lt_cv_prog_gnu_ld" = yes; then
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17215 irix5* | nonstopux*)
17216 libsuff= shlibsuff=
17219 case $LD in # libtool.m4 will add one of these switches to LD
17220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17221 libsuff= shlibsuff= libmagic=32-bit;;
17222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17223 libsuff=32 shlibsuff=N32 libmagic=N32;;
17224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17226 *) libsuff= shlibsuff= libmagic=never-match;;
17230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17231 shlibpath_overrides_runpath=no
17232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17234 hardcode_into_libs=yes
17237 # No shared lib support for Linux oldld, aout, or coff.
17238 linux*oldld* | linux*aout* | linux*coff*)
17242 # This must be Linux ELF.
17243 linux* | k*bsd*-gnu)
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=no
17252 # This implies no fast_install, which is unacceptable.
17253 # Some rework will be needed to allow for fast_install
17254 # before this can be enabled.
17255 hardcode_into_libs=yes
17257 # Append ld.so.conf contents to the search path
17258 if test -f /etc/ld.so.conf; then
17259 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' ' '`
17260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263 # We used to test for /lib/ld.so.1 and disable shared libraries on
17264 # powerpc, because MkLinux only supported shared libraries with the
17265 # GNU dynamic linker. Since this was broken with cross compilers,
17266 # most powerpc-linux boxes support dynamic linking these days and
17267 # people can always --disable-shared, the test was removed, and we
17268 # assume the GNU/Linux dynamic linker is in use.
17269 dynamic_linker='GNU/Linux ld.so'
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 shlibpath_overrides_runpath=no
17280 hardcode_into_libs=yes
17281 dynamic_linker='NetBSD ld.elf_so'
17288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17291 dynamic_linker='NetBSD (a.out) ld.so'
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 dynamic_linker='NetBSD ld.elf_so'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17299 hardcode_into_libs=yes
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 soname_spec='${libname}${release}${shared_ext}$major'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=yes
17321 sys_lib_dlsearch_path_spec="/usr/lib"
17323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17326 *) need_version=no ;;
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17333 openbsd2.[89] | openbsd2.[89].*)
17334 shlibpath_overrides_runpath=no
17337 shlibpath_overrides_runpath=yes
17341 shlibpath_overrides_runpath=yes
17346 libname_spec='$name'
17349 library_names_spec='$libname${shared_ext} $libname.a'
17350 dynamic_linker='OS/2 ld.exe'
17351 shlibpath_var=LIBPATH
17354 osf3* | osf4* | osf5*)
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360 shlibpath_var=LD_LIBRARY_PATH
17361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LD_LIBRARY_PATH
17372 shlibpath_overrides_runpath=yes
17373 hardcode_into_libs=yes
17374 # ldd complains unless libraries are executable
17375 postinstall_cmds='chmod +x $lib'
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=yes
17384 if test "$with_gnu_ld" = yes; then
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 case $host_vendor in
17397 shlibpath_overrides_runpath=no
17399 export_dynamic_flag_spec='${wl}-Blargedynsym'
17400 runpath_var=LD_RUN_PATH
17408 shlibpath_overrides_runpath=no
17409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17415 if test -d /usr/nec ;then
17417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17418 soname_spec='$libname${shared_ext}.$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17424 version_type=freebsd-elf
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 shlibpath_var=LD_LIBRARY_PATH
17430 hardcode_into_libs=yes
17431 if test "$with_gnu_ld" = yes; then
17432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17433 shlibpath_overrides_runpath=no
17435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17436 shlibpath_overrides_runpath=yes
17439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17443 sys_lib_dlsearch_path_spec='/usr/lib'
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17457 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17458 echo "${ECHO_T}$dynamic_linker" >&6
17459 test "$dynamic_linker" = no && can_build_shared=no
17461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17462 if test "$GCC" = yes; then
17463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17466 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17467 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17468 hardcode_action_GCJ=
17469 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17470 test -n "$runpath_var_GCJ" || \
17471 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17473 # We can hardcode non-existant directories.
17474 if test "$hardcode_direct_GCJ" != no &&
17475 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17476 # have to relink, otherwise we might link with an installed library
17477 # when we should be linking with a yet-to-be-installed one
17478 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17479 test "$hardcode_minus_L_GCJ" != no; then
17480 # Linking always hardcodes the temporary library directory.
17481 hardcode_action_GCJ=relink
17483 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17484 hardcode_action_GCJ=immediate
17487 # We cannot hardcode anything, or else we can only hardcode existing
17489 hardcode_action_GCJ=unsupported
17491 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17492 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17494 if test "$hardcode_action_GCJ" = relink; then
17495 # Fast installation is not supported
17496 enable_fast_install=no
17497 elif test "$shlibpath_overrides_runpath" = yes ||
17498 test "$enable_shared" = no; then
17499 # Fast installation is not necessary
17500 enable_fast_install=needless
17504 # The else clause should only fire when bootstrapping the
17505 # libtool distribution, otherwise you forgot to ship ltmain.sh
17506 # with your package, and you will get complaints that there are
17507 # no rules to generate ltmain.sh.
17508 if test -f "$ltmain"; then
17509 # See if we are running on zsh, and set the options which allow our commands through
17510 # without removal of \ escapes.
17511 if test -n "${ZSH_VERSION+set}" ; then
17512 setopt NO_GLOB_SUBST
17514 # Now quote all the things that may contain metacharacters while being
17515 # careful not to overquote the AC_SUBSTed values. We take copies of the
17516 # variables and quote the copies for generation of the libtool script.
17517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17521 deplibs_check_method reload_flag reload_cmds need_locks \
17522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17523 lt_cv_sys_global_symbol_to_c_name_address \
17524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17525 old_postinstall_cmds old_postuninstall_cmds \
17529 lt_prog_compiler_wl_GCJ \
17530 lt_prog_compiler_pic_GCJ \
17531 lt_prog_compiler_static_GCJ \
17532 lt_prog_compiler_no_builtin_flag_GCJ \
17533 export_dynamic_flag_spec_GCJ \
17534 thread_safe_flag_spec_GCJ \
17535 whole_archive_flag_spec_GCJ \
17536 enable_shared_with_static_runtimes_GCJ \
17537 old_archive_cmds_GCJ \
17538 old_archive_from_new_cmds_GCJ \
17539 predep_objects_GCJ \
17540 postdep_objects_GCJ \
17543 compiler_lib_search_path_GCJ \
17545 archive_expsym_cmds_GCJ \
17546 postinstall_cmds_GCJ \
17547 postuninstall_cmds_GCJ \
17548 old_archive_from_expsyms_cmds_GCJ \
17549 allow_undefined_flag_GCJ \
17550 no_undefined_flag_GCJ \
17551 export_symbols_cmds_GCJ \
17552 hardcode_libdir_flag_spec_GCJ \
17553 hardcode_libdir_flag_spec_ld_GCJ \
17554 hardcode_libdir_separator_GCJ \
17555 hardcode_automatic_GCJ \
17557 module_expsym_cmds_GCJ \
17558 lt_cv_prog_compiler_c_o_GCJ \
17559 exclude_expsyms_GCJ \
17560 include_expsyms_GCJ; do
17563 old_archive_cmds_GCJ | \
17564 old_archive_from_new_cmds_GCJ | \
17565 archive_cmds_GCJ | \
17566 archive_expsym_cmds_GCJ | \
17567 module_cmds_GCJ | \
17568 module_expsym_cmds_GCJ | \
17569 old_archive_from_expsyms_cmds_GCJ | \
17570 export_symbols_cmds_GCJ | \
17571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17572 postinstall_cmds | postuninstall_cmds | \
17573 old_postinstall_cmds | old_postuninstall_cmds | \
17574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17575 # Double-quote double-evaled strings.
17576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17585 *'\$0 --fallback-echo"')
17586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17592 cat <<__EOF__ >> "$cfgfile"
17593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17597 # Shell to use when invoking shell scripts.
17600 # Whether or not to build shared libraries.
17601 build_libtool_libs=$enable_shared
17603 # Whether or not to build static libraries.
17604 build_old_libs=$enable_static
17606 # Whether or not to add -lc for building shared libraries.
17607 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17609 # Whether or not to disallow shared libs when runtime libs are static
17610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17612 # Whether or not to optimize for fast installation.
17613 fast_install=$enable_fast_install
17616 host_alias=$host_alias
17620 # The build system.
17621 build_alias=$build_alias
17625 # An echo program that does not interpret backslashes.
17630 AR_FLAGS=$lt_AR_FLAGS
17635 # LTCC compiler flags.
17636 LTCFLAGS=$lt_LTCFLAGS
17638 # A language-specific compiler.
17639 CC=$lt_compiler_GCJ
17641 # Is the compiler the GNU C compiler?
17647 # The linker used to build libraries.
17650 # Whether we need hard or soft links.
17653 # A BSD-compatible nm program.
17656 # A symbol stripping program
17659 # Used to examine libraries when file_magic_cmd begins "file"
17660 MAGIC_CMD=$MAGIC_CMD
17662 # Used on cygwin: DLL creation program.
17665 # Used on cygwin: object dumper.
17668 # Used on cygwin: assembler.
17671 # The name of the directory that contains temporary libtool files.
17674 # How to create reloadable object files.
17675 reload_flag=$lt_reload_flag
17676 reload_cmds=$lt_reload_cmds
17678 # How to pass a linker flag through the compiler.
17679 wl=$lt_lt_prog_compiler_wl_GCJ
17681 # Object file suffix (normally "o").
17682 objext="$ac_objext"
17684 # Old archive suffix (normally "a").
17687 # Shared library suffix (normally ".so").
17688 shrext_cmds='$shrext_cmds'
17690 # Executable file suffix (normally "").
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17697 # What is the maximum length of a command?
17698 max_cmd_len=$lt_cv_sys_max_cmd_len
17700 # Does compiler simultaneously support -c and -o options?
17701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17703 # Must we lock files when doing compilation?
17704 need_locks=$lt_need_locks
17706 # Do we need the lib prefix for modules?
17707 need_lib_prefix=$need_lib_prefix
17709 # Do we need a version for libraries?
17710 need_version=$need_version
17712 # Whether dlopen is supported.
17713 dlopen_support=$enable_dlopen
17715 # Whether dlopen of programs is supported.
17716 dlopen_self=$enable_dlopen_self
17718 # Whether dlopen of statically linked programs is supported.
17719 dlopen_self_static=$enable_dlopen_self_static
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17724 # Compiler flag to turn off builtin functions.
17725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17727 # Compiler flag to allow reflexive dlopens.
17728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17730 # Compiler flag to generate shared objects directly from archives.
17731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17733 # Compiler flag to generate thread-safe objects.
17734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17736 # Library versioning type.
17737 version_type=$version_type
17739 # Format of library name prefix.
17740 libname_spec=$lt_libname_spec
17742 # List of archive names. First name is the real one, the rest are links.
17743 # The last name is the one that the linker finds with -lNAME.
17744 library_names_spec=$lt_library_names_spec
17746 # The coded name of the library, if different from the real name.
17747 soname_spec=$lt_soname_spec
17749 # Commands used to build and install an old-style archive.
17751 old_archive_cmds=$lt_old_archive_cmds_GCJ
17752 old_postinstall_cmds=$lt_old_postinstall_cmds
17753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17755 # Create an old-style archive from a shared archive.
17756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17758 # Create a temporary old-style archive to link instead of a shared archive.
17759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17761 # Commands used to build and install a shared archive.
17762 archive_cmds=$lt_archive_cmds_GCJ
17763 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17764 postinstall_cmds=$lt_postinstall_cmds
17765 postuninstall_cmds=$lt_postuninstall_cmds
17767 # Commands used to build a loadable module (assumed same as above if empty)
17768 module_cmds=$lt_module_cmds_GCJ
17769 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17771 # Commands to strip libraries.
17772 old_striplib=$lt_old_striplib
17773 striplib=$lt_striplib
17775 # Dependencies to place before the objects being linked to create a
17777 predep_objects=$lt_predep_objects_GCJ
17779 # Dependencies to place after the objects being linked to create a
17781 postdep_objects=$lt_postdep_objects_GCJ
17783 # Dependencies to place before the objects being linked to create a
17785 predeps=$lt_predeps_GCJ
17787 # Dependencies to place after the objects being linked to create a
17789 postdeps=$lt_postdeps_GCJ
17791 # The library search path used internally by the compiler when linking
17792 # a shared library.
17793 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17795 # Method to check whether dependent libraries are shared objects.
17796 deplibs_check_method=$lt_deplibs_check_method
17798 # Command to use when deplibs_check_method == file_magic.
17799 file_magic_cmd=$lt_file_magic_cmd
17801 # Flag that allows shared libraries with undefined symbols to be built.
17802 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17804 # Flag that forces no undefined symbols.
17805 no_undefined_flag=$lt_no_undefined_flag_GCJ
17807 # Commands used to finish a libtool library installation in a directory.
17808 finish_cmds=$lt_finish_cmds
17810 # Same as above, but a single script fragment to be evaled but not shown.
17811 finish_eval=$lt_finish_eval
17813 # Take the output of nm and produce a listing of raw symbols and C names.
17814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17816 # Transform the output of nm in a proper C declaration
17817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17819 # Transform the output of nm in a C name address pair
17820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17822 # This is the shared library runtime path variable.
17823 runpath_var=$runpath_var
17825 # This is the shared library path variable.
17826 shlibpath_var=$shlibpath_var
17828 # Is shlibpath searched before the hard-coded library search path?
17829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action_GCJ
17834 # Whether we should hardcode library paths into libraries.
17835 hardcode_into_libs=$hardcode_into_libs
17837 # Flag to hardcode \$libdir into a binary during linking.
17838 # This must work even if \$libdir does not exist.
17839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17841 # If ld is used when linking, flag to hardcode \$libdir into
17842 # a binary during linking. This must work even if \$libdir does
17844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17846 # Whether we need a single -rpath flag with a separated argument.
17847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17850 # resulting binary.
17851 hardcode_direct=$hardcode_direct_GCJ
17853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17854 # resulting binary.
17855 hardcode_minus_L=$hardcode_minus_L_GCJ
17857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17858 # the resulting binary.
17859 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17861 # Set to yes if building a shared library automatically hardcodes DIR into the library
17862 # and all subsequent libraries and executables linked against it.
17863 hardcode_automatic=$hardcode_automatic_GCJ
17865 # Variables whose values should be saved in libtool wrapper scripts and
17866 # restored at relink time.
17867 variables_saved_for_relink="$variables_saved_for_relink"
17869 # Whether libtool must link a program against all its dependency libraries.
17870 link_all_deplibs=$link_all_deplibs_GCJ
17872 # Compile-time system search path for libraries
17873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17875 # Run-time system search path for libraries
17876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17878 # Fix the shell variable \$srcfile for the compiler.
17879 fix_srcfile_path="$fix_srcfile_path_GCJ"
17881 # Set to yes if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_GCJ
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17887 # The commands to extract the exported symbol list from a shared archive.
17888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_GCJ
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_GCJ
17896 # ### END LIBTOOL TAG CONFIG: $tagname
17902 # If there is no Makefile yet, we rely on a make rule to execute
17903 # `config.status --recheck' to rerun these tests and create the
17904 # libtool script then.
17905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906 if test -f "$ltmain_in"; then
17907 test -f Makefile && make "$ltmain"
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929 # Source file extension for RC test sources.
17932 # Object file extension for compiled RC test sources.
17936 # Code to be used in simple compile tests
17937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17939 # Code to be used in simple link tests
17940 lt_simple_link_test_code="$lt_simple_compile_test_code"
17942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17944 # If no C compiler was specified, use CC.
17947 # If no C compiler flags were specified, use CFLAGS.
17948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17950 # Allow CC to be a program name with arguments.
17954 # save warnings/boilerplate of simple test code
17955 ac_outfile=conftest.$ac_objext
17956 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17958 _lt_compiler_boilerplate=`cat conftest.err`
17961 ac_outfile=conftest.$ac_objext
17962 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17964 _lt_linker_boilerplate=`cat conftest.err`
17968 # Allow CC to be a program name with arguments.
17973 for cc_temp in $compiler""; do
17975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17983 lt_cv_prog_compiler_c_o_RC=yes
17985 # The else clause should only fire when bootstrapping the
17986 # libtool distribution, otherwise you forgot to ship ltmain.sh
17987 # with your package, and you will get complaints that there are
17988 # no rules to generate ltmain.sh.
17989 if test -f "$ltmain"; then
17990 # See if we are running on zsh, and set the options which allow our commands through
17991 # without removal of \ escapes.
17992 if test -n "${ZSH_VERSION+set}" ; then
17993 setopt NO_GLOB_SUBST
17995 # Now quote all the things that may contain metacharacters while being
17996 # careful not to overquote the AC_SUBSTed values. We take copies of the
17997 # variables and quote the copies for generation of the libtool script.
17998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18002 deplibs_check_method reload_flag reload_cmds need_locks \
18003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18004 lt_cv_sys_global_symbol_to_c_name_address \
18005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18006 old_postinstall_cmds old_postuninstall_cmds \
18010 lt_prog_compiler_wl_RC \
18011 lt_prog_compiler_pic_RC \
18012 lt_prog_compiler_static_RC \
18013 lt_prog_compiler_no_builtin_flag_RC \
18014 export_dynamic_flag_spec_RC \
18015 thread_safe_flag_spec_RC \
18016 whole_archive_flag_spec_RC \
18017 enable_shared_with_static_runtimes_RC \
18018 old_archive_cmds_RC \
18019 old_archive_from_new_cmds_RC \
18020 predep_objects_RC \
18021 postdep_objects_RC \
18024 compiler_lib_search_path_RC \
18026 archive_expsym_cmds_RC \
18027 postinstall_cmds_RC \
18028 postuninstall_cmds_RC \
18029 old_archive_from_expsyms_cmds_RC \
18030 allow_undefined_flag_RC \
18031 no_undefined_flag_RC \
18032 export_symbols_cmds_RC \
18033 hardcode_libdir_flag_spec_RC \
18034 hardcode_libdir_flag_spec_ld_RC \
18035 hardcode_libdir_separator_RC \
18036 hardcode_automatic_RC \
18038 module_expsym_cmds_RC \
18039 lt_cv_prog_compiler_c_o_RC \
18040 exclude_expsyms_RC \
18041 include_expsyms_RC; do
18044 old_archive_cmds_RC | \
18045 old_archive_from_new_cmds_RC | \
18046 archive_cmds_RC | \
18047 archive_expsym_cmds_RC | \
18049 module_expsym_cmds_RC | \
18050 old_archive_from_expsyms_cmds_RC | \
18051 export_symbols_cmds_RC | \
18052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18053 postinstall_cmds | postuninstall_cmds | \
18054 old_postinstall_cmds | old_postuninstall_cmds | \
18055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18056 # Double-quote double-evaled strings.
18057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18066 *'\$0 --fallback-echo"')
18067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18073 cat <<__EOF__ >> "$cfgfile"
18074 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18078 # Shell to use when invoking shell scripts.
18081 # Whether or not to build shared libraries.
18082 build_libtool_libs=$enable_shared
18084 # Whether or not to build static libraries.
18085 build_old_libs=$enable_static
18087 # Whether or not to add -lc for building shared libraries.
18088 build_libtool_need_lc=$archive_cmds_need_lc_RC
18090 # Whether or not to disallow shared libs when runtime libs are static
18091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18093 # Whether or not to optimize for fast installation.
18094 fast_install=$enable_fast_install
18097 host_alias=$host_alias
18101 # The build system.
18102 build_alias=$build_alias
18106 # An echo program that does not interpret backslashes.
18111 AR_FLAGS=$lt_AR_FLAGS
18116 # LTCC compiler flags.
18117 LTCFLAGS=$lt_LTCFLAGS
18119 # A language-specific compiler.
18122 # Is the compiler the GNU C compiler?
18128 # The linker used to build libraries.
18131 # Whether we need hard or soft links.
18134 # A BSD-compatible nm program.
18137 # A symbol stripping program
18140 # Used to examine libraries when file_magic_cmd begins "file"
18141 MAGIC_CMD=$MAGIC_CMD
18143 # Used on cygwin: DLL creation program.
18146 # Used on cygwin: object dumper.
18149 # Used on cygwin: assembler.
18152 # The name of the directory that contains temporary libtool files.
18155 # How to create reloadable object files.
18156 reload_flag=$lt_reload_flag
18157 reload_cmds=$lt_reload_cmds
18159 # How to pass a linker flag through the compiler.
18160 wl=$lt_lt_prog_compiler_wl_RC
18162 # Object file suffix (normally "o").
18163 objext="$ac_objext"
18165 # Old archive suffix (normally "a").
18168 # Shared library suffix (normally ".so").
18169 shrext_cmds='$shrext_cmds'
18171 # Executable file suffix (normally "").
18174 # Additional compiler flags for building library objects.
18175 pic_flag=$lt_lt_prog_compiler_pic_RC
18178 # What is the maximum length of a command?
18179 max_cmd_len=$lt_cv_sys_max_cmd_len
18181 # Does compiler simultaneously support -c and -o options?
18182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18184 # Must we lock files when doing compilation?
18185 need_locks=$lt_need_locks
18187 # Do we need the lib prefix for modules?
18188 need_lib_prefix=$need_lib_prefix
18190 # Do we need a version for libraries?
18191 need_version=$need_version
18193 # Whether dlopen is supported.
18194 dlopen_support=$enable_dlopen
18196 # Whether dlopen of programs is supported.
18197 dlopen_self=$enable_dlopen_self
18199 # Whether dlopen of statically linked programs is supported.
18200 dlopen_self_static=$enable_dlopen_self_static
18202 # Compiler flag to prevent dynamic linking.
18203 link_static_flag=$lt_lt_prog_compiler_static_RC
18205 # Compiler flag to turn off builtin functions.
18206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18208 # Compiler flag to allow reflexive dlopens.
18209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18211 # Compiler flag to generate shared objects directly from archives.
18212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18214 # Compiler flag to generate thread-safe objects.
18215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18217 # Library versioning type.
18218 version_type=$version_type
18220 # Format of library name prefix.
18221 libname_spec=$lt_libname_spec
18223 # List of archive names. First name is the real one, the rest are links.
18224 # The last name is the one that the linker finds with -lNAME.
18225 library_names_spec=$lt_library_names_spec
18227 # The coded name of the library, if different from the real name.
18228 soname_spec=$lt_soname_spec
18230 # Commands used to build and install an old-style archive.
18232 old_archive_cmds=$lt_old_archive_cmds_RC
18233 old_postinstall_cmds=$lt_old_postinstall_cmds
18234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18236 # Create an old-style archive from a shared archive.
18237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18239 # Create a temporary old-style archive to link instead of a shared archive.
18240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18242 # Commands used to build and install a shared archive.
18243 archive_cmds=$lt_archive_cmds_RC
18244 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18245 postinstall_cmds=$lt_postinstall_cmds
18246 postuninstall_cmds=$lt_postuninstall_cmds
18248 # Commands used to build a loadable module (assumed same as above if empty)
18249 module_cmds=$lt_module_cmds_RC
18250 module_expsym_cmds=$lt_module_expsym_cmds_RC
18252 # Commands to strip libraries.
18253 old_striplib=$lt_old_striplib
18254 striplib=$lt_striplib
18256 # Dependencies to place before the objects being linked to create a
18258 predep_objects=$lt_predep_objects_RC
18260 # Dependencies to place after the objects being linked to create a
18262 postdep_objects=$lt_postdep_objects_RC
18264 # Dependencies to place before the objects being linked to create a
18266 predeps=$lt_predeps_RC
18268 # Dependencies to place after the objects being linked to create a
18270 postdeps=$lt_postdeps_RC
18272 # The library search path used internally by the compiler when linking
18273 # a shared library.
18274 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18276 # Method to check whether dependent libraries are shared objects.
18277 deplibs_check_method=$lt_deplibs_check_method
18279 # Command to use when deplibs_check_method == file_magic.
18280 file_magic_cmd=$lt_file_magic_cmd
18282 # Flag that allows shared libraries with undefined symbols to be built.
18283 allow_undefined_flag=$lt_allow_undefined_flag_RC
18285 # Flag that forces no undefined symbols.
18286 no_undefined_flag=$lt_no_undefined_flag_RC
18288 # Commands used to finish a libtool library installation in a directory.
18289 finish_cmds=$lt_finish_cmds
18291 # Same as above, but a single script fragment to be evaled but not shown.
18292 finish_eval=$lt_finish_eval
18294 # Take the output of nm and produce a listing of raw symbols and C names.
18295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18297 # Transform the output of nm in a proper C declaration
18298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18300 # Transform the output of nm in a C name address pair
18301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18303 # This is the shared library runtime path variable.
18304 runpath_var=$runpath_var
18306 # This is the shared library path variable.
18307 shlibpath_var=$shlibpath_var
18309 # Is shlibpath searched before the hard-coded library search path?
18310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18312 # How to hardcode a shared library path into an executable.
18313 hardcode_action=$hardcode_action_RC
18315 # Whether we should hardcode library paths into libraries.
18316 hardcode_into_libs=$hardcode_into_libs
18318 # Flag to hardcode \$libdir into a binary during linking.
18319 # This must work even if \$libdir does not exist.
18320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18322 # If ld is used when linking, flag to hardcode \$libdir into
18323 # a binary during linking. This must work even if \$libdir does
18325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18327 # Whether we need a single -rpath flag with a separated argument.
18328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18331 # resulting binary.
18332 hardcode_direct=$hardcode_direct_RC
18334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18335 # resulting binary.
18336 hardcode_minus_L=$hardcode_minus_L_RC
18338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18339 # the resulting binary.
18340 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18342 # Set to yes if building a shared library automatically hardcodes DIR into the library
18343 # and all subsequent libraries and executables linked against it.
18344 hardcode_automatic=$hardcode_automatic_RC
18346 # Variables whose values should be saved in libtool wrapper scripts and
18347 # restored at relink time.
18348 variables_saved_for_relink="$variables_saved_for_relink"
18350 # Whether libtool must link a program against all its dependency libraries.
18351 link_all_deplibs=$link_all_deplibs_RC
18353 # Compile-time system search path for libraries
18354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18356 # Run-time system search path for libraries
18357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18359 # Fix the shell variable \$srcfile for the compiler.
18360 fix_srcfile_path="$fix_srcfile_path_RC"
18362 # Set to yes if exported symbols are required.
18363 always_export_symbols=$always_export_symbols_RC
18365 # The commands to list exported symbols.
18366 export_symbols_cmds=$lt_export_symbols_cmds_RC
18368 # The commands to extract the exported symbol list from a shared archive.
18369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18371 # Symbols that should not be listed in the preloaded symbols.
18372 exclude_expsyms=$lt_exclude_expsyms_RC
18374 # Symbols that must always be exported.
18375 include_expsyms=$lt_include_expsyms_RC
18377 # ### END LIBTOOL TAG CONFIG: $tagname
18383 # If there is no Makefile yet, we rely on a make rule to execute
18384 # `config.status --recheck' to rerun these tests and create the
18385 # libtool script then.
18386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18387 if test -f "$ltmain_in"; then
18388 test -f Makefile && make "$ltmain"
18394 ac_cpp='$CPP $CPPFLAGS'
18395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18405 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18406 { (exit 1); exit 1; }; }
18410 # Append the new tag name to the list of available tags.
18411 if test -n "$tagname" ; then
18412 available_tags="$available_tags $tagname"
18418 # Now substitute the updated list of available tags.
18419 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18420 mv "${ofile}T" "$ofile"
18424 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18425 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18426 { (exit 1); exit 1; }; }
18432 # This can be used to rebuild libtool when needed
18433 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18435 # Always use our own libtool.
18436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18438 # Prevent multiple expansion
18461 #AC_CONFIG_HEADERS(sysdep.h)
18465 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18466 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18469 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18473 # Find a good install program. We prefer a C program (faster),
18474 # so one script is as good as another. But avoid the broken or
18475 # incompatible versions:
18476 # SysV /etc/install, /usr/sbin/install
18477 # SunOS /usr/etc/install
18478 # IRIX /sbin/install
18480 # AmigaOS /C/install, which installs bootblocks on floppy discs
18481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18484 # OS/2's system install, which has a completely different semantic
18485 # ./install, which can be erroneously created by make from ./install.sh.
18486 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18487 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18488 if test -z "$INSTALL"; then
18489 if test "${ac_cv_path_install+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493 for as_dir in $PATH
18496 test -z "$as_dir" && as_dir=.
18497 # Account for people who put trailing slashes in PATH elements.
18499 ./ | .// | /cC/* | \
18500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18501 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18504 # OSF1 and SCO ODT 3.0 have their own names for install.
18505 # Don't use installbsd from OSF since it installs stuff as root
18507 for ac_prog in ginstall scoinst install; do
18508 for ac_exec_ext in '' $ac_executable_extensions; do
18509 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18510 if test $ac_prog = install &&
18511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18512 # AIX install. It has an incompatible calling convention.
18514 elif test $ac_prog = install &&
18515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18516 # program-specific install script used by HP pwplus--don't use.
18519 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18531 if test "${ac_cv_path_install+set}" = set; then
18532 INSTALL=$ac_cv_path_install
18534 # As a last resort, use the slow shell script. We don't cache a
18535 # path for INSTALL within a source directory, because that will
18536 # break other packages using the cache if that directory is
18537 # removed, or if the path is relative.
18538 INSTALL=$ac_install_sh
18541 echo "$as_me:$LINENO: result: $INSTALL" >&5
18542 echo "${ECHO_T}$INSTALL" >&6
18544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18545 # It thinks the first close brace ends the variable substitution.
18546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18552 # Extract the first word of "autoconf", so it can be a program name with args.
18553 set dummy autoconf; ac_word=$2
18554 echo "$as_me:$LINENO: checking for $ac_word" >&5
18555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18556 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 if test -n "$AUTOCONF"; then
18560 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563 for as_dir in $PATH
18566 test -z "$as_dir" && as_dir=.
18567 for ac_exec_ext in '' $ac_executable_extensions; do
18568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569 ac_cv_prog_AUTOCONF=""
18570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18578 AUTOCONF=$ac_cv_prog_AUTOCONF
18579 if test -n "$AUTOCONF"; then
18580 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18581 echo "${ECHO_T}$AUTOCONF" >&6
18583 echo "$as_me:$LINENO: result: no" >&5
18584 echo "${ECHO_T}no" >&6
18587 # Extract the first word of "sed", so it can be a program name with args.
18588 set dummy sed; ac_word=$2
18589 echo "$as_me:$LINENO: checking for $ac_word" >&5
18590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18591 if test "${ac_cv_prog_SED+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 if test -n "$SED"; then
18595 ac_cv_prog_SED="$SED" # Let the user override the test.
18597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18601 test -z "$as_dir" && as_dir=.
18602 for ac_exec_ext in '' $ac_executable_extensions; do
18603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604 ac_cv_prog_SED="sed"
18605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18611 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18614 SED=$ac_cv_prog_SED
18615 if test -n "$SED"; then
18616 echo "$as_me:$LINENO: result: $SED" >&5
18617 echo "${ECHO_T}$SED" >&6
18619 echo "$as_me:$LINENO: result: no" >&5
18620 echo "${ECHO_T}no" >&6
18625 #AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
18626 #AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
18627 #AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
18629 # [ --with-ssl=PATH Specify path to OpenSSL installation ],
18631 # if test "x$withval" != "xno" ; then
18632 # tryssldir=$withval
18636 #AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
18638 cat >>confdefs.h <<\_ACEOF
18639 #define HAVE_OPENSSL 1
18644 PTHREAD_DEFS=-D_REENTRANT
18647 test -z "$CC" && CC=cc
18652 PTHREAD_DEFS=-D_THREAD_SAFE
18655 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665 if test -n "$ac_tool_prefix"; then
18666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_prog_CC+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 if test -n "$CC"; then
18674 ac_cv_prog_CC="$CC" # Let the user override the test.
18676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18680 test -z "$as_dir" && as_dir=.
18681 for ac_exec_ext in '' $ac_executable_extensions; do
18682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 if test -n "$CC"; then
18694 echo "$as_me:$LINENO: result: $CC" >&5
18695 echo "${ECHO_T}$CC" >&6
18697 echo "$as_me:$LINENO: result: no" >&5
18698 echo "${ECHO_T}no" >&6
18702 if test -z "$ac_cv_prog_CC"; then
18704 # Extract the first word of "gcc", so it can be a program name with args.
18705 set dummy gcc; ac_word=$2
18706 echo "$as_me:$LINENO: checking for $ac_word" >&5
18707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 if test -n "$ac_ct_CC"; then
18712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715 for as_dir in $PATH
18718 test -z "$as_dir" && as_dir=.
18719 for ac_exec_ext in '' $ac_executable_extensions; do
18720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18721 ac_cv_prog_ac_ct_CC="gcc"
18722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18731 if test -n "$ac_ct_CC"; then
18732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18733 echo "${ECHO_T}$ac_ct_CC" >&6
18735 echo "$as_me:$LINENO: result: no" >&5
18736 echo "${ECHO_T}no" >&6
18741 CC="$ac_cv_prog_CC"
18744 if test -z "$CC"; then
18745 if test -n "$ac_tool_prefix"; then
18746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18747 set dummy ${ac_tool_prefix}cc; ac_word=$2
18748 echo "$as_me:$LINENO: checking for $ac_word" >&5
18749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18750 if test "${ac_cv_prog_CC+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 if test -n "$CC"; then
18754 ac_cv_prog_CC="$CC" # Let the user override the test.
18756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757 for as_dir in $PATH
18760 test -z "$as_dir" && as_dir=.
18761 for ac_exec_ext in '' $ac_executable_extensions; do
18762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763 ac_cv_prog_CC="${ac_tool_prefix}cc"
18764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18773 if test -n "$CC"; then
18774 echo "$as_me:$LINENO: result: $CC" >&5
18775 echo "${ECHO_T}$CC" >&6
18777 echo "$as_me:$LINENO: result: no" >&5
18778 echo "${ECHO_T}no" >&6
18782 if test -z "$ac_cv_prog_CC"; then
18784 # Extract the first word of "cc", so it can be a program name with args.
18785 set dummy cc; ac_word=$2
18786 echo "$as_me:$LINENO: checking for $ac_word" >&5
18787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 if test -n "$ac_ct_CC"; then
18792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_prog_ac_ct_CC="cc"
18802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18811 if test -n "$ac_ct_CC"; then
18812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18813 echo "${ECHO_T}$ac_ct_CC" >&6
18815 echo "$as_me:$LINENO: result: no" >&5
18816 echo "${ECHO_T}no" >&6
18821 CC="$ac_cv_prog_CC"
18825 if test -z "$CC"; then
18826 # Extract the first word of "cc", so it can be a program name with args.
18827 set dummy cc; ac_word=$2
18828 echo "$as_me:$LINENO: checking for $ac_word" >&5
18829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18830 if test "${ac_cv_prog_CC+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18833 if test -n "$CC"; then
18834 ac_cv_prog_CC="$CC" # Let the user override the test.
18836 ac_prog_rejected=no
18837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18838 for as_dir in $PATH
18841 test -z "$as_dir" && as_dir=.
18842 for ac_exec_ext in '' $ac_executable_extensions; do
18843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18845 ac_prog_rejected=yes
18849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18855 if test $ac_prog_rejected = yes; then
18856 # We found a bogon in the path, so make sure we never use it.
18857 set dummy $ac_cv_prog_CC
18859 if test $# != 0; then
18860 # We chose a different compiler from the bogus one.
18861 # However, it has the same basename, so the bogon will be chosen
18862 # first if we set CC to just the basename; use the full file name.
18864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18870 if test -n "$CC"; then
18871 echo "$as_me:$LINENO: result: $CC" >&5
18872 echo "${ECHO_T}$CC" >&6
18874 echo "$as_me:$LINENO: result: no" >&5
18875 echo "${ECHO_T}no" >&6
18879 if test -z "$CC"; then
18880 if test -n "$ac_tool_prefix"; then
18883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18885 echo "$as_me:$LINENO: checking for $ac_word" >&5
18886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887 if test "${ac_cv_prog_CC+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 if test -n "$CC"; then
18891 ac_cv_prog_CC="$CC" # Let the user override the test.
18893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18894 for as_dir in $PATH
18897 test -z "$as_dir" && as_dir=.
18898 for ac_exec_ext in '' $ac_executable_extensions; do
18899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18910 if test -n "$CC"; then
18911 echo "$as_me:$LINENO: result: $CC" >&5
18912 echo "${ECHO_T}$CC" >&6
18914 echo "$as_me:$LINENO: result: no" >&5
18915 echo "${ECHO_T}no" >&6
18918 test -n "$CC" && break
18921 if test -z "$CC"; then
18925 # Extract the first word of "$ac_prog", so it can be a program name with args.
18926 set dummy $ac_prog; ac_word=$2
18927 echo "$as_me:$LINENO: checking for $ac_word" >&5
18928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 if test -n "$ac_ct_CC"; then
18933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936 for as_dir in $PATH
18939 test -z "$as_dir" && as_dir=.
18940 for ac_exec_ext in '' $ac_executable_extensions; do
18941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18942 ac_cv_prog_ac_ct_CC="$ac_prog"
18943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18952 if test -n "$ac_ct_CC"; then
18953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18954 echo "${ECHO_T}$ac_ct_CC" >&6
18956 echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18960 test -n "$ac_ct_CC" && break
18969 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18970 See \`config.log' for more details." >&5
18971 echo "$as_me: error: no acceptable C compiler found in \$PATH
18972 See \`config.log' for more details." >&2;}
18973 { (exit 1); exit 1; }; }
18975 # Provide some information about the compiler.
18976 echo "$as_me:$LINENO:" \
18977 "checking for C compiler version" >&5
18978 ac_compiler=`set X $ac_compile; echo $2`
18979 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18980 (eval $ac_compiler --version </dev/null >&5) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }
18984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18985 (eval $ac_compiler -v </dev/null >&5) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }
18989 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18990 (eval $ac_compiler -V </dev/null >&5) 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }
18995 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020 (eval $ac_compile) 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_compiler_gnu=yes
19041 echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19052 GCC=`test $ac_compiler_gnu = yes && echo yes`
19053 ac_test_CFLAGS=${CFLAGS+set}
19054 ac_save_CFLAGS=$CFLAGS
19056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19058 if test "${ac_cv_prog_cc_g+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_prog_cc_g=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19108 if test "$ac_test_CFLAGS" = set; then
19109 CFLAGS=$ac_save_CFLAGS
19110 elif test $ac_cv_prog_cc_g = yes; then
19111 if test "$GCC" = yes; then
19117 if test "$GCC" = yes; then
19123 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19124 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19125 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 ac_cv_prog_cc_stdc=no
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <stdarg.h>
19138 #include <sys/types.h>
19139 #include <sys/stat.h>
19140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19141 struct buf { int x; };
19142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19143 static char *e (p, i)
19149 static char *f (char * (*g) (char **, int), char **p, ...)
19154 s = g (p, va_arg (v,int));
19159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19160 function prototypes and stuff, but not '\xHH' hex character constants.
19161 These don't provoke an error unfortunately, instead are silently treated
19162 as 'x'. The following induces an error, until -std1 is added to get
19163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19164 array size at least. It's necessary to write '\x00'==0 to get something
19165 that's true only with -std1. */
19166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19168 int test (int i, double x);
19169 struct s1 {int (*f) (int a);};
19170 struct s2 {int (*f) (double a);};
19171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19182 # Don't try gcc -ansi; that turns off useful extensions and
19183 # breaks some systems' header files.
19184 # AIX -qlanglvl=ansi
19185 # Ultrix and OSF/1 -std1
19186 # HP-UX 10.20 and later -Ae
19187 # HP-UX older versions -Aa -D_HPUX_SOURCE
19188 # SVR4 -Xc -D__EXTENSIONS__
19189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19191 CC="$ac_save_CC $ac_arg"
19192 rm -f conftest.$ac_objext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_prog_cc_stdc=$ac_arg
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19220 rm -f conftest.err conftest.$ac_objext
19222 rm -f conftest.$ac_ext conftest.$ac_objext
19227 case "x$ac_cv_prog_cc_stdc" in
19229 echo "$as_me:$LINENO: result: none needed" >&5
19230 echo "${ECHO_T}none needed" >&6 ;;
19232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19233 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19234 CC="$CC $ac_cv_prog_cc_stdc" ;;
19237 # Some people use a C++ compiler to compile C. Since we use `exit',
19238 # in C++ we need to declare it. In case someone uses the same compiler
19239 # for both compiling C and C++ we need to have the C++ compiler decide
19240 # the declaration of exit, since it's the most demanding environment.
19241 cat >conftest.$ac_ext <<_ACEOF
19242 #ifndef __cplusplus
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 for ac_declaration in \
19269 'extern "C" void std::exit (int) throw (); using std::exit;' \
19270 'extern "C" void std::exit (int); using std::exit;' \
19271 'extern "C" void exit (int) throw ();' \
19272 'extern "C" void exit (int);' \
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19282 #include <stdlib.h>
19291 rm -f conftest.$ac_objext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19293 (eval $ac_compile) 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19335 rm -f conftest.$ac_objext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19337 (eval $ac_compile) 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 if test -n "$ac_declaration"; then
19366 echo '#ifdef __cplusplus' >>confdefs.h
19367 echo $ac_declaration >>confdefs.h
19368 echo '#endif' >>confdefs.h
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 ac_cpp='$CPP $CPPFLAGS'
19379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19383 depcc="$CC" am_compiler_list=
19385 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19386 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19391 # We make a subdir and do the tests there. Otherwise we can end up
19392 # making bogus files that we don't know about and never remove. For
19393 # instance it was reported that on HP-UX the gcc test will end up
19394 # making a dummy file named `D' -- because `-MD' means `put the output
19397 # Copy depcomp to subdir because otherwise we won't find it if we're
19398 # using a relative directory.
19399 cp "$am_depcomp" conftest.dir
19401 # We will build objects and dependencies in a subdirectory because
19402 # it helps to detect inapplicable dependency modes. For instance
19403 # both Tru64's cc and ICC support -MD to output dependencies as a
19404 # side effect of compilation, but ICC will put the dependencies in
19405 # the current directory while Tru64 will put them in the object
19409 am_cv_CC_dependencies_compiler_type=none
19410 if test "$am_compiler_list" = ""; then
19411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19413 for depmode in $am_compiler_list; do
19414 # Setup a source with many dependencies, because some compilers
19415 # like to wrap large dependency lists on column 80 (with \), and
19416 # we should not choose a depcomp mode which is confused by this.
19418 # We need to recreate these files for each test, as the compiler may
19419 # overwrite some of them when testing with obscure command lines.
19420 # This happens at least with the AIX C compiler.
19422 for i in 1 2 3 4 5 6; do
19423 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19424 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19425 # Solaris 8's {/usr,}/bin/sh.
19426 touch sub/conftst$i.h
19428 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19432 # after this tag, mechanisms are not by side-effect, so they'll
19433 # only be used when explicitly requested
19434 if test "x$enable_dependency_tracking" = xyes; then
19442 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19443 # mode. It turns out that the SunPro C++ compiler does not properly
19444 # handle `-M -o', and we need to detect this.
19445 if depmode=$depmode \
19446 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19448 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19449 >/dev/null 2>conftest.err &&
19450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19451 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19453 # icc doesn't choke on unknown options, it will just issue warnings
19454 # or remarks (even with -Werror). So we grep stderr for any message
19455 # that says an option was ignored or not supported.
19456 # When given -MP, icc 7.0 and 7.1 complain thusly:
19457 # icc: Command line warning: ignoring option '-M'; no argument required
19458 # The diagnosis changed in icc 8.0:
19459 # icc: Command line remark: option '-MP' not supported
19460 if (grep 'ignoring option' conftest.err ||
19461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19462 am_cv_CC_dependencies_compiler_type=$depmode
19469 rm -rf conftest.dir
19471 am_cv_CC_dependencies_compiler_type=none
19475 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19476 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19482 test "x$enable_dependency_tracking" != xno \
19483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19484 am__fastdepCC_TRUE=
19485 am__fastdepCC_FALSE='#'
19487 am__fastdepCC_TRUE='#'
19488 am__fastdepCC_FALSE=
19493 if test "$GCC" = yes; then
19496 CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19499 CFLAGS="$CFLAGS -Wall"
19504 # missing_dir=`cd $ac_aux_dir && pwd`
19505 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19507 if test "$LIBS" != -pthread; then
19509 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19510 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19511 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-lpthread $LIBS"
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19523 /* Override any gcc2 internal prototype to avoid an error. */
19527 /* We use char because int might match the return type of a gcc2
19528 builtin and then its argument prototype would still apply. */
19529 char pthread_create ();
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_lib_pthread_pthread_create=yes
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_lib_pthread_pthread_create=no
19566 rm -f conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19571 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19572 if test $ac_cv_lib_pthread_pthread_create = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_LIBPTHREAD 1
19577 LIBS="-lpthread $LIBS"
19582 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19583 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19584 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 ac_check_lib_save_LIBS=$LIBS
19588 LIBS="-lpthreads $LIBS"
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19596 /* Override any gcc2 internal prototype to avoid an error. */
19600 /* We use char because int might match the return type of a gcc2
19601 builtin and then its argument prototype would still apply. */
19602 char pthread_create ();
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest$ac_exeext'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; }; then
19632 ac_cv_lib_pthreads_pthread_create=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_lib_pthreads_pthread_create=no
19639 rm -f conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19643 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19644 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19645 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define HAVE_LIBPTHREADS 1
19650 LIBS="-lpthreads $LIBS"
19655 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19656 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19657 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-liconv $LIBS"
19662 cat >conftest.$ac_ext <<_ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19669 /* Override any gcc2 internal prototype to avoid an error. */
19673 /* We use char because int might match the return type of a gcc2
19674 builtin and then its argument prototype would still apply. */
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19686 (eval $ac_link) 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest$ac_exeext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_lib_iconv_libiconv=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_lib_iconv_libiconv=no
19712 rm -f conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19716 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19717 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19718 if test $ac_cv_lib_iconv_libiconv = yes; then
19719 LIBS="$LIBS -liconv"
19722 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19723 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19724 if test "${ac_cv_search_gethostbyname+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 ac_func_search_save_LIBS=$LIBS
19728 ac_cv_search_gethostbyname=no
19729 cat >conftest.$ac_ext <<_ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19736 /* Override any gcc2 internal prototype to avoid an error. */
19740 /* We use char because int might match the return type of a gcc2
19741 builtin and then its argument prototype would still apply. */
19742 char gethostbyname ();
19751 rm -f conftest.$ac_objext conftest$ac_exeext
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753 (eval $ac_link) 2>conftest.er1
19755 grep -v '^ *+' conftest.er1 >conftest.err
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; } &&
19766 { ac_try='test -s conftest$ac_exeext'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772 ac_cv_search_gethostbyname="none required"
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19778 rm -f conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780 if test "$ac_cv_search_gethostbyname" = no; then
19781 for ac_lib in nsl; do
19782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19790 /* Override any gcc2 internal prototype to avoid an error. */
19794 /* We use char because int might match the return type of a gcc2
19795 builtin and then its argument prototype would still apply. */
19796 char gethostbyname ();
19805 rm -f conftest.$ac_objext conftest$ac_exeext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807 (eval $ac_link) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest$ac_exeext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_search_gethostbyname="-l$ac_lib"
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19833 rm -f conftest.err conftest.$ac_objext \
19834 conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_func_search_save_LIBS
19839 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19840 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19841 if test "$ac_cv_search_gethostbyname" != no; then
19842 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19846 echo "$as_me:$LINENO: checking for library containing connect" >&5
19847 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19848 if test "${ac_cv_search_connect+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 ac_func_search_save_LIBS=$LIBS
19852 ac_cv_search_connect=no
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 /* Override any gcc2 internal prototype to avoid an error. */
19864 /* We use char because int might match the return type of a gcc2
19865 builtin and then its argument prototype would still apply. */
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877 (eval $ac_link) 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest$ac_exeext'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_cv_search_connect="none required"
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19902 rm -f conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
19904 if test "$ac_cv_search_connect" = no; then
19905 for ac_lib in socket; do
19906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any gcc2 internal prototype to avoid an error. */
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_search_connect="-l$ac_lib"
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19957 rm -f conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19961 LIBS=$ac_func_search_save_LIBS
19963 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
19964 echo "${ECHO_T}$ac_cv_search_connect" >&6
19965 if test "$ac_cv_search_connect" != no; then
19966 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
19971 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19973 if test "${ac_cv_header_stdc+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #include <stdlib.h>
19983 #include <stdarg.h>
19984 #include <string.h>
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_cv_header_stdc=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_header_stdc=no
20023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20025 if test $ac_cv_header_stdc = yes; then
20026 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #include <string.h>
20036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037 $EGREP "memchr" >/dev/null 2>&1; then
20040 ac_cv_header_stdc=no
20046 if test $ac_cv_header_stdc = yes; then
20047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #include <stdlib.h>
20057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20058 $EGREP "free" >/dev/null 2>&1; then
20061 ac_cv_header_stdc=no
20067 if test $ac_cv_header_stdc = yes; then
20068 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20069 if test "$cross_compiling" = yes; then
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 #if ((' ' & 0x0FF) == 0x020)
20080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20083 # define ISLOWER(c) \
20084 (('a' <= (c) && (c) <= 'i') \
20085 || ('j' <= (c) && (c) <= 'r') \
20086 || ('s' <= (c) && (c) <= 'z'))
20087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20095 for (i = 0; i < 256; i++)
20096 if (XOR (islower (i), ISLOWER (i))
20097 || toupper (i) != TOUPPER (i))
20102 rm -f conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104 (eval $ac_link) 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20115 echo "$as_me: program exited with status $ac_status" >&5
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ( exit $ac_status )
20120 ac_cv_header_stdc=no
20122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20127 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20128 if test $ac_cv_header_stdc = yes; then
20130 cat >>confdefs.h <<\_ACEOF
20131 #define STDC_HEADERS 1
20140 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20144 echo "$as_me:$LINENO: checking for $ac_header" >&5
20145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20152 # Is the header compilable?
20153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 $ac_includes_default
20162 #include <$ac_header>
20164 rm -f conftest.$ac_objext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20166 (eval $ac_compile) 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; } &&
20179 { ac_try='test -s conftest.$ac_objext'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 ac_header_compiler=yes
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20190 ac_header_compiler=no
20192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20194 echo "${ECHO_T}$ac_header_compiler" >&6
20196 # Is the header present?
20197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <$ac_header>
20207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } >/dev/null; then
20215 if test -s conftest.err; then
20216 ac_cpp_err=$ac_c_preproc_warn_flag
20217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20224 if test -z "$ac_cpp_err"; then
20225 ac_header_preproc=yes
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ac_header_preproc=no
20232 rm -f conftest.err conftest.$ac_ext
20233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20234 echo "${ECHO_T}$ac_header_preproc" >&6
20236 # So? What about this header?
20237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20243 ac_header_preproc=yes
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20260 ## ------------------------------------- ##
20261 ## Report this to uncensored.citadel.org ##
20262 ## ------------------------------------- ##
20265 sed "s/^/$as_me: WARNING: /" >&2
20268 echo "$as_me:$LINENO: checking for $ac_header" >&5
20269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 eval "$as_ac_Header=\$ac_header_preproc"
20275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20292 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20293 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20294 if test "${ac_cv_c_const+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20307 /* FIXME: Include the comments suggested by Paul. */
20308 #ifndef __cplusplus
20309 /* Ultrix mips cc rejects this. */
20310 typedef int charset[2];
20312 /* SunOS 4.1.1 cc rejects this. */
20313 char const *const *ccp;
20315 /* NEC SVR4.0.2 mips cc rejects this. */
20316 struct point {int x, y;};
20317 static struct point const zero = {0,0};
20318 /* AIX XL C 1.02.0.0 rejects this.
20319 It does not let you subtract one const X* pointer from another in
20320 an arm of an if-expression whose if-part is not a constant
20322 const char *g = "string";
20323 ccp = &g + (g ? g-g : 0);
20324 /* HPUX 7.0 cc rejects these. */
20327 ccp = (char const *const *) p;
20328 { /* SCO 3.2v4 cc rejects this. */
20330 char const *s = 0 ? (char *) 0 : (char const *) 0;
20334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20335 int x[] = {25, 17};
20336 const int *foo = &x[0];
20339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20340 typedef const int *iptr;
20344 { /* AIX XL C 1.02.0.0 rejects this saying
20345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20346 struct s { int j; const int *ap[3]; };
20347 struct s *b; b->j = 5;
20349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20350 const int foo = 10;
20358 rm -f conftest.$ac_objext
20359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20360 (eval $ac_compile) 2>conftest.er1
20362 grep -v '^ *+' conftest.er1 >conftest.err
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } &&
20367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20389 echo "${ECHO_T}$ac_cv_c_const" >&6
20390 if test $ac_cv_c_const = no; then
20392 cat >>confdefs.h <<\_ACEOF
20398 echo "$as_me:$LINENO: checking for off_t" >&5
20399 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20400 if test "${ac_cv_type_off_t+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20415 if (sizeof (off_t))
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_type_off_t=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_type_off_t=no
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20452 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20453 if test $ac_cv_type_off_t = yes; then
20457 cat >>confdefs.h <<_ACEOF
20463 echo "$as_me:$LINENO: checking for size_t" >&5
20464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20465 if test "${ac_cv_type_size_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20480 if (sizeof (size_t))
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_type_size_t=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_type_size_t=no
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20517 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20518 if test $ac_cv_type_size_t = yes; then
20522 cat >>confdefs.h <<_ACEOF
20523 #define size_t unsigned
20529 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20530 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20531 if test "${ac_cv_type_signal+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <sys/types.h>
20541 #include <signal.h>
20546 extern "C" void (*signal (int, void (*)(int)))(int);
20548 void (*signal ()) ();
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_type_signal=void
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_cv_type_signal=int
20587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20589 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20590 echo "${ECHO_T}$ac_cv_type_signal" >&6
20592 cat >>confdefs.h <<_ACEOF
20593 #define RETSIGTYPE $ac_cv_type_signal
20598 for ac_func in backtrace
20600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20601 echo "$as_me:$LINENO: checking for $ac_func" >&5
20602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20603 if eval "test \"\${$as_ac_var+set}\" = set"; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20614 #define $ac_func innocuous_$ac_func
20616 /* System header to define __stub macros and hopefully few prototypes,
20617 which can conflict with char $ac_func (); below.
20618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619 <limits.h> exists even on freestanding compilers. */
20622 # include <limits.h>
20624 # include <assert.h>
20629 /* Override any gcc2 internal prototype to avoid an error. */
20634 /* We use char because int might match the return type of a gcc2
20635 builtin and then its argument prototype would still apply. */
20637 /* The GNU C library defines this for functions which it implements
20638 to always fail with ENOSYS. Some functions are actually named
20639 something starting with __ and the normal name is an alias. */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20643 char (*f) () = $ac_func;
20652 return f != $ac_func;
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659 (eval $ac_link) 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest$ac_exeext'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 eval "$as_ac_var=yes"
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 eval "$as_ac_var=no"
20685 rm -f conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
20688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20690 if test `eval echo '${'$as_ac_var'}'` = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20699 for ac_func in snprintf
20701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20702 echo "$as_me:$LINENO: checking for $ac_func" >&5
20703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20704 if eval "test \"\${$as_ac_var+set}\" = set"; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20715 #define $ac_func innocuous_$ac_func
20717 /* System header to define __stub macros and hopefully few prototypes,
20718 which can conflict with char $ac_func (); below.
20719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20720 <limits.h> exists even on freestanding compilers. */
20723 # include <limits.h>
20725 # include <assert.h>
20730 /* Override any gcc2 internal prototype to avoid an error. */
20735 /* We use char because int might match the return type of a gcc2
20736 builtin and then its argument prototype would still apply. */
20738 /* The GNU C library defines this for functions which it implements
20739 to always fail with ENOSYS. Some functions are actually named
20740 something starting with __ and the normal name is an alias. */
20741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20744 char (*f) () = $ac_func;
20753 return f != $ac_func;
20758 rm -f conftest.$ac_objext conftest$ac_exeext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20760 (eval $ac_link) 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
20767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 eval "$as_ac_var=yes"
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 eval "$as_ac_var=no"
20786 rm -f conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20791 if test `eval echo '${'$as_ac_var'}'` = yes; then
20792 cat >>confdefs.h <<_ACEOF
20793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20798 "$ac_func.$ac_objext" | \
20799 *" $ac_func.$ac_objext" | \
20800 "$ac_func.$ac_objext "* | \
20801 *" $ac_func.$ac_objext "* ) ;;
20802 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_LIBICAL 1
20816 if test "x$with_libical" != xno ; then
20818 for ac_header in ical.h
20820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20822 echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20830 # Is the header compilable?
20831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 #include <$ac_header>
20842 rm -f conftest.$ac_objext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20844 (eval $ac_compile) 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; } &&
20857 { ac_try='test -s conftest.$ac_objext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_header_compiler=yes
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_compiler=no
20870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20872 echo "${ECHO_T}$ac_header_compiler" >&6
20874 # Is the header present?
20875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 #include <$ac_header>
20885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } >/dev/null; then
20893 if test -s conftest.err; then
20894 ac_cpp_err=$ac_c_preproc_warn_flag
20895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20902 if test -z "$ac_cpp_err"; then
20903 ac_header_preproc=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_preproc=no
20910 rm -f conftest.err conftest.$ac_ext
20911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20921 ac_header_preproc=yes
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20938 ## ------------------------------------- ##
20939 ## Report this to uncensored.citadel.org ##
20940 ## ------------------------------------- ##
20943 sed "s/^/$as_me: WARNING: /" >&2
20946 echo "$as_me:$LINENO: checking for $ac_header" >&5
20947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 eval "$as_ac_Header=\$ac_header_preproc"
20953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20958 cat >>confdefs.h <<_ACEOF
20959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20961 echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
20962 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
20963 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 ac_check_lib_save_LIBS=$LIBS
20967 LIBS="-lical $LIBS"
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20975 /* Override any gcc2 internal prototype to avoid an error. */
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20981 char icalcomponent_new ();
20985 icalcomponent_new ();
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20992 (eval $ac_link) 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest$ac_exeext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_cv_lib_ical_icalcomponent_new=yes
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ac_cv_lib_ical_icalcomponent_new=no
21018 rm -f conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21022 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21023 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21024 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21034 if test "x$ok_libical" = xyes ; then
21036 if test "$cross_compiling" = yes; then
21037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21038 See \`config.log' for more details." >&5
21039 echo "$as_me: error: cannot run test program while cross compiling
21040 See \`config.log' for more details." >&2;}
21041 { (exit 1); exit 1; }; }
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21052 int major, minor, v;
21053 sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21054 v = 100*major + minor;
21055 printf("libical version: %i\n", v);
21057 printf("This version is ok.\n");
21060 printf("libical 0.24 or newer required.\n");
21061 printf("Citadel will be built without calendar support.\n");
21066 rm -f conftest$ac_exeext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21068 (eval $ac_link) 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21078 LIBS="-lical $LIBS"
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_LIBICAL 1
21086 echo "$as_me: program exited with status $ac_status" >&5
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21098 cat >>confdefs.h <<\_ACEOF
21099 #define with_zlib 1
21103 if test "x$ok_zlib" = xyes ; then
21108 # Check whether --with-ok_newt or --without-ok_newt was given.
21109 if test "${with_ok_newt+set}" = set; then
21110 withval="$with_ok_newt"
21114 for ac_header in newt.h
21116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21118 echo "$as_me:$LINENO: checking for $ac_header" >&5
21119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21126 # Is the header compilable?
21127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 $ac_includes_default
21136 #include <$ac_header>
21138 rm -f conftest.$ac_objext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140 (eval $ac_compile) 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; } &&
21153 { ac_try='test -s conftest.$ac_objext'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_header_compiler=yes
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 ac_header_compiler=no
21166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21168 echo "${ECHO_T}$ac_header_compiler" >&6
21170 # Is the header present?
21171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 #include <$ac_header>
21181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21184 grep -v '^ *+' conftest.er1 >conftest.err
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } >/dev/null; then
21189 if test -s conftest.err; then
21190 ac_cpp_err=$ac_c_preproc_warn_flag
21191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21198 if test -z "$ac_cpp_err"; then
21199 ac_header_preproc=yes
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_header_preproc=no
21206 rm -f conftest.err conftest.$ac_ext
21207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21208 echo "${ECHO_T}$ac_header_preproc" >&6
21210 # So? What about this header?
21211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21217 ac_header_preproc=yes
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21234 ## ------------------------------------- ##
21235 ## Report this to uncensored.citadel.org ##
21236 ## ------------------------------------- ##
21239 sed "s/^/$as_me: WARNING: /" >&2
21242 echo "$as_me:$LINENO: checking for $ac_header" >&5
21243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 eval "$as_ac_Header=\$ac_header_preproc"
21249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21254 cat >>confdefs.h <<_ACEOF
21255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21257 echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21258 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21259 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 ac_check_lib_save_LIBS=$LIBS
21263 LIBS="-lnewt $LIBS"
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21271 /* Override any gcc2 internal prototype to avoid an error. */
21275 /* We use char because int might match the return type of a gcc2
21276 builtin and then its argument prototype would still apply. */
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288 (eval $ac_link) 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_lib_newt_newtInit=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_cv_lib_newt_newtInit=no
21314 rm -f conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21316 LIBS=$ac_check_lib_save_LIBS
21318 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21319 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21320 if test $ac_cv_lib_newt_newtInit = yes; then
21334 if test "x$ok_newt" = xyes ; then
21335 SETUP_LIBS="-lnewt $SETUP_LIBS"
21338 # The big search for OpenSSL
21339 if test "$with_ssl" != "no"; then
21341 saved_LDFLAGS="$LDFLAGS"
21342 saved_CFLAGS="$CFLAGS"
21343 if test "x$prefix" != "xNONE"; then
21344 tryssldir="$tryssldir $prefix"
21346 echo "$as_me:$LINENO: checking for OpenSSL" >&5
21347 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21348 if test "${ac_cv_openssldir+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 for ssldir in $tryssldir "" /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
21353 CFLAGS="$saved_CFLAGS"
21354 LDFLAGS="$saved_LDFLAGS"
21355 LIBS="$saved_LIBS -lssl -lcrypto"
21357 # Skip directories if they don't exist
21358 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21361 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21362 # Try to use $ssldir/lib if it exists, otherwise
21364 if test -d "$ssldir/lib" ; then
21365 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21366 if test ! -z "$need_dash_r" ; then
21367 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21370 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21371 if test ! -z "$need_dash_r" ; then
21372 LDFLAGS="-R$ssldir $LDFLAGS"
21375 # Try to use $ssldir/include if it exists, otherwise
21377 if test -d "$ssldir/include" ; then
21378 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21380 CFLAGS="-I$ssldir $saved_CFLAGS"
21384 # Basic test to check for compatible version and correct linking
21385 # *does not* test for RSA - that comes later.
21386 if test "$cross_compiling" = yes; then
21387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21388 See \`config.log' for more details." >&5
21389 echo "$as_me: error: cannot run test program while cross compiling
21390 See \`config.log' for more details." >&2;}
21391 { (exit 1); exit 1; }; }
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21400 #include <string.h>
21401 #include <openssl/rand.h>
21405 memset(a, 0, sizeof(a));
21406 RAND_add(a, sizeof(a), sizeof(a));
21407 return(RAND_status() <= 0);
21411 rm -f conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21427 echo "$as_me: program exited with status $ac_status" >&5
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ( exit $ac_status )
21435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21438 if test ! -z "$found_crypto" ; then
21443 if test -z "$ssldir" ; then
21447 if test ! -z "$found_crypto" ; then
21448 ac_cv_openssldir=$ssldir
21450 ac_cv_openssldir="no"
21454 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21455 echo "${ECHO_T}$ac_cv_openssldir" >&6
21457 LDFLAGS="$saved_LDFLAGS"
21458 CFLAGS="$saved_CFLAGS"
21460 if test "x$ac_cv_openssldir" != "xno" ; then
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_OPENSSL 1
21465 LIBS="-lssl -lcrypto $LIBS"
21466 ssldir=$ac_cv_openssldir
21467 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21468 # Try to use $ssldir/lib if it exists, otherwise
21470 if test -d "$ssldir/lib" ; then
21471 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21472 if test ! -z "$need_dash_r" ; then
21473 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21476 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21477 if test ! -z "$need_dash_r" ; then
21478 LDFLAGS="-R$ssldir $LDFLAGS"
21481 # Try to use $ssldir/include if it exists, otherwise
21483 if test -d "$ssldir/include" ; then
21484 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21486 CFLAGS="-I$ssldir $saved_CFLAGS"
21494 cat >>confdefs.h <<\_ACEOF
21495 #define HAVE_ICONV 1
21499 if test "$ok_nls" != "no"; then
21500 echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21501 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21502 if test "$cross_compiling" = yes; then
21503 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21504 See \`config.log' for more details." >&5
21505 echo "$as_me: error: cannot run test program while cross compiling
21506 See \`config.log' for more details." >&2;}
21507 { (exit 1); exit 1; }; }
21509 cat >conftest.$ac_ext <<_ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21518 iconv_t ic = (iconv_t)(-1) ;
21519 ic = iconv_open("UTF-8", "us-ascii");
21525 rm -f conftest$ac_exeext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21527 (eval $ac_link) 2>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21538 echo "$as_me: program exited with status $ac_status" >&5
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ( exit $ac_status )
21546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 if test "$ok_iconv" != "no"; then
21551 echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21552 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21553 cat >>confdefs.h <<\_ACEOF
21554 #define HAVE_ICONV 1
21558 echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21559 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21563 cat >>confdefs.h <<_ACEOF
21564 #define PREFIX "$prefix"
21571 # if we have intl/...
21573 case "$am__api_version" in
21575 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21576 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
21577 { (exit 1); exit 1; }; }
21583 if test -n ""; then
21584 echo "$as_me:$LINENO: checking for intltool >= " >&5
21585 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21587 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 100 + $ 2; }'`
21588 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
21589 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
21591 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21592 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21593 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
21594 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
21595 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
21596 { (exit 1); exit 1; }; }
21599 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21600 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21601 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21602 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21603 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21604 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21605 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21606 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21607 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21608 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21609 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21610 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
21611 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21612 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21613 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21614 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21615 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21616 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21637 # Use the tools built into the package, not the ones that are installed.
21638 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21640 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21642 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21645 # Extract the first word of "perl", so it can be a program name with args.
21646 set dummy perl; ac_word=$2
21647 echo "$as_me:$LINENO: checking for $ac_word" >&5
21648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21649 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 case $INTLTOOL_PERL in
21654 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21658 for as_dir in $PATH
21661 test -z "$as_dir" && as_dir=.
21662 for ac_exec_ext in '' $ac_executable_extensions; do
21663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21664 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21674 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21676 if test -n "$INTLTOOL_PERL"; then
21677 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21678 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21680 echo "$as_me:$LINENO: result: no" >&5
21681 echo "${ECHO_T}no" >&6
21684 if test -z "$INTLTOOL_PERL"; then
21685 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21686 echo "$as_me: error: perl not found; required for intltool" >&2;}
21687 { (exit 1); exit 1; }; }
21689 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21690 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21691 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21692 { (exit 1); exit 1; }; }
21694 if test "x" != "xno-xml"; then
21695 echo "$as_me:$LINENO: checking for XML::Parser" >&5
21696 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21697 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21698 echo "$as_me:$LINENO: result: ok" >&5
21699 echo "${ECHO_T}ok" >&6
21701 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21702 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21703 { (exit 1); exit 1; }; }
21707 # Extract the first word of "iconv", so it can be a program name with args.
21708 set dummy iconv; ac_word=$2
21709 echo "$as_me:$LINENO: checking for $ac_word" >&5
21710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21711 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 case $INTLTOOL_ICONV in
21716 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21720 for as_dir in $PATH
21723 test -z "$as_dir" && as_dir=.
21724 for ac_exec_ext in '' $ac_executable_extensions; do
21725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21726 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21733 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21737 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21739 if test -n "$INTLTOOL_ICONV"; then
21740 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21741 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21743 echo "$as_me:$LINENO: result: no" >&5
21744 echo "${ECHO_T}no" >&6
21747 # Extract the first word of "msgfmt", so it can be a program name with args.
21748 set dummy msgfmt; ac_word=$2
21749 echo "$as_me:$LINENO: checking for $ac_word" >&5
21750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21751 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 case $INTLTOOL_MSGFMT in
21756 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21763 test -z "$as_dir" && as_dir=.
21764 for ac_exec_ext in '' $ac_executable_extensions; do
21765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21766 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21773 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21777 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21779 if test -n "$INTLTOOL_MSGFMT"; then
21780 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21781 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21783 echo "$as_me:$LINENO: result: no" >&5
21784 echo "${ECHO_T}no" >&6
21787 # Extract the first word of "msgmerge", so it can be a program name with args.
21788 set dummy msgmerge; ac_word=$2
21789 echo "$as_me:$LINENO: checking for $ac_word" >&5
21790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21791 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 case $INTLTOOL_MSGMERGE in
21796 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21800 for as_dir in $PATH
21803 test -z "$as_dir" && as_dir=.
21804 for ac_exec_ext in '' $ac_executable_extensions; do
21805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21806 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21813 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21817 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21819 if test -n "$INTLTOOL_MSGMERGE"; then
21820 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21821 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21823 echo "$as_me:$LINENO: result: no" >&5
21824 echo "${ECHO_T}no" >&6
21827 # Extract the first word of "xgettext", so it can be a program name with args.
21828 set dummy xgettext; ac_word=$2
21829 echo "$as_me:$LINENO: checking for $ac_word" >&5
21830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21831 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 case $INTLTOOL_XGETTEXT in
21836 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21840 for as_dir in $PATH
21843 test -z "$as_dir" && as_dir=.
21844 for ac_exec_ext in '' $ac_executable_extensions; do
21845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21846 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21857 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21859 if test -n "$INTLTOOL_XGETTEXT"; then
21860 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21861 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21863 echo "$as_me:$LINENO: result: no" >&5
21864 echo "${ECHO_T}no" >&6
21871 ac_config_commands="$ac_config_commands intltool"
21877 if test -n "$ac_aux_dir"; then
21878 case "$ac_aux_dir" in
21879 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21880 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21883 if test -z "$MKINSTALLDIRS"; then
21884 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21889 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21890 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21891 # Check whether --enable-nls or --disable-nls was given.
21892 if test "${enable_nls+set}" = set; then
21893 enableval="$enable_nls"
21898 echo "$as_me:$LINENO: result: $USE_NLS" >&5
21899 echo "${ECHO_T}$USE_NLS" >&6
21906 # Prepare PATH_SEPARATOR.
21907 # The user is always right.
21908 if test "${PATH_SEPARATOR+set}" != set; then
21909 echo "#! /bin/sh" >conf$$.sh
21910 echo "exit 0" >>conf$$.sh
21912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21920 # Find out how to test for executable files. Don't use a zero-byte file,
21921 # as systems may use methods other than mode bits to determine executability.
21922 cat >conf$$.file <<_ASEOF
21926 chmod +x conf$$.file
21927 if test -x conf$$.file >/dev/null 2>&1; then
21928 ac_executable_p="test -x"
21930 ac_executable_p="test -f"
21934 # Extract the first word of "msgfmt", so it can be a program name with args.
21935 set dummy msgfmt; ac_word=$2
21936 echo "$as_me:$LINENO: checking for $ac_word" >&5
21937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21938 if test "${ac_cv_path_MSGFMT+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21946 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21947 for ac_dir in $PATH; do
21949 test -z "$ac_dir" && ac_dir=.
21950 for ac_exec_ext in '' $ac_executable_extensions; do
21951 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21952 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21953 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21954 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21961 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21965 MSGFMT="$ac_cv_path_MSGFMT"
21966 if test "$MSGFMT" != ":"; then
21967 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21968 echo "${ECHO_T}$MSGFMT" >&6
21970 echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6
21974 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21975 set dummy gmsgfmt; ac_word=$2
21976 echo "$as_me:$LINENO: checking for $ac_word" >&5
21977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21978 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21987 for as_dir in $PATH
21990 test -z "$as_dir" && as_dir=.
21991 for ac_exec_ext in '' $ac_executable_extensions; do
21992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21993 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22000 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22004 GMSGFMT=$ac_cv_path_GMSGFMT
22006 if test -n "$GMSGFMT"; then
22007 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22008 echo "${ECHO_T}$GMSGFMT" >&6
22010 echo "$as_me:$LINENO: result: no" >&5
22011 echo "${ECHO_T}no" >&6
22016 # Prepare PATH_SEPARATOR.
22017 # The user is always right.
22018 if test "${PATH_SEPARATOR+set}" != set; then
22019 echo "#! /bin/sh" >conf$$.sh
22020 echo "exit 0" >>conf$$.sh
22022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22030 # Find out how to test for executable files. Don't use a zero-byte file,
22031 # as systems may use methods other than mode bits to determine executability.
22032 cat >conf$$.file <<_ASEOF
22036 chmod +x conf$$.file
22037 if test -x conf$$.file >/dev/null 2>&1; then
22038 ac_executable_p="test -x"
22040 ac_executable_p="test -f"
22044 # Extract the first word of "xgettext", so it can be a program name with args.
22045 set dummy xgettext; ac_word=$2
22046 echo "$as_me:$LINENO: checking for $ac_word" >&5
22047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22048 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 case "$XGETTEXT" in
22053 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22056 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22057 for ac_dir in $PATH; do
22059 test -z "$ac_dir" && ac_dir=.
22060 for ac_exec_ext in '' $ac_executable_extensions; do
22061 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22062 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22063 (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
22064 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22071 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22075 XGETTEXT="$ac_cv_path_XGETTEXT"
22076 if test "$XGETTEXT" != ":"; then
22077 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22078 echo "${ECHO_T}$XGETTEXT" >&6
22080 echo "$as_me:$LINENO: result: no" >&5
22081 echo "${ECHO_T}no" >&6
22087 # Prepare PATH_SEPARATOR.
22088 # The user is always right.
22089 if test "${PATH_SEPARATOR+set}" != set; then
22090 echo "#! /bin/sh" >conf$$.sh
22091 echo "exit 0" >>conf$$.sh
22093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22101 # Find out how to test for executable files. Don't use a zero-byte file,
22102 # as systems may use methods other than mode bits to determine executability.
22103 cat >conf$$.file <<_ASEOF
22107 chmod +x conf$$.file
22108 if test -x conf$$.file >/dev/null 2>&1; then
22109 ac_executable_p="test -x"
22111 ac_executable_p="test -f"
22115 # Extract the first word of "msgmerge", so it can be a program name with args.
22116 set dummy msgmerge; ac_word=$2
22117 echo "$as_me:$LINENO: checking for $ac_word" >&5
22118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22119 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 case "$MSGMERGE" in
22124 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22127 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22128 for ac_dir in $PATH; do
22130 test -z "$ac_dir" && ac_dir=.
22131 for ac_exec_ext in '' $ac_executable_extensions; do
22132 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22133 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22134 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22141 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22145 MSGMERGE="$ac_cv_path_MSGMERGE"
22146 if test "$MSGMERGE" != ":"; then
22147 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22148 echo "${ECHO_T}$MSGMERGE" >&6
22150 echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22155 if test "$GMSGFMT" != ":"; then
22156 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22157 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22160 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22161 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22162 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22167 if test "$XGETTEXT" != ":"; then
22168 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22169 (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
22172 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22173 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22179 ac_config_commands="$ac_config_commands default-1"
22183 if test "X$prefix" = "XNONE"; then
22184 acl_final_prefix="$ac_default_prefix"
22186 acl_final_prefix="$prefix"
22188 if test "X$exec_prefix" = "XNONE"; then
22189 acl_final_exec_prefix='${prefix}'
22191 acl_final_exec_prefix="$exec_prefix"
22193 acl_save_prefix="$prefix"
22194 prefix="$acl_final_prefix"
22195 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22196 prefix="$acl_save_prefix"
22199 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22200 if test "${with_gnu_ld+set}" = set; then
22201 withval="$with_gnu_ld"
22202 test "$withval" = no || with_gnu_ld=yes
22206 # Prepare PATH_SEPARATOR.
22207 # The user is always right.
22208 if test "${PATH_SEPARATOR+set}" != set; then
22209 echo "#! /bin/sh" >conf$$.sh
22210 echo "exit 0" >>conf$$.sh
22212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22220 if test "$GCC" = yes; then
22221 # Check if gcc -print-prog-name=ld gives a path.
22222 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22223 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22226 # gcc leaves a trailing carriage return which upsets mingw
22227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22232 # Accept absolute paths.
22233 [\\/]* | [A-Za-z]:[\\/]*)
22234 re_direlt='/[^/][^/]*/\.\./'
22235 # Canonicalize the path of ld
22236 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22238 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22240 test -z "$LD" && LD="$ac_prog"
22243 # If it fails, then pretend we aren't using GCC.
22247 # If it is relative, then search for the first ld in PATH.
22248 with_gnu_ld=unknown
22251 elif test "$with_gnu_ld" = yes; then
22252 echo "$as_me:$LINENO: checking for GNU ld" >&5
22253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22255 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22258 if test "${acl_cv_path_LD+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 if test -z "$LD"; then
22262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22263 for ac_dir in $PATH; do
22264 test -z "$ac_dir" && ac_dir=.
22265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22266 acl_cv_path_LD="$ac_dir/$ac_prog"
22267 # Check to see if the program is GNU ld. I'd rather use --version,
22268 # but apparently some GNU ld's only accept -v.
22269 # Break only if it was the GNU/non-GNU ld that we prefer.
22270 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22271 *GNU* | *'with BFD'*)
22272 test "$with_gnu_ld" != no && break ;;
22274 test "$with_gnu_ld" != yes && break ;;
22280 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22284 LD="$acl_cv_path_LD"
22285 if test -n "$LD"; then
22286 echo "$as_me:$LINENO: result: $LD" >&5
22287 echo "${ECHO_T}$LD" >&6
22289 echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6
22292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22294 { (exit 1); exit 1; }; }
22295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22297 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22301 case `$LD -v 2>&1 </dev/null` in
22302 *GNU* | *'with BFD'*)
22303 acl_cv_prog_gnu_ld=yes ;;
22305 acl_cv_prog_gnu_ld=no ;;
22308 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22309 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22310 with_gnu_ld=$acl_cv_prog_gnu_ld
22314 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22315 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22316 if test "${acl_cv_rpath+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22321 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22323 rm -f ./conftest.sh
22327 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22328 echo "${ECHO_T}$acl_cv_rpath" >&6
22330 libext="$acl_cv_libext"
22331 shlibext="$acl_cv_shlibext"
22332 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22333 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22334 hardcode_direct="$acl_cv_hardcode_direct"
22335 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22336 # Check whether --enable-rpath or --disable-rpath was given.
22337 if test "${enable_rpath+set}" = set; then
22338 enableval="$enable_rpath"
22352 acl_save_prefix="$prefix"
22353 prefix="$acl_final_prefix"
22354 acl_save_exec_prefix="$exec_prefix"
22355 exec_prefix="$acl_final_exec_prefix"
22357 eval additional_includedir=\"$includedir\"
22358 eval additional_libdir=\"$libdir\"
22360 exec_prefix="$acl_save_exec_prefix"
22361 prefix="$acl_save_prefix"
22364 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22365 if test "${with_libiconv_prefix+set}" = set; then
22366 withval="$with_libiconv_prefix"
22368 if test "X$withval" = "Xno"; then
22371 if test "X$withval" = "X"; then
22373 acl_save_prefix="$prefix"
22374 prefix="$acl_final_prefix"
22375 acl_save_exec_prefix="$exec_prefix"
22376 exec_prefix="$acl_final_exec_prefix"
22378 eval additional_includedir=\"$includedir\"
22379 eval additional_libdir=\"$libdir\"
22381 exec_prefix="$acl_save_exec_prefix"
22382 prefix="$acl_save_prefix"
22385 additional_includedir="$withval/include"
22386 additional_libdir="$withval/lib"
22396 names_already_handled=
22397 names_next_round='iconv '
22398 while test -n "$names_next_round"; do
22399 names_this_round="$names_next_round"
22401 for name in $names_this_round; do
22403 for n in $names_already_handled; do
22404 if test "$n" = "$name"; then
22405 already_handled=yes
22409 if test -z "$already_handled"; then
22410 names_already_handled="$names_already_handled $name"
22411 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22412 eval value=\"\$HAVE_LIB$uppername\"
22413 if test -n "$value"; then
22414 if test "$value" = yes; then
22415 eval value=\"\$LIB$uppername\"
22416 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22417 eval value=\"\$LTLIB$uppername\"
22418 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22427 if test $use_additional = yes; then
22428 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22429 found_dir="$additional_libdir"
22430 found_so="$additional_libdir/lib$name.$shlibext"
22431 if test -f "$additional_libdir/lib$name.la"; then
22432 found_la="$additional_libdir/lib$name.la"
22435 if test -f "$additional_libdir/lib$name.$libext"; then
22436 found_dir="$additional_libdir"
22437 found_a="$additional_libdir/lib$name.$libext"
22438 if test -f "$additional_libdir/lib$name.la"; then
22439 found_la="$additional_libdir/lib$name.la"
22444 if test "X$found_dir" = "X"; then
22445 for x in $LDFLAGS $LTLIBICONV; do
22447 acl_save_prefix="$prefix"
22448 prefix="$acl_final_prefix"
22449 acl_save_exec_prefix="$exec_prefix"
22450 exec_prefix="$acl_final_exec_prefix"
22452 exec_prefix="$acl_save_exec_prefix"
22453 prefix="$acl_save_prefix"
22457 dir=`echo "X$x" | sed -e 's/^X-L//'`
22458 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22460 found_so="$dir/lib$name.$shlibext"
22461 if test -f "$dir/lib$name.la"; then
22462 found_la="$dir/lib$name.la"
22465 if test -f "$dir/lib$name.$libext"; then
22467 found_a="$dir/lib$name.$libext"
22468 if test -f "$dir/lib$name.la"; then
22469 found_la="$dir/lib$name.la"
22475 if test "X$found_dir" != "X"; then
22480 if test "X$found_dir" != "X"; then
22481 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22482 if test "X$found_so" != "X"; then
22483 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22487 for x in $ltrpathdirs; do
22488 if test "X$x" = "X$found_dir"; then
22493 if test -z "$haveit"; then
22494 ltrpathdirs="$ltrpathdirs $found_dir"
22496 if test "$hardcode_direct" = yes; then
22497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22499 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22502 for x in $rpathdirs; do
22503 if test "X$x" = "X$found_dir"; then
22508 if test -z "$haveit"; then
22509 rpathdirs="$rpathdirs $found_dir"
22513 for x in $LDFLAGS $LIBICONV; do
22515 acl_save_prefix="$prefix"
22516 prefix="$acl_final_prefix"
22517 acl_save_exec_prefix="$exec_prefix"
22518 exec_prefix="$acl_final_exec_prefix"
22520 exec_prefix="$acl_save_exec_prefix"
22521 prefix="$acl_save_prefix"
22523 if test "X$x" = "X-L$found_dir"; then
22528 if test -z "$haveit"; then
22529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22531 if test "$hardcode_minus_L" != no; then
22532 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22534 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22540 if test "X$found_a" != "X"; then
22541 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22543 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22546 additional_includedir=
22547 case "$found_dir" in
22549 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22550 additional_includedir="$basedir/include"
22553 if test "X$additional_includedir" != "X"; then
22554 if test "X$additional_includedir" != "X/usr/include"; then
22556 if test "X$additional_includedir" = "X/usr/local/include"; then
22557 if test -n "$GCC"; then
22559 linux*) haveit=yes;;
22563 if test -z "$haveit"; then
22564 for x in $CPPFLAGS $INCICONV; do
22566 acl_save_prefix="$prefix"
22567 prefix="$acl_final_prefix"
22568 acl_save_exec_prefix="$exec_prefix"
22569 exec_prefix="$acl_final_exec_prefix"
22571 exec_prefix="$acl_save_exec_prefix"
22572 prefix="$acl_save_prefix"
22574 if test "X$x" = "X-I$additional_includedir"; then
22579 if test -z "$haveit"; then
22580 if test -d "$additional_includedir"; then
22581 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22587 if test -n "$found_la"; then
22588 save_libdir="$libdir"
22589 case "$found_la" in
22590 */* | *\\*) . "$found_la" ;;
22591 *) . "./$found_la" ;;
22593 libdir="$save_libdir"
22594 for dep in $dependency_libs; do
22597 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22598 if test "X$additional_libdir" != "X/usr/lib"; then
22600 if test "X$additional_libdir" = "X/usr/local/lib"; then
22601 if test -n "$GCC"; then
22603 linux*) haveit=yes;;
22607 if test -z "$haveit"; then
22609 for x in $LDFLAGS $LIBICONV; do
22611 acl_save_prefix="$prefix"
22612 prefix="$acl_final_prefix"
22613 acl_save_exec_prefix="$exec_prefix"
22614 exec_prefix="$acl_final_exec_prefix"
22616 exec_prefix="$acl_save_exec_prefix"
22617 prefix="$acl_save_prefix"
22619 if test "X$x" = "X-L$additional_libdir"; then
22624 if test -z "$haveit"; then
22625 if test -d "$additional_libdir"; then
22626 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22630 for x in $LDFLAGS $LTLIBICONV; do
22632 acl_save_prefix="$prefix"
22633 prefix="$acl_final_prefix"
22634 acl_save_exec_prefix="$exec_prefix"
22635 exec_prefix="$acl_final_exec_prefix"
22637 exec_prefix="$acl_save_exec_prefix"
22638 prefix="$acl_save_prefix"
22640 if test "X$x" = "X-L$additional_libdir"; then
22645 if test -z "$haveit"; then
22646 if test -d "$additional_libdir"; then
22647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22654 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22655 if test "$enable_rpath" != no; then
22657 for x in $rpathdirs; do
22658 if test "X$x" = "X$dir"; then
22663 if test -z "$haveit"; then
22664 rpathdirs="$rpathdirs $dir"
22667 for x in $ltrpathdirs; do
22668 if test "X$x" = "X$dir"; then
22673 if test -z "$haveit"; then
22674 ltrpathdirs="$ltrpathdirs $dir"
22679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22682 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22685 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22692 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22699 if test "X$rpathdirs" != "X"; then
22700 if test -n "$hardcode_libdir_separator"; then
22702 for found_dir in $rpathdirs; do
22703 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22705 acl_save_libdir="$libdir"
22707 eval flag=\"$hardcode_libdir_flag_spec\"
22708 libdir="$acl_save_libdir"
22709 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22711 for found_dir in $rpathdirs; do
22712 acl_save_libdir="$libdir"
22713 libdir="$found_dir"
22714 eval flag=\"$hardcode_libdir_flag_spec\"
22715 libdir="$acl_save_libdir"
22716 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22720 if test "X$ltrpathdirs" != "X"; then
22721 for found_dir in $ltrpathdirs; do
22722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 #include <locale.h>
22737 extern locale_t wc_locales[]
22742 rm -f conftest.$ac_objext
22743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22744 (eval $ac_compile) 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } &&
22751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22781 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22782 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22783 # Check whether --enable-nls or --disable-nls was given.
22784 if test "${enable_nls+set}" = set; then
22785 enableval="$enable_nls"
22790 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22791 echo "${ECHO_T}$USE_NLS" >&6
22800 if test "$USE_NLS" = "yes"; then
22801 gt_use_preinstalled_gnugettext=no
22808 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22809 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22810 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <libintl.h>
22820 extern int _nl_msg_cat_cntr;
22821 extern int *_nl_domain_bindings;
22825 bindtextdomain ("", "");
22826 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833 (eval $ac_link) 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; } &&
22846 { ac_try='test -s conftest$ac_exeext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 gt_cv_func_gnugettext2_libc=yes
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 gt_cv_func_gnugettext2_libc=no
22859 rm -f conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22862 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22863 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22865 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22871 am_save_CPPFLAGS="$CPPFLAGS"
22873 for element in $INCICONV; do
22875 for x in $CPPFLAGS; do
22877 acl_save_prefix="$prefix"
22878 prefix="$acl_final_prefix"
22879 acl_save_exec_prefix="$exec_prefix"
22880 exec_prefix="$acl_final_exec_prefix"
22882 exec_prefix="$acl_save_exec_prefix"
22883 prefix="$acl_save_prefix"
22885 if test "X$x" = "X$element"; then
22890 if test -z "$haveit"; then
22891 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22896 echo "$as_me:$LINENO: checking for iconv" >&5
22897 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22898 if test "${am_cv_func_iconv+set}" = set; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 am_cv_func_iconv="no, consider installing GNU libiconv"
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #include <stdlib.h>
22915 iconv_t cd = iconv_open("","");
22916 iconv(cd,NULL,NULL,NULL,NULL);
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22924 (eval $ac_link) 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } &&
22931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22933 (eval $ac_try) 2>&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); }; } &&
22937 { ac_try='test -s conftest$ac_exeext'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 am_cv_func_iconv=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22949 rm -f conftest.err conftest.$ac_objext \
22950 conftest$ac_exeext conftest.$ac_ext
22951 if test "$am_cv_func_iconv" != yes; then
22952 am_save_LIBS="$LIBS"
22953 LIBS="$LIBS $LIBICONV"
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 #include <stdlib.h>
22965 iconv_t cd = iconv_open("","");
22966 iconv(cd,NULL,NULL,NULL,NULL);
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22974 (eval $ac_link) 2>conftest.er1
22976 grep -v '^ *+' conftest.er1 >conftest.err
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
22981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; } &&
22987 { ac_try='test -s conftest$ac_exeext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22993 am_cv_lib_iconv=yes
22994 am_cv_func_iconv=yes
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
23000 rm -f conftest.err conftest.$ac_objext \
23001 conftest$ac_exeext conftest.$ac_ext
23002 LIBS="$am_save_LIBS"
23006 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23007 echo "${ECHO_T}$am_cv_func_iconv" >&6
23008 if test "$am_cv_func_iconv" = yes; then
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_ICONV 1
23015 if test "$am_cv_lib_iconv" = yes; then
23016 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23017 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23018 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23019 echo "${ECHO_T}$LIBICONV" >&6
23021 CPPFLAGS="$am_save_CPPFLAGS"
23033 acl_save_prefix="$prefix"
23034 prefix="$acl_final_prefix"
23035 acl_save_exec_prefix="$exec_prefix"
23036 exec_prefix="$acl_final_exec_prefix"
23038 eval additional_includedir=\"$includedir\"
23039 eval additional_libdir=\"$libdir\"
23041 exec_prefix="$acl_save_exec_prefix"
23042 prefix="$acl_save_prefix"
23045 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23046 if test "${with_libintl_prefix+set}" = set; then
23047 withval="$with_libintl_prefix"
23049 if test "X$withval" = "Xno"; then
23052 if test "X$withval" = "X"; then
23054 acl_save_prefix="$prefix"
23055 prefix="$acl_final_prefix"
23056 acl_save_exec_prefix="$exec_prefix"
23057 exec_prefix="$acl_final_exec_prefix"
23059 eval additional_includedir=\"$includedir\"
23060 eval additional_libdir=\"$libdir\"
23062 exec_prefix="$acl_save_exec_prefix"
23063 prefix="$acl_save_prefix"
23066 additional_includedir="$withval/include"
23067 additional_libdir="$withval/lib"
23077 names_already_handled=
23078 names_next_round='intl '
23079 while test -n "$names_next_round"; do
23080 names_this_round="$names_next_round"
23082 for name in $names_this_round; do
23084 for n in $names_already_handled; do
23085 if test "$n" = "$name"; then
23086 already_handled=yes
23090 if test -z "$already_handled"; then
23091 names_already_handled="$names_already_handled $name"
23092 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23093 eval value=\"\$HAVE_LIB$uppername\"
23094 if test -n "$value"; then
23095 if test "$value" = yes; then
23096 eval value=\"\$LIB$uppername\"
23097 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23098 eval value=\"\$LTLIB$uppername\"
23099 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23108 if test $use_additional = yes; then
23109 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23110 found_dir="$additional_libdir"
23111 found_so="$additional_libdir/lib$name.$shlibext"
23112 if test -f "$additional_libdir/lib$name.la"; then
23113 found_la="$additional_libdir/lib$name.la"
23116 if test -f "$additional_libdir/lib$name.$libext"; then
23117 found_dir="$additional_libdir"
23118 found_a="$additional_libdir/lib$name.$libext"
23119 if test -f "$additional_libdir/lib$name.la"; then
23120 found_la="$additional_libdir/lib$name.la"
23125 if test "X$found_dir" = "X"; then
23126 for x in $LDFLAGS $LTLIBINTL; do
23128 acl_save_prefix="$prefix"
23129 prefix="$acl_final_prefix"
23130 acl_save_exec_prefix="$exec_prefix"
23131 exec_prefix="$acl_final_exec_prefix"
23133 exec_prefix="$acl_save_exec_prefix"
23134 prefix="$acl_save_prefix"
23138 dir=`echo "X$x" | sed -e 's/^X-L//'`
23139 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23141 found_so="$dir/lib$name.$shlibext"
23142 if test -f "$dir/lib$name.la"; then
23143 found_la="$dir/lib$name.la"
23146 if test -f "$dir/lib$name.$libext"; then
23148 found_a="$dir/lib$name.$libext"
23149 if test -f "$dir/lib$name.la"; then
23150 found_la="$dir/lib$name.la"
23156 if test "X$found_dir" != "X"; then
23161 if test "X$found_dir" != "X"; then
23162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23163 if test "X$found_so" != "X"; then
23164 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23165 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23168 for x in $ltrpathdirs; do
23169 if test "X$x" = "X$found_dir"; then
23174 if test -z "$haveit"; then
23175 ltrpathdirs="$ltrpathdirs $found_dir"
23177 if test "$hardcode_direct" = yes; then
23178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23180 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23183 for x in $rpathdirs; do
23184 if test "X$x" = "X$found_dir"; then
23189 if test -z "$haveit"; then
23190 rpathdirs="$rpathdirs $found_dir"
23194 for x in $LDFLAGS $LIBINTL; do
23196 acl_save_prefix="$prefix"
23197 prefix="$acl_final_prefix"
23198 acl_save_exec_prefix="$exec_prefix"
23199 exec_prefix="$acl_final_exec_prefix"
23201 exec_prefix="$acl_save_exec_prefix"
23202 prefix="$acl_save_prefix"
23204 if test "X$x" = "X-L$found_dir"; then
23209 if test -z "$haveit"; then
23210 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23212 if test "$hardcode_minus_L" != no; then
23213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23215 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23221 if test "X$found_a" != "X"; then
23222 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23224 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23227 additional_includedir=
23228 case "$found_dir" in
23230 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23231 additional_includedir="$basedir/include"
23234 if test "X$additional_includedir" != "X"; then
23235 if test "X$additional_includedir" != "X/usr/include"; then
23237 if test "X$additional_includedir" = "X/usr/local/include"; then
23238 if test -n "$GCC"; then
23240 linux*) haveit=yes;;
23244 if test -z "$haveit"; then
23245 for x in $CPPFLAGS $INCINTL; do
23247 acl_save_prefix="$prefix"
23248 prefix="$acl_final_prefix"
23249 acl_save_exec_prefix="$exec_prefix"
23250 exec_prefix="$acl_final_exec_prefix"
23252 exec_prefix="$acl_save_exec_prefix"
23253 prefix="$acl_save_prefix"
23255 if test "X$x" = "X-I$additional_includedir"; then
23260 if test -z "$haveit"; then
23261 if test -d "$additional_includedir"; then
23262 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23268 if test -n "$found_la"; then
23269 save_libdir="$libdir"
23270 case "$found_la" in
23271 */* | *\\*) . "$found_la" ;;
23272 *) . "./$found_la" ;;
23274 libdir="$save_libdir"
23275 for dep in $dependency_libs; do
23278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23279 if test "X$additional_libdir" != "X/usr/lib"; then
23281 if test "X$additional_libdir" = "X/usr/local/lib"; then
23282 if test -n "$GCC"; then
23284 linux*) haveit=yes;;
23288 if test -z "$haveit"; then
23290 for x in $LDFLAGS $LIBINTL; do
23292 acl_save_prefix="$prefix"
23293 prefix="$acl_final_prefix"
23294 acl_save_exec_prefix="$exec_prefix"
23295 exec_prefix="$acl_final_exec_prefix"
23297 exec_prefix="$acl_save_exec_prefix"
23298 prefix="$acl_save_prefix"
23300 if test "X$x" = "X-L$additional_libdir"; then
23305 if test -z "$haveit"; then
23306 if test -d "$additional_libdir"; then
23307 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23311 for x in $LDFLAGS $LTLIBINTL; do
23313 acl_save_prefix="$prefix"
23314 prefix="$acl_final_prefix"
23315 acl_save_exec_prefix="$exec_prefix"
23316 exec_prefix="$acl_final_exec_prefix"
23318 exec_prefix="$acl_save_exec_prefix"
23319 prefix="$acl_save_prefix"
23321 if test "X$x" = "X-L$additional_libdir"; then
23326 if test -z "$haveit"; then
23327 if test -d "$additional_libdir"; then
23328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23335 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23336 if test "$enable_rpath" != no; then
23338 for x in $rpathdirs; do
23339 if test "X$x" = "X$dir"; then
23344 if test -z "$haveit"; then
23345 rpathdirs="$rpathdirs $dir"
23348 for x in $ltrpathdirs; do
23349 if test "X$x" = "X$dir"; then
23354 if test -z "$haveit"; then
23355 ltrpathdirs="$ltrpathdirs $dir"
23360 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23363 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23366 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23373 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23380 if test "X$rpathdirs" != "X"; then
23381 if test -n "$hardcode_libdir_separator"; then
23383 for found_dir in $rpathdirs; do
23384 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23386 acl_save_libdir="$libdir"
23388 eval flag=\"$hardcode_libdir_flag_spec\"
23389 libdir="$acl_save_libdir"
23390 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23392 for found_dir in $rpathdirs; do
23393 acl_save_libdir="$libdir"
23394 libdir="$found_dir"
23395 eval flag=\"$hardcode_libdir_flag_spec\"
23396 libdir="$acl_save_libdir"
23397 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23401 if test "X$ltrpathdirs" != "X"; then
23402 for found_dir in $ltrpathdirs; do
23403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23407 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23408 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23409 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 gt_save_CPPFLAGS="$CPPFLAGS"
23413 CPPFLAGS="$CPPFLAGS $INCINTL"
23414 gt_save_LIBS="$LIBS"
23415 LIBS="$LIBS $LIBINTL"
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 #include <libintl.h>
23423 extern int _nl_msg_cat_cntr;
23428 const char *_nl_expand_alias ();
23432 bindtextdomain ("", "");
23433 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>conftest.er1
23442 grep -v '^ *+' conftest.er1 >conftest.err
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; } &&
23453 { ac_try='test -s conftest$ac_exeext'
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; }; then
23459 gt_cv_func_gnugettext2_libintl=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 gt_cv_func_gnugettext2_libintl=no
23466 rm -f conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23468 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23469 LIBS="$LIBS $LIBICONV"
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 #include <libintl.h>
23477 extern int _nl_msg_cat_cntr;
23482 const char *_nl_expand_alias ();
23486 bindtextdomain ("", "");
23487 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23494 (eval $ac_link) 2>conftest.er1
23496 grep -v '^ *+' conftest.er1 >conftest.err
23498 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } &&
23501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; } &&
23507 { ac_try='test -s conftest$ac_exeext'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; }; then
23513 LIBINTL="$LIBINTL $LIBICONV"
23514 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23515 gt_cv_func_gnugettext2_libintl=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23522 rm -f conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23525 CPPFLAGS="$gt_save_CPPFLAGS"
23526 LIBS="$gt_save_LIBS"
23528 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23529 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23532 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23533 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23534 && test "$PACKAGE" != gettext-runtime \
23535 && test "$PACKAGE" != gettext-tools; }; then
23536 gt_use_preinstalled_gnugettext=yes
23545 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23546 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define ENABLE_NLS 1
23557 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23558 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23559 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23560 echo "${ECHO_T}$USE_NLS" >&6
23561 if test "$USE_NLS" = "yes"; then
23562 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23563 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23564 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23565 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23566 gt_source="external libintl"
23571 gt_source="included intl directory"
23573 echo "$as_me:$LINENO: result: $gt_source" >&5
23574 echo "${ECHO_T}$gt_source" >&6
23577 if test "$USE_NLS" = "yes"; then
23579 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23580 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23581 echo "$as_me:$LINENO: checking how to link with libintl" >&5
23582 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23583 echo "$as_me:$LINENO: result: $LIBINTL" >&5
23584 echo "${ECHO_T}$LIBINTL" >&6
23586 for element in $INCINTL; do
23588 for x in $CPPFLAGS; do
23590 acl_save_prefix="$prefix"
23591 prefix="$acl_final_prefix"
23592 acl_save_exec_prefix="$exec_prefix"
23593 exec_prefix="$acl_final_exec_prefix"
23595 exec_prefix="$acl_save_exec_prefix"
23596 prefix="$acl_save_prefix"
23598 if test "X$x" = "X$element"; then
23603 if test -z "$haveit"; then
23604 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23611 cat >>confdefs.h <<\_ACEOF
23612 #define HAVE_GETTEXT 1
23616 cat >>confdefs.h <<\_ACEOF
23617 #define HAVE_DCGETTEXT 1
23627 INTLLIBS="$LIBINTL"
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23656 # Check whether --with-rundir or --without-rundir was given.
23657 if test "${with_rundir+set}" = set; then
23658 withval="$with_rundir"
23661 rundir=/usr/local/citadel
23664 cat >>confdefs.h <<_ACEOF
23665 #define RUNDIR "$rundir"
23671 # Check whether --with-staticdir or --without-staticdir was given.
23672 if test "${with_staticdir+set}" = set; then
23673 withval="$with_staticdir"
23681 # Check whether --with-staticrundir or --without-staticrundir was given.
23682 if test "${with_staticrundir+set}" = set; then
23683 withval="$with_staticrundir"
23684 staticrundir=$withval
23686 staticrundir=$staticdir
23690 cat >>confdefs.h <<_ACEOF
23691 #define DATADIR "$staticrundir"
23697 # Check whether --with-editordir or --without-editordir was given.
23698 if test "${with_editordir+set}" = set; then
23699 withval="$with_editordir"
23702 editordir=$staticrundir
23706 cat >>confdefs.h <<_ACEOF
23707 #define EDITORDIR "$editordir"
23713 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23714 cat >confcache <<\_ACEOF
23715 # This file is a shell script that caches the results of configure
23716 # tests run on this system so they can be shared between configure
23717 # scripts and configure runs, see configure's option --config-cache.
23718 # It is not useful on other systems. If it contains results you don't
23719 # want to keep, you may remove or edit it.
23721 # config.status only pays attention to the cache file if you give it
23722 # the --recheck option to rerun configure.
23724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23726 # following values.
23730 # The following way of writing the cache mishandles newlines in values,
23731 # but we know of no workaround that is simple, portable, and efficient.
23732 # So, don't put newlines in cache variables' values.
23733 # Ultrix sh set writes to stderr and can't be redirected directly,
23734 # and sets the high bit in the cache file unless we assign to the vars.
23737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23739 # `set' does not quote correctly, so add quotes (double-quote
23740 # substitution turns \\\\ into \\, and sed turns \\ into \).
23743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23746 # `set' quotes correctly as required by POSIX, so do not add quotes.
23748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23759 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23760 if test -w $cache_file; then
23761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23762 cat confcache >$cache_file
23764 echo "not updating unwritable cache $cache_file"
23769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23770 # Let make expand exec_prefix.
23771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23775 # trailing colons and then remove the whole line if VPATH becomes empty
23776 # (actually we leave an empty line to preserve line numbers).
23777 if test "x$srcdir" = x.; then
23778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23779 s/:*\$(srcdir):*/:/;
23780 s/:*\${srcdir}:*/:/;
23782 s/^\([^=]*=[ ]*\):*/\1/;
23788 DEFS=-DHAVE_CONFIG_H
23792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23793 # 1. Remove the extension, and $U if already installed.
23794 ac_i=`echo "$ac_i" |
23795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23797 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23798 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23800 LIBOBJS=$ac_libobjs
23802 LTLIBOBJS=$ac_ltlibobjs
23805 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23806 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23807 Usually this means the macro was only invoked conditionally." >&5
23808 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23809 Usually this means the macro was only invoked conditionally." >&2;}
23810 { (exit 1); exit 1; }; }
23812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23813 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23814 Usually this means the macro was only invoked conditionally." >&5
23815 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23816 Usually this means the macro was only invoked conditionally." >&2;}
23817 { (exit 1); exit 1; }; }
23819 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23820 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23821 Usually this means the macro was only invoked conditionally." >&5
23822 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23823 Usually this means the macro was only invoked conditionally." >&2;}
23824 { (exit 1); exit 1; }; }
23826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23828 Usually this means the macro was only invoked conditionally." >&5
23829 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23830 Usually this means the macro was only invoked conditionally." >&2;}
23831 { (exit 1); exit 1; }; }
23834 ac_config_commands="$ac_config_commands po/stamp-it"
23838 : ${CONFIG_STATUS=./config.status}
23839 ac_clean_files_save=$ac_clean_files
23840 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23841 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23842 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23843 cat >$CONFIG_STATUS <<_ACEOF
23845 # Generated by $as_me.
23846 # Run this file to recreate the current configuration.
23847 # Compiler output produced by configure, useful for debugging
23848 # configure, is in config.log if it exists.
23851 ac_cs_recheck=false
23853 SHELL=\${CONFIG_SHELL-$SHELL}
23856 cat >>$CONFIG_STATUS <<\_ACEOF
23857 ## --------------------- ##
23858 ## M4sh Initialization. ##
23859 ## --------------------- ##
23861 # Be Bourne compatible
23862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23865 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23866 # is contrary to our usage. Disable this feature.
23867 alias -g '${1+"$@"}'='"$@"'
23868 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23871 DUALCASE=1; export DUALCASE # for MKS sh
23873 # Support unset when possible.
23874 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23881 # Work around bugs in pre-3.0 UWIN ksh.
23882 $as_unset ENV MAIL MAILPATH
23889 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23890 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23891 LC_TELEPHONE LC_TIME
23893 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23894 eval $as_var=C; export $as_var
23900 # Required to use basename.
23901 if expr a : '\(a\)' >/dev/null 2>&1; then
23907 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23908 as_basename=basename
23914 # Name of the executable.
23915 as_me=`$as_basename "$0" ||
23916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23917 X"$0" : 'X\(//\)$' \| \
23918 X"$0" : 'X\(/\)$' \| \
23919 . : '\(.\)' 2>/dev/null ||
23921 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23922 /^X\/\(\/\/\)$/{ s//\1/; q; }
23923 /^X\/\(\/\).*/{ s//\1/; q; }
23927 # PATH needs CR, and LINENO needs CR and PATH.
23928 # Avoid depending upon Character Ranges.
23929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23932 as_cr_digits='0123456789'
23933 as_cr_alnum=$as_cr_Letters$as_cr_digits
23935 # The user is always right.
23936 if test "${PATH_SEPARATOR+set}" != set; then
23937 echo "#! /bin/sh" >conf$$.sh
23938 echo "exit 0" >>conf$$.sh
23940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23949 as_lineno_1=$LINENO
23950 as_lineno_2=$LINENO
23951 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23952 test "x$as_lineno_1" != "x$as_lineno_2" &&
23953 test "x$as_lineno_3" = "x$as_lineno_2" || {
23954 # Find who we are. Look in the path if we contain no path at all
23957 *[\\/]* ) as_myself=$0 ;;
23958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23959 for as_dir in $PATH
23962 test -z "$as_dir" && as_dir=.
23963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23968 # We did not find ourselves, most probably we were run as `sh COMMAND'
23969 # in which case we are not to be found in the path.
23970 if test "x$as_myself" = x; then
23973 if test ! -f "$as_myself"; then
23974 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23975 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23976 { (exit 1); exit 1; }; }
23978 case $CONFIG_SHELL in
23980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23981 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23984 test -z "$as_dir" && as_dir=.
23985 for as_base in sh bash ksh sh5; do
23988 if ("$as_dir/$as_base" -c '
23989 as_lineno_1=$LINENO
23990 as_lineno_2=$LINENO
23991 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23992 test "x$as_lineno_1" != "x$as_lineno_2" &&
23993 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23994 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23995 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23996 CONFIG_SHELL=$as_dir/$as_base
23997 export CONFIG_SHELL
23998 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24006 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24007 # uniformly replaced by the line number. The first 'sed' inserts a
24008 # line-number line before each line; the second 'sed' does the real
24009 # work. The second script uses 'N' to pair each line-number line
24010 # with the numbered line, and appends trailing '-' during
24011 # substitution so that $LINENO is not a special case at line end.
24012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24013 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24014 sed '=' <$as_myself |
24019 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24022 s,^['$as_cr_digits']*\n,,
24023 ' >$as_me.lineno &&
24024 chmod +x $as_me.lineno ||
24025 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24026 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24027 { (exit 1); exit 1; }; }
24029 # Don't try to exec as it changes $[0], causing all sort of problems
24030 # (the dirname of $[0] is not the place where we might find the
24031 # original and so on. Autoconf is especially sensible to this).
24033 # Exit status is that of the last command.
24038 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24039 *c*,-n*) ECHO_N= ECHO_C='
24041 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24042 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24045 if expr a : '\(a\)' >/dev/null 2>&1; then
24051 rm -f conf$$ conf$$.exe conf$$.file
24053 if ln -s conf$$.file conf$$ 2>/dev/null; then
24054 # We could just check for DJGPP; but this test a) works b) is more generic
24055 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24056 if test -f conf$$.exe; then
24057 # Don't use ln at all; we don't have any links
24062 elif ln conf$$.file conf$$ 2>/dev/null; then
24067 rm -f conf$$ conf$$.exe conf$$.file
24069 if mkdir -p . 2>/dev/null; then
24072 test -d ./-p && rmdir ./-p
24076 as_executable_p="test -f"
24078 # Sed expression to map a string onto a valid CPP name.
24079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24081 # Sed expression to map a string onto a valid variable name.
24082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24086 # We need space, tab and new line, in precisely that order.
24096 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24097 # report actual input values of CONFIG_FILES etc. instead of their
24098 # values after options handling. Logging --version etc. is OK.
24102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24103 ## Running $as_me. ##
24108 This file was extended by webcit $as_me 6.80, which was
24109 generated by GNU Autoconf 2.59. Invocation command line was
24111 CONFIG_FILES = $CONFIG_FILES
24112 CONFIG_HEADERS = $CONFIG_HEADERS
24113 CONFIG_LINKS = $CONFIG_LINKS
24114 CONFIG_COMMANDS = $CONFIG_COMMANDS
24118 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24122 # Files that config.status was made for.
24123 if test -n "$ac_config_files"; then
24124 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24127 if test -n "$ac_config_headers"; then
24128 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24131 if test -n "$ac_config_links"; then
24132 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24135 if test -n "$ac_config_commands"; then
24136 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24142 \`$as_me' instantiates files from templates according to the
24143 current configuration.
24145 Usage: $0 [OPTIONS] [FILE]...
24147 -h, --help print this help, then exit
24148 -V, --version print version number, then exit
24149 -q, --quiet do not print progress messages
24150 -d, --debug don't remove temporary files
24151 --recheck update $as_me by reconfiguring in the same conditions
24152 --file=FILE[:TEMPLATE]
24153 instantiate the configuration file FILE
24154 --header=FILE[:TEMPLATE]
24155 instantiate the configuration header FILE
24157 Configuration files:
24160 Configuration headers:
24163 Configuration commands:
24166 Report bugs to <bug-autoconf@gnu.org>."
24169 cat >>$CONFIG_STATUS <<_ACEOF
24171 webcit config.status 6.80
24172 configured by $0, generated by GNU Autoconf 2.59,
24173 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24175 Copyright (C) 2003 Free Software Foundation, Inc.
24176 This config.status script is free software; the Free Software Foundation
24177 gives unlimited permission to copy, distribute and modify it."
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183 # If no file are specified by the user, then we need to provide default
24184 # value. By we need to know if files were specified by the user.
24190 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24191 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24199 *) # This is not an option, so the user has probably given explicit
24202 ac_need_defaults=false;;
24206 # Handling of the options.
24208 cat >>$CONFIG_STATUS <<\_ACEOF
24209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24211 --version | --vers* | -V )
24212 echo "$ac_cs_version"; exit 0 ;;
24214 # Conflict between --help and --header
24215 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24216 Try \`$0 --help' for more information." >&5
24217 echo "$as_me: error: ambiguous option: $1
24218 Try \`$0 --help' for more information." >&2;}
24219 { (exit 1); exit 1; }; };;
24220 --help | --hel | -h )
24221 echo "$ac_cs_usage"; exit 0 ;;
24222 --debug | --d* | -d )
24224 --file | --fil | --fi | --f )
24226 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24227 ac_need_defaults=false;;
24228 --header | --heade | --head | --hea )
24230 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24231 ac_need_defaults=false;;
24232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24236 # This is an error.
24237 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24238 Try \`$0 --help' for more information." >&5
24239 echo "$as_me: error: unrecognized option: $1
24240 Try \`$0 --help' for more information." >&2;}
24241 { (exit 1); exit 1; }; } ;;
24243 *) ac_config_targets="$ac_config_targets $1" ;;
24249 ac_configure_extra_args=
24251 if $ac_cs_silent; then
24253 ac_configure_extra_args="$ac_configure_extra_args --silent"
24257 cat >>$CONFIG_STATUS <<_ACEOF
24258 if \$ac_cs_recheck; then
24259 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24260 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24265 cat >>$CONFIG_STATUS <<_ACEOF
24267 # INIT-COMMANDS section.
24270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24271 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
24272 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
24273 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
24274 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
24275 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
24276 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24277 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24279 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24280 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24281 LINGUAS="${LINGUAS-%UNSET%}"
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24289 for ac_config_target in $ac_config_targets
24291 case "$ac_config_target" in
24292 # Handling of arguments.
24293 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24294 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24295 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24296 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24297 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24298 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24299 "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
24300 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24302 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24303 { (exit 1); exit 1; }; };;
24307 # If the user did not use the arguments to specify the items to instantiate,
24308 # then the envvar interface is used. Set only those that are not.
24309 # We use the long form for the default assignment because of an extremely
24310 # bizarre bug on SunOS 4.1.3.
24311 if $ac_need_defaults; then
24312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24317 # Have a temporary directory for convenience. Make it in the build tree
24318 # simply because there is no reason to put it here, and in addition,
24319 # creating and moving files from /tmp can sometimes cause problems.
24320 # Create a temporary directory, and hook for its removal unless debugging.
24323 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24324 trap '{ (exit 1); exit 1; }' 1 2 13 15
24327 # Create a (secure) tmp directory for tmp files.
24330 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24331 test -n "$tmp" && test -d "$tmp"
24334 tmp=./confstat$$-$RANDOM
24335 (umask 077 && mkdir $tmp)
24338 echo "$me: cannot create a temporary directory in ." >&2
24339 { (exit 1); exit 1; }
24344 cat >>$CONFIG_STATUS <<_ACEOF
24347 # CONFIG_FILES section.
24350 # No need to generate the scripts if there are no CONFIG_FILES.
24351 # This happens for instance when ./config.status config.h
24352 if test -n "\$CONFIG_FILES"; then
24353 # Protect against being on the right side of a sed subst in config.status.
24354 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24355 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24356 s,@SHELL@,$SHELL,;t t
24357 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24358 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24359 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24360 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24361 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24362 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24363 s,@exec_prefix@,$exec_prefix,;t t
24364 s,@prefix@,$prefix,;t t
24365 s,@program_transform_name@,$program_transform_name,;t t
24366 s,@bindir@,$bindir,;t t
24367 s,@sbindir@,$sbindir,;t t
24368 s,@libexecdir@,$libexecdir,;t t
24369 s,@datadir@,$datadir,;t t
24370 s,@sysconfdir@,$sysconfdir,;t t
24371 s,@sharedstatedir@,$sharedstatedir,;t t
24372 s,@localstatedir@,$localstatedir,;t t
24373 s,@libdir@,$libdir,;t t
24374 s,@includedir@,$includedir,;t t
24375 s,@oldincludedir@,$oldincludedir,;t t
24376 s,@infodir@,$infodir,;t t
24377 s,@mandir@,$mandir,;t t
24378 s,@build_alias@,$build_alias,;t t
24379 s,@host_alias@,$host_alias,;t t
24380 s,@target_alias@,$target_alias,;t t
24381 s,@DEFS@,$DEFS,;t t
24382 s,@ECHO_C@,$ECHO_C,;t t
24383 s,@ECHO_N@,$ECHO_N,;t t
24384 s,@ECHO_T@,$ECHO_T,;t t
24385 s,@LIBS@,$LIBS,;t t
24386 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24387 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24388 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24389 s,@CYGPATH_W@,$CYGPATH_W,;t t
24390 s,@PACKAGE@,$PACKAGE,;t t
24391 s,@VERSION@,$VERSION,;t t
24392 s,@ACLOCAL@,$ACLOCAL,;t t
24393 s,@AUTOCONF@,$AUTOCONF,;t t
24394 s,@AUTOMAKE@,$AUTOMAKE,;t t
24395 s,@AUTOHEADER@,$AUTOHEADER,;t t
24396 s,@MAKEINFO@,$MAKEINFO,;t t
24397 s,@install_sh@,$install_sh,;t t
24398 s,@STRIP@,$STRIP,;t t
24399 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24400 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24401 s,@mkdir_p@,$mkdir_p,;t t
24403 s,@SET_MAKE@,$SET_MAKE,;t t
24404 s,@am__leading_dot@,$am__leading_dot,;t t
24405 s,@AMTAR@,$AMTAR,;t t
24406 s,@am__tar@,$am__tar,;t t
24407 s,@am__untar@,$am__untar,;t t
24408 s,@build@,$build,;t t
24409 s,@build_cpu@,$build_cpu,;t t
24410 s,@build_vendor@,$build_vendor,;t t
24411 s,@build_os@,$build_os,;t t
24412 s,@host@,$host,;t t
24413 s,@host_cpu@,$host_cpu,;t t
24414 s,@host_vendor@,$host_vendor,;t t
24415 s,@host_os@,$host_os,;t t
24417 s,@CFLAGS@,$CFLAGS,;t t
24418 s,@LDFLAGS@,$LDFLAGS,;t t
24419 s,@CPPFLAGS@,$CPPFLAGS,;t t
24420 s,@ac_ct_CC@,$ac_ct_CC,;t t
24421 s,@EXEEXT@,$EXEEXT,;t t
24422 s,@OBJEXT@,$OBJEXT,;t t
24423 s,@DEPDIR@,$DEPDIR,;t t
24424 s,@am__include@,$am__include,;t t
24425 s,@am__quote@,$am__quote,;t t
24426 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24427 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24428 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24429 s,@CCDEPMODE@,$CCDEPMODE,;t t
24430 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24431 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24432 s,@EGREP@,$EGREP,;t t
24433 s,@LN_S@,$LN_S,;t t
24434 s,@ECHO@,$ECHO,;t t
24436 s,@ac_ct_AR@,$ac_ct_AR,;t t
24437 s,@RANLIB@,$RANLIB,;t t
24438 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24441 s,@CXXFLAGS@,$CXXFLAGS,;t t
24442 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24443 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24444 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24445 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24446 s,@CXXCPP@,$CXXCPP,;t t
24448 s,@FFLAGS@,$FFLAGS,;t t
24449 s,@ac_ct_F77@,$ac_ct_F77,;t t
24450 s,@LIBTOOL@,$LIBTOOL,;t t
24451 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24453 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24454 s,@LIBOBJS@,$LIBOBJS,;t t
24455 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24456 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24457 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24458 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24459 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24460 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24461 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24462 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24463 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24464 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24465 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24466 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24467 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24468 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24469 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24470 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24471 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24472 s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
24473 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24474 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24475 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24476 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24477 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24478 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24479 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24480 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24481 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24482 s,@USE_NLS@,$USE_NLS,;t t
24483 s,@MSGFMT@,$MSGFMT,;t t
24484 s,@GMSGFMT@,$GMSGFMT,;t t
24485 s,@XGETTEXT@,$XGETTEXT,;t t
24486 s,@MSGMERGE@,$MSGMERGE,;t t
24487 s,@LIBICONV@,$LIBICONV,;t t
24488 s,@LTLIBICONV@,$LTLIBICONV,;t t
24489 s,@INTLLIBS@,$INTLLIBS,;t t
24490 s,@LIBINTL@,$LIBINTL,;t t
24491 s,@LTLIBINTL@,$LTLIBINTL,;t t
24492 s,@POSUB@,$POSUB,;t t
24493 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24494 s,@staticdir@,$staticdir,;t t
24495 s,@editordir@,$editordir,;t t
24496 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24501 cat >>$CONFIG_STATUS <<\_ACEOF
24502 # Split the substitutions into bite-sized pieces for seds with
24503 # small command number limits, like on Digital OSF/1 and HP-UX.
24504 ac_max_sed_lines=48
24505 ac_sed_frag=1 # Number of current file.
24506 ac_beg=1 # First line for current file.
24507 ac_end=$ac_max_sed_lines # Line after last line for current file.
24510 while $ac_more_lines; do
24511 if test $ac_beg -gt 1; then
24512 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24514 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24516 if test ! -s $tmp/subs.frag; then
24517 ac_more_lines=false
24519 # The purpose of the label and of the branching condition is to
24520 # speed up the sed processing (if there are no `@' at all, there
24521 # is no need to browse any of the substitutions).
24522 # These are the two extra sed commands mentioned above.
24524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24525 if test -z "$ac_sed_cmds"; then
24526 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24528 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24530 ac_sed_frag=`expr $ac_sed_frag + 1`
24532 ac_end=`expr $ac_end + $ac_max_sed_lines`
24535 if test -z "$ac_sed_cmds"; then
24538 fi # test -n "$CONFIG_FILES"
24541 cat >>$CONFIG_STATUS <<\_ACEOF
24542 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24545 - | *:- | *:-:* ) # input from stdin
24547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24551 * ) ac_file_in=$ac_file.in ;;
24554 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24555 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24557 X"$ac_file" : 'X\(//\)[^/]' \| \
24558 X"$ac_file" : 'X\(//\)$' \| \
24559 X"$ac_file" : 'X\(/\)' \| \
24560 . : '\(.\)' 2>/dev/null ||
24562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24564 /^X\(\/\/\)$/{ s//\1/; q; }
24565 /^X\(\/\).*/{ s//\1/; q; }
24567 { if $as_mkdir_p; then
24572 while test ! -d "$as_dir"; do
24573 as_dirs="$as_dir $as_dirs"
24574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24576 X"$as_dir" : 'X\(//\)[^/]' \| \
24577 X"$as_dir" : 'X\(//\)$' \| \
24578 X"$as_dir" : 'X\(/\)' \| \
24579 . : '\(.\)' 2>/dev/null ||
24581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24583 /^X\(\/\/\)$/{ s//\1/; q; }
24584 /^X\(\/\).*/{ s//\1/; q; }
24587 test ! -n "$as_dirs" || mkdir $as_dirs
24588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24590 { (exit 1); exit 1; }; }; }
24594 if test "$ac_dir" != .; then
24595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24596 # A "../" for each directory in $ac_dir_suffix.
24597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24599 ac_dir_suffix= ac_top_builddir=
24603 .) # No --srcdir option. We are building in place.
24605 if test -z "$ac_top_builddir"; then
24608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24610 [\\/]* | ?:[\\/]* ) # Absolute path.
24611 ac_srcdir=$srcdir$ac_dir_suffix;
24612 ac_top_srcdir=$srcdir ;;
24613 *) # Relative path.
24614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24618 # Do not use `cd foo && pwd` to compute absolute paths, because
24619 # the directories may not exist.
24621 .) ac_abs_builddir="$ac_dir";;
24624 .) ac_abs_builddir=`pwd`;;
24625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24629 case $ac_abs_builddir in
24630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24632 case ${ac_top_builddir}. in
24633 .) ac_abs_top_builddir=$ac_abs_builddir;;
24634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24638 case $ac_abs_builddir in
24639 .) ac_abs_srcdir=$ac_srcdir;;
24642 .) ac_abs_srcdir=$ac_abs_builddir;;
24643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24647 case $ac_abs_builddir in
24648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24650 case $ac_top_srcdir in
24651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24660 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24663 # Let's still pretend it is `configure' which instantiates (i.e., don't
24664 # use $as_me), people would be surprised to read:
24665 # /* config.h. Generated by config.status. */
24666 if test x"$ac_file" = x-; then
24669 configure_input="$ac_file. "
24671 configure_input=$configure_input"Generated from `echo $ac_file_in |
24672 sed 's,.*/,,'` by configure."
24674 # First look for the input files in the build tree, otherwise in the
24676 ac_file_inputs=`IFS=:
24677 for f in $ac_file_in; do
24679 -) echo $tmp/stdin ;;
24681 # Absolute (can't be DOS-style, as IFS=:)
24682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24683 echo "$as_me: error: cannot find input file: $f" >&2;}
24684 { (exit 1); exit 1; }; }
24687 if test -f "$f"; then
24690 elif test -f "$srcdir/$f"; then
24695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24696 echo "$as_me: error: cannot find input file: $f" >&2;}
24697 { (exit 1); exit 1; }; }
24700 done` || { (exit 1); exit 1; }
24702 if test x"$ac_file" != x-; then
24703 { echo "$as_me:$LINENO: creating $ac_file" >&5
24704 echo "$as_me: creating $ac_file" >&6;}
24708 cat >>$CONFIG_STATUS <<_ACEOF
24712 cat >>$CONFIG_STATUS <<\_ACEOF
24714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24715 s,@configure_input@,$configure_input,;t t
24716 s,@srcdir@,$ac_srcdir,;t t
24717 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24718 s,@top_srcdir@,$ac_top_srcdir,;t t
24719 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24720 s,@builddir@,$ac_builddir,;t t
24721 s,@abs_builddir@,$ac_abs_builddir,;t t
24722 s,@top_builddir@,$ac_top_builddir,;t t
24723 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24724 s,@INSTALL@,$ac_INSTALL,;t t
24725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24727 if test x"$ac_file" != x-; then
24728 mv $tmp/out $ac_file
24736 cat >>$CONFIG_STATUS <<\_ACEOF
24739 # CONFIG_HEADER section.
24742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24745 # ac_d sets the value in "#define NAME VALUE" lines.
24746 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24747 ac_dB='[ ].*$,\1#\2'
24750 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24751 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24752 ac_uB='$,\1#\2define\3'
24756 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24759 - | *:- | *:-:* ) # input from stdin
24761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24765 * ) ac_file_in=$ac_file.in ;;
24768 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24769 echo "$as_me: creating $ac_file" >&6;}
24771 # First look for the input files in the build tree, otherwise in the
24773 ac_file_inputs=`IFS=:
24774 for f in $ac_file_in; do
24776 -) echo $tmp/stdin ;;
24778 # Absolute (can't be DOS-style, as IFS=:)
24779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24780 echo "$as_me: error: cannot find input file: $f" >&2;}
24781 { (exit 1); exit 1; }; }
24782 # Do quote $f, to prevent DOS paths from being IFS'd.
24785 if test -f "$f"; then
24788 elif test -f "$srcdir/$f"; then
24793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24794 echo "$as_me: error: cannot find input file: $f" >&2;}
24795 { (exit 1); exit 1; }; }
24798 done` || { (exit 1); exit 1; }
24799 # Remove the trailing spaces.
24800 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24804 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24805 # `conftest.undefs', that substitutes the proper values into
24806 # config.h.in to produce config.h. The first handles `#define'
24807 # templates, and the second `#undef' templates.
24808 # And first: Protect against being on the right side of a sed subst in
24809 # config.status. Protect against being in an unquoted here document
24810 # in config.status.
24811 rm -f conftest.defines conftest.undefs
24812 # Using a here document instead of a string reduces the quoting nightmare.
24813 # Putting comments in sed scripts is not portable.
24815 # `end' is used to avoid that the second main sed command (meant for
24816 # 0-ary CPP macros) applies to n-ary macro definitions.
24817 # See the Autoconf documentation for `clear'.
24818 cat >confdef2sed.sed <<\_ACEOF
24823 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24825 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24828 # If some macros were called several times there might be several times
24829 # the same #defines, which is useless. Nevertheless, we may not want to
24830 # sort them, since we want the *last* AC-DEFINE to be honored.
24831 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24832 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24833 rm -f confdef2sed.sed
24835 # This sed command replaces #undef with comments. This is necessary, for
24836 # example, in the case of _POSIX_SOURCE, which is predefined and required
24837 # on some systems where configure will not decide to define it.
24838 cat >>conftest.undefs <<\_ACEOF
24839 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24842 # Break up conftest.defines because some shells have a limit on the size
24843 # of here documents, and old seds have small limits too (100 cmds).
24844 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24845 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24846 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24847 echo ' :' >>$CONFIG_STATUS
24848 rm -f conftest.tail
24849 while grep . conftest.defines >/dev/null
24851 # Write a limited-size here document to $tmp/defines.sed.
24852 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24853 # Speed up: don't consider the non `#define' lines.
24854 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24855 # Work around the forget-to-reset-the-flag bug.
24856 echo 't clr' >>$CONFIG_STATUS
24857 echo ': clr' >>$CONFIG_STATUS
24858 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24860 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24862 mv $tmp/out $tmp/in
24864 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24865 rm -f conftest.defines
24866 mv conftest.tail conftest.defines
24868 rm -f conftest.defines
24869 echo ' fi # grep' >>$CONFIG_STATUS
24870 echo >>$CONFIG_STATUS
24872 # Break up conftest.undefs because some shells have a limit on the size
24873 # of here documents, and old seds have small limits too (100 cmds).
24874 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24875 rm -f conftest.tail
24876 while grep . conftest.undefs >/dev/null
24878 # Write a limited-size here document to $tmp/undefs.sed.
24879 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24880 # Speed up: don't consider the non `#undef'
24881 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24882 # Work around the forget-to-reset-the-flag bug.
24883 echo 't clr' >>$CONFIG_STATUS
24884 echo ': clr' >>$CONFIG_STATUS
24885 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24887 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24889 mv $tmp/out $tmp/in
24891 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24892 rm -f conftest.undefs
24893 mv conftest.tail conftest.undefs
24895 rm -f conftest.undefs
24897 cat >>$CONFIG_STATUS <<\_ACEOF
24898 # Let's still pretend it is `configure' which instantiates (i.e., don't
24899 # use $as_me), people would be surprised to read:
24900 # /* config.h. Generated by config.status. */
24901 if test x"$ac_file" = x-; then
24902 echo "/* Generated by configure. */" >$tmp/config.h
24904 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24906 cat $tmp/in >>$tmp/config.h
24908 if test x"$ac_file" != x-; then
24909 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24910 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24911 echo "$as_me: $ac_file is unchanged" >&6;}
24913 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24915 X"$ac_file" : 'X\(//\)[^/]' \| \
24916 X"$ac_file" : 'X\(//\)$' \| \
24917 X"$ac_file" : 'X\(/\)' \| \
24918 . : '\(.\)' 2>/dev/null ||
24920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24922 /^X\(\/\/\)$/{ s//\1/; q; }
24923 /^X\(\/\).*/{ s//\1/; q; }
24925 { if $as_mkdir_p; then
24930 while test ! -d "$as_dir"; do
24931 as_dirs="$as_dir $as_dirs"
24932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24934 X"$as_dir" : 'X\(//\)[^/]' \| \
24935 X"$as_dir" : 'X\(//\)$' \| \
24936 X"$as_dir" : 'X\(/\)' \| \
24937 . : '\(.\)' 2>/dev/null ||
24939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24941 /^X\(\/\/\)$/{ s//\1/; q; }
24942 /^X\(\/\).*/{ s//\1/; q; }
24945 test ! -n "$as_dirs" || mkdir $as_dirs
24946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24948 { (exit 1); exit 1; }; }; }
24951 mv $tmp/config.h $ac_file
24955 rm -f $tmp/config.h
24957 # Compute $ac_file's index in $config_headers.
24959 for _am_header in $config_headers :; do
24960 case $_am_header in
24961 $ac_file | $ac_file:* )
24964 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24967 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24968 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24969 X$ac_file : 'X\(//\)[^/]' \| \
24970 X$ac_file : 'X\(//\)$' \| \
24971 X$ac_file : 'X\(/\)' \| \
24972 . : '\(.\)' 2>/dev/null ||
24974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24976 /^X\(\/\/\)$/{ s//\1/; q; }
24977 /^X\(\/\).*/{ s//\1/; q; }
24978 s/.*/./; q'`/stamp-h$_am_stamp_count
24981 cat >>$CONFIG_STATUS <<\_ACEOF
24984 # CONFIG_COMMANDS section.
24986 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24987 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24988 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24989 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24990 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991 X"$ac_dest" : 'X\(//\)[^/]' \| \
24992 X"$ac_dest" : 'X\(//\)$' \| \
24993 X"$ac_dest" : 'X\(/\)' \| \
24994 . : '\(.\)' 2>/dev/null ||
24996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24998 /^X\(\/\/\)$/{ s//\1/; q; }
24999 /^X\(\/\).*/{ s//\1/; q; }
25001 { if $as_mkdir_p; then
25006 while test ! -d "$as_dir"; do
25007 as_dirs="$as_dir $as_dirs"
25008 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25010 X"$as_dir" : 'X\(//\)[^/]' \| \
25011 X"$as_dir" : 'X\(//\)$' \| \
25012 X"$as_dir" : 'X\(/\)' \| \
25013 . : '\(.\)' 2>/dev/null ||
25015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25017 /^X\(\/\/\)$/{ s//\1/; q; }
25018 /^X\(\/\).*/{ s//\1/; q; }
25021 test ! -n "$as_dirs" || mkdir $as_dirs
25022 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25023 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25024 { (exit 1); exit 1; }; }; }
25028 if test "$ac_dir" != .; then
25029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25030 # A "../" for each directory in $ac_dir_suffix.
25031 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25033 ac_dir_suffix= ac_top_builddir=
25037 .) # No --srcdir option. We are building in place.
25039 if test -z "$ac_top_builddir"; then
25042 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25044 [\\/]* | ?:[\\/]* ) # Absolute path.
25045 ac_srcdir=$srcdir$ac_dir_suffix;
25046 ac_top_srcdir=$srcdir ;;
25047 *) # Relative path.
25048 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25049 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25052 # Do not use `cd foo && pwd` to compute absolute paths, because
25053 # the directories may not exist.
25055 .) ac_abs_builddir="$ac_dir";;
25058 .) ac_abs_builddir=`pwd`;;
25059 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25060 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25063 case $ac_abs_builddir in
25064 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25066 case ${ac_top_builddir}. in
25067 .) ac_abs_top_builddir=$ac_abs_builddir;;
25068 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25069 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25072 case $ac_abs_builddir in
25073 .) ac_abs_srcdir=$ac_srcdir;;
25076 .) ac_abs_srcdir=$ac_abs_builddir;;
25077 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25078 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25081 case $ac_abs_builddir in
25082 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25084 case $ac_top_srcdir in
25085 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25086 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25087 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25092 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25093 echo "$as_me: executing $ac_dest commands" >&6;}
25095 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25096 # Strip MF so we end up with the name of the file.
25097 mf=`echo "$mf" | sed -e 's/:.*$//'`
25098 # Check whether this is an Automake generated Makefile or not.
25099 # We used to match only the files named `Makefile.in', but
25100 # some people rename them; so instead we look at the file content.
25101 # Grep'ing the first line is not enough: some people post-process
25102 # each Makefile.in and add a new line on top of each file to say so.
25103 # So let's grep whole file.
25104 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25105 dirpart=`(dirname "$mf") 2>/dev/null ||
25106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107 X"$mf" : 'X\(//\)[^/]' \| \
25108 X"$mf" : 'X\(//\)$' \| \
25109 X"$mf" : 'X\(/\)' \| \
25110 . : '\(.\)' 2>/dev/null ||
25112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25114 /^X\(\/\/\)$/{ s//\1/; q; }
25115 /^X\(\/\).*/{ s//\1/; q; }
25120 # Extract the definition of DEPDIR, am__include, and am__quote
25121 # from the Makefile without running `make'.
25122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25123 test -z "$DEPDIR" && continue
25124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25125 test -z "am__include" && continue
25126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25127 # When using ansi2knr, U may be empty or an underscore; expand it
25128 U=`sed -n 's/^U = //p' < "$mf"`
25129 # Find all dependency output files, they are included files with
25130 # $(DEPDIR) in their names. We invoke sed twice because it is the
25131 # simplest approach to changing $(DEPDIR) to its actual value in the
25133 for file in `sed -n "
25134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25136 # Make sure the directory exists.
25137 test -f "$dirpart/$file" && continue
25138 fdir=`(dirname "$file") 2>/dev/null ||
25139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25140 X"$file" : 'X\(//\)[^/]' \| \
25141 X"$file" : 'X\(//\)$' \| \
25142 X"$file" : 'X\(/\)' \| \
25143 . : '\(.\)' 2>/dev/null ||
25145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25147 /^X\(\/\/\)$/{ s//\1/; q; }
25148 /^X\(\/\).*/{ s//\1/; q; }
25150 { if $as_mkdir_p; then
25151 mkdir -p $dirpart/$fdir
25153 as_dir=$dirpart/$fdir
25155 while test ! -d "$as_dir"; do
25156 as_dirs="$as_dir $as_dirs"
25157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25159 X"$as_dir" : 'X\(//\)[^/]' \| \
25160 X"$as_dir" : 'X\(//\)$' \| \
25161 X"$as_dir" : 'X\(/\)' \| \
25162 . : '\(.\)' 2>/dev/null ||
25164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25166 /^X\(\/\/\)$/{ s//\1/; q; }
25167 /^X\(\/\).*/{ s//\1/; q; }
25170 test ! -n "$as_dirs" || mkdir $as_dirs
25171 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25172 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25173 { (exit 1); exit 1; }; }; }
25175 # echo "creating $dirpart/$file"
25176 echo '# dummy' > "$dirpart/$file"
25182 for file in intltool-extract intltool-merge intltool-update; do
25183 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
25184 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
25185 -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
25186 -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
25187 -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
25188 -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
25189 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
25190 < ${ac_aux_dir}/${file}.in > ${file}.out
25191 if cmp -s ${file} ${file}.out 2>/dev/null; then
25194 mv -f ${file}.out ${file}
25196 chmod ugo+x ${file}
25202 for ac_file in $CONFIG_FILES; do
25203 # Support "outfile[:infile[:infile...]]"
25205 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25207 # PO directories have a Makefile.in generated from Makefile.in.in.
25208 case "$ac_file" in */Makefile.in)
25209 # Adjust a relative srcdir.
25210 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25211 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25212 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25213 # In autoconf-2.13 it is called $ac_given_srcdir.
25214 # In autoconf-2.50 it is called $srcdir.
25215 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25216 case "$ac_given_srcdir" in
25217 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25218 /*) top_srcdir="$ac_given_srcdir" ;;
25219 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25221 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25222 rm -f "$ac_dir/POTFILES"
25223 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25224 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25225 POMAKEFILEDEPS="POTFILES.in"
25226 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25227 # on $ac_dir but don't depend on user-specified configuration
25229 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25230 # The LINGUAS file contains the set of available languages.
25231 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25232 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25234 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25235 # Hide the ALL_LINGUAS assigment from automake.
25236 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25237 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25239 # The set of available languages was given in configure.in.
25240 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25243 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25244 # Compute UPDATEPOFILES
25245 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25246 # Compute DUMMYPOFILES
25247 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25249 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25250 case "$ac_given_srcdir" in
25252 *) srcdirpre='$(srcdir)/' ;;
25258 for lang in $ALL_LINGUAS; do
25259 POFILES="$POFILES $srcdirpre$lang.po"
25260 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25261 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25262 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25264 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25265 # environment variable.
25267 if test -n "$ALL_LINGUAS"; then
25268 for presentlang in $ALL_LINGUAS; do
25270 if test "%UNSET%" != "$LINGUAS"; then
25271 desiredlanguages="$LINGUAS"
25273 desiredlanguages="$ALL_LINGUAS"
25275 for desiredlang in $desiredlanguages; do
25276 # Use the presentlang catalog if desiredlang is
25277 # a. equal to presentlang, or
25278 # b. a variant of presentlang (because in this case,
25279 # presentlang can be used as a fallback for messages
25280 # which are not translated in the desiredlang catalog).
25281 case "$desiredlang" in
25282 "$presentlang"*) useit=yes;;
25285 if test $useit = yes; then
25286 INST_LINGUAS="$INST_LINGUAS $presentlang"
25291 if test -n "$INST_LINGUAS"; then
25292 for lang in $INST_LINGUAS; do
25293 CATALOGS="$CATALOGS $lang.gmo"
25296 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25297 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"
25298 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25299 if test -f "$f"; then
25301 *.orig | *.bak | *~) ;;
25302 *) cat "$f" >> "$ac_dir/Makefile" ;;
25311 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
25316 '"s|^| $ac_top_srcdir/|" \
25317 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
25319 if test ! -f "po/Makefile"; then
25320 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
25321 echo "$as_me: error: po/Makefile is not ready." >&2;}
25322 { (exit 1); exit 1; }; }
25324 mv "po/Makefile" "po/Makefile.tmp"
25325 sed '/^POTFILES =/,/[^\\]$/ {
25329 ' "po/Makefile.tmp" >"po/Makefile"
25330 rm -f "po/Makefile.tmp"
25331 mv "po/stamp-it.tmp" "po/stamp-it"
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25339 { (exit 0); exit 0; }
25341 chmod +x $CONFIG_STATUS
25342 ac_clean_files=$ac_clean_files_save
25345 # configure is writing to config.log, and then calls config.status.
25346 # config.status does its own redirection, appending to config.log.
25347 # Unfortunately, on DOS this fails, as config.log is still kept open
25348 # by configure, so config.status won't be able to write to it; its
25349 # output is simply discarded. So we exec the FD to /dev/null,
25350 # effectively closing config.log, so it can be properly (re)opened and
25351 # appended to by config.status. When coming back to configure, we
25352 # need to make the FD available again.
25353 if test "$no_create" != yes; then
25355 ac_config_status_args=
25356 test "$silent" = yes &&
25357 ac_config_status_args="$ac_config_status_args --quiet"
25359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25362 # would make configure fail if this is the last instruction.
25363 $ac_cs_success || { (exit 1); exit 1; }
25368 echo ------------------------------------------------------------------------
25369 echo 'nls is available? '$_nls_avail
25370 echo 'zlib compression: ' $ok_zlib
25371 echo 'Calendar support: ' $ok_libical
25372 echo 'Character set conversion support:' $ok_iconv
25373 echo 'National language support: ' $ok_nls