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 LIB@&t@OBJS 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_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
1048 --with-tags@<:@=TAGS@:>@
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
1196 @%:@@%:@ --------- @%:@@%:@
1197 @%:@@%:@ Platform. @%:@@%:@
1198 @%:@@%:@ --------- @%:@@%:@
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"
1232 @%:@@%:@ ----------- @%:@@%:@
1233 @%:@@%:@ Core tests. @%:@@%:@
1234 @%:@@%:@ ----------- @%:@@%:@
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
1338 @%:@@%:@ ------------- @%:@@%:@
1339 @%:@@%:@ Output files. @%:@@%:@
1340 @%:@@%:@ ------------- @%:@@%:@
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
1353 @%:@@%:@ ----------- @%:@@%:@
1354 @%:@@%:@ confdefs.h. @%:@@%:@
1355 @%:@@%:@ ----------- @%:@@%:@
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"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2754 GCC=`test $ac_compiler_gnu = yes && echo yes`
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_stdc=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std1 is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std1. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX -qlanglvl=ansi
2888 # Ultrix and OSF/1 -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions -Aa -D_HPUX_SOURCE
2891 # SVR4 -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_prog_cc_stdc=$ac_arg
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f conftest.err conftest.$ac_objext
2926 rm -f conftest.$ac_ext conftest.$ac_objext
2931 case "x$ac_cv_prog_cc_stdc" in
2933 echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6 ;;
2936 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2938 CC="$CC $ac_cv_prog_cc_stdc" ;;
2941 # Some people use a C++ compiler to compile C. Since we use `exit',
2942 # in C++ we need to declare it. In case someone uses the same compiler
2943 # for both compiling C and C++ we need to have the C++ compiler decide
2944 # the declaration of exit, since it's the most demanding environment.
2945 cat >conftest.$ac_ext <<_ACEOF
2946 @%:@ifndef __cplusplus
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_c_werror_flag"
2960 || test ! -s conftest.err'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 for ac_declaration in \
2974 'extern "C" void std::exit (int) throw (); using std::exit;' \
2975 'extern "C" void std::exit (int); using std::exit;' \
2976 'extern "C" void exit (int) throw ();' \
2977 'extern "C" void exit (int);' \
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2987 @%:@include <stdlib.h>
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 if test -n "$ac_declaration"; then
3073 echo '#ifdef __cplusplus' >>confdefs.h
3074 echo $ac_declaration >>confdefs.h
3075 echo '#endif' >>confdefs.h
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 depcc="$CC" am_compiler_list=
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098 # We make a subdir and do the tests there. Otherwise we can end up
3099 # making bogus files that we don't know about and never remove. For
3100 # instance it was reported that on HP-UX the gcc test will end up
3101 # making a dummy file named `D' -- because `-MD' means `put the output
3104 # Copy depcomp to subdir because otherwise we won't find it if we're
3105 # using a relative directory.
3106 cp "$am_depcomp" conftest.dir
3108 # We will build objects and dependencies in a subdirectory because
3109 # it helps to detect inapplicable dependency modes. For instance
3110 # both Tru64's cc and ICC support -MD to output dependencies as a
3111 # side effect of compilation, but ICC will put the dependencies in
3112 # the current directory while Tru64 will put them in the object
3116 am_cv_CC_dependencies_compiler_type=none
3117 if test "$am_compiler_list" = ""; then
3118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120 for depmode in $am_compiler_list; do
3121 # Setup a source with many dependencies, because some compilers
3122 # like to wrap large dependency lists on column 80 (with \), and
3123 # we should not choose a depcomp mode which is confused by this.
3125 # We need to recreate these files for each test, as the compiler may
3126 # overwrite some of them when testing with obscure command lines.
3127 # This happens at least with the AIX C compiler.
3129 for i in 1 2 3 4 5 6; do
3130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132 # Solaris 8's {/usr,}/bin/sh.
3133 touch sub/conftst$i.h
3135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3139 # after this tag, mechanisms are not by side-effect, so they'll
3140 # only be used when explicitly requested
3141 if test "x$enable_dependency_tracking" = xyes; then
3149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150 # mode. It turns out that the SunPro C++ compiler does not properly
3151 # handle `-M -o', and we need to detect this.
3152 if depmode=$depmode \
3153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156 >/dev/null 2>conftest.err &&
3157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160 # icc doesn't choke on unknown options, it will just issue warnings
3161 # or remarks (even with -Werror). So we grep stderr for any message
3162 # that says an option was ignored or not supported.
3163 # When given -MP, icc 7.0 and 7.1 complain thusly:
3164 # icc: Command line warning: ignoring option '-M'; no argument required
3165 # The diagnosis changed in icc 8.0:
3166 # icc: Command line remark: option '-MP' not supported
3167 if (grep 'ignoring option' conftest.err ||
3168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169 am_cv_CC_dependencies_compiler_type=$depmode
3178 am_cv_CC_dependencies_compiler_type=none
3182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3189 test "x$enable_dependency_tracking" != xno \
3190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3192 am__fastdepCC_FALSE='#'
3194 am__fastdepCC_TRUE='#'
3195 am__fastdepCC_FALSE=
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for lt_ac_prog in sed gsed; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224 test ! -f $lt_ac_sed && continue
3225 cat /dev/null > conftest.in
3227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228 # Check for GNU sed and select it if it is found.
3229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230 lt_cv_path_SED=$lt_ac_sed
3234 cat conftest.in conftest.in >conftest.tmp
3235 mv conftest.tmp conftest.in
3236 cp conftest.in conftest.nl
3238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239 cmp -s conftest.out conftest.nl || break
3240 # 10000 chars as input seems more than enough
3241 test $lt_ac_count -gt 10 && break
3242 lt_ac_count=`expr $lt_ac_count + 1`
3243 if test $lt_ac_count -gt $lt_ac_max; then
3244 lt_ac_max=$lt_ac_count
3245 lt_cv_path_SED=$lt_ac_sed
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262 then ac_cv_prog_egrep='grep -E'
3263 else ac_cv_prog_egrep='egrep'
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268 EGREP=$ac_cv_prog_egrep
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274 withval="$with_gnu_ld"
3275 test "$withval" = no || with_gnu_ld=yes
3280 if test "$GCC" = yes; then
3281 # Check if gcc -print-prog-name=ld gives a path.
3282 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3286 # gcc leaves a trailing carriage return which upsets mingw
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3292 # Accept absolute paths.
3294 re_direlt='/[^/][^/]*/\.\./'
3295 # Canonicalize the pathname of ld
3296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3300 test -z "$LD" && LD="$ac_prog"
3303 # If it fails, then pretend we aren't using GCC.
3307 # If it is relative, then search for the first ld in PATH.
3311 elif test "$with_gnu_ld" = yes; then
3312 echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3315 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3318 if test "${lt_cv_path_LD+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -z "$LD"; then
3322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323 for ac_dir in $PATH; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327 lt_cv_path_LD="$ac_dir/$ac_prog"
3328 # Check to see if the program is GNU ld. I'd rather use --version,
3329 # but apparently some variants of GNU ld only accept -v.
3330 # Break only if it was the GNU/non-GNU ld that we prefer.
3331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332 *GNU* | *'with BFD'*)
3333 test "$with_gnu_ld" != no && break
3336 test "$with_gnu_ld" != yes && break
3343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3348 if test -n "$LD"; then
3349 echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357 { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366 lt_cv_prog_gnu_ld=yes
3369 lt_cv_prog_gnu_ld=no
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 lt_cv_ld_reload_flag='-r'
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3390 *) reload_flag=" $reload_flag" ;;
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395 if test "$GCC" = yes; then
3396 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3405 if test "${lt_cv_path_NM+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 if test -n "$NM"; then
3409 # Let the user override the test.
3412 lt_nm_to_check="${ac_tool_prefix}nm"
3413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3414 lt_nm_to_check="$lt_nm_to_check nm"
3416 for lt_tmp_nm in $lt_nm_to_check; do
3417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3420 test -z "$ac_dir" && ac_dir=.
3421 tmp_nm="$ac_dir/$lt_tmp_nm"
3422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423 # Check to see if the nm accepts a BSD-compat flag.
3424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 # nm: unknown option "B" ignored
3426 # Tru64's nm complains that /dev/null is an invalid object file
3427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428 */dev/null* | *'Invalid file or object type'*)
3429 lt_cv_path_NM="$tmp_nm -B"
3433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435 lt_cv_path_NM="$tmp_nm -p"
3439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440 continue # so that we can try to find one that supports BSD flags
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3452 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3453 echo "${ECHO_T}$lt_cv_path_NM" >&6
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3467 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [[regex]]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given extended regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3488 lt_cv_deplibs_check_method=pass_all
3492 lt_cv_deplibs_check_method=pass_all
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3502 # func_win32_libid is a shell function defined in ltmain.sh
3503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3504 lt_cv_file_magic_cmd='func_win32_libid'
3508 # Base MSYS/MinGW do not provide the 'file' command needed by
3509 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511 lt_cv_file_magic_cmd='$OBJDUMP -f'
3514 darwin* | rhapsody*)
3515 lt_cv_deplibs_check_method=pass_all
3518 freebsd* | kfreebsd*-gnu | dragonfly*)
3519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3522 # Not sure whether the presence of OpenBSD here was a mistake.
3523 # Let's accept both of them until this is cleared up.
3524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3525 lt_cv_file_magic_cmd=/usr/bin/file
3526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 lt_cv_deplibs_check_method=pass_all
3535 lt_cv_deplibs_check_method=pass_all
3538 hpux10.20* | hpux11*)
3539 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3543 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3546 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]'
3547 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3551 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3557 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3561 irix5* | irix6* | nonstopux*)
3563 *-32|*"-32 ") libmagic=32-bit;;
3564 *-n32|*"-n32 ") libmagic=N32;;
3565 *-64|*"-64 ") libmagic=64-bit;;
3566 *) libmagic=never-match;;
3568 lt_cv_deplibs_check_method=pass_all
3571 # This must be Linux ELF.
3573 lt_cv_deplibs_check_method=pass_all
3577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3586 lt_cv_file_magic_cmd=/usr/bin/file
3587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3591 lt_cv_deplibs_check_method=unknown
3595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3602 osf3* | osf4* | osf5*)
3603 lt_cv_deplibs_check_method=pass_all
3607 lt_cv_deplibs_check_method=pass_all
3611 case $host_vendor in
3613 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]'
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3617 lt_cv_deplibs_check_method=pass_all
3620 lt_cv_file_magic_cmd='/bin/file'
3621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3624 lt_cv_file_magic_cmd='/bin/file'
3625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626 lt_cv_file_magic_test_file=/lib/libc.so
3629 lt_cv_deplibs_check_method=pass_all
3632 lt_cv_deplibs_check_method=pass_all
3637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3638 lt_cv_deplibs_check_method=pass_all
3643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3645 file_magic_cmd=$lt_cv_file_magic_cmd
3646 deplibs_check_method=$lt_cv_deplibs_check_method
3647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3652 # If no C compiler was specified, use CC.
3655 # If no C compiler flags were specified, use CFLAGS.
3656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3658 # Allow CC to be a program name with arguments.
3662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3663 if test "${enable_libtool_lock+set}" = set; then
3664 enableval="$enable_libtool_lock"
3667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3669 # Some flags need to be propagated to the compiler or linker for good
3673 # Find out which ABI we are using.
3674 echo 'int i;' > conftest.$ac_ext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; then
3680 case `/usr/bin/file conftest.$ac_objext` in
3692 # Find out which ABI we are using.
3693 echo '#line __oline__ "configure"' > conftest.$ac_ext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; then
3699 if test "$lt_cv_prog_gnu_ld" = yes; then
3700 case `/usr/bin/file conftest.$ac_objext` in
3702 LD="${LD-ld} -melf32bsmip"
3705 LD="${LD-ld} -melf32bmipn32"
3708 LD="${LD-ld} -melf64bmip"
3712 case `/usr/bin/file conftest.$ac_objext` in
3728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3729 # Find out which ABI we are using.
3730 echo 'int i;' > conftest.$ac_ext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; then
3736 case `/usr/bin/file conftest.o` in
3740 LD="${LD-ld} -m elf_i386"
3742 ppc64-*linux*|powerpc64-*linux*)
3743 LD="${LD-ld} -m elf32ppclinux"
3746 LD="${LD-ld} -m elf_s390"
3749 LD="${LD-ld} -m elf32_sparc"
3756 LD="${LD-ld} -m elf_x86_64"
3758 ppc*-*linux*|powerpc*-*linux*)
3759 LD="${LD-ld} -m elf64ppc"
3762 LD="${LD-ld} -m elf64_s390"
3765 LD="${LD-ld} -m elf64_sparc"
3775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3776 SAVE_CFLAGS="$CFLAGS"
3777 CFLAGS="$CFLAGS -belf"
3778 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3780 if test "${lt_cv_cc_needs_belf+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 lt_cv_cc_needs_belf=yes
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 lt_cv_cc_needs_belf=no
3833 rm -f conftest.err conftest.$ac_objext \
3834 conftest$ac_exeext conftest.$ac_ext
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3846 CFLAGS="$SAVE_CFLAGS"
3850 # Find out which ABI we are using.
3851 echo 'int i;' > conftest.$ac_ext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; then
3857 case `/usr/bin/file conftest.o` in
3859 case $lt_cv_prog_gnu_ld in
3860 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3861 *) LD="${LD-ld} -64" ;;
3872 need_locks="$enable_libtool_lock"
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3886 if test -z "$CPP"; then
3887 if test "${ac_cv_prog_CPP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 # Double quotes because CPP needs to be expanded
3891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3894 for ac_c_preproc_warn_flag in '' yes
3896 # Use a header file that comes with gcc, so configuring glibc
3897 # with a fresh cross-compiler works.
3898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899 # <limits.h> exists even on freestanding compilers.
3900 # On the NeXT, cc -E runs the code through the compiler's parser,
3901 # not just through cpp. "Syntax error" is here to catch this case.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 @%:@ include <limits.h>
3911 @%:@ include <assert.h>
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null; then
3923 if test -s conftest.err; then
3924 ac_cpp_err=$ac_c_preproc_warn_flag
3925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932 if test -z "$ac_cpp_err"; then
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 # Broken: fails on valid input.
3941 rm -f conftest.err conftest.$ac_ext
3943 # OK, works on sane cases. Now check whether non-existent headers
3944 # can be detected and how.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 @%:@include <ac_nonexistent.h>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970 if test -z "$ac_cpp_err"; then
3971 # Broken: success on invalid input.
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 # Passes both tests.
3981 rm -f conftest.err conftest.$ac_ext
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4001 for ac_c_preproc_warn_flag in '' yes
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error" is here to catch this case.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4016 @%:@ include <limits.h>
4018 @%:@ include <assert.h>
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null; then
4030 if test -s conftest.err; then
4031 ac_cpp_err=$ac_c_preproc_warn_flag
4032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 if test -z "$ac_cpp_err"; then
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether non-existent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 @%:@include <ac_nonexistent.h>
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null; then
4068 if test -s conftest.err; then
4069 ac_cpp_err=$ac_c_preproc_warn_flag
4070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077 if test -z "$ac_cpp_err"; then
4078 # Broken: success on invalid input.
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Passes both tests.
4088 rm -f conftest.err conftest.$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100 { (exit 1); exit 1; }; }
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_header_stdc=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_header_stdc=no
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "memchr" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "free" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209 if test "$cross_compiling" = yes; then
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_header_stdc=no
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4270 cat >>confdefs.h <<\_ACEOF
4271 @%:@define STDC_HEADERS 1
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4303 @%:@include <$ac_header>
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 eval "$as_ac_Header=no"
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 for ac_header in dlfcn.h
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353 echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361 # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 @%:@include <$ac_header>
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_header_compiler=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_header_compiler=no
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 @%:@include <$ac_header>
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434 if test -z "$ac_cpp_err"; then
4435 ac_header_preproc=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_header_preproc=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4446 # So? What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453 ac_header_preproc=yes
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4470 @%:@@%:@ ------------------------------------- @%:@@%:@
4471 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4472 @%:@@%:@ ------------------------------------- @%:@@%:@
4475 sed "s/^/$as_me: WARNING: /" >&2
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 eval "$as_ac_Header=\$ac_header_preproc"
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490 cat >>confdefs.h <<_ACEOF
4491 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$CXX"; then
4514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 test -n "$CXX" && break
4544 if test -z "$CXX"; then
4546 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4583 test -n "$ac_ct_CXX" && break
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593 "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596 (eval $ac_compiler --version </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601 (eval $ac_compiler -v </dev/null >&5) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606 (eval $ac_compiler -V </dev/null >&5) 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_cxx_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_cxx_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 ac_cv_prog_cxx_g=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727 CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729 if test "$GXX" = yes; then
4735 if test "$GXX" = yes; then
4741 for ac_declaration in \
4743 'extern "C" void std::exit (int) throw (); using std::exit;' \
4744 'extern "C" void std::exit (int); using std::exit;' \
4745 'extern "C" void exit (int) throw ();' \
4746 'extern "C" void exit (int);' \
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 @%:@include <stdlib.h>
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_cxx_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test -n "$ac_declaration"; then
4842 echo '#ifdef __cplusplus' >>confdefs.h
4843 echo $ac_declaration >>confdefs.h
4844 echo '#endif' >>confdefs.h
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4853 depcc="$CXX" am_compiler_list=
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861 # We make a subdir and do the tests there. Otherwise we can end up
4862 # making bogus files that we don't know about and never remove. For
4863 # instance it was reported that on HP-UX the gcc test will end up
4864 # making a dummy file named `D' -- because `-MD' means `put the output
4867 # Copy depcomp to subdir because otherwise we won't find it if we're
4868 # using a relative directory.
4869 cp "$am_depcomp" conftest.dir
4871 # We will build objects and dependencies in a subdirectory because
4872 # it helps to detect inapplicable dependency modes. For instance
4873 # both Tru64's cc and ICC support -MD to output dependencies as a
4874 # side effect of compilation, but ICC will put the dependencies in
4875 # the current directory while Tru64 will put them in the object
4879 am_cv_CXX_dependencies_compiler_type=none
4880 if test "$am_compiler_list" = ""; then
4881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883 for depmode in $am_compiler_list; do
4884 # Setup a source with many dependencies, because some compilers
4885 # like to wrap large dependency lists on column 80 (with \), and
4886 # we should not choose a depcomp mode which is confused by this.
4888 # We need to recreate these files for each test, as the compiler may
4889 # overwrite some of them when testing with obscure command lines.
4890 # This happens at least with the AIX C compiler.
4892 for i in 1 2 3 4 5 6; do
4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895 # Solaris 8's {/usr,}/bin/sh.
4896 touch sub/conftst$i.h
4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902 # after this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested
4904 if test "x$enable_dependency_tracking" = xyes; then
4912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913 # mode. It turns out that the SunPro C++ compiler does not properly
4914 # handle `-M -o', and we need to detect this.
4915 if depmode=$depmode \
4916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919 >/dev/null 2>conftest.err &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932 am_cv_CXX_dependencies_compiler_type=$depmode
4941 am_cv_CXX_dependencies_compiler_type=none
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4952 test "x$enable_dependency_tracking" != xno \
4953 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954 am__fastdepCXX_TRUE=
4955 am__fastdepCXX_FALSE='#'
4957 am__fastdepCXX_TRUE='#'
4958 am__fastdepCXX_FALSE=
4964 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4965 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4966 (test "X$CXX" != "Xg++"))) ; then
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # Double quotes because CXXCPP needs to be expanded
4979 for CXXCPP in "$CXX -E" "/lib/cpp"
4982 for ac_cxx_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 @%:@ include <limits.h>
4999 @%:@ include <assert.h>
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_cxx_preproc_warn_flag
5013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5020 if test -z "$ac_cpp_err"; then
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether non-existent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 @%:@include <ac_nonexistent.h>
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null; then
5049 if test -s conftest.err; then
5050 ac_cpp_err=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058 if test -z "$ac_cpp_err"; then
5059 # Broken: success on invalid input.
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Passes both tests.
5069 rm -f conftest.err conftest.$ac_ext
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5079 ac_cv_prog_CXXCPP=$CXXCPP
5082 CXXCPP=$ac_cv_prog_CXXCPP
5084 ac_cv_prog_CXXCPP=$CXXCPP
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5089 for ac_cxx_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5104 @%:@ include <limits.h>
5106 @%:@ include <assert.h>
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_cxx_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5127 if test -z "$ac_cpp_err"; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 @%:@include <ac_nonexistent.h>
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_cxx_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5176 rm -f conftest.err conftest.$ac_ext
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5184 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5204 if test -n "$ac_tool_prefix"; then
5205 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_F77+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test -n "$F77"; then
5215 ac_cv_prog_F77="$F77" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$F77"; then
5235 echo "$as_me:$LINENO: result: $F77" >&5
5236 echo "${ECHO_T}$F77" >&6
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5242 test -n "$F77" && break
5245 if test -z "$F77"; then
5247 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$ac_ct_F77"; then
5257 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_F77="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5276 if test -n "$ac_ct_F77"; then
5277 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5278 echo "${ECHO_T}$ac_ct_F77" >&6
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$ac_ct_F77" && break
5291 # Provide some information about the compiler.
5292 echo "$as_me:__oline__:" \
5293 "checking for Fortran 77 compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5296 (eval $ac_compiler --version </dev/null >&5) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5301 (eval $ac_compiler -v </dev/null >&5) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5306 (eval $ac_compiler -V </dev/null >&5) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5312 # If we don't use `.F' as extension, the preprocessor is not run on the
5313 # input file. (Note that this only needs to work for GNU compilers.)
5316 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5318 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_f77_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5362 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5363 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5365 ac_test_FFLAGS=${FFLAGS+set}
5366 ac_save_FFLAGS=$FFLAGS
5368 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370 if test "${ac_cv_prog_f77_g+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 cat >conftest.$ac_ext <<_ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_f77_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_prog_f77_g=yes
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5413 if test "$ac_test_FFLAGS" = set; then
5414 FFLAGS=$ac_save_FFLAGS
5415 elif test $ac_cv_prog_f77_g = yes; then
5416 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5429 G77=`test $ac_compiler_gnu = yes && echo yes`
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5440 # find the maximum length of command line arguments
5441 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5442 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5443 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 # On DJGPP, this test can blow up pretty badly due to problems in libc
5452 # (any single argument exceeding 2000 bytes causes a buffer overrun
5453 # during glob expansion). Even if it were fixed, the result of this
5454 # check would be larger than it should be.
5455 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5459 # Under GNU Hurd, this test is not required because there is
5460 # no limit to the length of command line arguments.
5461 # Libtool will interpret -1 as no limit whatsoever
5462 lt_cv_sys_max_cmd_len=-1;
5466 # On Win9x/ME, this test blows up -- it succeeds, but takes
5467 # about 5 minutes as the teststring grows exponentially.
5468 # Worse, since 9x/ME are not pre-emptively multitasking,
5469 # you end up with a "frozen" computer, even though with patience
5470 # the test eventually succeeds (with a max line length of 256k).
5471 # Instead, let's just punt: use the minimum linelength reported by
5472 # all of the supported platforms: 8192 (on NT/2K/XP).
5473 lt_cv_sys_max_cmd_len=8192;
5477 # On AmigaOS with pdksh, this test takes hours, literally.
5478 # So we just punt and use a minimum line length of 8192.
5479 lt_cv_sys_max_cmd_len=8192;
5482 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5483 # This has been around since 386BSD, at least. Likely further.
5484 if test -x /sbin/sysctl; then
5485 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5486 elif test -x /usr/sbin/sysctl; then
5487 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5489 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5491 # And add a safety zone
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5497 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5498 lt_cv_sys_max_cmd_len=196608
5502 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5503 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5504 # nice to cause kernel panics so lets avoid the loop below.
5505 # First set a reasonable default.
5506 lt_cv_sys_max_cmd_len=16384
5508 if test -x /sbin/sysconfig; then
5509 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5510 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515 lt_cv_sys_max_cmd_len=102400
5517 sysv5* | sco5v6* | sysv4.2uw2*)
5518 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5519 if test -n "$kargmax"; then
5520 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5522 lt_cv_sys_max_cmd_len=32768
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531 = "XX$teststring") >/dev/null 2>&1 &&
5532 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533 lt_cv_sys_max_cmd_len=$new_result &&
5534 test $i != 17 # 1/2 MB should be enough
5537 teststring=$teststring$teststring
5540 # Add a significant safety factor because C++ compilers can tack on massive
5541 # amounts of additional arguments before passing them to the linker.
5542 # It appears as though 1/2 is a usable value.
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5553 echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5582 # Define system-specific variables.
5587 cygwin* | mingw* | pw32*)
5588 symcode='[ABCDGISTW]'
5590 hpux*) # Its linker distinguishes data from code symbols
5591 if test "$host_cpu" = ia64; then
5592 symcode='[ABCDEGRST]'
5594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595 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'"
5598 if test "$host_cpu" = ia64; then
5599 symcode='[ABCDGIRSTW]'
5600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601 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'"
5605 symcode='[BCDEGRST]'
5608 symcode='[BCDEGQRST]'
5619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5627 # Handle CRLF in mingw tool chain
5631 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5635 # If we're using GNU nm, then use its standard symbol codes.
5636 case `$NM -V 2>&1` in
5637 *GNU* | *'with BFD'*)
5638 symcode='[ABCDGIRSTW]' ;;
5641 # Try without a prefix undercore, then with it.
5642 for ac_symprfx in "" "_"; do
5644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5645 symxfrm="\\1 $ac_symprfx\\2 \\2"
5647 # Write the raw and C identifiers.
5648 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650 # Check to see that the pipe works correctly.
5654 cat > conftest.$ac_ext <<EOF
5659 void nm_test_func(){}
5663 int main(){nm_test_var='a';nm_test_func();return(0);}
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; then
5671 # Now try to grab the symbols.
5673 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && test -s "$nlist"; then
5678 # Try sorting and uniquifying the output.
5679 if sort "$nlist" | uniq > "$nlist"T; then
5680 mv -f "$nlist"T "$nlist"
5685 # Make sure that we snagged all the symbols we need.
5686 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5687 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5688 cat <<EOF > conftest.$ac_ext
5694 # Now generate the symbol file.
5695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5697 cat <<EOF >> conftest.$ac_ext
5698 #if defined (__STDC__) && __STDC__
5699 # define lt_ptr_t void *
5701 # define lt_ptr_t char *
5705 /* The mapping between symbol names and symbols. */
5710 lt_preloaded_symbols[] =
5713 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5714 cat <<\EOF >> conftest.$ac_ext
5722 # Now try linking the two files.
5723 mv conftest.$ac_objext conftstm.$ac_objext
5724 lt_save_LIBS="$LIBS"
5725 lt_save_CFLAGS="$CFLAGS"
5726 LIBS="conftstm.$ac_objext"
5727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5735 LIBS="$lt_save_LIBS"
5736 CFLAGS="$lt_save_CFLAGS"
5738 echo "cannot find nm_test_func in $nlist" >&5
5741 echo "cannot find nm_test_var in $nlist" >&5
5744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5747 echo "$progname: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 rm -f conftest* conftst*
5752 # Do not use the global_symbol_pipe unless it works.
5753 if test "$pipe_works" = yes; then
5756 lt_cv_sys_global_symbol_pipe=
5762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5763 lt_cv_sys_global_symbol_to_cdecl=
5765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5766 echo "$as_me:$LINENO: result: failed" >&5
5767 echo "${ECHO_T}failed" >&6
5769 echo "$as_me:$LINENO: result: ok" >&5
5770 echo "${ECHO_T}ok" >&6
5773 echo "$as_me:$LINENO: checking for objdir" >&5
5774 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5775 if test "${lt_cv_objdir+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 rm -f .libs 2>/dev/null
5779 mkdir .libs 2>/dev/null
5780 if test -d .libs; then
5783 # MS-DOS does not allow filenames that begin with a dot.
5786 rmdir .libs 2>/dev/null
5788 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5789 echo "${ECHO_T}$lt_cv_objdir" >&6
5790 objdir=$lt_cv_objdir
5798 # AIX sometimes has problems with the GCC collect2 program. For some
5799 # reason, if we set the COLLECT_NAMES environment variable, the problems
5800 # vanish in a puff of smoke.
5801 if test "X${COLLECT_NAMES+set}" != Xset; then
5803 export COLLECT_NAMES
5808 # Sed substitution that helps us do robust quoting. It backslashifies
5809 # metacharacters that are still active within double-quoted strings.
5810 Xsed='sed -e 1s/^X//'
5811 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5813 # Same as above, but do not quote variable references.
5814 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5816 # Sed substitution to delay expansion of an escaped shell variable in a
5817 # double_quote_subst'ed string.
5818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820 # Sed substitution to avoid accidental globbing in evaled expressions
5821 no_glob_subst='s/\*/\\\*/g'
5827 default_ofile=libtool
5828 can_build_shared=yes
5830 # All known linkers require a `.a' archive for static linking (except MSVC,
5831 # which needs '.lib').
5833 ltmain="$ac_aux_dir/ltmain.sh"
5834 ofile="$default_ofile"
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}ar; ac_word=$2
5840 echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842 if test "${ac_cv_prog_AR+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 if test -n "$AR"; then
5846 ac_cv_prog_AR="$AR" # Let the user override the test.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_AR="${ac_tool_prefix}ar"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 if test -n "$AR"; then
5866 echo "$as_me:$LINENO: result: $AR" >&5
5867 echo "${ECHO_T}$AR" >&6
5869 echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5874 if test -z "$ac_cv_prog_AR"; then
5876 # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy ar; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 if test -n "$ac_ct_AR"; then
5884 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_ac_ct_AR="ar"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5903 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5906 echo "${ECHO_T}$ac_ct_AR" >&6
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5922 if test "${ac_cv_prog_RANLIB+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946 echo "$as_me:$LINENO: result: $RANLIB" >&5
5947 echo "${ECHO_T}$RANLIB" >&6
5949 echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5954 if test -z "$ac_cv_prog_RANLIB"; then
5955 ac_ct_RANLIB=$RANLIB
5956 # Extract the first word of "ranlib", so it can be a program name with args.
5957 set dummy ranlib; ac_word=$2
5958 echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 if test -n "$ac_ct_RANLIB"; then
5964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_RANLIB="ranlib"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5984 if test -n "$ac_ct_RANLIB"; then
5985 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5986 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5988 echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5992 RANLIB=$ac_ct_RANLIB
5994 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026 echo "$as_me:$LINENO: result: $STRIP" >&5
6027 echo "${ECHO_T}$STRIP" >&6
6029 echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6034 if test -z "$ac_cv_prog_STRIP"; then
6036 # Extract the first word of "strip", so it can be a program name with args.
6037 set dummy strip; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$ac_ct_STRIP"; then
6044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_STRIP="strip"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6064 if test -n "$ac_ct_STRIP"; then
6065 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6066 echo "${ECHO_T}$ac_ct_STRIP" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6074 STRIP="$ac_cv_prog_STRIP"
6079 old_CFLAGS="$CFLAGS"
6081 # Set sane defaults for various variables
6082 test -z "$AR" && AR=ar
6083 test -z "$AR_FLAGS" && AR_FLAGS=cru
6084 test -z "$AS" && AS=as
6085 test -z "$CC" && CC=cc
6086 test -z "$LTCC" && LTCC=$CC
6087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6088 test -z "$DLLTOOL" && DLLTOOL=dlltool
6089 test -z "$LD" && LD=ld
6090 test -z "$LN_S" && LN_S="ln -s"
6091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6092 test -z "$NM" && NM=nm
6093 test -z "$SED" && SED=sed
6094 test -z "$OBJDUMP" && OBJDUMP=objdump
6095 test -z "$RANLIB" && RANLIB=:
6096 test -z "$STRIP" && STRIP=:
6097 test -z "$ac_objext" && ac_objext=o
6099 # Determine commands to create old-style static archives.
6100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6101 old_postinstall_cmds='chmod 644 $oldlib'
6102 old_postuninstall_cmds=
6104 if test -n "$RANLIB"; then
6107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6116 for cc_temp in $compiler""; do
6118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6127 # Only perform the check for file, if the check method requires it
6128 case $deplibs_check_method in
6130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6131 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6141 lt_save_MAGIC_CMD="$MAGIC_CMD"
6142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6144 for ac_dir in $ac_dummy; do
6146 test -z "$ac_dir" && ac_dir=.
6147 if test -f $ac_dir/${ac_tool_prefix}file; then
6148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6149 if test -n "$file_magic_test_file"; then
6150 case $deplibs_check_method in
6152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6155 $EGREP "$file_magic_regex" > /dev/null; then
6160 *** Warning: the command libtool uses to detect shared libraries,
6161 *** $file_magic_cmd, produces output that libtool cannot recognize.
6162 *** The result is that libtool may fail to recognize shared libraries
6163 *** as such. This will affect the creation of libtool libraries that
6164 *** depend on shared libraries, but programs linked with such libtool
6165 *** libraries will work regardless of this problem. Nevertheless, you
6166 *** may want to report the problem to your system manager and/or to
6167 *** bug-libtool@gnu.org
6177 MAGIC_CMD="$lt_save_MAGIC_CMD"
6182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183 if test -n "$MAGIC_CMD"; then
6184 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6185 echo "${ECHO_T}$MAGIC_CMD" >&6
6187 echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6191 if test -z "$lt_cv_path_MAGIC_CMD"; then
6192 if test -n "$ac_tool_prefix"; then
6193 echo "$as_me:$LINENO: checking for file" >&5
6194 echo $ECHO_N "checking for file... $ECHO_C" >&6
6195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6203 lt_save_MAGIC_CMD="$MAGIC_CMD"
6204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6206 for ac_dir in $ac_dummy; do
6208 test -z "$ac_dir" && ac_dir=.
6209 if test -f $ac_dir/file; then
6210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6211 if test -n "$file_magic_test_file"; then
6212 case $deplibs_check_method in
6214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6217 $EGREP "$file_magic_regex" > /dev/null; then
6222 *** Warning: the command libtool uses to detect shared libraries,
6223 *** $file_magic_cmd, produces output that libtool cannot recognize.
6224 *** The result is that libtool may fail to recognize shared libraries
6225 *** as such. This will affect the creation of libtool libraries that
6226 *** depend on shared libraries, but programs linked with such libtool
6227 *** libraries will work regardless of this problem. Nevertheless, you
6228 *** may want to report the problem to your system manager and/or to
6229 *** bug-libtool@gnu.org
6239 MAGIC_CMD="$lt_save_MAGIC_CMD"
6244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245 if test -n "$MAGIC_CMD"; then
6246 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6247 echo "${ECHO_T}$MAGIC_CMD" >&6
6249 echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6266 if test "${enable_libtool_lock+set}" = set; then
6267 enableval="$enable_libtool_lock"
6270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6273 # Check whether --with-pic or --without-pic was given.
6274 if test "${with_pic+set}" = set; then
6280 test -z "$pic_mode" && pic_mode=default
6282 # Use C for the default configuration in the libtool script
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292 # Source file extension for C test sources.
6295 # Object file extension for compiled C test sources.
6299 # Code to be used in simple compile tests
6300 lt_simple_compile_test_code="int some_variable = 0;\n"
6302 # Code to be used in simple link tests
6303 lt_simple_link_test_code='int main(){return(0);}\n'
6306 # If no C compiler was specified, use CC.
6309 # If no C compiler flags were specified, use CFLAGS.
6310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6312 # Allow CC to be a program name with arguments.
6316 # save warnings/boilerplate of simple test code
6317 ac_outfile=conftest.$ac_objext
6318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6320 _lt_compiler_boilerplate=`cat conftest.err`
6323 ac_outfile=conftest.$ac_objext
6324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6326 _lt_linker_boilerplate=`cat conftest.err`
6331 ## There is no encapsulation within the following macros, do not change
6332 ## the running order or otherwise move them around unless you know exactly
6333 ## what you are doing...
6335 lt_prog_compiler_no_builtin_flag=
6337 if test "$GCC" = yes; then
6338 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6341 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6342 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 lt_cv_prog_compiler_rtti_exceptions=no
6347 ac_outfile=conftest.$ac_objext
6348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349 lt_compiler_flag="-fno-rtti -fno-exceptions"
6350 # Insert the option either (1) after the last *FLAGS variable, or
6351 # (2) before a word containing "conftest.", or (3) at the end.
6352 # Note that $ac_compile itself does not contain backslashes and begins
6353 # with a dollar sign (not a hyphen), so the echo should work correctly.
6354 # The option is referenced via a variable to avoid confusing sed.
6355 lt_compile=`echo "$ac_compile" | $SED \
6356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358 -e 's:$: $lt_compiler_flag:'`
6359 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6360 (eval "$lt_compile" 2>conftest.err)
6362 cat conftest.err >&5
6363 echo "$as_me:__oline__: \$? = $ac_status" >&5
6364 if (exit $ac_status) && test -s "$ac_outfile"; then
6365 # The compiler can only warn and ignore the option if not recognized
6366 # So say no if there are warnings other than the usual output.
6367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6370 lt_cv_prog_compiler_rtti_exceptions=yes
6376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6377 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6387 lt_prog_compiler_wl=
6388 lt_prog_compiler_pic=
6389 lt_prog_compiler_static=
6391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6394 if test "$GCC" = yes; then
6395 lt_prog_compiler_wl='-Wl,'
6396 lt_prog_compiler_static='-static'
6400 # All AIX code is PIC.
6401 if test "$host_cpu" = ia64; then
6402 # AIX 5 now supports IA64 processor
6403 lt_prog_compiler_static='-Bstatic'
6408 # FIXME: we need at least 68020 code to build shared libraries, but
6409 # adding the `-m68020' flag to GCC prevents building anything better,
6411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6414 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6415 # PIC is the default for these OSes.
6418 mingw* | pw32* | os2*)
6419 # This hack is so that the source file can tell whether it is being
6420 # built for inclusion in a dll (and should export symbols for example).
6421 lt_prog_compiler_pic='-DDLL_EXPORT'
6424 darwin* | rhapsody*)
6425 # PIC is the default on this platform
6426 # Common symbols not allowed in MH_DYLIB files
6427 lt_prog_compiler_pic='-fno-common'
6431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6432 # Instead, we relocate shared libraries at runtime.
6436 # Just because we use GCC doesn't mean we suddenly get shared libraries
6437 # on systems that don't support them.
6438 lt_prog_compiler_can_build_shared=no
6443 if test -d /usr/nec; then
6444 lt_prog_compiler_pic=-Kconform_pic
6449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6456 lt_prog_compiler_pic='-fPIC'
6462 lt_prog_compiler_pic='-fPIC'
6466 # PORTME Check for flag to pass linker flags through the system compiler.
6469 lt_prog_compiler_wl='-Wl,'
6470 if test "$host_cpu" = ia64; then
6471 # AIX 5 now supports IA64 processor
6472 lt_prog_compiler_static='-Bstatic'
6474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6478 # PIC is the default on this platform
6479 # Common symbols not allowed in MH_DYLIB files
6480 case $cc_basename in
6482 lt_prog_compiler_pic='-qnocommon'
6483 lt_prog_compiler_wl='-Wl,'
6488 mingw* | pw32* | os2*)
6489 # This hack is so that the source file can tell whether it is being
6490 # built for inclusion in a dll (and should export symbols for example).
6491 lt_prog_compiler_pic='-DDLL_EXPORT'
6494 hpux9* | hpux10* | hpux11*)
6495 lt_prog_compiler_wl='-Wl,'
6496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6503 lt_prog_compiler_pic='+Z'
6506 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6507 lt_prog_compiler_static='${wl}-a ${wl}archive'
6510 irix5* | irix6* | nonstopux*)
6511 lt_prog_compiler_wl='-Wl,'
6512 # PIC (with -KPIC) is the default.
6513 lt_prog_compiler_static='-non_shared'
6517 lt_prog_compiler_pic='-KPIC'
6518 lt_prog_compiler_static='-Bstatic'
6522 case $cc_basename in
6524 lt_prog_compiler_wl='-Wl,'
6525 lt_prog_compiler_pic='-KPIC'
6526 lt_prog_compiler_static='-static'
6528 pgcc* | pgf77* | pgf90* | pgf95*)
6529 # Portland Group compilers (*not* the Pentium gcc compiler,
6530 # which looks to be a dead project)
6531 lt_prog_compiler_wl='-Wl,'
6532 lt_prog_compiler_pic='-fpic'
6533 lt_prog_compiler_static='-Bstatic'
6536 lt_prog_compiler_wl='-Wl,'
6537 # All Alpha code is PIC.
6538 lt_prog_compiler_static='-non_shared'
6543 osf3* | osf4* | osf5*)
6544 lt_prog_compiler_wl='-Wl,'
6545 # All OSF/1 code is PIC.
6546 lt_prog_compiler_static='-non_shared'
6550 lt_prog_compiler_pic='-KPIC'
6551 lt_prog_compiler_static='-Bstatic'
6552 case $cc_basename in
6554 lt_prog_compiler_wl='-Qoption ld ';;
6556 lt_prog_compiler_wl='-Wl,';;
6561 lt_prog_compiler_wl='-Qoption ld '
6562 lt_prog_compiler_pic='-PIC'
6563 lt_prog_compiler_static='-Bstatic'
6566 sysv4 | sysv4.2uw2* | sysv4.3*)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-Bstatic'
6573 if test -d /usr/nec ;then
6574 lt_prog_compiler_pic='-Kconform_pic'
6575 lt_prog_compiler_static='-Bstatic'
6579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6580 lt_prog_compiler_wl='-Wl,'
6581 lt_prog_compiler_pic='-KPIC'
6582 lt_prog_compiler_static='-Bstatic'
6586 lt_prog_compiler_wl='-Wl,'
6587 lt_prog_compiler_can_build_shared=no
6591 lt_prog_compiler_pic='-pic'
6592 lt_prog_compiler_static='-Bstatic'
6596 lt_prog_compiler_can_build_shared=no
6601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6602 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6605 # Check to make sure the PIC flag actually works.
6607 if test -n "$lt_prog_compiler_pic"; then
6609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_pic_works+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 lt_prog_compiler_pic_works=no
6615 ac_outfile=conftest.$ac_objext
6616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6618 # Insert the option either (1) after the last *FLAGS variable, or
6619 # (2) before a word containing "conftest.", or (3) at the end.
6620 # Note that $ac_compile itself does not contain backslashes and begins
6621 # with a dollar sign (not a hyphen), so the echo should work correctly.
6622 # The option is referenced via a variable to avoid confusing sed.
6623 lt_compile=`echo "$ac_compile" | $SED \
6624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626 -e 's:$: $lt_compiler_flag:'`
6627 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6628 (eval "$lt_compile" 2>conftest.err)
6630 cat conftest.err >&5
6631 echo "$as_me:__oline__: \$? = $ac_status" >&5
6632 if (exit $ac_status) && test -s "$ac_outfile"; then
6633 # The compiler can only warn and ignore the option if not recognized
6634 # So say no if there are warnings other than the usual output.
6635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6638 lt_prog_compiler_pic_works=yes
6644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6645 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6647 if test x"$lt_prog_compiler_pic_works" = xyes; then
6648 case $lt_prog_compiler_pic in
6650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6653 lt_prog_compiler_pic=
6654 lt_prog_compiler_can_build_shared=no
6659 # For platforms which do not support PIC, -DPIC is meaningless:
6661 lt_prog_compiler_pic=
6664 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669 # Check to make sure the static flag actually works.
6671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6672 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6674 if test "${lt_prog_compiler_static_works+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 lt_prog_compiler_static_works=no
6678 save_LDFLAGS="$LDFLAGS"
6679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6680 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6682 # The linker can only warn and ignore the option if not recognized
6683 # So say no if there are warnings
6684 if test -s conftest.err; then
6685 # Append any errors to the config.log.
6686 cat conftest.err 1>&5
6687 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689 if diff conftest.exp conftest.er2 >/dev/null; then
6690 lt_prog_compiler_static_works=yes
6693 lt_prog_compiler_static_works=yes
6697 LDFLAGS="$save_LDFLAGS"
6700 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6701 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6703 if test x"$lt_prog_compiler_static_works" = xyes; then
6706 lt_prog_compiler_static=
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 lt_cv_prog_compiler_c_o=no
6716 $rm -r conftest 2>/dev/null
6720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6722 lt_compiler_flag="-o out/conftest2.$ac_objext"
6723 # Insert the option either (1) after the last *FLAGS variable, or
6724 # (2) before a word containing "conftest.", or (3) at the end.
6725 # Note that $ac_compile itself does not contain backslashes and begins
6726 # with a dollar sign (not a hyphen), so the echo should work correctly.
6727 lt_compile=`echo "$ac_compile" | $SED \
6728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730 -e 's:$: $lt_compiler_flag:'`
6731 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6732 (eval "$lt_compile" 2>out/conftest.err)
6734 cat out/conftest.err >&5
6735 echo "$as_me:__oline__: \$? = $ac_status" >&5
6736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6738 # The compiler can only warn and ignore the option if not recognized
6739 # So say no if there are warnings
6740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743 lt_cv_prog_compiler_c_o=yes
6748 # SGI C++ compiler will create directory out/ii_files/ for
6749 # template instantiation
6750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751 $rm out/* && rmdir out
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763 # do not overwrite the value of need_locks provided by the user
6764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6770 ln conftest.a conftest.b 2>&5 || hard_links=no
6771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772 echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774 if test "$hard_links" = no; then
6775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6787 allow_undefined_flag=
6788 enable_shared_with_static_runtimes=no
6790 archive_expsym_cmds=
6791 old_archive_From_new_cmds=
6792 old_archive_from_expsyms_cmds=
6793 export_dynamic_flag_spec=
6794 whole_archive_flag_spec=
6795 thread_safe_flag_spec=
6796 hardcode_libdir_flag_spec=
6797 hardcode_libdir_flag_spec_ld=
6798 hardcode_libdir_separator=
6801 hardcode_shlibpath_var=unsupported
6802 link_all_deplibs=unknown
6803 hardcode_automatic=no
6806 always_export_symbols=no
6807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808 # include_expsyms should be a list of space-separated symbols to be *always*
6809 # included in the symbol list
6811 # exclude_expsyms can be an extended regexp of symbols to exclude
6812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814 # as well as any symbol that contains `d'.
6815 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817 # platforms (ab)use it in PIC code, but their linkers get confused if
6818 # the symbol is explicitly referenced. Since portable code cannot
6819 # rely on this symbol name, it's probably fine to never include it in
6820 # preloaded symbol tables.
6821 extract_expsyms_cmds=
6822 # Just being paranoid about ensuring that cc_basename is set.
6823 for cc_temp in $compiler""; do
6825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6834 cygwin* | mingw* | pw32*)
6835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836 # When not using gcc, we currently assume that we are using
6837 # Microsoft Visual C++.
6838 if test "$GCC" != yes; then
6843 # we just hope/assume this is gcc and not c89 (= MSVC++)
6852 if test "$with_gnu_ld" = yes; then
6853 # If archive_cmds runs LD, not CC, wlarc should be empty
6856 # Set some defaults for GNU ld with shared library support. These
6857 # are reset later if shared libraries are not supported. Putting them
6858 # here allows them to be overridden if necessary.
6859 runpath_var=LD_RUN_PATH
6860 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6861 export_dynamic_flag_spec='${wl}--export-dynamic'
6862 # ancient GNU ld didn't support --whole-archive et. al.
6863 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6864 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6866 whole_archive_flag_spec=
6868 supports_anon_versioning=no
6869 case `$LD -v 2>/dev/null` in
6870 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6871 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6872 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6873 *\ 2.11.*) ;; # other 2.11 versions
6874 *) supports_anon_versioning=yes ;;
6877 # See if GNU ld supports shared libraries.
6879 aix3* | aix4* | aix5*)
6880 # On AIX/PPC, the GNU linker is very broken
6881 if test "$host_cpu" != ia64; then
6885 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6886 *** to be unable to reliably create shared libraries on AIX.
6887 *** Therefore, libtool is disabling shared libraries support. If you
6888 *** really care for shared libraries, you may want to modify your PATH
6889 *** so that a non-GNU linker is found, and then restart.
6896 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)'
6897 hardcode_libdir_flag_spec='-L$libdir'
6898 hardcode_minus_L=yes
6900 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6901 # that the semantics of dynamic libraries on AmigaOS, at least up
6902 # to version 4, is to share data among multiple programs linked
6903 # with the same dynamic library. Since this doesn't match the
6904 # behavior of shared libraries on other platforms, we can't use
6910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6911 allow_undefined_flag=unsupported
6912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6913 # support --undefined. This deserves some investigation. FIXME
6914 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6920 cygwin* | mingw* | pw32*)
6921 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6922 # as there is no search path for DLLs.
6923 hardcode_libdir_flag_spec='-L$libdir'
6924 allow_undefined_flag=unsupported
6925 always_export_symbols=no
6926 enable_shared_with_static_runtimes=yes
6927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6929 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931 # If the export-symbols file already is a .def file (1st line
6932 # is EXPORTS), use it as is; otherwise, prepend...
6933 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6934 cp $export_symbols $output_objdir/$soname.def;
6936 echo EXPORTS > $output_objdir/$soname.def;
6937 cat $export_symbols >> $output_objdir/$soname.def;
6939 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6947 hardcode_shlibpath_var=no
6948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6949 export_dynamic_flag_spec='${wl}-E'
6950 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6951 # Instead, shared libraries are loaded at an image base (0x10000000 by
6952 # default) and relocated if they conflict, which is a slow very memory
6953 # consuming and fragmenting process. To avoid this, we pick a random,
6954 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6955 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6957 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'
6961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6963 case $cc_basename,$host_cpu in
6964 pgcc*) # Portland Group C compiler
6965 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'
6966 tmp_addflag=' $pic_flag'
6968 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6969 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'
6970 tmp_addflag=' $pic_flag -Mnomain' ;;
6971 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6972 tmp_addflag=' -i_dynamic' ;;
6973 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6974 tmp_addflag=' -i_dynamic -nofor_main' ;;
6975 ifc* | ifort*) # Intel Fortran compiler
6976 tmp_addflag=' -nofor_main' ;;
6978 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6980 if test $supports_anon_versioning = yes; then
6981 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6983 $echo "local: *; };" >> $output_objdir/$libname.ver~
6984 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
7002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7007 *** create shared libraries on Solaris systems. Therefore, libtool
7008 *** is disabling shared libraries support. We urge you to upgrade GNU
7009 *** binutils to release 2.9.1 or newer. Another option is to modify
7010 *** your PATH or compiler configuration so that the native linker is
7011 *** used, and then restart.
7014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7023 case `$LD -v 2>&1` in
7024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7029 *** reliably create shared libraries on SCO systems. Therefore, libtool
7030 *** is disabling shared libraries support. We urge you to upgrade GNU
7031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7032 *** your PATH or compiler configuration so that the native linker is
7033 *** used, and then restart.
7038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7053 hardcode_shlibpath_var=no
7057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066 if test "$ld_shlibs" = no; then
7068 hardcode_libdir_flag_spec=
7069 export_dynamic_flag_spec=
7070 whole_archive_flag_spec=
7073 # PORTME fill in a description of your system's linker (not GNU ld)
7076 allow_undefined_flag=unsupported
7077 always_export_symbols=yes
7078 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'
7079 # Note: this linker hardcodes the directories in LIBPATH if there
7080 # are no directories specified by -L.
7081 hardcode_minus_L=yes
7082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7083 # Neither direct hardcoding nor static linking is supported with a
7085 hardcode_direct=unsupported
7090 if test "$host_cpu" = ia64; then
7091 # On IA64, the linker does run time linking by default, so we don't
7092 # have to do anything special.
7093 aix_use_runtimelinking=no
7094 exp_sym_flag='-Bexport'
7097 # If we're using GNU nm, then we don't want the "-C" option.
7098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7100 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'
7102 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'
7104 aix_use_runtimelinking=no
7106 # Test if we are trying to use run time linking or normal
7107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7108 # need to do runtime linking.
7109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7110 for ld_flag in $LDFLAGS; do
7111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7112 aix_use_runtimelinking=yes
7119 exp_sym_flag='-bexport'
7120 no_entry_flag='-bnoentry'
7123 # When large executables or shared objects are built, AIX ld can
7124 # have problems creating the table of contents. If linking a library
7125 # or program results in "error TOC overflow" add -mminimal-toc to
7126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7131 hardcode_libdir_separator=':'
7132 link_all_deplibs=yes
7134 if test "$GCC" = yes; then
7135 case $host_os in aix4.[012]|aix4.[012].*)
7136 # We only want to do this on AIX 4.2 and lower, the check
7137 # below for broken collect2 doesn't work under 4.3+
7138 collect2name=`${CC} -print-prog-name=collect2`
7139 if test -f "$collect2name" && \
7140 strings "$collect2name" | grep resolve_lib_name >/dev/null
7142 # We have reworked collect2
7145 # We have old collect2
7146 hardcode_direct=unsupported
7147 # It fails to find uninstalled libraries when the uninstalled
7148 # path is not listed in the libpath. Setting hardcode_minus_L
7149 # to unsupported forces relinking
7150 hardcode_minus_L=yes
7151 hardcode_libdir_flag_spec='-L$libdir'
7152 hardcode_libdir_separator=
7156 shared_flag='-shared'
7157 if test "$aix_use_runtimelinking" = yes; then
7158 shared_flag="$shared_flag "'${wl}-G'
7162 if test "$host_cpu" = ia64; then
7163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7164 # chokes on -Wl,-G. The following line is correct:
7167 if test "$aix_use_runtimelinking" = yes; then
7168 shared_flag='${wl}-G'
7170 shared_flag='${wl}-bM:SRE'
7175 # It seems that -bexpall does not export symbols beginning with
7176 # underscore (_), so it is better to generate a list of symbols to export.
7177 always_export_symbols=yes
7178 if test "$aix_use_runtimelinking" = yes; then
7179 # Warning - without using the other runtime loading flags (-brtl),
7180 # -berok will link without error, but may produce a broken library.
7181 allow_undefined_flag='-berok'
7182 # Determine the default libpath from the value encoded in an empty executable.
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7202 grep -v '^ *+' conftest.er1 >conftest.err
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_c_werror_flag"
7208 || test ! -s conftest.err'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; } &&
7214 { ac_try='test -s conftest$ac_exeext'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7223 # Check for a 64-bit object if we didn't find anything.
7224 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; }
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -f conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7236 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"
7238 if test "$host_cpu" = ia64; then
7239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7240 allow_undefined_flag="-z nodefs"
7241 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"
7243 # Determine the default libpath from the value encoded in an empty executable.
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try='test -s conftest$ac_exeext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7284 # Check for a 64-bit object if we didn't find anything.
7285 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; }
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297 # Warning - without using the other run time loading flags,
7298 # -berok will link without error, but may produce a broken library.
7299 no_undefined_flag=' ${wl}-bernotok'
7300 allow_undefined_flag=' ${wl}-berok'
7301 # Exported symbols can be pulled into shared objects from archives
7302 whole_archive_flag_spec='$convenience'
7303 archive_cmds_need_lc=yes
7304 # This is similar to how AIX traditionally builds its shared libraries.
7305 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'
7311 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)'
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_minus_L=yes
7314 # see comment about different semantics on the GNU ld section
7319 export_dynamic_flag_spec=-rdynamic
7322 cygwin* | mingw* | pw32*)
7323 # When not using gcc, we currently assume that we are using
7324 # Microsoft Visual C++.
7325 # hardcode_libdir_flag_spec is actually meaningless, as there is
7326 # no search path for DLLs.
7327 hardcode_libdir_flag_spec=' '
7328 allow_undefined_flag=unsupported
7329 # Tell ltmain to make .lib files, not .a files.
7331 # Tell ltmain to make .dll files, not .so files.
7333 # FIXME: Setting linknames here is a bad hack.
7334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7335 # The linker will automatically build a .lib file if we build a DLL.
7336 old_archive_From_new_cmds='true'
7337 # FIXME: Should let the user specify the lib program.
7338 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7339 fix_srcfile_path='`cygpath -w "$srcfile"`'
7340 enable_shared_with_static_runtimes=yes
7343 darwin* | rhapsody*)
7345 rhapsody* | darwin1.[012])
7346 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7349 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7352 case ${MACOSX_DEPLOYMENT_TARGET} in
7354 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7357 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7363 archive_cmds_need_lc=no
7365 hardcode_automatic=yes
7366 hardcode_shlibpath_var=unsupported
7367 whole_archive_flag_spec=''
7368 link_all_deplibs=yes
7369 if test "$GCC" = yes ; then
7370 output_verbose_link_cmd='echo'
7371 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7372 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7374 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}'
7375 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}'
7377 case $cc_basename in
7379 output_verbose_link_cmd='echo'
7380 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7381 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7383 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}'
7384 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}'
7394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 hardcode_libdir_flag_spec='-L$libdir'
7396 hardcode_shlibpath_var=no
7403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7404 # support. Future versions do this automatically, but an explicit c++rt0.o
7405 # does not break anything, and helps significantly (at the cost of a little
7408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7409 hardcode_libdir_flag_spec='-R$libdir'
7411 hardcode_shlibpath_var=no
7414 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_minus_L=yes
7419 hardcode_shlibpath_var=no
7422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7423 freebsd* | kfreebsd*-gnu | dragonfly*)
7424 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7425 hardcode_libdir_flag_spec='-R$libdir'
7427 hardcode_shlibpath_var=no
7431 if test "$GCC" = yes; then
7432 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'
7434 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'
7436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437 hardcode_libdir_separator=:
7440 # hardcode_minus_L: Not really in the search PATH,
7441 # but as the default location of the library.
7442 hardcode_minus_L=yes
7443 export_dynamic_flag_spec='${wl}-E'
7447 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7452 if test "$with_gnu_ld" = no; then
7453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7454 hardcode_libdir_separator=:
7457 export_dynamic_flag_spec='${wl}-E'
7459 # hardcode_minus_L: Not really in the search PATH,
7460 # but as the default location of the library.
7461 hardcode_minus_L=yes
7466 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7469 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7481 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7487 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7491 if test "$with_gnu_ld" = no; then
7492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493 hardcode_libdir_separator=:
7497 hardcode_libdir_flag_spec_ld='+b $libdir'
7499 hardcode_shlibpath_var=no
7503 export_dynamic_flag_spec='${wl}-E'
7505 # hardcode_minus_L: Not really in the search PATH,
7506 # but as the default location of the library.
7507 hardcode_minus_L=yes
7513 irix5* | irix6* | nonstopux*)
7514 if test "$GCC" = yes; then
7515 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'
7517 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'
7518 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521 hardcode_libdir_separator=:
7522 link_all_deplibs=yes
7526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7531 hardcode_libdir_flag_spec='-R$libdir'
7533 hardcode_shlibpath_var=no
7537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7540 hardcode_libdir_separator=:
7541 hardcode_shlibpath_var=no
7546 hardcode_shlibpath_var=no
7547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 export_dynamic_flag_spec='${wl}-E'
7554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_libdir_flag_spec='-R$libdir'
7559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7567 hardcode_libdir_flag_spec='-L$libdir'
7568 hardcode_minus_L=yes
7569 allow_undefined_flag=unsupported
7570 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'
7571 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7575 if test "$GCC" = yes; then
7576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7577 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'
7579 allow_undefined_flag=' -expect_unresolved \*'
7580 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'
7582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583 hardcode_libdir_separator=:
7586 osf4* | osf5*) # as osf3* with the addition of -msym flag
7587 if test "$GCC" = yes; then
7588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7589 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'
7590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7592 allow_undefined_flag=' -expect_unresolved \*'
7593 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'
7594 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7595 $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'
7597 # Both c and cxx compiler support -rpath directly
7598 hardcode_libdir_flag_spec='-rpath $libdir'
7600 hardcode_libdir_separator=:
7604 no_undefined_flag=' -z text'
7605 if test "$GCC" = yes; then
7607 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7608 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7616 hardcode_libdir_flag_spec='-R$libdir'
7617 hardcode_shlibpath_var=no
7619 solaris2.[0-5] | solaris2.[0-5].*) ;;
7621 # The compiler driver will combine linker options so we
7622 # cannot just pass the convience library names through
7623 # without $wl, iff we do not link with $LD.
7624 # Luckily, gcc supports the same syntax we need for Sun Studio.
7625 # Supported since Solaris 2.6 (maybe 2.5.1?)
7628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7630 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' ;;
7633 link_all_deplibs=yes
7637 if test "x$host_vendor" = xsequent; then
7638 # Use $CC to link under sequent, because it throws in some extra .o
7639 # files that make .init and .fini sections work.
7640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7644 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_minus_L=yes
7647 hardcode_shlibpath_var=no
7651 case $host_vendor in
7653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7654 hardcode_direct=yes # is this really true???
7657 ## LD is ld it makes a PLAMLIB
7658 ## CC just makes a GrossModule.
7659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7660 reload_cmds='$CC -r -o $output$reload_objs'
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7668 runpath_var='LD_RUN_PATH'
7669 hardcode_shlibpath_var=no
7673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7674 hardcode_shlibpath_var=no
7675 export_dynamic_flag_spec='-Bexport'
7679 if test -d /usr/nec; then
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_shlibpath_var=no
7682 runpath_var=LD_RUN_PATH
7683 hardcode_runpath_var=yes
7688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7689 no_undefined_flag='${wl}-z,text'
7690 archive_cmds_need_lc=no
7691 hardcode_shlibpath_var=no
7692 runpath_var='LD_RUN_PATH'
7694 if test "$GCC" = yes; then
7695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 sysv5* | sco3.2v5* | sco5v6*)
7704 # Note: We can NOT use -z defs as we might desire, because we do not
7705 # link with -lc, and that would cause any symbols used from libc to
7706 # always be unresolved, which means just about no library would
7707 # ever link correctly. If we're not using GNU ld we use -z text
7708 # though, which does catch some bad symbols but isn't as heavy-handed
7710 no_undefined_flag='${wl}-z,text'
7711 allow_undefined_flag='${wl}-z,nodefs'
7712 archive_cmds_need_lc=no
7713 hardcode_shlibpath_var=no
7714 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7715 hardcode_libdir_separator=':'
7716 link_all_deplibs=yes
7717 export_dynamic_flag_spec='${wl}-Bexport'
7718 runpath_var='LD_RUN_PATH'
7720 if test "$GCC" = yes; then
7721 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7724 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7731 hardcode_libdir_flag_spec='-L$libdir'
7732 hardcode_shlibpath_var=no
7741 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7742 echo "${ECHO_T}$ld_shlibs" >&6
7743 test "$ld_shlibs" = no && can_build_shared=no
7746 # Do we need to explicitly link libc?
7748 case "x$archive_cmds_need_lc" in
7750 # Assume -lc should be added
7751 archive_cmds_need_lc=yes
7753 if test "$enable_shared" = yes && test "$GCC" = yes; then
7754 case $archive_cmds in
7756 # FIXME: we may have to deal with multi-command sequences.
7759 # Test whether the compiler implicitly links with -lc since on some
7760 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761 # to ld, don't add -lc before -lgcc.
7762 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } 2>conftest.err; then
7774 libobjs=conftest.$ac_objext
7776 wl=$lt_prog_compiler_wl
7777 pic_flag=$lt_prog_compiler_pic
7783 lt_save_allow_undefined_flag=$allow_undefined_flag
7784 allow_undefined_flag=
7785 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7786 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }
7791 archive_cmds_need_lc=no
7793 archive_cmds_need_lc=yes
7795 allow_undefined_flag=$lt_save_allow_undefined_flag
7797 cat conftest.err 1>&5
7800 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7801 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7811 libname_spec='lib$name'
7819 shlibpath_overrides_runpath=unknown
7821 dynamic_linker="$host_os ld.so"
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7823 if test "$GCC" = yes; then
7824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7826 # if the path contains ";" then we assume it to be the separator
7827 # otherwise default to the standard path separator (i.e. ":") - it is
7828 # assumed that no part of a normal pathname contains ";" but that should
7829 # okay in the real world where ";" in dirpaths is itself problematic.
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7837 need_lib_prefix=unknown
7838 hardcode_into_libs=no
7840 # when you set need_version to no, make sure it does not cause -set_version
7841 # flags to be left without arguments
7842 need_version=unknown
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7848 shlibpath_var=LIBPATH
7850 # AIX 3 has no versioning support, so we append a major version to the name.
7851 soname_spec='${libname}${release}${shared_ext}$major'
7858 hardcode_into_libs=yes
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 supports IA64
7861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7862 shlibpath_var=LD_LIBRARY_PATH
7864 # With GCC up to 2.95.x, collect2 would create an import file
7865 # for dependence libraries. The import file would start with
7866 # the line `#! .'. This would cause the generated library to
7867 # depend on `.', always an invalid library. This was fixed in
7868 # development snapshots of GCC prior to 3.0.
7870 aix4 | aix4.[01] | aix4.[01].*)
7871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7881 # soname into executable. Probably we can add versioning support to
7882 # collect2, so additional links can be useful in future.
7883 if test "$aix_use_runtimelinking" = yes; then
7884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7885 # instead of lib<name>.a to let people know that these are not
7886 # typical AIX shared libraries.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 # We preserve .a as extension for shared libraries through AIX4.2
7890 # and later when we are not doing run time linking.
7891 library_names_spec='${libname}${release}.a $libname.a'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7894 shlibpath_var=LIBPATH
7899 library_names_spec='$libname.ixlibrary $libname.a'
7900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7901 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'
7905 library_names_spec='${libname}${shared_ext}'
7906 dynamic_linker="$host_os ld.so"
7907 shlibpath_var=LIBRARY_PATH
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7919 # the default ld.so.conf also contains /usr/contrib/lib and
7920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7921 # libtool to hard-code these into programs
7924 cygwin* | mingw* | pw32*)
7925 version_type=windows
7930 case $GCC,$host_os in
7931 yes,cygwin* | yes,mingw* | yes,pw32*)
7932 library_names_spec='$libname.dll.a'
7933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7934 postinstall_cmds='base_file=`basename \${file}`~
7935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7936 dldir=$destdir/`dirname \$dlpath`~
7937 test -d \$dldir || mkdir -p \$dldir~
7938 $install_prog $dir/$dlname \$dldir/$dlname~
7939 chmod a+x \$dldir/$dlname'
7940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7941 dlpath=$dir/\$dldll~
7943 shlibpath_overrides_runpath=yes
7947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7952 # MinGW DLLs use traditional 'lib' prefix
7953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7956 # It is most probably a Windows format PATH printed by
7957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7958 # path with ; separators, and with drive letters. We can handle the
7959 # drive letters (cygwin fileutils understands them), so leave them,
7960 # especially as we might pass files found there to a mingw objdump,
7961 # which wouldn't understand a cygwinified path. Ahh.
7962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7968 # pw32 DLLs use 'pw' prefix rather than 'lib'
7969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7978 dynamic_linker='Win32 ld.exe'
7979 # FIXME: first we should search . and the directory the executable is in
7983 darwin* | rhapsody*)
7984 dynamic_linker="$host_os dyld"
7988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7989 soname_spec='${libname}${release}${major}$shared_ext'
7990 shlibpath_overrides_runpath=yes
7991 shlibpath_var=DYLD_LIBRARY_PATH
7992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7994 if test "$GCC" = yes; then
7995 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"`
7997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8007 soname_spec='${libname}${release}${shared_ext}$major'
8008 shlibpath_var=LD_LIBRARY_PATH
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 shlibpath_overrides_runpath=no
8023 hardcode_into_libs=yes
8024 dynamic_linker='GNU ld.so'
8027 freebsd* | dragonfly*)
8028 # DragonFly does not have aout. When/if they implement a new
8029 # versioning mechanism, adjust this.
8030 if test -x /usr/bin/objformat; then
8031 objformat=`/usr/bin/objformat`
8034 freebsd[123]*) objformat=aout ;;
8038 version_type=freebsd-$objformat
8039 case $version_type in
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8050 shlibpath_var=LD_LIBRARY_PATH
8053 shlibpath_overrides_runpath=yes
8055 freebsd3.[01]* | freebsdelf3.[01]*)
8056 shlibpath_overrides_runpath=yes
8057 hardcode_into_libs=yes
8059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8061 shlibpath_overrides_runpath=no
8062 hardcode_into_libs=yes
8064 freebsd*) # from 4.6 on
8065 shlibpath_overrides_runpath=yes
8066 hardcode_into_libs=yes
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 hardcode_into_libs=yes
8081 hpux9* | hpux10* | hpux11*)
8082 # Give a soname corresponding to the major version so that dld.sl refuses to
8083 # link against other versions.
8090 hardcode_into_libs=yes
8091 dynamic_linker="$host_os dld.so"
8092 shlibpath_var=LD_LIBRARY_PATH
8093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
8096 if test "X$HPUX_IA64_MODE" = X32; then
8097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8105 hardcode_into_libs=yes
8106 dynamic_linker="$host_os dld.sl"
8107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110 soname_spec='${libname}${release}${shared_ext}$major'
8111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8116 dynamic_linker="$host_os dld.sl"
8117 shlibpath_var=SHLIB_PATH
8118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120 soname_spec='${libname}${release}${shared_ext}$major'
8123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8124 postinstall_cmds='chmod 555 $lib'
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=no
8136 hardcode_into_libs=yes
8139 irix5* | irix6* | nonstopux*)
8141 nonstopux*) version_type=nonstopux ;;
8143 if test "$lt_cv_prog_gnu_ld" = yes; then
8151 soname_spec='${libname}${release}${shared_ext}$major'
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8154 irix5* | nonstopux*)
8158 case $LD in # libtool.m4 will add one of these switches to LD
8159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8160 libsuff= shlibsuff= libmagic=32-bit;;
8161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8162 libsuff=32 shlibsuff=N32 libmagic=N32;;
8163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8165 *) libsuff= shlibsuff= libmagic=never-match;;
8169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8170 shlibpath_overrides_runpath=no
8171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8173 hardcode_into_libs=yes
8176 # No shared lib support for Linux oldld, aout, or coff.
8177 linux*oldld* | linux*aout* | linux*coff*)
8181 # This must be Linux ELF.
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8189 shlibpath_var=LD_LIBRARY_PATH
8190 shlibpath_overrides_runpath=no
8191 # This implies no fast_install, which is unacceptable.
8192 # Some rework will be needed to allow for fast_install
8193 # before this can be enabled.
8194 hardcode_into_libs=yes
8196 # Append ld.so.conf contents to the search path
8197 if test -f /etc/ld.so.conf; then
8198 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' ' '`
8199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8202 # We used to test for /lib/ld.so.1 and disable shared libraries on
8203 # powerpc, because MkLinux only supported shared libraries with the
8204 # GNU dynamic linker. Since this was broken with cross compilers,
8205 # most powerpc-linux boxes support dynamic linking these days and
8206 # people can always --disable-shared, the test was removed, and we
8207 # assume the GNU/Linux dynamic linker is in use.
8208 dynamic_linker='GNU/Linux ld.so'
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 shlibpath_var=LD_LIBRARY_PATH
8218 shlibpath_overrides_runpath=no
8219 hardcode_into_libs=yes
8220 dynamic_linker='GNU ld.so'
8227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8230 dynamic_linker='NetBSD (a.out) ld.so'
8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8233 soname_spec='${libname}${release}${shared_ext}$major'
8234 dynamic_linker='NetBSD ld.elf_so'
8236 shlibpath_var=LD_LIBRARY_PATH
8237 shlibpath_overrides_runpath=yes
8238 hardcode_into_libs=yes
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 shlibpath_var=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath=yes
8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8253 soname_spec='${libname}${release}${shared_ext}$major'
8254 shlibpath_var=LD_LIBRARY_PATH
8255 shlibpath_overrides_runpath=yes
8260 sys_lib_dlsearch_path_spec="/usr/lib"
8262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8265 *) need_version=no ;;
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8272 openbsd2.[89] | openbsd2.[89].*)
8273 shlibpath_overrides_runpath=no
8276 shlibpath_overrides_runpath=yes
8280 shlibpath_overrides_runpath=yes
8285 libname_spec='$name'
8288 library_names_spec='$libname${shared_ext} $libname.a'
8289 dynamic_linker='OS/2 ld.exe'
8290 shlibpath_var=LIBPATH
8293 osf3* | osf4* | osf5*)
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8309 soname_spec='${libname}${release}${shared_ext}$major'
8310 shlibpath_var=LD_LIBRARY_PATH
8311 shlibpath_overrides_runpath=yes
8312 hardcode_into_libs=yes
8313 # ldd complains unless libraries are executable
8314 postinstall_cmds='chmod +x $lib'
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8321 shlibpath_var=LD_LIBRARY_PATH
8322 shlibpath_overrides_runpath=yes
8323 if test "$with_gnu_ld" = yes; then
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332 soname_spec='${libname}${release}${shared_ext}$major'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 case $host_vendor in
8336 shlibpath_overrides_runpath=no
8338 export_dynamic_flag_spec='${wl}-Blargedynsym'
8339 runpath_var=LD_RUN_PATH
8347 shlibpath_overrides_runpath=no
8348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8354 if test -d /usr/nec ;then
8356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8357 soname_spec='$libname${shared_ext}.$major'
8358 shlibpath_var=LD_LIBRARY_PATH
8362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8363 version_type=freebsd-elf
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 hardcode_into_libs=yes
8370 if test "$with_gnu_ld" = yes; then
8371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8372 shlibpath_overrides_runpath=no
8374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8375 shlibpath_overrides_runpath=yes
8378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8382 sys_lib_dlsearch_path_spec='/usr/lib'
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 shlibpath_var=LD_LIBRARY_PATH
8396 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8397 echo "${ECHO_T}$dynamic_linker" >&6
8398 test "$dynamic_linker" = no && can_build_shared=no
8400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8401 if test "$GCC" = yes; then
8402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8405 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8408 if test -n "$hardcode_libdir_flag_spec" || \
8409 test -n "$runpath_var" || \
8410 test "X$hardcode_automatic" = "Xyes" ; then
8412 # We can hardcode non-existant directories.
8413 if test "$hardcode_direct" != no &&
8414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8415 # have to relink, otherwise we might link with an installed library
8416 # when we should be linking with a yet-to-be-installed one
8417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8418 test "$hardcode_minus_L" != no; then
8419 # Linking always hardcodes the temporary library directory.
8420 hardcode_action=relink
8422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8423 hardcode_action=immediate
8426 # We cannot hardcode anything, or else we can only hardcode existing
8428 hardcode_action=unsupported
8430 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8431 echo "${ECHO_T}$hardcode_action" >&6
8433 if test "$hardcode_action" = relink; then
8434 # Fast installation is not supported
8435 enable_fast_install=no
8436 elif test "$shlibpath_overrides_runpath" = yes ||
8437 test "$enable_shared" = no; then
8438 # Fast installation is not necessary
8439 enable_fast_install=needless
8444 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8449 echo "$as_me:$LINENO: result: yes" >&5
8450 echo "${ECHO_T}yes" >&6
8452 # FIXME - insert some real tests, host_os isn't really good enough
8455 if test -n "$STRIP" ; then
8456 striplib="$STRIP -x"
8457 echo "$as_me:$LINENO: result: yes" >&5
8458 echo "${ECHO_T}yes" >&6
8460 echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6
8465 echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6
8471 if test "x$enable_dlopen" != xyes; then
8472 enable_dlopen=unknown
8473 enable_dlopen_self=unknown
8474 enable_dlopen_self_static=unknown
8481 lt_cv_dlopen="load_add_on"
8483 lt_cv_dlopen_self=yes
8487 lt_cv_dlopen="LoadLibrary"
8492 lt_cv_dlopen="dlopen"
8497 # if libdl is installed we need to link against it
8498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 ac_check_lib_save_LIBS=$LIBS
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8512 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529 (eval $ac_link) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_lib_dl_dlopen=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_cv_lib_dl_dlopen=no
8556 rm -f conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8560 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8562 if test $ac_cv_lib_dl_dlopen = yes; then
8563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8568 lt_cv_dlopen_self=yes
8575 echo "$as_me:$LINENO: checking for shl_load" >&5
8576 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8577 if test "${ac_cv_func_shl_load+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8588 #define shl_load innocuous_shl_load
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char shl_load (); below.
8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593 <limits.h> exists even on freestanding compilers. */
8596 # include <limits.h>
8598 # include <assert.h>
8603 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8611 /* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8617 char (*f) () = shl_load;
8626 return f != shl_load;
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_func_shl_load=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_func_shl_load=no
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8664 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8665 if test $ac_cv_func_shl_load = yes; then
8666 lt_cv_dlopen="shl_load"
8668 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8669 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_check_lib_save_LIBS=$LIBS
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 /* Override any gcc2 internal prototype to avoid an error. */
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699 (eval $ac_link) 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_lib_dld_shl_load=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_lib_dld_shl_load=no
8726 rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8732 if test $ac_cv_lib_dld_shl_load = yes; then
8733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8735 echo "$as_me:$LINENO: checking for dlopen" >&5
8736 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8737 if test "${ac_cv_func_dlopen+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8748 #define dlopen innocuous_dlopen
8750 /* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char dlopen (); below.
8752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753 <limits.h> exists even on freestanding compilers. */
8756 # include <limits.h>
8758 # include <assert.h>
8763 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8771 /* The GNU C library defines this for functions which it implements
8772 to always fail with ENOSYS. Some functions are actually named
8773 something starting with __ and the normal name is an alias. */
8774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8777 char (*f) () = dlopen;
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793 (eval $ac_link) 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_func_dlopen=yes
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_func_dlopen=no
8820 rm -f conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8825 if test $ac_cv_func_dlopen = yes; then
8826 lt_cv_dlopen="dlopen"
8828 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_check_lib_save_LIBS=$LIBS
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8842 /* Override any gcc2 internal prototype to avoid an error. */
8846 /* We use char because int might match the return type of a gcc2
8847 builtin and then its argument prototype would still apply. */
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>conftest.er1
8861 grep -v '^ *+' conftest.er1 >conftest.err
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag"
8867 || test ! -s conftest.err'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_dl_dlopen=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_cv_lib_dl_dlopen=no
8886 rm -f conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_lib_save_LIBS
8890 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8891 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8892 if test $ac_cv_lib_dl_dlopen = yes; then
8893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8895 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8896 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8897 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 ac_check_lib_save_LIBS=$LIBS
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 /* Override any gcc2 internal prototype to avoid an error. */
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_lib_svld_dlopen=yes
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_svld_dlopen=no
8953 rm -f conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8957 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8959 if test $ac_cv_lib_svld_dlopen = yes; then
8960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8962 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 ac_check_lib_save_LIBS=$LIBS
8969 cat >conftest.$ac_ext <<_ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8976 /* Override any gcc2 internal prototype to avoid an error. */
8980 /* We use char because int might match the return type of a gcc2
8981 builtin and then its argument prototype would still apply. */
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_lib_dld_dld_link=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_lib_dld_dld_link=no
9020 rm -f conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9024 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9025 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9026 if test $ac_cv_lib_dld_dld_link = yes; then
9027 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9048 if test "x$lt_cv_dlopen" != xno; then
9054 case $lt_cv_dlopen in
9056 save_CPPFLAGS="$CPPFLAGS"
9057 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9059 save_LDFLAGS="$LDFLAGS"
9060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9063 LIBS="$lt_cv_dlopen_libs $LIBS"
9065 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9066 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9067 if test "${lt_cv_dlopen_self+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 if test "$cross_compiling" = yes; then :
9071 lt_cv_dlopen_self=cross
9073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9074 lt_status=$lt_dlunknown
9075 cat > conftest.$ac_ext <<EOF
9076 #line __oline__ "configure"
9077 #include "confdefs.h"
9086 # define LT_DLGLOBAL RTLD_GLOBAL
9089 # define LT_DLGLOBAL DL_GLOBAL
9091 # define LT_DLGLOBAL 0
9095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9096 find out it does not work in some platform. */
9097 #ifndef LT_DLLAZY_OR_NOW
9099 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9102 # define LT_DLLAZY_OR_NOW DL_LAZY
9105 # define LT_DLLAZY_OR_NOW RTLD_NOW
9108 # define LT_DLLAZY_OR_NOW DL_NOW
9110 # define LT_DLLAZY_OR_NOW 0
9118 extern "C" void exit (int);
9121 void fnord() { int i=42;}
9124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9125 int status = $lt_dlunknown;
9129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9131 /* dlclose (self); */
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9144 (./conftest; exit; ) >&5 2>/dev/null
9147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9149 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9152 # compilation failed
9153 lt_cv_dlopen_self=no
9160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9161 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9163 if test "x$lt_cv_dlopen_self" = xyes; then
9164 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9165 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9166 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9167 if test "${lt_cv_dlopen_self_static+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 if test "$cross_compiling" = yes; then :
9171 lt_cv_dlopen_self_static=cross
9173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9174 lt_status=$lt_dlunknown
9175 cat > conftest.$ac_ext <<EOF
9176 #line __oline__ "configure"
9177 #include "confdefs.h"
9186 # define LT_DLGLOBAL RTLD_GLOBAL
9189 # define LT_DLGLOBAL DL_GLOBAL
9191 # define LT_DLGLOBAL 0
9195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9196 find out it does not work in some platform. */
9197 #ifndef LT_DLLAZY_OR_NOW
9199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9202 # define LT_DLLAZY_OR_NOW DL_LAZY
9205 # define LT_DLLAZY_OR_NOW RTLD_NOW
9208 # define LT_DLLAZY_OR_NOW DL_NOW
9210 # define LT_DLLAZY_OR_NOW 0
9218 extern "C" void exit (int);
9221 void fnord() { int i=42;}
9224 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9225 int status = $lt_dlunknown;
9229 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9230 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9231 /* dlclose (self); */
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9244 (./conftest; exit; ) >&5 2>/dev/null
9247 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9248 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9249 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9252 # compilation failed
9253 lt_cv_dlopen_self_static=no
9260 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9261 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9264 CPPFLAGS="$save_CPPFLAGS"
9265 LDFLAGS="$save_LDFLAGS"
9270 case $lt_cv_dlopen_self in
9271 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9272 *) enable_dlopen_self=unknown ;;
9275 case $lt_cv_dlopen_self_static in
9276 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9277 *) enable_dlopen_self_static=unknown ;;
9282 # Report which library types will actually be built
9283 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9284 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9285 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9286 echo "${ECHO_T}$can_build_shared" >&6
9288 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9289 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9290 test "$can_build_shared" = "no" && enable_shared=no
9292 # On AIX, shared libraries and static libraries use the same namespace, and
9293 # are all built from PIC.
9296 test "$enable_shared" = yes && enable_static=no
9297 if test -n "$RANLIB"; then
9298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9299 postinstall_cmds='$RANLIB $lib'
9304 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9305 test "$enable_shared" = yes && enable_static=no
9309 echo "$as_me:$LINENO: result: $enable_shared" >&5
9310 echo "${ECHO_T}$enable_shared" >&6
9312 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9313 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9314 # Make sure either enable_shared or enable_static is yes.
9315 test "$enable_shared" = yes || enable_static=yes
9316 echo "$as_me:$LINENO: result: $enable_static" >&5
9317 echo "${ECHO_T}$enable_static" >&6
9319 # The else clause should only fire when bootstrapping the
9320 # libtool distribution, otherwise you forgot to ship ltmain.sh
9321 # with your package, and you will get complaints that there are
9322 # no rules to generate ltmain.sh.
9323 if test -f "$ltmain"; then
9324 # See if we are running on zsh, and set the options which allow our commands through
9325 # without removal of \ escapes.
9326 if test -n "${ZSH_VERSION+set}" ; then
9327 setopt NO_GLOB_SUBST
9329 # Now quote all the things that may contain metacharacters while being
9330 # careful not to overquote the AC_SUBSTed values. We take copies of the
9331 # variables and quote the copies for generation of the libtool script.
9332 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9334 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9335 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9336 deplibs_check_method reload_flag reload_cmds need_locks \
9337 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9338 lt_cv_sys_global_symbol_to_c_name_address \
9339 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9340 old_postinstall_cmds old_postuninstall_cmds \
9344 lt_prog_compiler_wl \
9345 lt_prog_compiler_pic \
9346 lt_prog_compiler_static \
9347 lt_prog_compiler_no_builtin_flag \
9348 export_dynamic_flag_spec \
9349 thread_safe_flag_spec \
9350 whole_archive_flag_spec \
9351 enable_shared_with_static_runtimes \
9353 old_archive_from_new_cmds \
9358 compiler_lib_search_path \
9360 archive_expsym_cmds \
9362 postuninstall_cmds \
9363 old_archive_from_expsyms_cmds \
9364 allow_undefined_flag \
9366 export_symbols_cmds \
9367 hardcode_libdir_flag_spec \
9368 hardcode_libdir_flag_spec_ld \
9369 hardcode_libdir_separator \
9370 hardcode_automatic \
9372 module_expsym_cmds \
9373 lt_cv_prog_compiler_c_o \
9378 old_archive_cmds | \
9379 old_archive_from_new_cmds | \
9381 archive_expsym_cmds | \
9383 module_expsym_cmds | \
9384 old_archive_from_expsyms_cmds | \
9385 export_symbols_cmds | \
9386 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9387 postinstall_cmds | postuninstall_cmds | \
9388 old_postinstall_cmds | old_postuninstall_cmds | \
9389 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9390 # Double-quote double-evaled strings.
9391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9400 *'\$0 --fallback-echo"')
9401 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9406 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9408 { echo "$as_me:$LINENO: creating $ofile" >&5
9409 echo "$as_me: creating $ofile" >&6;}
9411 cat <<__EOF__ >> "$cfgfile"
9414 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9415 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9416 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9418 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9419 # Free Software Foundation, Inc.
9421 # This file is part of GNU Libtool:
9422 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9424 # This program is free software; you can redistribute it and/or modify
9425 # it under the terms of the GNU General Public License as published by
9426 # the Free Software Foundation; either version 2 of the License, or
9427 # (at your option) any later version.
9429 # This program is distributed in the hope that it will be useful, but
9430 # WITHOUT ANY WARRANTY; without even the implied warranty of
9431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9432 # General Public License for more details.
9434 # You should have received a copy of the GNU General Public License
9435 # along with this program; if not, write to the Free Software
9436 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9438 # As a special exception to the GNU General Public License, if you
9439 # distribute this file as part of a program that contains a
9440 # configuration script generated by Autoconf, you may include it under
9441 # the same distribution terms that you use for the rest of that program.
9443 # A sed program that does not truncate output.
9446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9447 Xsed="$SED -e 1s/^X//"
9449 # The HP-UX ksh and POSIX shell print the target directory to stdout
9451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9453 # The names of the tagged configurations supported by this script.
9456 # ### BEGIN LIBTOOL CONFIG
9458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9460 # Shell to use when invoking shell scripts.
9463 # Whether or not to build shared libraries.
9464 build_libtool_libs=$enable_shared
9466 # Whether or not to build static libraries.
9467 build_old_libs=$enable_static
9469 # Whether or not to add -lc for building shared libraries.
9470 build_libtool_need_lc=$archive_cmds_need_lc
9472 # Whether or not to disallow shared libs when runtime libs are static
9473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9475 # Whether or not to optimize for fast installation.
9476 fast_install=$enable_fast_install
9479 host_alias=$host_alias
9484 build_alias=$build_alias
9488 # An echo program that does not interpret backslashes.
9493 AR_FLAGS=$lt_AR_FLAGS
9498 # LTCC compiler flags.
9499 LTCFLAGS=$lt_LTCFLAGS
9501 # A language-specific compiler.
9504 # Is the compiler the GNU C compiler?
9510 # The linker used to build libraries.
9513 # Whether we need hard or soft links.
9516 # A BSD-compatible nm program.
9519 # A symbol stripping program
9522 # Used to examine libraries when file_magic_cmd begins "file"
9523 MAGIC_CMD=$MAGIC_CMD
9525 # Used on cygwin: DLL creation program.
9528 # Used on cygwin: object dumper.
9531 # Used on cygwin: assembler.
9534 # The name of the directory that contains temporary libtool files.
9537 # How to create reloadable object files.
9538 reload_flag=$lt_reload_flag
9539 reload_cmds=$lt_reload_cmds
9541 # How to pass a linker flag through the compiler.
9542 wl=$lt_lt_prog_compiler_wl
9544 # Object file suffix (normally "o").
9547 # Old archive suffix (normally "a").
9550 # Shared library suffix (normally ".so").
9551 shrext_cmds='$shrext_cmds'
9553 # Executable file suffix (normally "").
9556 # Additional compiler flags for building library objects.
9557 pic_flag=$lt_lt_prog_compiler_pic
9560 # What is the maximum length of a command?
9561 max_cmd_len=$lt_cv_sys_max_cmd_len
9563 # Does compiler simultaneously support -c and -o options?
9564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9566 # Must we lock files when doing compilation?
9567 need_locks=$lt_need_locks
9569 # Do we need the lib prefix for modules?
9570 need_lib_prefix=$need_lib_prefix
9572 # Do we need a version for libraries?
9573 need_version=$need_version
9575 # Whether dlopen is supported.
9576 dlopen_support=$enable_dlopen
9578 # Whether dlopen of programs is supported.
9579 dlopen_self=$enable_dlopen_self
9581 # Whether dlopen of statically linked programs is supported.
9582 dlopen_self_static=$enable_dlopen_self_static
9584 # Compiler flag to prevent dynamic linking.
9585 link_static_flag=$lt_lt_prog_compiler_static
9587 # Compiler flag to turn off builtin functions.
9588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9590 # Compiler flag to allow reflexive dlopens.
9591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9593 # Compiler flag to generate shared objects directly from archives.
9594 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9596 # Compiler flag to generate thread-safe objects.
9597 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9599 # Library versioning type.
9600 version_type=$version_type
9602 # Format of library name prefix.
9603 libname_spec=$lt_libname_spec
9605 # List of archive names. First name is the real one, the rest are links.
9606 # The last name is the one that the linker finds with -lNAME.
9607 library_names_spec=$lt_library_names_spec
9609 # The coded name of the library, if different from the real name.
9610 soname_spec=$lt_soname_spec
9612 # Commands used to build and install an old-style archive.
9614 old_archive_cmds=$lt_old_archive_cmds
9615 old_postinstall_cmds=$lt_old_postinstall_cmds
9616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9618 # Create an old-style archive from a shared archive.
9619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9621 # Create a temporary old-style archive to link instead of a shared archive.
9622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9624 # Commands used to build and install a shared archive.
9625 archive_cmds=$lt_archive_cmds
9626 archive_expsym_cmds=$lt_archive_expsym_cmds
9627 postinstall_cmds=$lt_postinstall_cmds
9628 postuninstall_cmds=$lt_postuninstall_cmds
9630 # Commands used to build a loadable module (assumed same as above if empty)
9631 module_cmds=$lt_module_cmds
9632 module_expsym_cmds=$lt_module_expsym_cmds
9634 # Commands to strip libraries.
9635 old_striplib=$lt_old_striplib
9636 striplib=$lt_striplib
9638 # Dependencies to place before the objects being linked to create a
9640 predep_objects=$lt_predep_objects
9642 # Dependencies to place after the objects being linked to create a
9644 postdep_objects=$lt_postdep_objects
9646 # Dependencies to place before the objects being linked to create a
9650 # Dependencies to place after the objects being linked to create a
9652 postdeps=$lt_postdeps
9654 # The library search path used internally by the compiler when linking
9656 compiler_lib_search_path=$lt_compiler_lib_search_path
9658 # Method to check whether dependent libraries are shared objects.
9659 deplibs_check_method=$lt_deplibs_check_method
9661 # Command to use when deplibs_check_method == file_magic.
9662 file_magic_cmd=$lt_file_magic_cmd
9664 # Flag that allows shared libraries with undefined symbols to be built.
9665 allow_undefined_flag=$lt_allow_undefined_flag
9667 # Flag that forces no undefined symbols.
9668 no_undefined_flag=$lt_no_undefined_flag
9670 # Commands used to finish a libtool library installation in a directory.
9671 finish_cmds=$lt_finish_cmds
9673 # Same as above, but a single script fragment to be evaled but not shown.
9674 finish_eval=$lt_finish_eval
9676 # Take the output of nm and produce a listing of raw symbols and C names.
9677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9679 # Transform the output of nm in a proper C declaration
9680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9682 # Transform the output of nm in a C name address pair
9683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9685 # This is the shared library runtime path variable.
9686 runpath_var=$runpath_var
9688 # This is the shared library path variable.
9689 shlibpath_var=$shlibpath_var
9691 # Is shlibpath searched before the hard-coded library search path?
9692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9694 # How to hardcode a shared library path into an executable.
9695 hardcode_action=$hardcode_action
9697 # Whether we should hardcode library paths into libraries.
9698 hardcode_into_libs=$hardcode_into_libs
9700 # Flag to hardcode \$libdir into a binary during linking.
9701 # This must work even if \$libdir does not exist.
9702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9704 # If ld is used when linking, flag to hardcode \$libdir into
9705 # a binary during linking. This must work even if \$libdir does
9707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9709 # Whether we need a single -rpath flag with a separated argument.
9710 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9714 hardcode_direct=$hardcode_direct
9716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9718 hardcode_minus_L=$hardcode_minus_L
9720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9721 # the resulting binary.
9722 hardcode_shlibpath_var=$hardcode_shlibpath_var
9724 # Set to yes if building a shared library automatically hardcodes DIR into the library
9725 # and all subsequent libraries and executables linked against it.
9726 hardcode_automatic=$hardcode_automatic
9728 # Variables whose values should be saved in libtool wrapper scripts and
9729 # restored at relink time.
9730 variables_saved_for_relink="$variables_saved_for_relink"
9732 # Whether libtool must link a program against all its dependency libraries.
9733 link_all_deplibs=$link_all_deplibs
9735 # Compile-time system search path for libraries
9736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9738 # Run-time system search path for libraries
9739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9741 # Fix the shell variable \$srcfile for the compiler.
9742 fix_srcfile_path="$fix_srcfile_path"
9744 # Set to yes if exported symbols are required.
9745 always_export_symbols=$always_export_symbols
9747 # The commands to list exported symbols.
9748 export_symbols_cmds=$lt_export_symbols_cmds
9750 # The commands to extract the exported symbol list from a shared archive.
9751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9753 # Symbols that should not be listed in the preloaded symbols.
9754 exclude_expsyms=$lt_exclude_expsyms
9756 # Symbols that must always be exported.
9757 include_expsyms=$lt_include_expsyms
9759 # ### END LIBTOOL CONFIG
9766 cat <<\EOF >> "$cfgfile"
9768 # AIX sometimes has problems with the GCC collect2 program. For some
9769 # reason, if we set the COLLECT_NAMES environment variable, the problems
9770 # vanish in a puff of smoke.
9771 if test "X${COLLECT_NAMES+set}" != Xset; then
9773 export COLLECT_NAMES
9779 # We use sed instead of cat because bash on DJGPP gets confused if
9780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9781 # text mode, it properly converts lines to CR/LF. This bash problem
9782 # is reportedly fixed, but why not run on old versions too?
9783 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9785 mv -f "$cfgfile" "$ofile" || \
9786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9790 # If there is no Makefile yet, we rely on a make rule to execute
9791 # `config.status --recheck' to rerun these tests and create the
9792 # libtool script then.
9793 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9794 if test -f "$ltmain_in"; then
9795 test -f Makefile && make "$ltmain"
9801 ac_cpp='$CPP $CPPFLAGS'
9802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9809 # Check whether --with-tags or --without-tags was given.
9810 if test "${with_tags+set}" = set; then
9811 withval="$with_tags"
9815 if test -f "$ltmain" && test -n "$tagnames"; then
9816 if test ! -f "${ofile}"; then
9817 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9818 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9821 if test -z "$LTCC"; then
9822 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9823 if test -z "$LTCC"; then
9824 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9825 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9828 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9831 if test -z "$LTCFLAGS"; then
9832 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9835 # Extract list of available tagged configurations in $ofile.
9836 # Note that this assumes the entire list is on one line.
9837 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9840 for tagname in $tagnames; do
9842 # Check whether tagname contains only valid characters
9843 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9845 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9846 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9847 { (exit 1); exit 1; }; }
9851 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9853 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9854 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9855 { (exit 1); exit 1; }; }
9858 # Update the list of available tags.
9859 if test -n "$tagname"; then
9860 echo appending configuration tag \"$tagname\" to $ofile
9864 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9865 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9866 (test "X$CXX" != "Xg++"))) ; then
9868 ac_cpp='$CXXCPP $CPPFLAGS'
9869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9876 archive_cmds_need_lc_CXX=no
9877 allow_undefined_flag_CXX=
9878 always_export_symbols_CXX=no
9879 archive_expsym_cmds_CXX=
9880 export_dynamic_flag_spec_CXX=
9881 hardcode_direct_CXX=no
9882 hardcode_libdir_flag_spec_CXX=
9883 hardcode_libdir_flag_spec_ld_CXX=
9884 hardcode_libdir_separator_CXX=
9885 hardcode_minus_L_CXX=no
9886 hardcode_shlibpath_var_CXX=unsupported
9887 hardcode_automatic_CXX=no
9889 module_expsym_cmds_CXX=
9890 link_all_deplibs_CXX=unknown
9891 old_archive_cmds_CXX=$old_archive_cmds
9892 no_undefined_flag_CXX=
9893 whole_archive_flag_spec_CXX=
9894 enable_shared_with_static_runtimes_CXX=no
9896 # Dependencies to place before and after the object being linked:
9898 postdep_objects_CXX=
9901 compiler_lib_search_path_CXX=
9903 # Source file extension for C++ test sources.
9906 # Object file extension for compiled C++ test sources.
9910 # Code to be used in simple compile tests
9911 lt_simple_compile_test_code="int some_variable = 0;\n"
9913 # Code to be used in simple link tests
9914 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9916 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9918 # If no C compiler was specified, use CC.
9921 # If no C compiler flags were specified, use CFLAGS.
9922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9924 # Allow CC to be a program name with arguments.
9928 # save warnings/boilerplate of simple test code
9929 ac_outfile=conftest.$ac_objext
9930 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9932 _lt_compiler_boilerplate=`cat conftest.err`
9935 ac_outfile=conftest.$ac_objext
9936 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9938 _lt_linker_boilerplate=`cat conftest.err`
9942 # Allow CC to be a program name with arguments.
9947 lt_save_with_gnu_ld=$with_gnu_ld
9948 lt_save_path_LD=$lt_cv_path_LD
9949 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9950 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9952 $as_unset lt_cv_prog_gnu_ld
9954 if test -n "${lt_cv_path_LDCXX+set}"; then
9955 lt_cv_path_LD=$lt_cv_path_LDCXX
9957 $as_unset lt_cv_path_LD
9959 test -z "${LDCXX+set}" || LD=$LDCXX
9963 for cc_temp in $compiler""; do
9965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9974 # We don't want -fno-exception wen compiling C++ code, so set the
9975 # no_builtin_flag separately
9976 if test "$GXX" = yes; then
9977 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9979 lt_prog_compiler_no_builtin_flag_CXX=
9982 if test "$GXX" = yes; then
9983 # Set up default GNU C++ configuration
9986 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9987 if test "${with_gnu_ld+set}" = set; then
9988 withval="$with_gnu_ld"
9989 test "$withval" = no || with_gnu_ld=yes
9994 if test "$GCC" = yes; then
9995 # Check if gcc -print-prog-name=ld gives a path.
9996 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9997 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10000 # gcc leaves a trailing carriage return which upsets mingw
10001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10006 # Accept absolute paths.
10008 re_direlt='/[^/][^/]*/\.\./'
10009 # Canonicalize the pathname of ld
10010 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10011 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10012 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10014 test -z "$LD" && LD="$ac_prog"
10017 # If it fails, then pretend we aren't using GCC.
10021 # If it is relative, then search for the first ld in PATH.
10022 with_gnu_ld=unknown
10025 elif test "$with_gnu_ld" = yes; then
10026 echo "$as_me:$LINENO: checking for GNU ld" >&5
10027 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10029 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10030 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10032 if test "${lt_cv_path_LD+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 if test -z "$LD"; then
10036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10037 for ac_dir in $PATH; do
10039 test -z "$ac_dir" && ac_dir=.
10040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10041 lt_cv_path_LD="$ac_dir/$ac_prog"
10042 # Check to see if the program is GNU ld. I'd rather use --version,
10043 # but apparently some variants of GNU ld only accept -v.
10044 # Break only if it was the GNU/non-GNU ld that we prefer.
10045 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10046 *GNU* | *'with BFD'*)
10047 test "$with_gnu_ld" != no && break
10050 test "$with_gnu_ld" != yes && break
10057 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10061 LD="$lt_cv_path_LD"
10062 if test -n "$LD"; then
10063 echo "$as_me:$LINENO: result: $LD" >&5
10064 echo "${ECHO_T}$LD" >&6
10066 echo "$as_me:$LINENO: result: no" >&5
10067 echo "${ECHO_T}no" >&6
10069 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10070 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10071 { (exit 1); exit 1; }; }
10072 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10073 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10074 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10078 case `$LD -v 2>&1 </dev/null` in
10079 *GNU* | *'with BFD'*)
10080 lt_cv_prog_gnu_ld=yes
10083 lt_cv_prog_gnu_ld=no
10087 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10088 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10089 with_gnu_ld=$lt_cv_prog_gnu_ld
10093 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10094 # archiving commands below assume that GNU ld is being used.
10095 if test "$with_gnu_ld" = yes; then
10096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097 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'
10099 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10102 # If archive_cmds runs LD, not CC, wlarc should be empty
10103 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10104 # investigate it a little bit more. (MM)
10107 # ancient GNU ld didn't support --whole-archive et. al.
10108 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10109 grep 'no-whole-archive' > /dev/null; then
10110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10112 whole_archive_flag_spec_CXX=
10118 # A generic and very simple default shared library creation
10119 # command for GNU C++ for the case where it uses the native
10120 # linker, instead of GNU ld. If possible, this setting should
10121 # overridden to take advantage of the native linker features on
10122 # the platform it is being used on.
10123 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10126 # Commands to make compiler produce verbose output that lists
10127 # what "hidden" libraries, object files and flags are used when
10128 # linking a shared library.
10129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10137 # PORTME: fill in a description of your system's C++ link characteristics
10138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10143 # FIXME: insert proper C++ library support
10147 if test "$host_cpu" = ia64; then
10148 # On IA64, the linker does run time linking by default, so we don't
10149 # have to do anything special.
10150 aix_use_runtimelinking=no
10151 exp_sym_flag='-Bexport'
10154 aix_use_runtimelinking=no
10156 # Test if we are trying to use run time linking or normal
10157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10158 # need to do runtime linking.
10159 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10160 for ld_flag in $LDFLAGS; do
10163 aix_use_runtimelinking=yes
10171 exp_sym_flag='-bexport'
10172 no_entry_flag='-bnoentry'
10175 # When large executables or shared objects are built, AIX ld can
10176 # have problems creating the table of contents. If linking a library
10177 # or program results in "error TOC overflow" add -mminimal-toc to
10178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10181 archive_cmds_CXX=''
10182 hardcode_direct_CXX=yes
10183 hardcode_libdir_separator_CXX=':'
10184 link_all_deplibs_CXX=yes
10186 if test "$GXX" = yes; then
10187 case $host_os in aix4.[012]|aix4.[012].*)
10188 # We only want to do this on AIX 4.2 and lower, the check
10189 # below for broken collect2 doesn't work under 4.3+
10190 collect2name=`${CC} -print-prog-name=collect2`
10191 if test -f "$collect2name" && \
10192 strings "$collect2name" | grep resolve_lib_name >/dev/null
10194 # We have reworked collect2
10195 hardcode_direct_CXX=yes
10197 # We have old collect2
10198 hardcode_direct_CXX=unsupported
10199 # It fails to find uninstalled libraries when the uninstalled
10200 # path is not listed in the libpath. Setting hardcode_minus_L
10201 # to unsupported forces relinking
10202 hardcode_minus_L_CXX=yes
10203 hardcode_libdir_flag_spec_CXX='-L$libdir'
10204 hardcode_libdir_separator_CXX=
10208 shared_flag='-shared'
10209 if test "$aix_use_runtimelinking" = yes; then
10210 shared_flag="$shared_flag "'${wl}-G'
10214 if test "$host_cpu" = ia64; then
10215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10216 # chokes on -Wl,-G. The following line is correct:
10219 if test "$aix_use_runtimelinking" = yes; then
10220 shared_flag='${wl}-G'
10222 shared_flag='${wl}-bM:SRE'
10227 # It seems that -bexpall does not export symbols beginning with
10228 # underscore (_), so it is better to generate a list of symbols to export.
10229 always_export_symbols_CXX=yes
10230 if test "$aix_use_runtimelinking" = yes; then
10231 # Warning - without using the other runtime loading flags (-brtl),
10232 # -berok will link without error, but may produce a broken library.
10233 allow_undefined_flag_CXX='-berok'
10234 # Determine the default libpath from the value encoded in an empty executable.
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>conftest.er1
10254 grep -v '^ *+' conftest.er1 >conftest.err
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_cxx_werror_flag"
10260 || test ! -s conftest.err'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10275 # Check for a 64-bit object if we didn't find anything.
10276 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; }
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10283 rm -f conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10289 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"
10291 if test "$host_cpu" = ia64; then
10292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10293 allow_undefined_flag_CXX="-z nodefs"
10294 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"
10296 # Determine the default libpath from the value encoded in an empty executable.
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10316 grep -v '^ *+' conftest.er1 >conftest.err
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_cxx_werror_flag"
10322 || test ! -s conftest.err'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10337 # Check for a 64-bit object if we didn't find anything.
10338 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; }
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10345 rm -f conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10350 # Warning - without using the other run time loading flags,
10351 # -berok will link without error, but may produce a broken library.
10352 no_undefined_flag_CXX=' ${wl}-bernotok'
10353 allow_undefined_flag_CXX=' ${wl}-berok'
10354 # Exported symbols can be pulled into shared objects from archives
10355 whole_archive_flag_spec_CXX='$convenience'
10356 archive_cmds_need_lc_CXX=yes
10357 # This is similar to how AIX traditionally builds its shared libraries.
10358 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'
10364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10365 allow_undefined_flag_CXX=unsupported
10366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10367 # support --undefined. This deserves some investigation. FIXME
10368 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10375 case $cc_basename in
10377 # FIXME: insert proper C++ library support
10383 cygwin* | mingw* | pw32*)
10384 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10385 # as there is no search path for DLLs.
10386 hardcode_libdir_flag_spec_CXX='-L$libdir'
10387 allow_undefined_flag_CXX=unsupported
10388 always_export_symbols_CXX=no
10389 enable_shared_with_static_runtimes_CXX=yes
10391 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10392 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'
10393 # If the export-symbols file already is a .def file (1st line
10394 # is EXPORTS), use it as is; otherwise, prepend...
10395 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10396 cp $export_symbols $output_objdir/$soname.def;
10398 echo EXPORTS > $output_objdir/$soname.def;
10399 cat $export_symbols >> $output_objdir/$soname.def;
10401 $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'
10406 darwin* | rhapsody*)
10408 rhapsody* | darwin1.[012])
10409 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10413 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10415 case ${MACOSX_DEPLOYMENT_TARGET} in
10417 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10420 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10426 archive_cmds_need_lc_CXX=no
10427 hardcode_direct_CXX=no
10428 hardcode_automatic_CXX=yes
10429 hardcode_shlibpath_var_CXX=unsupported
10430 whole_archive_flag_spec_CXX=''
10431 link_all_deplibs_CXX=yes
10433 if test "$GXX" = yes ; then
10434 lt_int_apple_cc_single_mod=no
10435 output_verbose_link_cmd='echo'
10436 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10437 lt_int_apple_cc_single_mod=yes
10439 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10440 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10442 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'
10444 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10447 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}'
10449 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}'
10451 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}'
10453 case $cc_basename in
10455 output_verbose_link_cmd='echo'
10456 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'
10457 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10459 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}'
10460 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}'
10470 case $cc_basename in
10472 # FIXME: insert proper C++ library support
10476 # Green Hills C++ Compiler
10477 # FIXME: insert proper C++ library support
10481 # FIXME: insert proper C++ library support
10487 # C++ shared libraries reported to be fairly broken before switch to ELF
10491 archive_cmds_need_lc_CXX=no
10493 freebsd* | kfreebsd*-gnu | dragonfly*)
10494 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10502 hardcode_libdir_separator_CXX=:
10503 export_dynamic_flag_spec_CXX='${wl}-E'
10504 hardcode_direct_CXX=yes
10505 hardcode_minus_L_CXX=yes # Not in the search PATH,
10506 # but as the default
10507 # location of the library.
10509 case $cc_basename in
10511 # FIXME: insert proper C++ library support
10515 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'
10516 # Commands to make compiler produce verbose output that lists
10517 # what "hidden" libraries, object files and flags are used when
10518 # linking a shared library.
10520 # There doesn't appear to be a way to prevent this compiler from
10521 # explicitly linking system object files so we need to strip them
10522 # from the output so that they don't get included in the library
10524 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'
10527 if test "$GXX" = yes; then
10528 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'
10530 # FIXME: insert proper C++ library support
10537 if test $with_gnu_ld = no; then
10538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10539 hardcode_libdir_separator_CXX=:
10543 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10546 export_dynamic_flag_spec_CXX='${wl}-E'
10552 hardcode_direct_CXX=no
10553 hardcode_shlibpath_var_CXX=no
10556 hardcode_direct_CXX=yes
10557 hardcode_minus_L_CXX=yes # Not in the search PATH,
10558 # but as the default
10559 # location of the library.
10563 case $cc_basename in
10565 # FIXME: insert proper C++ library support
10571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10580 # Commands to make compiler produce verbose output that lists
10581 # what "hidden" libraries, object files and flags are used when
10582 # linking a shared library.
10584 # There doesn't appear to be a way to prevent this compiler from
10585 # explicitly linking system object files so we need to strip them
10586 # from the output so that they don't get included in the library
10588 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'
10591 if test "$GXX" = yes; then
10592 if test $with_gnu_ld = no; then
10595 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10598 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10601 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'
10606 # FIXME: insert proper C++ library support
10613 hardcode_direct_CXX=no
10614 hardcode_shlibpath_var_CXX=no
10615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10616 export_dynamic_flag_spec_CXX='${wl}-E'
10617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10618 # Instead, shared libraries are loaded at an image base (0x10000000 by
10619 # default) and relocated if they conflict, which is a slow very memory
10620 # consuming and fragmenting process. To avoid this, we pick a random,
10621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10623 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'
10624 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'
10627 case $cc_basename in
10630 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'
10632 # Archives containing C++ object files must be created using
10633 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10634 # necessary to make sure instantiated templates are included
10636 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10639 if test "$GXX" = yes; then
10640 if test "$with_gnu_ld" = no; then
10641 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'
10643 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'
10646 link_all_deplibs_CXX=yes
10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator_CXX=:
10653 case $cc_basename in
10655 # Kuck and Associates, Inc. (KAI) C++ Compiler
10657 # KCC will only create a shared library if the output file
10658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10659 # to its proper name (with version) after linking.
10660 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'
10661 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'
10662 # Commands to make compiler produce verbose output that lists
10663 # what "hidden" libraries, object files and flags are used when
10664 # linking a shared library.
10666 # There doesn't appear to be a way to prevent this compiler from
10667 # explicitly linking system object files so we need to strip them
10668 # from the output so that they don't get included in the library
10670 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'
10672 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10675 # Archives containing C++ object files must be created using
10676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10682 # version 8.0 and above of icpc choke on multiply defined symbols
10683 # if we add $predep_objects and $postdep_objects, however 7.1 and
10684 # earlier do not add the objects themselves.
10685 case `$CC -V 2>&1` in
10687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10688 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'
10690 *) # Version 8.0 or newer
10693 ia64*) tmp_idyn=' -i_dynamic';;
10695 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10696 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'
10699 archive_cmds_need_lc_CXX=no
10700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10705 # Portland Group C++ compiler
10706 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10707 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'
10709 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711 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'
10715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716 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'
10718 runpath_var=LD_RUN_PATH
10719 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10720 hardcode_libdir_separator_CXX=:
10722 # Commands to make compiler produce verbose output that lists
10723 # what "hidden" libraries, object files and flags are used when
10724 # linking a shared library.
10726 # There doesn't appear to be a way to prevent this compiler from
10727 # explicitly linking system object files so we need to strip them
10728 # from the output so that they don't get included in the library
10730 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'
10735 # FIXME: insert proper C++ library support
10739 # FIXME: insert proper C++ library support
10743 case $cc_basename in
10745 # FIXME: insert proper C++ library support
10749 # FIXME: insert proper C++ library support
10755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10756 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10758 hardcode_libdir_flag_spec_CXX='-R$libdir'
10759 hardcode_direct_CXX=yes
10760 hardcode_shlibpath_var_CXX=no
10762 # Workaround some broken pre-1.5 toolchains
10763 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10766 # C++ shared libraries are fairly broken
10770 hardcode_direct_CXX=yes
10771 hardcode_shlibpath_var_CXX=no
10772 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10775 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10776 export_dynamic_flag_spec_CXX='${wl}-E'
10777 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10779 output_verbose_link_cmd='echo'
10782 case $cc_basename in
10784 # Kuck and Associates, Inc. (KAI) C++ Compiler
10786 # KCC will only create a shared library if the output file
10787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10788 # to its proper name (with version) after linking.
10789 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'
10791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10792 hardcode_libdir_separator_CXX=:
10794 # Archives containing C++ object files must be created using
10795 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10796 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10800 # Rational C++ 2.4.1
10801 # FIXME: insert proper C++ library support
10805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10806 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'
10808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator_CXX=:
10811 # Commands to make compiler produce verbose output that lists
10812 # what "hidden" libraries, object files and flags are used when
10813 # linking a shared library.
10815 # There doesn't appear to be a way to prevent this compiler from
10816 # explicitly linking system object files so we need to strip them
10817 # from the output so that they don't get included in the library
10819 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'
10822 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10823 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10824 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'
10826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator_CXX=:
10829 # Commands to make compiler produce verbose output that lists
10830 # what "hidden" libraries, object files and flags are used when
10831 # linking a shared library.
10832 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10835 # FIXME: insert proper C++ library support
10842 case $cc_basename in
10844 # Kuck and Associates, Inc. (KAI) C++ Compiler
10846 # KCC will only create a shared library if the output file
10847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10848 # to its proper name (with version) after linking.
10849 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'
10851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10852 hardcode_libdir_separator_CXX=:
10854 # Archives containing C++ object files must be created using
10855 # the KAI C++ compiler.
10856 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10859 # Rational C++ 2.4.1
10860 # FIXME: insert proper C++ library support
10864 allow_undefined_flag_CXX=' -expect_unresolved \*'
10865 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'
10866 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10867 echo "-hidden">> $lib.exp~
10868 $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~
10871 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10872 hardcode_libdir_separator_CXX=:
10874 # Commands to make compiler produce verbose output that lists
10875 # what "hidden" libraries, object files and flags are used when
10876 # linking a shared library.
10878 # There doesn't appear to be a way to prevent this compiler from
10879 # explicitly linking system object files so we need to strip them
10880 # from the output so that they don't get included in the library
10882 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'
10885 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10886 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10887 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'
10889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10890 hardcode_libdir_separator_CXX=:
10892 # Commands to make compiler produce verbose output that lists
10893 # what "hidden" libraries, object files and flags are used when
10894 # linking a shared library.
10895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10898 # FIXME: insert proper C++ library support
10905 # FIXME: insert proper C++ library support
10909 case $cc_basename in
10912 # FIXME: insert proper C++ library support
10917 # FIXME: insert proper C++ library support
10921 # FIXME: insert proper C++ library support
10927 case $cc_basename in
10929 # Sun C++ 4.2, 5.x and Centerline C++
10930 archive_cmds_need_lc_CXX=yes
10931 no_undefined_flag_CXX=' -zdefs'
10932 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10934 $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'
10936 hardcode_libdir_flag_spec_CXX='-R$libdir'
10937 hardcode_shlibpath_var_CXX=no
10939 solaris2.[0-5] | solaris2.[0-5].*) ;;
10941 # The C++ compiler is used as linker so we must use $wl
10942 # flag to pass the commands to the underlying system
10943 # linker. We must also pass each convience library through
10944 # to the system linker between allextract/defaultextract.
10945 # The C++ compiler will combine linker options so we
10946 # cannot just pass the convience library names through
10948 # Supported since Solaris 2.6 (maybe 2.5.1?)
10949 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'
10952 link_all_deplibs_CXX=yes
10954 output_verbose_link_cmd='echo'
10956 # Archives containing C++ object files must be created using
10957 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10958 # necessary to make sure instantiated templates are included
10960 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10963 # Green Hills C++ Compiler
10964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10966 # The C++ compiler must be used to create the archive.
10967 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10970 # GNU C++ compiler with Solaris linker
10971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10973 if $CC --version | grep -v '^2\.7' > /dev/null; then
10974 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10983 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10985 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10986 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10987 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10989 # Commands to make compiler produce verbose output that lists
10990 # what "hidden" libraries, object files and flags are used when
10991 # linking a shared library.
10992 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10995 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11001 no_undefined_flag_CXX='${wl}-z,text'
11002 archive_cmds_need_lc_CXX=no
11003 hardcode_shlibpath_var_CXX=no
11004 runpath_var='LD_RUN_PATH'
11006 case $cc_basename in
11008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 sysv5* | sco3.2v5* | sco5v6*)
11018 # Note: We can NOT use -z defs as we might desire, because we do not
11019 # link with -lc, and that would cause any symbols used from libc to
11020 # always be unresolved, which means just about no library would
11021 # ever link correctly. If we're not using GNU ld we use -z text
11022 # though, which does catch some bad symbols but isn't as heavy-handed
11024 # For security reasons, it is highly recommended that you always
11025 # use absolute paths for naming shared libraries, and exclude the
11026 # DT_RUNPATH tag from executables and libraries. But doing so
11027 # requires that you compile everything twice, which is a pain.
11028 # So that behaviour is only enabled if SCOABSPATH is set to a
11029 # non-empty value in the environment. Most likely only useful for
11030 # creating official distributions of packages.
11031 # This is a hack until libtool officially supports absolute path
11032 # names for shared libraries.
11033 no_undefined_flag_CXX='${wl}-z,text'
11034 allow_undefined_flag_CXX='${wl}-z,nodefs'
11035 archive_cmds_need_lc_CXX=no
11036 hardcode_shlibpath_var_CXX=no
11037 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11038 hardcode_libdir_separator_CXX=':'
11039 link_all_deplibs_CXX=yes
11040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11041 runpath_var='LD_RUN_PATH'
11043 case $cc_basename in
11045 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 case $cc_basename in
11057 # NonStop-UX NCC 3.20
11058 # FIXME: insert proper C++ library support
11062 # FIXME: insert proper C++ library support
11068 # FIXME: insert proper C++ library support
11072 # FIXME: insert proper C++ library support
11076 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11077 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11078 test "$ld_shlibs_CXX" = no && can_build_shared=no
11084 ## There is no encapsulation within the following macros, do not change
11085 ## the running order or otherwise move them around unless you know exactly
11086 ## what you are doing...
11088 cat > conftest.$ac_ext <<EOF
11092 Foo (void) { a = 0; }
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; then
11103 # Parse the compiler output and extract the necessary
11104 # objects, libraries and library flags.
11106 # Sentinel used to keep track of whether or not we are before
11107 # the conftest object file.
11108 pre_test_object_deps_done=no
11110 # The `*' in the case matches for architectures that use `case' in
11111 # $output_verbose_cmd can trigger glob expansion during the loop
11112 # eval without this substitution.
11113 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11115 for p in `eval $output_verbose_link_cmd`; do
11119 # Some compilers place space between "-{L,R}" and the path.
11120 # Remove the space.
11121 if test $p = "-L" \
11122 || test $p = "-R"; then
11129 if test "$pre_test_object_deps_done" = no; then
11132 # Internal compiler library paths should come after those
11133 # provided the user. The postdeps already come after the
11134 # user supplied libs so there is no need to process them.
11135 if test -z "$compiler_lib_search_path_CXX"; then
11136 compiler_lib_search_path_CXX="${prev}${p}"
11138 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11141 # The "-l" case would never come before the object being
11142 # linked, so don't bother handling this case.
11145 if test -z "$postdeps_CXX"; then
11146 postdeps_CXX="${prev}${p}"
11148 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11154 # This assumes that the test object file only shows up
11155 # once in the compiler output.
11156 if test "$p" = "conftest.$objext"; then
11157 pre_test_object_deps_done=yes
11161 if test "$pre_test_object_deps_done" = no; then
11162 if test -z "$predep_objects_CXX"; then
11163 predep_objects_CXX="$p"
11165 predep_objects_CXX="$predep_objects_CXX $p"
11168 if test -z "$postdep_objects_CXX"; then
11169 postdep_objects_CXX="$p"
11171 postdep_objects_CXX="$postdep_objects_CXX $p"
11176 *) ;; # Ignore the rest.
11184 echo "libtool.m4: error: problem compiling CXX test program"
11187 $rm -f confest.$objext
11189 # PORTME: override above test on systems where it is broken
11192 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11193 # hack all around it, let's just trust "g++" to DTRT.
11194 predep_objects_CXX=
11195 postdep_objects_CXX=
11200 case $cc_basename in
11202 # Adding this requires a known-good setup of shared libraries for
11203 # Sun compiler versions before 5.6, else PIC objects from an old
11204 # archive will be linked into the output, leading to subtle bugs.
11205 postdeps_CXX='-lCstd -lCrun'
11212 case " $postdeps_CXX " in
11213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11216 lt_prog_compiler_wl_CXX=
11217 lt_prog_compiler_pic_CXX=
11218 lt_prog_compiler_static_CXX=
11220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11223 # C++ specific cases for pic, static, wl, etc.
11224 if test "$GXX" = yes; then
11225 lt_prog_compiler_wl_CXX='-Wl,'
11226 lt_prog_compiler_static_CXX='-static'
11230 # All AIX code is PIC.
11231 if test "$host_cpu" = ia64; then
11232 # AIX 5 now supports IA64 processor
11233 lt_prog_compiler_static_CXX='-Bstatic'
11237 # FIXME: we need at least 68020 code to build shared libraries, but
11238 # adding the `-m68020' flag to GCC prevents building anything better,
11240 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11242 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243 # PIC is the default for these OSes.
11245 mingw* | os2* | pw32*)
11246 # This hack is so that the source file can tell whether it is being
11247 # built for inclusion in a dll (and should export symbols for example).
11248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11250 darwin* | rhapsody*)
11251 # PIC is the default on this platform
11252 # Common symbols not allowed in MH_DYLIB files
11253 lt_prog_compiler_pic_CXX='-fno-common'
11256 # DJGPP does not support shared libraries at all
11257 lt_prog_compiler_pic_CXX=
11260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11261 # Instead, we relocate shared libraries at runtime.
11264 if test -d /usr/nec; then
11265 lt_prog_compiler_pic_CXX=-Kconform_pic
11269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11270 # not for PA HP-UX.
11275 lt_prog_compiler_pic_CXX='-fPIC'
11280 lt_prog_compiler_pic_CXX='-fPIC'
11286 # All AIX code is PIC.
11287 if test "$host_cpu" = ia64; then
11288 # AIX 5 now supports IA64 processor
11289 lt_prog_compiler_static_CXX='-Bstatic'
11291 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11295 case $cc_basename in
11297 # Green Hills C++ Compiler
11298 # _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"
11303 # PIC is the default on this platform
11304 # Common symbols not allowed in MH_DYLIB files
11305 case $cc_basename in
11307 lt_prog_compiler_pic_CXX='-qnocommon'
11308 lt_prog_compiler_wl_CXX='-Wl,'
11313 case $cc_basename in
11315 lt_prog_compiler_pic_CXX='-KPIC'
11318 # Green Hills C++ Compiler
11319 lt_prog_compiler_pic_CXX='-pic'
11325 freebsd* | kfreebsd*-gnu | dragonfly*)
11326 # FreeBSD uses GNU C++
11328 hpux9* | hpux10* | hpux11*)
11329 case $cc_basename in
11331 lt_prog_compiler_wl_CXX='-Wl,'
11332 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11333 if test "$host_cpu" != ia64; then
11334 lt_prog_compiler_pic_CXX='+Z'
11338 lt_prog_compiler_wl_CXX='-Wl,'
11339 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11345 lt_prog_compiler_pic_CXX='+Z'
11354 # This is c89, which is MS Visual C++ (no shared libs)
11355 # Anyone wants to do a port?
11357 irix5* | irix6* | nonstopux*)
11358 case $cc_basename in
11360 lt_prog_compiler_wl_CXX='-Wl,'
11361 lt_prog_compiler_static_CXX='-non_shared'
11362 # CC pic flag -KPIC is the default.
11369 case $cc_basename in
11372 lt_prog_compiler_wl_CXX='--backend -Wl,'
11373 lt_prog_compiler_pic_CXX='-fPIC'
11377 lt_prog_compiler_wl_CXX='-Wl,'
11378 lt_prog_compiler_pic_CXX='-KPIC'
11379 lt_prog_compiler_static_CXX='-static'
11382 # Portland Group C++ compiler.
11383 lt_prog_compiler_wl_CXX='-Wl,'
11384 lt_prog_compiler_pic_CXX='-fpic'
11385 lt_prog_compiler_static_CXX='-Bstatic'
11389 # Make sure the PIC flag is empty. It appears that all Alpha
11390 # Linux and Compaq Tru64 Unix objects are PIC.
11391 lt_prog_compiler_pic_CXX=
11392 lt_prog_compiler_static_CXX='-non_shared'
11403 case $cc_basename in
11405 lt_prog_compiler_pic_CXX='-W c,exportall'
11413 osf3* | osf4* | osf5*)
11414 case $cc_basename in
11416 lt_prog_compiler_wl_CXX='--backend -Wl,'
11419 # Rational C++ 2.4.1
11420 lt_prog_compiler_pic_CXX='-pic'
11423 # Digital/Compaq C++
11424 lt_prog_compiler_wl_CXX='-Wl,'
11425 # Make sure the PIC flag is empty. It appears that all Alpha
11426 # Linux and Compaq Tru64 Unix objects are PIC.
11427 lt_prog_compiler_pic_CXX=
11428 lt_prog_compiler_static_CXX='-non_shared'
11437 case $cc_basename in
11439 # Sun C++ 4.2, 5.x and Centerline C++
11440 lt_prog_compiler_pic_CXX='-KPIC'
11441 lt_prog_compiler_static_CXX='-Bstatic'
11442 lt_prog_compiler_wl_CXX='-Qoption ld '
11445 # Green Hills C++ Compiler
11446 lt_prog_compiler_pic_CXX='-PIC'
11453 case $cc_basename in
11456 lt_prog_compiler_pic_CXX='-pic'
11457 lt_prog_compiler_static_CXX='-Bstatic'
11461 lt_prog_compiler_pic_CXX='-pic'
11468 case $cc_basename in
11470 # NonStop-UX NCC 3.20
11471 lt_prog_compiler_pic_CXX='-KPIC'
11477 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11478 case $cc_basename in
11480 lt_prog_compiler_wl_CXX='-Wl,'
11481 lt_prog_compiler_pic_CXX='-KPIC'
11482 lt_prog_compiler_static_CXX='-Bstatic'
11489 lt_prog_compiler_can_build_shared_CXX=no
11494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11495 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11498 # Check to make sure the PIC flag actually works.
11500 if test -n "$lt_prog_compiler_pic_CXX"; then
11502 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11503 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11504 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 lt_prog_compiler_pic_works_CXX=no
11508 ac_outfile=conftest.$ac_objext
11509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11510 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11511 # Insert the option either (1) after the last *FLAGS variable, or
11512 # (2) before a word containing "conftest.", or (3) at the end.
11513 # Note that $ac_compile itself does not contain backslashes and begins
11514 # with a dollar sign (not a hyphen), so the echo should work correctly.
11515 # The option is referenced via a variable to avoid confusing sed.
11516 lt_compile=`echo "$ac_compile" | $SED \
11517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11519 -e 's:$: $lt_compiler_flag:'`
11520 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11521 (eval "$lt_compile" 2>conftest.err)
11523 cat conftest.err >&5
11524 echo "$as_me:__oline__: \$? = $ac_status" >&5
11525 if (exit $ac_status) && test -s "$ac_outfile"; then
11526 # The compiler can only warn and ignore the option if not recognized
11527 # So say no if there are warnings other than the usual output.
11528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11531 lt_prog_compiler_pic_works_CXX=yes
11537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11538 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11540 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11541 case $lt_prog_compiler_pic_CXX in
11543 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11546 lt_prog_compiler_pic_CXX=
11547 lt_prog_compiler_can_build_shared_CXX=no
11552 # For platforms which do not support PIC, -DPIC is meaningless:
11554 lt_prog_compiler_pic_CXX=
11557 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11562 # Check to make sure the static flag actually works.
11564 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11565 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11566 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11567 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 lt_prog_compiler_static_works_CXX=no
11571 save_LDFLAGS="$LDFLAGS"
11572 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11573 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575 # The linker can only warn and ignore the option if not recognized
11576 # So say no if there are warnings
11577 if test -s conftest.err; then
11578 # Append any errors to the config.log.
11579 cat conftest.err 1>&5
11580 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582 if diff conftest.exp conftest.er2 >/dev/null; then
11583 lt_prog_compiler_static_works_CXX=yes
11586 lt_prog_compiler_static_works_CXX=yes
11590 LDFLAGS="$save_LDFLAGS"
11593 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11594 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11596 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11599 lt_prog_compiler_static_CXX=
11603 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11605 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 lt_cv_prog_compiler_c_o_CXX=no
11609 $rm -r conftest 2>/dev/null
11613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615 lt_compiler_flag="-o out/conftest2.$ac_objext"
11616 # Insert the option either (1) after the last *FLAGS variable, or
11617 # (2) before a word containing "conftest.", or (3) at the end.
11618 # Note that $ac_compile itself does not contain backslashes and begins
11619 # with a dollar sign (not a hyphen), so the echo should work correctly.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>out/conftest.err)
11627 cat out/conftest.err >&5
11628 echo "$as_me:__oline__: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11631 # The compiler can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636 lt_cv_prog_compiler_c_o_CXX=yes
11641 # SGI C++ compiler will create directory out/ii_files/ for
11642 # template instantiation
11643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11644 $rm out/* && rmdir out
11650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11654 hard_links="nottested"
11655 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11656 # do not overwrite the value of need_locks provided by the user
11657 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11663 ln conftest.a conftest.b 2>&5 || hard_links=no
11664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665 echo "$as_me:$LINENO: result: $hard_links" >&5
11666 echo "${ECHO_T}$hard_links" >&6
11667 if test "$hard_links" = no; then
11668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11676 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11682 # If we're using GNU nm, then we don't want the "-C" option.
11683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11684 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11685 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'
11687 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'
11691 export_symbols_cmds_CXX="$ltdll_cmds"
11694 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'
11697 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11701 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11702 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11703 test "$ld_shlibs_CXX" = no && can_build_shared=no
11706 # Do we need to explicitly link libc?
11708 case "x$archive_cmds_need_lc_CXX" in
11710 # Assume -lc should be added
11711 archive_cmds_need_lc_CXX=yes
11713 if test "$enable_shared" = yes && test "$GCC" = yes; then
11714 case $archive_cmds_CXX in
11716 # FIXME: we may have to deal with multi-command sequences.
11719 # Test whether the compiler implicitly links with -lc since on some
11720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721 # to ld, don't add -lc before -lgcc.
11722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } 2>conftest.err; then
11734 libobjs=conftest.$ac_objext
11736 wl=$lt_prog_compiler_wl_CXX
11737 pic_flag=$lt_prog_compiler_pic_CXX
11743 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11744 allow_undefined_flag_CXX=
11745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11746 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }
11751 archive_cmds_need_lc_CXX=no
11753 archive_cmds_need_lc_CXX=yes
11755 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11757 cat conftest.err 1>&5
11760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11761 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11770 library_names_spec=
11771 libname_spec='lib$name'
11775 postuninstall_cmds=
11779 shlibpath_overrides_runpath=unknown
11781 dynamic_linker="$host_os ld.so"
11782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11783 if test "$GCC" = yes; then
11784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11786 # if the path contains ";" then we assume it to be the separator
11787 # otherwise default to the standard path separator (i.e. ":") - it is
11788 # assumed that no part of a normal pathname contains ";" but that should
11789 # okay in the real world where ";" in dirpaths is itself problematic.
11790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11797 need_lib_prefix=unknown
11798 hardcode_into_libs=no
11800 # when you set need_version to no, make sure it does not cause -set_version
11801 # flags to be left without arguments
11802 need_version=unknown
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11808 shlibpath_var=LIBPATH
11810 # AIX 3 has no versioning support, so we append a major version to the name.
11811 soname_spec='${libname}${release}${shared_ext}$major'
11818 hardcode_into_libs=yes
11819 if test "$host_cpu" = ia64; then
11820 # AIX 5 supports IA64
11821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11822 shlibpath_var=LD_LIBRARY_PATH
11824 # With GCC up to 2.95.x, collect2 would create an import file
11825 # for dependence libraries. The import file would start with
11826 # the line `#! .'. This would cause the generated library to
11827 # depend on `.', always an invalid library. This was fixed in
11828 # development snapshots of GCC prior to 3.0.
11830 aix4 | aix4.[01] | aix4.[01].*)
11831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11836 can_build_shared=no
11840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11841 # soname into executable. Probably we can add versioning support to
11842 # collect2, so additional links can be useful in future.
11843 if test "$aix_use_runtimelinking" = yes; then
11844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11845 # instead of lib<name>.a to let people know that these are not
11846 # typical AIX shared libraries.
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 # We preserve .a as extension for shared libraries through AIX4.2
11850 # and later when we are not doing run time linking.
11851 library_names_spec='${libname}${release}.a $libname.a'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LIBPATH
11859 library_names_spec='$libname.ixlibrary $libname.a'
11860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11861 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'
11865 library_names_spec='${libname}${shared_ext}'
11866 dynamic_linker="$host_os ld.so"
11867 shlibpath_var=LIBRARY_PATH
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11879 # the default ld.so.conf also contains /usr/contrib/lib and
11880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11881 # libtool to hard-code these into programs
11884 cygwin* | mingw* | pw32*)
11885 version_type=windows
11890 case $GCC,$host_os in
11891 yes,cygwin* | yes,mingw* | yes,pw32*)
11892 library_names_spec='$libname.dll.a'
11893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11894 postinstall_cmds='base_file=`basename \${file}`~
11895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11896 dldir=$destdir/`dirname \$dlpath`~
11897 test -d \$dldir || mkdir -p \$dldir~
11898 $install_prog $dir/$dlname \$dldir/$dlname~
11899 chmod a+x \$dldir/$dlname'
11900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11901 dlpath=$dir/\$dldll~
11903 shlibpath_overrides_runpath=yes
11907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11912 # MinGW DLLs use traditional 'lib' prefix
11913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11916 # It is most probably a Windows format PATH printed by
11917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11918 # path with ; separators, and with drive letters. We can handle the
11919 # drive letters (cygwin fileutils understands them), so leave them,
11920 # especially as we might pass files found there to a mingw objdump,
11921 # which wouldn't understand a cygwinified path. Ahh.
11922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 # pw32 DLLs use 'pw' prefix rather than 'lib'
11929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11938 dynamic_linker='Win32 ld.exe'
11939 # FIXME: first we should search . and the directory the executable is in
11943 darwin* | rhapsody*)
11944 dynamic_linker="$host_os dyld"
11945 version_type=darwin
11948 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11949 soname_spec='${libname}${release}${major}$shared_ext'
11950 shlibpath_overrides_runpath=yes
11951 shlibpath_var=DYLD_LIBRARY_PATH
11952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11953 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11954 if test "$GCC" = yes; then
11955 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"`
11957 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=no
11983 hardcode_into_libs=yes
11984 dynamic_linker='GNU ld.so'
11987 freebsd* | dragonfly*)
11988 # DragonFly does not have aout. When/if they implement a new
11989 # versioning mechanism, adjust this.
11990 if test -x /usr/bin/objformat; then
11991 objformat=`/usr/bin/objformat`
11994 freebsd[123]*) objformat=aout ;;
11995 *) objformat=elf ;;
11998 version_type=freebsd-$objformat
11999 case $version_type in
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12010 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12015 freebsd3.[01]* | freebsdelf3.[01]*)
12016 shlibpath_overrides_runpath=yes
12017 hardcode_into_libs=yes
12019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12021 shlibpath_overrides_runpath=no
12022 hardcode_into_libs=yes
12024 freebsd*) # from 4.6 on
12025 shlibpath_overrides_runpath=yes
12026 hardcode_into_libs=yes
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12036 soname_spec='${libname}${release}${shared_ext}$major'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 hardcode_into_libs=yes
12041 hpux9* | hpux10* | hpux11*)
12042 # Give a soname corresponding to the major version so that dld.sl refuses to
12043 # link against other versions.
12050 hardcode_into_libs=yes
12051 dynamic_linker="$host_os dld.so"
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 if test "X$HPUX_IA64_MODE" = X32; then
12057 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12059 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065 hardcode_into_libs=yes
12066 dynamic_linker="$host_os dld.sl"
12067 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070 soname_spec='${libname}${release}${shared_ext}$major'
12071 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076 dynamic_linker="$host_os dld.sl"
12077 shlibpath_var=SHLIB_PATH
12078 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 soname_spec='${libname}${release}${shared_ext}$major'
12083 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12084 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 shlibpath_overrides_runpath=no
12096 hardcode_into_libs=yes
12099 irix5* | irix6* | nonstopux*)
12101 nonstopux*) version_type=nonstopux ;;
12103 if test "$lt_cv_prog_gnu_ld" = yes; then
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12114 irix5* | nonstopux*)
12115 libsuff= shlibsuff=
12118 case $LD in # libtool.m4 will add one of these switches to LD
12119 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12120 libsuff= shlibsuff= libmagic=32-bit;;
12121 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12122 libsuff=32 shlibsuff=N32 libmagic=N32;;
12123 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12124 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12125 *) libsuff= shlibsuff= libmagic=never-match;;
12129 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12130 shlibpath_overrides_runpath=no
12131 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12132 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12133 hardcode_into_libs=yes
12136 # No shared lib support for Linux oldld, aout, or coff.
12137 linux*oldld* | linux*aout* | linux*coff*)
12141 # This must be Linux ELF.
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147 soname_spec='${libname}${release}${shared_ext}$major'
12148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=no
12151 # This implies no fast_install, which is unacceptable.
12152 # Some rework will be needed to allow for fast_install
12153 # before this can be enabled.
12154 hardcode_into_libs=yes
12156 # Append ld.so.conf contents to the search path
12157 if test -f /etc/ld.so.conf; then
12158 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' ' '`
12159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12162 # We used to test for /lib/ld.so.1 and disable shared libraries on
12163 # powerpc, because MkLinux only supported shared libraries with the
12164 # GNU dynamic linker. Since this was broken with cross compilers,
12165 # most powerpc-linux boxes support dynamic linking these days and
12166 # people can always --disable-shared, the test was removed, and we
12167 # assume the GNU/Linux dynamic linker is in use.
12168 dynamic_linker='GNU/Linux ld.so'
12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12176 soname_spec='${libname}${release}${shared_ext}$major'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=no
12179 hardcode_into_libs=yes
12180 dynamic_linker='GNU ld.so'
12187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12190 dynamic_linker='NetBSD (a.out) ld.so'
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12193 soname_spec='${libname}${release}${shared_ext}$major'
12194 dynamic_linker='NetBSD ld.elf_so'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 shlibpath_overrides_runpath=yes
12198 hardcode_into_libs=yes
12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=yes
12220 sys_lib_dlsearch_path_spec="/usr/lib"
12222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12225 *) need_version=no ;;
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12232 openbsd2.[89] | openbsd2.[89].*)
12233 shlibpath_overrides_runpath=no
12236 shlibpath_overrides_runpath=yes
12240 shlibpath_overrides_runpath=yes
12245 libname_spec='$name'
12248 library_names_spec='$libname${shared_ext} $libname.a'
12249 dynamic_linker='OS/2 ld.exe'
12250 shlibpath_var=LIBPATH
12253 osf3* | osf4* | osf5*)
12257 soname_spec='${libname}${release}${shared_ext}$major'
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259 shlibpath_var=LD_LIBRARY_PATH
12260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269 soname_spec='${libname}${release}${shared_ext}$major'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12272 hardcode_into_libs=yes
12273 # ldd complains unless libraries are executable
12274 postinstall_cmds='chmod +x $lib'
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 shlibpath_overrides_runpath=yes
12283 if test "$with_gnu_ld" = yes; then
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 case $host_vendor in
12296 shlibpath_overrides_runpath=no
12298 export_dynamic_flag_spec='${wl}-Blargedynsym'
12299 runpath_var=LD_RUN_PATH
12307 shlibpath_overrides_runpath=no
12308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12314 if test -d /usr/nec ;then
12316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12317 soname_spec='$libname${shared_ext}.$major'
12318 shlibpath_var=LD_LIBRARY_PATH
12322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12323 version_type=freebsd-elf
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12327 soname_spec='${libname}${release}${shared_ext}$major'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 hardcode_into_libs=yes
12330 if test "$with_gnu_ld" = yes; then
12331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12332 shlibpath_overrides_runpath=no
12334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12335 shlibpath_overrides_runpath=yes
12338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12342 sys_lib_dlsearch_path_spec='/usr/lib'
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12357 echo "${ECHO_T}$dynamic_linker" >&6
12358 test "$dynamic_linker" = no && can_build_shared=no
12360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12361 if test "$GCC" = yes; then
12362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12365 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12366 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12367 hardcode_action_CXX=
12368 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12369 test -n "$runpath_var_CXX" || \
12370 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12372 # We can hardcode non-existant directories.
12373 if test "$hardcode_direct_CXX" != no &&
12374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12375 # have to relink, otherwise we might link with an installed library
12376 # when we should be linking with a yet-to-be-installed one
12377 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12378 test "$hardcode_minus_L_CXX" != no; then
12379 # Linking always hardcodes the temporary library directory.
12380 hardcode_action_CXX=relink
12382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12383 hardcode_action_CXX=immediate
12386 # We cannot hardcode anything, or else we can only hardcode existing
12388 hardcode_action_CXX=unsupported
12390 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12391 echo "${ECHO_T}$hardcode_action_CXX" >&6
12393 if test "$hardcode_action_CXX" = relink; then
12394 # Fast installation is not supported
12395 enable_fast_install=no
12396 elif test "$shlibpath_overrides_runpath" = yes ||
12397 test "$enable_shared" = no; then
12398 # Fast installation is not necessary
12399 enable_fast_install=needless
12403 # The else clause should only fire when bootstrapping the
12404 # libtool distribution, otherwise you forgot to ship ltmain.sh
12405 # with your package, and you will get complaints that there are
12406 # no rules to generate ltmain.sh.
12407 if test -f "$ltmain"; then
12408 # See if we are running on zsh, and set the options which allow our commands through
12409 # without removal of \ escapes.
12410 if test -n "${ZSH_VERSION+set}" ; then
12411 setopt NO_GLOB_SUBST
12413 # Now quote all the things that may contain metacharacters while being
12414 # careful not to overquote the AC_SUBSTed values. We take copies of the
12415 # variables and quote the copies for generation of the libtool script.
12416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12420 deplibs_check_method reload_flag reload_cmds need_locks \
12421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12422 lt_cv_sys_global_symbol_to_c_name_address \
12423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12424 old_postinstall_cmds old_postuninstall_cmds \
12428 lt_prog_compiler_wl_CXX \
12429 lt_prog_compiler_pic_CXX \
12430 lt_prog_compiler_static_CXX \
12431 lt_prog_compiler_no_builtin_flag_CXX \
12432 export_dynamic_flag_spec_CXX \
12433 thread_safe_flag_spec_CXX \
12434 whole_archive_flag_spec_CXX \
12435 enable_shared_with_static_runtimes_CXX \
12436 old_archive_cmds_CXX \
12437 old_archive_from_new_cmds_CXX \
12438 predep_objects_CXX \
12439 postdep_objects_CXX \
12442 compiler_lib_search_path_CXX \
12444 archive_expsym_cmds_CXX \
12445 postinstall_cmds_CXX \
12446 postuninstall_cmds_CXX \
12447 old_archive_from_expsyms_cmds_CXX \
12448 allow_undefined_flag_CXX \
12449 no_undefined_flag_CXX \
12450 export_symbols_cmds_CXX \
12451 hardcode_libdir_flag_spec_CXX \
12452 hardcode_libdir_flag_spec_ld_CXX \
12453 hardcode_libdir_separator_CXX \
12454 hardcode_automatic_CXX \
12456 module_expsym_cmds_CXX \
12457 lt_cv_prog_compiler_c_o_CXX \
12458 exclude_expsyms_CXX \
12459 include_expsyms_CXX; do
12462 old_archive_cmds_CXX | \
12463 old_archive_from_new_cmds_CXX | \
12464 archive_cmds_CXX | \
12465 archive_expsym_cmds_CXX | \
12466 module_cmds_CXX | \
12467 module_expsym_cmds_CXX | \
12468 old_archive_from_expsyms_cmds_CXX | \
12469 export_symbols_cmds_CXX | \
12470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12471 postinstall_cmds | postuninstall_cmds | \
12472 old_postinstall_cmds | old_postuninstall_cmds | \
12473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12474 # Double-quote double-evaled strings.
12475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12484 *'\$0 --fallback-echo"')
12485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12491 cat <<__EOF__ >> "$cfgfile"
12492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12496 # Shell to use when invoking shell scripts.
12499 # Whether or not to build shared libraries.
12500 build_libtool_libs=$enable_shared
12502 # Whether or not to build static libraries.
12503 build_old_libs=$enable_static
12505 # Whether or not to add -lc for building shared libraries.
12506 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12508 # Whether or not to disallow shared libs when runtime libs are static
12509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12511 # Whether or not to optimize for fast installation.
12512 fast_install=$enable_fast_install
12515 host_alias=$host_alias
12519 # The build system.
12520 build_alias=$build_alias
12524 # An echo program that does not interpret backslashes.
12529 AR_FLAGS=$lt_AR_FLAGS
12534 # LTCC compiler flags.
12535 LTCFLAGS=$lt_LTCFLAGS
12537 # A language-specific compiler.
12538 CC=$lt_compiler_CXX
12540 # Is the compiler the GNU C compiler?
12546 # The linker used to build libraries.
12549 # Whether we need hard or soft links.
12552 # A BSD-compatible nm program.
12555 # A symbol stripping program
12558 # Used to examine libraries when file_magic_cmd begins "file"
12559 MAGIC_CMD=$MAGIC_CMD
12561 # Used on cygwin: DLL creation program.
12564 # Used on cygwin: object dumper.
12567 # Used on cygwin: assembler.
12570 # The name of the directory that contains temporary libtool files.
12573 # How to create reloadable object files.
12574 reload_flag=$lt_reload_flag
12575 reload_cmds=$lt_reload_cmds
12577 # How to pass a linker flag through the compiler.
12578 wl=$lt_lt_prog_compiler_wl_CXX
12580 # Object file suffix (normally "o").
12581 objext="$ac_objext"
12583 # Old archive suffix (normally "a").
12586 # Shared library suffix (normally ".so").
12587 shrext_cmds='$shrext_cmds'
12589 # Executable file suffix (normally "").
12592 # Additional compiler flags for building library objects.
12593 pic_flag=$lt_lt_prog_compiler_pic_CXX
12596 # What is the maximum length of a command?
12597 max_cmd_len=$lt_cv_sys_max_cmd_len
12599 # Does compiler simultaneously support -c and -o options?
12600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12602 # Must we lock files when doing compilation?
12603 need_locks=$lt_need_locks
12605 # Do we need the lib prefix for modules?
12606 need_lib_prefix=$need_lib_prefix
12608 # Do we need a version for libraries?
12609 need_version=$need_version
12611 # Whether dlopen is supported.
12612 dlopen_support=$enable_dlopen
12614 # Whether dlopen of programs is supported.
12615 dlopen_self=$enable_dlopen_self
12617 # Whether dlopen of statically linked programs is supported.
12618 dlopen_self_static=$enable_dlopen_self_static
12620 # Compiler flag to prevent dynamic linking.
12621 link_static_flag=$lt_lt_prog_compiler_static_CXX
12623 # Compiler flag to turn off builtin functions.
12624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12626 # Compiler flag to allow reflexive dlopens.
12627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12629 # Compiler flag to generate shared objects directly from archives.
12630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12632 # Compiler flag to generate thread-safe objects.
12633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12635 # Library versioning type.
12636 version_type=$version_type
12638 # Format of library name prefix.
12639 libname_spec=$lt_libname_spec
12641 # List of archive names. First name is the real one, the rest are links.
12642 # The last name is the one that the linker finds with -lNAME.
12643 library_names_spec=$lt_library_names_spec
12645 # The coded name of the library, if different from the real name.
12646 soname_spec=$lt_soname_spec
12648 # Commands used to build and install an old-style archive.
12650 old_archive_cmds=$lt_old_archive_cmds_CXX
12651 old_postinstall_cmds=$lt_old_postinstall_cmds
12652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12654 # Create an old-style archive from a shared archive.
12655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12657 # Create a temporary old-style archive to link instead of a shared archive.
12658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12660 # Commands used to build and install a shared archive.
12661 archive_cmds=$lt_archive_cmds_CXX
12662 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12663 postinstall_cmds=$lt_postinstall_cmds
12664 postuninstall_cmds=$lt_postuninstall_cmds
12666 # Commands used to build a loadable module (assumed same as above if empty)
12667 module_cmds=$lt_module_cmds_CXX
12668 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12670 # Commands to strip libraries.
12671 old_striplib=$lt_old_striplib
12672 striplib=$lt_striplib
12674 # Dependencies to place before the objects being linked to create a
12676 predep_objects=$lt_predep_objects_CXX
12678 # Dependencies to place after the objects being linked to create a
12680 postdep_objects=$lt_postdep_objects_CXX
12682 # Dependencies to place before the objects being linked to create a
12684 predeps=$lt_predeps_CXX
12686 # Dependencies to place after the objects being linked to create a
12688 postdeps=$lt_postdeps_CXX
12690 # The library search path used internally by the compiler when linking
12691 # a shared library.
12692 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12694 # Method to check whether dependent libraries are shared objects.
12695 deplibs_check_method=$lt_deplibs_check_method
12697 # Command to use when deplibs_check_method == file_magic.
12698 file_magic_cmd=$lt_file_magic_cmd
12700 # Flag that allows shared libraries with undefined symbols to be built.
12701 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12703 # Flag that forces no undefined symbols.
12704 no_undefined_flag=$lt_no_undefined_flag_CXX
12706 # Commands used to finish a libtool library installation in a directory.
12707 finish_cmds=$lt_finish_cmds
12709 # Same as above, but a single script fragment to be evaled but not shown.
12710 finish_eval=$lt_finish_eval
12712 # Take the output of nm and produce a listing of raw symbols and C names.
12713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12715 # Transform the output of nm in a proper C declaration
12716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12718 # Transform the output of nm in a C name address pair
12719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12721 # This is the shared library runtime path variable.
12722 runpath_var=$runpath_var
12724 # This is the shared library path variable.
12725 shlibpath_var=$shlibpath_var
12727 # Is shlibpath searched before the hard-coded library search path?
12728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12730 # How to hardcode a shared library path into an executable.
12731 hardcode_action=$hardcode_action_CXX
12733 # Whether we should hardcode library paths into libraries.
12734 hardcode_into_libs=$hardcode_into_libs
12736 # Flag to hardcode \$libdir into a binary during linking.
12737 # This must work even if \$libdir does not exist.
12738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12740 # If ld is used when linking, flag to hardcode \$libdir into
12741 # a binary during linking. This must work even if \$libdir does
12743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12745 # Whether we need a single -rpath flag with a separated argument.
12746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12749 # resulting binary.
12750 hardcode_direct=$hardcode_direct_CXX
12752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12753 # resulting binary.
12754 hardcode_minus_L=$hardcode_minus_L_CXX
12756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12757 # the resulting binary.
12758 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12760 # Set to yes if building a shared library automatically hardcodes DIR into the library
12761 # and all subsequent libraries and executables linked against it.
12762 hardcode_automatic=$hardcode_automatic_CXX
12764 # Variables whose values should be saved in libtool wrapper scripts and
12765 # restored at relink time.
12766 variables_saved_for_relink="$variables_saved_for_relink"
12768 # Whether libtool must link a program against all its dependency libraries.
12769 link_all_deplibs=$link_all_deplibs_CXX
12771 # Compile-time system search path for libraries
12772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12774 # Run-time system search path for libraries
12775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12777 # Fix the shell variable \$srcfile for the compiler.
12778 fix_srcfile_path="$fix_srcfile_path_CXX"
12780 # Set to yes if exported symbols are required.
12781 always_export_symbols=$always_export_symbols_CXX
12783 # The commands to list exported symbols.
12784 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12786 # The commands to extract the exported symbol list from a shared archive.
12787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12789 # Symbols that should not be listed in the preloaded symbols.
12790 exclude_expsyms=$lt_exclude_expsyms_CXX
12792 # Symbols that must always be exported.
12793 include_expsyms=$lt_include_expsyms_CXX
12795 # ### END LIBTOOL TAG CONFIG: $tagname
12801 # If there is no Makefile yet, we rely on a make rule to execute
12802 # `config.status --recheck' to rerun these tests and create the
12803 # libtool script then.
12804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12805 if test -f "$ltmain_in"; then
12806 test -f Makefile && make "$ltmain"
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12821 with_gnu_ldcxx=$with_gnu_ld
12822 with_gnu_ld=$lt_save_with_gnu_ld
12823 lt_cv_path_LDCXX=$lt_cv_path_LD
12824 lt_cv_path_LD=$lt_save_path_LD
12825 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12826 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12834 if test -n "$F77" && test "X$F77" != "Xno"; then
12837 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12838 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12842 archive_cmds_need_lc_F77=no
12843 allow_undefined_flag_F77=
12844 always_export_symbols_F77=no
12845 archive_expsym_cmds_F77=
12846 export_dynamic_flag_spec_F77=
12847 hardcode_direct_F77=no
12848 hardcode_libdir_flag_spec_F77=
12849 hardcode_libdir_flag_spec_ld_F77=
12850 hardcode_libdir_separator_F77=
12851 hardcode_minus_L_F77=no
12852 hardcode_automatic_F77=no
12854 module_expsym_cmds_F77=
12855 link_all_deplibs_F77=unknown
12856 old_archive_cmds_F77=$old_archive_cmds
12857 no_undefined_flag_F77=
12858 whole_archive_flag_spec_F77=
12859 enable_shared_with_static_runtimes_F77=no
12861 # Source file extension for f77 test sources.
12864 # Object file extension for compiled f77 test sources.
12868 # Code to be used in simple compile tests
12869 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12871 # Code to be used in simple link tests
12872 lt_simple_link_test_code=" program t\n end\n"
12874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12876 # If no C compiler was specified, use CC.
12879 # If no C compiler flags were specified, use CFLAGS.
12880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12882 # Allow CC to be a program name with arguments.
12886 # save warnings/boilerplate of simple test code
12887 ac_outfile=conftest.$ac_objext
12888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12890 _lt_compiler_boilerplate=`cat conftest.err`
12893 ac_outfile=conftest.$ac_objext
12894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12896 _lt_linker_boilerplate=`cat conftest.err`
12900 # Allow CC to be a program name with arguments.
12905 for cc_temp in $compiler""; do
12907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12916 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12917 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12918 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12919 echo "${ECHO_T}$can_build_shared" >&6
12921 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12922 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12923 test "$can_build_shared" = "no" && enable_shared=no
12925 # On AIX, shared libraries and static libraries use the same namespace, and
12926 # are all built from PIC.
12929 test "$enable_shared" = yes && enable_static=no
12930 if test -n "$RANLIB"; then
12931 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12932 postinstall_cmds='$RANLIB $lib'
12936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12937 test "$enable_shared" = yes && enable_static=no
12941 echo "$as_me:$LINENO: result: $enable_shared" >&5
12942 echo "${ECHO_T}$enable_shared" >&6
12944 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12945 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12946 # Make sure either enable_shared or enable_static is yes.
12947 test "$enable_shared" = yes || enable_static=yes
12948 echo "$as_me:$LINENO: result: $enable_static" >&5
12949 echo "${ECHO_T}$enable_static" >&6
12954 lt_prog_compiler_wl_F77=
12955 lt_prog_compiler_pic_F77=
12956 lt_prog_compiler_static_F77=
12958 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12961 if test "$GCC" = yes; then
12962 lt_prog_compiler_wl_F77='-Wl,'
12963 lt_prog_compiler_static_F77='-static'
12967 # All AIX code is PIC.
12968 if test "$host_cpu" = ia64; then
12969 # AIX 5 now supports IA64 processor
12970 lt_prog_compiler_static_F77='-Bstatic'
12975 # FIXME: we need at least 68020 code to build shared libraries, but
12976 # adding the `-m68020' flag to GCC prevents building anything better,
12978 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12981 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12982 # PIC is the default for these OSes.
12985 mingw* | pw32* | os2*)
12986 # This hack is so that the source file can tell whether it is being
12987 # built for inclusion in a dll (and should export symbols for example).
12988 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12991 darwin* | rhapsody*)
12992 # PIC is the default on this platform
12993 # Common symbols not allowed in MH_DYLIB files
12994 lt_prog_compiler_pic_F77='-fno-common'
12998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12999 # Instead, we relocate shared libraries at runtime.
13003 # Just because we use GCC doesn't mean we suddenly get shared libraries
13004 # on systems that don't support them.
13005 lt_prog_compiler_can_build_shared_F77=no
13010 if test -d /usr/nec; then
13011 lt_prog_compiler_pic_F77=-Kconform_pic
13016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13017 # not for PA HP-UX.
13023 lt_prog_compiler_pic_F77='-fPIC'
13029 lt_prog_compiler_pic_F77='-fPIC'
13033 # PORTME Check for flag to pass linker flags through the system compiler.
13036 lt_prog_compiler_wl_F77='-Wl,'
13037 if test "$host_cpu" = ia64; then
13038 # AIX 5 now supports IA64 processor
13039 lt_prog_compiler_static_F77='-Bstatic'
13041 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13045 # PIC is the default on this platform
13046 # Common symbols not allowed in MH_DYLIB files
13047 case $cc_basename in
13049 lt_prog_compiler_pic_F77='-qnocommon'
13050 lt_prog_compiler_wl_F77='-Wl,'
13055 mingw* | pw32* | os2*)
13056 # This hack is so that the source file can tell whether it is being
13057 # built for inclusion in a dll (and should export symbols for example).
13058 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13061 hpux9* | hpux10* | hpux11*)
13062 lt_prog_compiler_wl_F77='-Wl,'
13063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13064 # not for PA HP-UX.
13070 lt_prog_compiler_pic_F77='+Z'
13073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13074 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13077 irix5* | irix6* | nonstopux*)
13078 lt_prog_compiler_wl_F77='-Wl,'
13079 # PIC (with -KPIC) is the default.
13080 lt_prog_compiler_static_F77='-non_shared'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-Bstatic'
13089 case $cc_basename in
13091 lt_prog_compiler_wl_F77='-Wl,'
13092 lt_prog_compiler_pic_F77='-KPIC'
13093 lt_prog_compiler_static_F77='-static'
13095 pgcc* | pgf77* | pgf90* | pgf95*)
13096 # Portland Group compilers (*not* the Pentium gcc compiler,
13097 # which looks to be a dead project)
13098 lt_prog_compiler_wl_F77='-Wl,'
13099 lt_prog_compiler_pic_F77='-fpic'
13100 lt_prog_compiler_static_F77='-Bstatic'
13103 lt_prog_compiler_wl_F77='-Wl,'
13104 # All Alpha code is PIC.
13105 lt_prog_compiler_static_F77='-non_shared'
13110 osf3* | osf4* | osf5*)
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 # All OSF/1 code is PIC.
13113 lt_prog_compiler_static_F77='-non_shared'
13117 lt_prog_compiler_pic_F77='-KPIC'
13118 lt_prog_compiler_static_F77='-Bstatic'
13119 case $cc_basename in
13120 f77* | f90* | f95*)
13121 lt_prog_compiler_wl_F77='-Qoption ld ';;
13123 lt_prog_compiler_wl_F77='-Wl,';;
13128 lt_prog_compiler_wl_F77='-Qoption ld '
13129 lt_prog_compiler_pic_F77='-PIC'
13130 lt_prog_compiler_static_F77='-Bstatic'
13133 sysv4 | sysv4.2uw2* | sysv4.3*)
13134 lt_prog_compiler_wl_F77='-Wl,'
13135 lt_prog_compiler_pic_F77='-KPIC'
13136 lt_prog_compiler_static_F77='-Bstatic'
13140 if test -d /usr/nec ;then
13141 lt_prog_compiler_pic_F77='-Kconform_pic'
13142 lt_prog_compiler_static_F77='-Bstatic'
13146 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13147 lt_prog_compiler_wl_F77='-Wl,'
13148 lt_prog_compiler_pic_F77='-KPIC'
13149 lt_prog_compiler_static_F77='-Bstatic'
13153 lt_prog_compiler_wl_F77='-Wl,'
13154 lt_prog_compiler_can_build_shared_F77=no
13158 lt_prog_compiler_pic_F77='-pic'
13159 lt_prog_compiler_static_F77='-Bstatic'
13163 lt_prog_compiler_can_build_shared_F77=no
13168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13169 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13172 # Check to make sure the PIC flag actually works.
13174 if test -n "$lt_prog_compiler_pic_F77"; then
13176 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13177 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13178 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 lt_prog_compiler_pic_works_F77=no
13182 ac_outfile=conftest.$ac_objext
13183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13184 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13185 # Insert the option either (1) after the last *FLAGS variable, or
13186 # (2) before a word containing "conftest.", or (3) at the end.
13187 # Note that $ac_compile itself does not contain backslashes and begins
13188 # with a dollar sign (not a hyphen), so the echo should work correctly.
13189 # The option is referenced via a variable to avoid confusing sed.
13190 lt_compile=`echo "$ac_compile" | $SED \
13191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193 -e 's:$: $lt_compiler_flag:'`
13194 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13195 (eval "$lt_compile" 2>conftest.err)
13197 cat conftest.err >&5
13198 echo "$as_me:__oline__: \$? = $ac_status" >&5
13199 if (exit $ac_status) && test -s "$ac_outfile"; then
13200 # The compiler can only warn and ignore the option if not recognized
13201 # So say no if there are warnings other than the usual output.
13202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13205 lt_prog_compiler_pic_works_F77=yes
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13214 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13215 case $lt_prog_compiler_pic_F77 in
13217 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13220 lt_prog_compiler_pic_F77=
13221 lt_prog_compiler_can_build_shared_F77=no
13226 # For platforms which do not support PIC, -DPIC is meaningless:
13228 lt_prog_compiler_pic_F77=
13231 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13236 # Check to make sure the static flag actually works.
13238 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13239 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13240 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13241 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 lt_prog_compiler_static_works_F77=no
13245 save_LDFLAGS="$LDFLAGS"
13246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13247 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13249 # The linker can only warn and ignore the option if not recognized
13250 # So say no if there are warnings
13251 if test -s conftest.err; then
13252 # Append any errors to the config.log.
13253 cat conftest.err 1>&5
13254 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13256 if diff conftest.exp conftest.er2 >/dev/null; then
13257 lt_prog_compiler_static_works_F77=yes
13260 lt_prog_compiler_static_works_F77=yes
13264 LDFLAGS="$save_LDFLAGS"
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13270 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13273 lt_prog_compiler_static_F77=
13277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13279 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 lt_cv_prog_compiler_c_o_F77=no
13283 $rm -r conftest 2>/dev/null
13287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13289 lt_compiler_flag="-o out/conftest2.$ac_objext"
13290 # Insert the option either (1) after the last *FLAGS variable, or
13291 # (2) before a word containing "conftest.", or (3) at the end.
13292 # Note that $ac_compile itself does not contain backslashes and begins
13293 # with a dollar sign (not a hyphen), so the echo should work correctly.
13294 lt_compile=`echo "$ac_compile" | $SED \
13295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13297 -e 's:$: $lt_compiler_flag:'`
13298 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13299 (eval "$lt_compile" 2>out/conftest.err)
13301 cat out/conftest.err >&5
13302 echo "$as_me:__oline__: \$? = $ac_status" >&5
13303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13305 # The compiler can only warn and ignore the option if not recognized
13306 # So say no if there are warnings
13307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13310 lt_cv_prog_compiler_c_o_F77=yes
13315 # SGI C++ compiler will create directory out/ii_files/ for
13316 # template instantiation
13317 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13318 $rm out/* && rmdir out
13324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13328 hard_links="nottested"
13329 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13330 # do not overwrite the value of need_locks provided by the user
13331 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13337 ln conftest.a conftest.b 2>&5 || hard_links=no
13338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13339 echo "$as_me:$LINENO: result: $hard_links" >&5
13340 echo "${ECHO_T}$hard_links" >&6
13341 if test "$hard_links" = no; then
13342 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13354 allow_undefined_flag_F77=
13355 enable_shared_with_static_runtimes_F77=no
13357 archive_expsym_cmds_F77=
13358 old_archive_From_new_cmds_F77=
13359 old_archive_from_expsyms_cmds_F77=
13360 export_dynamic_flag_spec_F77=
13361 whole_archive_flag_spec_F77=
13362 thread_safe_flag_spec_F77=
13363 hardcode_libdir_flag_spec_F77=
13364 hardcode_libdir_flag_spec_ld_F77=
13365 hardcode_libdir_separator_F77=
13366 hardcode_direct_F77=no
13367 hardcode_minus_L_F77=no
13368 hardcode_shlibpath_var_F77=unsupported
13369 link_all_deplibs_F77=unknown
13370 hardcode_automatic_F77=no
13372 module_expsym_cmds_F77=
13373 always_export_symbols_F77=no
13374 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13375 # include_expsyms should be a list of space-separated symbols to be *always*
13376 # included in the symbol list
13377 include_expsyms_F77=
13378 # exclude_expsyms can be an extended regexp of symbols to exclude
13379 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13380 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13381 # as well as any symbol that contains `d'.
13382 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13383 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13384 # platforms (ab)use it in PIC code, but their linkers get confused if
13385 # the symbol is explicitly referenced. Since portable code cannot
13386 # rely on this symbol name, it's probably fine to never include it in
13387 # preloaded symbol tables.
13388 extract_expsyms_cmds=
13389 # Just being paranoid about ensuring that cc_basename is set.
13390 for cc_temp in $compiler""; do
13392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13401 cygwin* | mingw* | pw32*)
13402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13403 # When not using gcc, we currently assume that we are using
13404 # Microsoft Visual C++.
13405 if test "$GCC" != yes; then
13410 # we just hope/assume this is gcc and not c89 (= MSVC++)
13419 if test "$with_gnu_ld" = yes; then
13420 # If archive_cmds runs LD, not CC, wlarc should be empty
13423 # Set some defaults for GNU ld with shared library support. These
13424 # are reset later if shared libraries are not supported. Putting them
13425 # here allows them to be overridden if necessary.
13426 runpath_var=LD_RUN_PATH
13427 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13428 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13429 # ancient GNU ld didn't support --whole-archive et. al.
13430 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13431 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13433 whole_archive_flag_spec_F77=
13435 supports_anon_versioning=no
13436 case `$LD -v 2>/dev/null` in
13437 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13440 *\ 2.11.*) ;; # other 2.11 versions
13441 *) supports_anon_versioning=yes ;;
13444 # See if GNU ld supports shared libraries.
13446 aix3* | aix4* | aix5*)
13447 # On AIX/PPC, the GNU linker is very broken
13448 if test "$host_cpu" != ia64; then
13452 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13453 *** to be unable to reliably create shared libraries on AIX.
13454 *** Therefore, libtool is disabling shared libraries support. If you
13455 *** really care for shared libraries, you may want to modify your PATH
13456 *** so that a non-GNU linker is found, and then restart.
13463 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)'
13464 hardcode_libdir_flag_spec_F77='-L$libdir'
13465 hardcode_minus_L_F77=yes
13467 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13468 # that the semantics of dynamic libraries on AmigaOS, at least up
13469 # to version 4, is to share data among multiple programs linked
13470 # with the same dynamic library. Since this doesn't match the
13471 # behavior of shared libraries on other platforms, we can't use
13477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13478 allow_undefined_flag_F77=unsupported
13479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13480 # support --undefined. This deserves some investigation. FIXME
13481 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13487 cygwin* | mingw* | pw32*)
13488 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13489 # as there is no search path for DLLs.
13490 hardcode_libdir_flag_spec_F77='-L$libdir'
13491 allow_undefined_flag_F77=unsupported
13492 always_export_symbols_F77=no
13493 enable_shared_with_static_runtimes_F77=yes
13494 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13496 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13497 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498 # If the export-symbols file already is a .def file (1st line
13499 # is EXPORTS), use it as is; otherwise, prepend...
13500 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13501 cp $export_symbols $output_objdir/$soname.def;
13503 echo EXPORTS > $output_objdir/$soname.def;
13504 cat $export_symbols >> $output_objdir/$soname.def;
13506 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13513 hardcode_direct_F77=no
13514 hardcode_shlibpath_var_F77=no
13515 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13516 export_dynamic_flag_spec_F77='${wl}-E'
13517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13518 # Instead, shared libraries are loaded at an image base (0x10000000 by
13519 # default) and relocated if they conflict, which is a slow very memory
13520 # consuming and fragmenting process. To avoid this, we pick a random,
13521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13522 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13523 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'
13524 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'
13528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530 case $cc_basename,$host_cpu in
13531 pgcc*) # Portland Group C compiler
13532 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'
13533 tmp_addflag=' $pic_flag'
13535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13536 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'
13537 tmp_addflag=' $pic_flag -Mnomain' ;;
13538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13539 tmp_addflag=' -i_dynamic' ;;
13540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13541 tmp_addflag=' -i_dynamic -nofor_main' ;;
13542 ifc* | ifort*) # Intel Fortran compiler
13543 tmp_addflag=' -nofor_main' ;;
13545 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13547 if test $supports_anon_versioning = yes; then
13548 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13550 $echo "local: *; };" >> $output_objdir/$libname.ver~
13551 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13560 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13563 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13569 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13574 *** create shared libraries on Solaris systems. Therefore, libtool
13575 *** is disabling shared libraries support. We urge you to upgrade GNU
13576 *** binutils to release 2.9.1 or newer. Another option is to modify
13577 *** your PATH or compiler configuration so that the native linker is
13578 *** used, and then restart.
13581 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13582 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13583 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13590 case `$LD -v 2>&1` in
13591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13596 *** reliably create shared libraries on SCO systems. Therefore, libtool
13597 *** is disabling shared libraries support. We urge you to upgrade GNU
13598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13599 *** your PATH or compiler configuration so that the native linker is
13600 *** used, and then restart.
13605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13606 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13607 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13608 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13617 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13619 hardcode_direct_F77=yes
13620 hardcode_shlibpath_var_F77=no
13624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13633 if test "$ld_shlibs_F77" = no; then
13635 hardcode_libdir_flag_spec_F77=
13636 export_dynamic_flag_spec_F77=
13637 whole_archive_flag_spec_F77=
13640 # PORTME fill in a description of your system's linker (not GNU ld)
13643 allow_undefined_flag_F77=unsupported
13644 always_export_symbols_F77=yes
13645 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'
13646 # Note: this linker hardcodes the directories in LIBPATH if there
13647 # are no directories specified by -L.
13648 hardcode_minus_L_F77=yes
13649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13650 # Neither direct hardcoding nor static linking is supported with a
13652 hardcode_direct_F77=unsupported
13657 if test "$host_cpu" = ia64; then
13658 # On IA64, the linker does run time linking by default, so we don't
13659 # have to do anything special.
13660 aix_use_runtimelinking=no
13661 exp_sym_flag='-Bexport'
13664 # If we're using GNU nm, then we don't want the "-C" option.
13665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13666 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13667 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'
13669 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'
13671 aix_use_runtimelinking=no
13673 # Test if we are trying to use run time linking or normal
13674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13675 # need to do runtime linking.
13676 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13677 for ld_flag in $LDFLAGS; do
13678 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13679 aix_use_runtimelinking=yes
13686 exp_sym_flag='-bexport'
13687 no_entry_flag='-bnoentry'
13690 # When large executables or shared objects are built, AIX ld can
13691 # have problems creating the table of contents. If linking a library
13692 # or program results in "error TOC overflow" add -mminimal-toc to
13693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13696 archive_cmds_F77=''
13697 hardcode_direct_F77=yes
13698 hardcode_libdir_separator_F77=':'
13699 link_all_deplibs_F77=yes
13701 if test "$GCC" = yes; then
13702 case $host_os in aix4.[012]|aix4.[012].*)
13703 # We only want to do this on AIX 4.2 and lower, the check
13704 # below for broken collect2 doesn't work under 4.3+
13705 collect2name=`${CC} -print-prog-name=collect2`
13706 if test -f "$collect2name" && \
13707 strings "$collect2name" | grep resolve_lib_name >/dev/null
13709 # We have reworked collect2
13710 hardcode_direct_F77=yes
13712 # We have old collect2
13713 hardcode_direct_F77=unsupported
13714 # It fails to find uninstalled libraries when the uninstalled
13715 # path is not listed in the libpath. Setting hardcode_minus_L
13716 # to unsupported forces relinking
13717 hardcode_minus_L_F77=yes
13718 hardcode_libdir_flag_spec_F77='-L$libdir'
13719 hardcode_libdir_separator_F77=
13723 shared_flag='-shared'
13724 if test "$aix_use_runtimelinking" = yes; then
13725 shared_flag="$shared_flag "'${wl}-G'
13729 if test "$host_cpu" = ia64; then
13730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13731 # chokes on -Wl,-G. The following line is correct:
13734 if test "$aix_use_runtimelinking" = yes; then
13735 shared_flag='${wl}-G'
13737 shared_flag='${wl}-bM:SRE'
13742 # It seems that -bexpall does not export symbols beginning with
13743 # underscore (_), so it is better to generate a list of symbols to export.
13744 always_export_symbols_F77=yes
13745 if test "$aix_use_runtimelinking" = yes; then
13746 # Warning - without using the other runtime loading flags (-brtl),
13747 # -berok will link without error, but may produce a broken library.
13748 allow_undefined_flag_F77='-berok'
13749 # Determine the default libpath from the value encoded in an empty executable.
13750 cat >conftest.$ac_ext <<_ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>conftest.er1
13759 grep -v '^ *+' conftest.er1 >conftest.err
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_f77_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13780 # Check for a 64-bit object if we didn't find anything.
13781 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; }
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13788 rm -f conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13792 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13793 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"
13795 if test "$host_cpu" = ia64; then
13796 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13797 allow_undefined_flag_F77="-z nodefs"
13798 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"
13800 # Determine the default libpath from the value encoded in an empty executable.
13801 cat >conftest.$ac_ext <<_ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808 (eval $ac_link) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_f77_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13831 # Check for a 64-bit object if we didn't find anything.
13832 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; }
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13839 rm -f conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13843 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13844 # Warning - without using the other run time loading flags,
13845 # -berok will link without error, but may produce a broken library.
13846 no_undefined_flag_F77=' ${wl}-bernotok'
13847 allow_undefined_flag_F77=' ${wl}-berok'
13848 # Exported symbols can be pulled into shared objects from archives
13849 whole_archive_flag_spec_F77='$convenience'
13850 archive_cmds_need_lc_F77=yes
13851 # This is similar to how AIX traditionally builds its shared libraries.
13852 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'
13858 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)'
13859 hardcode_libdir_flag_spec_F77='-L$libdir'
13860 hardcode_minus_L_F77=yes
13861 # see comment about different semantics on the GNU ld section
13866 export_dynamic_flag_spec_F77=-rdynamic
13869 cygwin* | mingw* | pw32*)
13870 # When not using gcc, we currently assume that we are using
13871 # Microsoft Visual C++.
13872 # hardcode_libdir_flag_spec is actually meaningless, as there is
13873 # no search path for DLLs.
13874 hardcode_libdir_flag_spec_F77=' '
13875 allow_undefined_flag_F77=unsupported
13876 # Tell ltmain to make .lib files, not .a files.
13878 # Tell ltmain to make .dll files, not .so files.
13880 # FIXME: Setting linknames here is a bad hack.
13881 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13882 # The linker will automatically build a .lib file if we build a DLL.
13883 old_archive_From_new_cmds_F77='true'
13884 # FIXME: Should let the user specify the lib program.
13885 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13886 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13887 enable_shared_with_static_runtimes_F77=yes
13890 darwin* | rhapsody*)
13892 rhapsody* | darwin1.[012])
13893 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13896 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13897 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13899 case ${MACOSX_DEPLOYMENT_TARGET} in
13901 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13904 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13910 archive_cmds_need_lc_F77=no
13911 hardcode_direct_F77=no
13912 hardcode_automatic_F77=yes
13913 hardcode_shlibpath_var_F77=unsupported
13914 whole_archive_flag_spec_F77=''
13915 link_all_deplibs_F77=yes
13916 if test "$GCC" = yes ; then
13917 output_verbose_link_cmd='echo'
13918 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13919 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13920 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13921 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}'
13922 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}'
13924 case $cc_basename in
13926 output_verbose_link_cmd='echo'
13927 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13928 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13930 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}'
13931 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}'
13941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 hardcode_libdir_flag_spec_F77='-L$libdir'
13943 hardcode_shlibpath_var_F77=no
13950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13951 # support. Future versions do this automatically, but an explicit c++rt0.o
13952 # does not break anything, and helps significantly (at the cost of a little
13955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13956 hardcode_libdir_flag_spec_F77='-R$libdir'
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13964 hardcode_direct_F77=yes
13965 hardcode_minus_L_F77=yes
13966 hardcode_shlibpath_var_F77=no
13969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13970 freebsd* | kfreebsd*-gnu | dragonfly*)
13971 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13972 hardcode_libdir_flag_spec_F77='-R$libdir'
13973 hardcode_direct_F77=yes
13974 hardcode_shlibpath_var_F77=no
13978 if test "$GCC" = yes; then
13979 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'
13981 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'
13983 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13984 hardcode_libdir_separator_F77=:
13985 hardcode_direct_F77=yes
13987 # hardcode_minus_L: Not really in the search PATH,
13988 # but as the default location of the library.
13989 hardcode_minus_L_F77=yes
13990 export_dynamic_flag_spec_F77='${wl}-E'
13994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13995 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13997 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13999 if test "$with_gnu_ld" = no; then
14000 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14001 hardcode_libdir_separator_F77=:
14003 hardcode_direct_F77=yes
14004 export_dynamic_flag_spec_F77='${wl}-E'
14006 # hardcode_minus_L: Not really in the search PATH,
14007 # but as the default location of the library.
14008 hardcode_minus_L_F77=yes
14013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14016 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14019 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14022 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14028 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14038 if test "$with_gnu_ld" = no; then
14039 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14040 hardcode_libdir_separator_F77=:
14044 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14045 hardcode_direct_F77=no
14046 hardcode_shlibpath_var_F77=no
14049 hardcode_direct_F77=yes
14050 export_dynamic_flag_spec_F77='${wl}-E'
14052 # hardcode_minus_L: Not really in the search PATH,
14053 # but as the default location of the library.
14054 hardcode_minus_L_F77=yes
14060 irix5* | irix6* | nonstopux*)
14061 if test "$GCC" = yes; then
14062 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'
14064 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'
14065 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14067 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14068 hardcode_libdir_separator_F77=:
14069 link_all_deplibs_F77=yes
14073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14074 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14076 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14078 hardcode_libdir_flag_spec_F77='-R$libdir'
14079 hardcode_direct_F77=yes
14080 hardcode_shlibpath_var_F77=no
14084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_direct_F77=yes
14086 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087 hardcode_libdir_separator_F77=:
14088 hardcode_shlibpath_var_F77=no
14092 hardcode_direct_F77=yes
14093 hardcode_shlibpath_var_F77=no
14094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14096 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14098 export_dynamic_flag_spec_F77='${wl}-E'
14101 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14102 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14103 hardcode_libdir_flag_spec_F77='-R$libdir'
14106 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14107 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_minus_L_F77=yes
14116 allow_undefined_flag_F77=unsupported
14117 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'
14118 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14122 if test "$GCC" = yes; then
14123 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14124 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'
14126 allow_undefined_flag_F77=' -expect_unresolved \*'
14127 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'
14129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130 hardcode_libdir_separator_F77=:
14133 osf4* | osf5*) # as osf3* with the addition of -msym flag
14134 if test "$GCC" = yes; then
14135 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14136 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'
14137 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14139 allow_undefined_flag_F77=' -expect_unresolved \*'
14140 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'
14141 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~
14142 $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'
14144 # Both c and cxx compiler support -rpath directly
14145 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14147 hardcode_libdir_separator_F77=:
14151 no_undefined_flag_F77=' -z text'
14152 if test "$GCC" = yes; then
14154 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14156 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14159 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14163 hardcode_libdir_flag_spec_F77='-R$libdir'
14164 hardcode_shlibpath_var_F77=no
14166 solaris2.[0-5] | solaris2.[0-5].*) ;;
14168 # The compiler driver will combine linker options so we
14169 # cannot just pass the convience library names through
14170 # without $wl, iff we do not link with $LD.
14171 # Luckily, gcc supports the same syntax we need for Sun Studio.
14172 # Supported since Solaris 2.6 (maybe 2.5.1?)
14175 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14177 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' ;;
14180 link_all_deplibs_F77=yes
14184 if test "x$host_vendor" = xsequent; then
14185 # Use $CC to link under sequent, because it throws in some extra .o
14186 # files that make .init and .fini sections work.
14187 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14191 hardcode_libdir_flag_spec_F77='-L$libdir'
14192 hardcode_direct_F77=yes
14193 hardcode_minus_L_F77=yes
14194 hardcode_shlibpath_var_F77=no
14198 case $host_vendor in
14200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201 hardcode_direct_F77=yes # is this really true???
14204 ## LD is ld it makes a PLAMLIB
14205 ## CC just makes a GrossModule.
14206 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14207 reload_cmds_F77='$CC -r -o $output$reload_objs'
14208 hardcode_direct_F77=no
14211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14212 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14215 runpath_var='LD_RUN_PATH'
14216 hardcode_shlibpath_var_F77=no
14220 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221 hardcode_shlibpath_var_F77=no
14222 export_dynamic_flag_spec_F77='-Bexport'
14226 if test -d /usr/nec; then
14227 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228 hardcode_shlibpath_var_F77=no
14229 runpath_var=LD_RUN_PATH
14230 hardcode_runpath_var=yes
14235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14236 no_undefined_flag_F77='${wl}-z,text'
14237 archive_cmds_need_lc_F77=no
14238 hardcode_shlibpath_var_F77=no
14239 runpath_var='LD_RUN_PATH'
14241 if test "$GCC" = yes; then
14242 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250 sysv5* | sco3.2v5* | sco5v6*)
14251 # Note: We can NOT use -z defs as we might desire, because we do not
14252 # link with -lc, and that would cause any symbols used from libc to
14253 # always be unresolved, which means just about no library would
14254 # ever link correctly. If we're not using GNU ld we use -z text
14255 # though, which does catch some bad symbols but isn't as heavy-handed
14257 no_undefined_flag_F77='${wl}-z,text'
14258 allow_undefined_flag_F77='${wl}-z,nodefs'
14259 archive_cmds_need_lc_F77=no
14260 hardcode_shlibpath_var_F77=no
14261 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14262 hardcode_libdir_separator_F77=':'
14263 link_all_deplibs_F77=yes
14264 export_dynamic_flag_spec_F77='${wl}-Bexport'
14265 runpath_var='LD_RUN_PATH'
14267 if test "$GCC" = yes; then
14268 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_libdir_flag_spec_F77='-L$libdir'
14279 hardcode_shlibpath_var_F77=no
14288 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14289 echo "${ECHO_T}$ld_shlibs_F77" >&6
14290 test "$ld_shlibs_F77" = no && can_build_shared=no
14293 # Do we need to explicitly link libc?
14295 case "x$archive_cmds_need_lc_F77" in
14297 # Assume -lc should be added
14298 archive_cmds_need_lc_F77=yes
14300 if test "$enable_shared" = yes && test "$GCC" = yes; then
14301 case $archive_cmds_F77 in
14303 # FIXME: we may have to deal with multi-command sequences.
14306 # Test whether the compiler implicitly links with -lc since on some
14307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14308 # to ld, don't add -lc before -lgcc.
14309 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14310 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315 (eval $ac_compile) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } 2>conftest.err; then
14321 libobjs=conftest.$ac_objext
14323 wl=$lt_prog_compiler_wl_F77
14324 pic_flag=$lt_prog_compiler_pic_F77
14330 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14331 allow_undefined_flag_F77=
14332 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14333 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }
14338 archive_cmds_need_lc_F77=no
14340 archive_cmds_need_lc_F77=yes
14342 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14344 cat conftest.err 1>&5
14347 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14348 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14355 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14357 library_names_spec=
14358 libname_spec='lib$name'
14362 postuninstall_cmds=
14366 shlibpath_overrides_runpath=unknown
14368 dynamic_linker="$host_os ld.so"
14369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14370 if test "$GCC" = yes; then
14371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14373 # if the path contains ";" then we assume it to be the separator
14374 # otherwise default to the standard path separator (i.e. ":") - it is
14375 # assumed that no part of a normal pathname contains ";" but that should
14376 # okay in the real world where ";" in dirpaths is itself problematic.
14377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14384 need_lib_prefix=unknown
14385 hardcode_into_libs=no
14387 # when you set need_version to no, make sure it does not cause -set_version
14388 # flags to be left without arguments
14389 need_version=unknown
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14395 shlibpath_var=LIBPATH
14397 # AIX 3 has no versioning support, so we append a major version to the name.
14398 soname_spec='${libname}${release}${shared_ext}$major'
14405 hardcode_into_libs=yes
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 supports IA64
14408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14409 shlibpath_var=LD_LIBRARY_PATH
14411 # With GCC up to 2.95.x, collect2 would create an import file
14412 # for dependence libraries. The import file would start with
14413 # the line `#! .'. This would cause the generated library to
14414 # depend on `.', always an invalid library. This was fixed in
14415 # development snapshots of GCC prior to 3.0.
14417 aix4 | aix4.[01] | aix4.[01].*)
14418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14423 can_build_shared=no
14427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14428 # soname into executable. Probably we can add versioning support to
14429 # collect2, so additional links can be useful in future.
14430 if test "$aix_use_runtimelinking" = yes; then
14431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14432 # instead of lib<name>.a to let people know that these are not
14433 # typical AIX shared libraries.
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 # We preserve .a as extension for shared libraries through AIX4.2
14437 # and later when we are not doing run time linking.
14438 library_names_spec='${libname}${release}.a $libname.a'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14441 shlibpath_var=LIBPATH
14446 library_names_spec='$libname.ixlibrary $libname.a'
14447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14448 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'
14452 library_names_spec='${libname}${shared_ext}'
14453 dynamic_linker="$host_os ld.so"
14454 shlibpath_var=LIBRARY_PATH
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14466 # the default ld.so.conf also contains /usr/contrib/lib and
14467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14468 # libtool to hard-code these into programs
14471 cygwin* | mingw* | pw32*)
14472 version_type=windows
14477 case $GCC,$host_os in
14478 yes,cygwin* | yes,mingw* | yes,pw32*)
14479 library_names_spec='$libname.dll.a'
14480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14481 postinstall_cmds='base_file=`basename \${file}`~
14482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14483 dldir=$destdir/`dirname \$dlpath`~
14484 test -d \$dldir || mkdir -p \$dldir~
14485 $install_prog $dir/$dlname \$dldir/$dlname~
14486 chmod a+x \$dldir/$dlname'
14487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14488 dlpath=$dir/\$dldll~
14490 shlibpath_overrides_runpath=yes
14494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14499 # MinGW DLLs use traditional 'lib' prefix
14500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14502 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14503 # It is most probably a Windows format PATH printed by
14504 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14505 # path with ; separators, and with drive letters. We can handle the
14506 # drive letters (cygwin fileutils understands them), so leave them,
14507 # especially as we might pass files found there to a mingw objdump,
14508 # which wouldn't understand a cygwinified path. Ahh.
14509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14515 # pw32 DLLs use 'pw' prefix rather than 'lib'
14516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14525 dynamic_linker='Win32 ld.exe'
14526 # FIXME: first we should search . and the directory the executable is in
14530 darwin* | rhapsody*)
14531 dynamic_linker="$host_os dyld"
14532 version_type=darwin
14535 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14536 soname_spec='${libname}${release}${major}$shared_ext'
14537 shlibpath_overrides_runpath=yes
14538 shlibpath_var=DYLD_LIBRARY_PATH
14539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14540 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14541 if test "$GCC" = yes; then
14542 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"`
14544 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14555 shlibpath_var=LD_LIBRARY_PATH
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 shlibpath_overrides_runpath=no
14570 hardcode_into_libs=yes
14571 dynamic_linker='GNU ld.so'
14574 freebsd* | dragonfly*)
14575 # DragonFly does not have aout. When/if they implement a new
14576 # versioning mechanism, adjust this.
14577 if test -x /usr/bin/objformat; then
14578 objformat=`/usr/bin/objformat`
14581 freebsd[123]*) objformat=aout ;;
14582 *) objformat=elf ;;
14585 version_type=freebsd-$objformat
14586 case $version_type in
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14597 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes
14602 freebsd3.[01]* | freebsdelf3.[01]*)
14603 shlibpath_overrides_runpath=yes
14604 hardcode_into_libs=yes
14606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14608 shlibpath_overrides_runpath=no
14609 hardcode_into_libs=yes
14611 freebsd*) # from 4.6 on
14612 shlibpath_overrides_runpath=yes
14613 hardcode_into_libs=yes
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 shlibpath_var=LD_LIBRARY_PATH
14625 hardcode_into_libs=yes
14628 hpux9* | hpux10* | hpux11*)
14629 # Give a soname corresponding to the major version so that dld.sl refuses to
14630 # link against other versions.
14637 hardcode_into_libs=yes
14638 dynamic_linker="$host_os dld.so"
14639 shlibpath_var=LD_LIBRARY_PATH
14640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 if test "X$HPUX_IA64_MODE" = X32; then
14644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14652 hardcode_into_libs=yes
14653 dynamic_linker="$host_os dld.sl"
14654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14663 dynamic_linker="$host_os dld.sl"
14664 shlibpath_var=SHLIB_PATH
14665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14670 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14671 postinstall_cmds='chmod 555 $lib'
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=no
14683 hardcode_into_libs=yes
14686 irix5* | irix6* | nonstopux*)
14688 nonstopux*) version_type=nonstopux ;;
14690 if test "$lt_cv_prog_gnu_ld" = yes; then
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14701 irix5* | nonstopux*)
14702 libsuff= shlibsuff=
14705 case $LD in # libtool.m4 will add one of these switches to LD
14706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14707 libsuff= shlibsuff= libmagic=32-bit;;
14708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14709 libsuff=32 shlibsuff=N32 libmagic=N32;;
14710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14712 *) libsuff= shlibsuff= libmagic=never-match;;
14716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14720 hardcode_into_libs=yes
14723 # No shared lib support for Linux oldld, aout, or coff.
14724 linux*oldld* | linux*aout* | linux*coff*)
14728 # This must be Linux ELF.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=no
14738 # This implies no fast_install, which is unacceptable.
14739 # Some rework will be needed to allow for fast_install
14740 # before this can be enabled.
14741 hardcode_into_libs=yes
14743 # Append ld.so.conf contents to the search path
14744 if test -f /etc/ld.so.conf; then
14745 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' ' '`
14746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14749 # We used to test for /lib/ld.so.1 and disable shared libraries on
14750 # powerpc, because MkLinux only supported shared libraries with the
14751 # GNU dynamic linker. Since this was broken with cross compilers,
14752 # most powerpc-linux boxes support dynamic linking these days and
14753 # people can always --disable-shared, the test was removed, and we
14754 # assume the GNU/Linux dynamic linker is in use.
14755 dynamic_linker='GNU/Linux ld.so'
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=no
14766 hardcode_into_libs=yes
14767 dynamic_linker='GNU ld.so'
14774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777 dynamic_linker='NetBSD (a.out) ld.so'
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 dynamic_linker='NetBSD ld.elf_so'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14785 hardcode_into_libs=yes
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=yes
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=yes
14807 sys_lib_dlsearch_path_spec="/usr/lib"
14809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14812 *) need_version=no ;;
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14819 openbsd2.[89] | openbsd2.[89].*)
14820 shlibpath_overrides_runpath=no
14823 shlibpath_overrides_runpath=yes
14827 shlibpath_overrides_runpath=yes
14832 libname_spec='$name'
14835 library_names_spec='$libname${shared_ext} $libname.a'
14836 dynamic_linker='OS/2 ld.exe'
14837 shlibpath_var=LIBPATH
14840 osf3* | osf4* | osf5*)
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 hardcode_into_libs=yes
14860 # ldd complains unless libraries are executable
14861 postinstall_cmds='chmod +x $lib'
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 if test "$with_gnu_ld" = yes; then
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879 soname_spec='${libname}${release}${shared_ext}$major'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 case $host_vendor in
14883 shlibpath_overrides_runpath=no
14885 export_dynamic_flag_spec='${wl}-Blargedynsym'
14886 runpath_var=LD_RUN_PATH
14894 shlibpath_overrides_runpath=no
14895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14901 if test -d /usr/nec ;then
14903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14904 soname_spec='$libname${shared_ext}.$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14910 version_type=freebsd-elf
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 hardcode_into_libs=yes
14917 if test "$with_gnu_ld" = yes; then
14918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14919 shlibpath_overrides_runpath=no
14921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14922 shlibpath_overrides_runpath=yes
14925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14929 sys_lib_dlsearch_path_spec='/usr/lib'
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14943 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14944 echo "${ECHO_T}$dynamic_linker" >&6
14945 test "$dynamic_linker" = no && can_build_shared=no
14947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948 if test "$GCC" = yes; then
14949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14952 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14953 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14954 hardcode_action_F77=
14955 if test -n "$hardcode_libdir_flag_spec_F77" || \
14956 test -n "$runpath_var_F77" || \
14957 test "X$hardcode_automatic_F77" = "Xyes" ; then
14959 # We can hardcode non-existant directories.
14960 if test "$hardcode_direct_F77" != no &&
14961 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14962 # have to relink, otherwise we might link with an installed library
14963 # when we should be linking with a yet-to-be-installed one
14964 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14965 test "$hardcode_minus_L_F77" != no; then
14966 # Linking always hardcodes the temporary library directory.
14967 hardcode_action_F77=relink
14969 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14970 hardcode_action_F77=immediate
14973 # We cannot hardcode anything, or else we can only hardcode existing
14975 hardcode_action_F77=unsupported
14977 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14978 echo "${ECHO_T}$hardcode_action_F77" >&6
14980 if test "$hardcode_action_F77" = relink; then
14981 # Fast installation is not supported
14982 enable_fast_install=no
14983 elif test "$shlibpath_overrides_runpath" = yes ||
14984 test "$enable_shared" = no; then
14985 # Fast installation is not necessary
14986 enable_fast_install=needless
14990 # The else clause should only fire when bootstrapping the
14991 # libtool distribution, otherwise you forgot to ship ltmain.sh
14992 # with your package, and you will get complaints that there are
14993 # no rules to generate ltmain.sh.
14994 if test -f "$ltmain"; then
14995 # See if we are running on zsh, and set the options which allow our commands through
14996 # without removal of \ escapes.
14997 if test -n "${ZSH_VERSION+set}" ; then
14998 setopt NO_GLOB_SUBST
15000 # Now quote all the things that may contain metacharacters while being
15001 # careful not to overquote the AC_SUBSTed values. We take copies of the
15002 # variables and quote the copies for generation of the libtool script.
15003 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15005 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15006 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15007 deplibs_check_method reload_flag reload_cmds need_locks \
15008 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15009 lt_cv_sys_global_symbol_to_c_name_address \
15010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15011 old_postinstall_cmds old_postuninstall_cmds \
15015 lt_prog_compiler_wl_F77 \
15016 lt_prog_compiler_pic_F77 \
15017 lt_prog_compiler_static_F77 \
15018 lt_prog_compiler_no_builtin_flag_F77 \
15019 export_dynamic_flag_spec_F77 \
15020 thread_safe_flag_spec_F77 \
15021 whole_archive_flag_spec_F77 \
15022 enable_shared_with_static_runtimes_F77 \
15023 old_archive_cmds_F77 \
15024 old_archive_from_new_cmds_F77 \
15025 predep_objects_F77 \
15026 postdep_objects_F77 \
15029 compiler_lib_search_path_F77 \
15031 archive_expsym_cmds_F77 \
15032 postinstall_cmds_F77 \
15033 postuninstall_cmds_F77 \
15034 old_archive_from_expsyms_cmds_F77 \
15035 allow_undefined_flag_F77 \
15036 no_undefined_flag_F77 \
15037 export_symbols_cmds_F77 \
15038 hardcode_libdir_flag_spec_F77 \
15039 hardcode_libdir_flag_spec_ld_F77 \
15040 hardcode_libdir_separator_F77 \
15041 hardcode_automatic_F77 \
15043 module_expsym_cmds_F77 \
15044 lt_cv_prog_compiler_c_o_F77 \
15045 exclude_expsyms_F77 \
15046 include_expsyms_F77; do
15049 old_archive_cmds_F77 | \
15050 old_archive_from_new_cmds_F77 | \
15051 archive_cmds_F77 | \
15052 archive_expsym_cmds_F77 | \
15053 module_cmds_F77 | \
15054 module_expsym_cmds_F77 | \
15055 old_archive_from_expsyms_cmds_F77 | \
15056 export_symbols_cmds_F77 | \
15057 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15058 postinstall_cmds | postuninstall_cmds | \
15059 old_postinstall_cmds | old_postuninstall_cmds | \
15060 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15061 # Double-quote double-evaled strings.
15062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15071 *'\$0 --fallback-echo"')
15072 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15078 cat <<__EOF__ >> "$cfgfile"
15079 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15081 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15083 # Shell to use when invoking shell scripts.
15086 # Whether or not to build shared libraries.
15087 build_libtool_libs=$enable_shared
15089 # Whether or not to build static libraries.
15090 build_old_libs=$enable_static
15092 # Whether or not to add -lc for building shared libraries.
15093 build_libtool_need_lc=$archive_cmds_need_lc_F77
15095 # Whether or not to disallow shared libs when runtime libs are static
15096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15098 # Whether or not to optimize for fast installation.
15099 fast_install=$enable_fast_install
15102 host_alias=$host_alias
15106 # The build system.
15107 build_alias=$build_alias
15111 # An echo program that does not interpret backslashes.
15116 AR_FLAGS=$lt_AR_FLAGS
15121 # LTCC compiler flags.
15122 LTCFLAGS=$lt_LTCFLAGS
15124 # A language-specific compiler.
15125 CC=$lt_compiler_F77
15127 # Is the compiler the GNU C compiler?
15133 # The linker used to build libraries.
15136 # Whether we need hard or soft links.
15139 # A BSD-compatible nm program.
15142 # A symbol stripping program
15145 # Used to examine libraries when file_magic_cmd begins "file"
15146 MAGIC_CMD=$MAGIC_CMD
15148 # Used on cygwin: DLL creation program.
15151 # Used on cygwin: object dumper.
15154 # Used on cygwin: assembler.
15157 # The name of the directory that contains temporary libtool files.
15160 # How to create reloadable object files.
15161 reload_flag=$lt_reload_flag
15162 reload_cmds=$lt_reload_cmds
15164 # How to pass a linker flag through the compiler.
15165 wl=$lt_lt_prog_compiler_wl_F77
15167 # Object file suffix (normally "o").
15168 objext="$ac_objext"
15170 # Old archive suffix (normally "a").
15173 # Shared library suffix (normally ".so").
15174 shrext_cmds='$shrext_cmds'
15176 # Executable file suffix (normally "").
15179 # Additional compiler flags for building library objects.
15180 pic_flag=$lt_lt_prog_compiler_pic_F77
15183 # What is the maximum length of a command?
15184 max_cmd_len=$lt_cv_sys_max_cmd_len
15186 # Does compiler simultaneously support -c and -o options?
15187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15189 # Must we lock files when doing compilation?
15190 need_locks=$lt_need_locks
15192 # Do we need the lib prefix for modules?
15193 need_lib_prefix=$need_lib_prefix
15195 # Do we need a version for libraries?
15196 need_version=$need_version
15198 # Whether dlopen is supported.
15199 dlopen_support=$enable_dlopen
15201 # Whether dlopen of programs is supported.
15202 dlopen_self=$enable_dlopen_self
15204 # Whether dlopen of statically linked programs is supported.
15205 dlopen_self_static=$enable_dlopen_self_static
15207 # Compiler flag to prevent dynamic linking.
15208 link_static_flag=$lt_lt_prog_compiler_static_F77
15210 # Compiler flag to turn off builtin functions.
15211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15213 # Compiler flag to allow reflexive dlopens.
15214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15216 # Compiler flag to generate shared objects directly from archives.
15217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15219 # Compiler flag to generate thread-safe objects.
15220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15222 # Library versioning type.
15223 version_type=$version_type
15225 # Format of library name prefix.
15226 libname_spec=$lt_libname_spec
15228 # List of archive names. First name is the real one, the rest are links.
15229 # The last name is the one that the linker finds with -lNAME.
15230 library_names_spec=$lt_library_names_spec
15232 # The coded name of the library, if different from the real name.
15233 soname_spec=$lt_soname_spec
15235 # Commands used to build and install an old-style archive.
15237 old_archive_cmds=$lt_old_archive_cmds_F77
15238 old_postinstall_cmds=$lt_old_postinstall_cmds
15239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15241 # Create an old-style archive from a shared archive.
15242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15244 # Create a temporary old-style archive to link instead of a shared archive.
15245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15247 # Commands used to build and install a shared archive.
15248 archive_cmds=$lt_archive_cmds_F77
15249 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15250 postinstall_cmds=$lt_postinstall_cmds
15251 postuninstall_cmds=$lt_postuninstall_cmds
15253 # Commands used to build a loadable module (assumed same as above if empty)
15254 module_cmds=$lt_module_cmds_F77
15255 module_expsym_cmds=$lt_module_expsym_cmds_F77
15257 # Commands to strip libraries.
15258 old_striplib=$lt_old_striplib
15259 striplib=$lt_striplib
15261 # Dependencies to place before the objects being linked to create a
15263 predep_objects=$lt_predep_objects_F77
15265 # Dependencies to place after the objects being linked to create a
15267 postdep_objects=$lt_postdep_objects_F77
15269 # Dependencies to place before the objects being linked to create a
15271 predeps=$lt_predeps_F77
15273 # Dependencies to place after the objects being linked to create a
15275 postdeps=$lt_postdeps_F77
15277 # The library search path used internally by the compiler when linking
15278 # a shared library.
15279 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15281 # Method to check whether dependent libraries are shared objects.
15282 deplibs_check_method=$lt_deplibs_check_method
15284 # Command to use when deplibs_check_method == file_magic.
15285 file_magic_cmd=$lt_file_magic_cmd
15287 # Flag that allows shared libraries with undefined symbols to be built.
15288 allow_undefined_flag=$lt_allow_undefined_flag_F77
15290 # Flag that forces no undefined symbols.
15291 no_undefined_flag=$lt_no_undefined_flag_F77
15293 # Commands used to finish a libtool library installation in a directory.
15294 finish_cmds=$lt_finish_cmds
15296 # Same as above, but a single script fragment to be evaled but not shown.
15297 finish_eval=$lt_finish_eval
15299 # Take the output of nm and produce a listing of raw symbols and C names.
15300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15302 # Transform the output of nm in a proper C declaration
15303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15305 # Transform the output of nm in a C name address pair
15306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15308 # This is the shared library runtime path variable.
15309 runpath_var=$runpath_var
15311 # This is the shared library path variable.
15312 shlibpath_var=$shlibpath_var
15314 # Is shlibpath searched before the hard-coded library search path?
15315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15317 # How to hardcode a shared library path into an executable.
15318 hardcode_action=$hardcode_action_F77
15320 # Whether we should hardcode library paths into libraries.
15321 hardcode_into_libs=$hardcode_into_libs
15323 # Flag to hardcode \$libdir into a binary during linking.
15324 # This must work even if \$libdir does not exist.
15325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15327 # If ld is used when linking, flag to hardcode \$libdir into
15328 # a binary during linking. This must work even if \$libdir does
15330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15332 # Whether we need a single -rpath flag with a separated argument.
15333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15336 # resulting binary.
15337 hardcode_direct=$hardcode_direct_F77
15339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15340 # resulting binary.
15341 hardcode_minus_L=$hardcode_minus_L_F77
15343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15344 # the resulting binary.
15345 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15347 # Set to yes if building a shared library automatically hardcodes DIR into the library
15348 # and all subsequent libraries and executables linked against it.
15349 hardcode_automatic=$hardcode_automatic_F77
15351 # Variables whose values should be saved in libtool wrapper scripts and
15352 # restored at relink time.
15353 variables_saved_for_relink="$variables_saved_for_relink"
15355 # Whether libtool must link a program against all its dependency libraries.
15356 link_all_deplibs=$link_all_deplibs_F77
15358 # Compile-time system search path for libraries
15359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15361 # Run-time system search path for libraries
15362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15364 # Fix the shell variable \$srcfile for the compiler.
15365 fix_srcfile_path="$fix_srcfile_path_F77"
15367 # Set to yes if exported symbols are required.
15368 always_export_symbols=$always_export_symbols_F77
15370 # The commands to list exported symbols.
15371 export_symbols_cmds=$lt_export_symbols_cmds_F77
15373 # The commands to extract the exported symbol list from a shared archive.
15374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15376 # Symbols that should not be listed in the preloaded symbols.
15377 exclude_expsyms=$lt_exclude_expsyms_F77
15379 # Symbols that must always be exported.
15380 include_expsyms=$lt_include_expsyms_F77
15382 # ### END LIBTOOL TAG CONFIG: $tagname
15388 # If there is no Makefile yet, we rely on a make rule to execute
15389 # `config.status --recheck' to rerun these tests and create the
15390 # libtool script then.
15391 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15392 if test -f "$ltmain_in"; then
15393 test -f Makefile && make "$ltmain"
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15412 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15416 # Source file extension for Java test sources.
15419 # Object file extension for compiled Java test sources.
15423 # Code to be used in simple compile tests
15424 lt_simple_compile_test_code="class foo {}\n"
15426 # Code to be used in simple link tests
15427 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15431 # If no C compiler was specified, use CC.
15434 # If no C compiler flags were specified, use CFLAGS.
15435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15437 # Allow CC to be a program name with arguments.
15441 # save warnings/boilerplate of simple test code
15442 ac_outfile=conftest.$ac_objext
15443 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15445 _lt_compiler_boilerplate=`cat conftest.err`
15448 ac_outfile=conftest.$ac_objext
15449 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15451 _lt_linker_boilerplate=`cat conftest.err`
15455 # Allow CC to be a program name with arguments.
15460 for cc_temp in $compiler""; do
15462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15471 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15472 archive_cmds_need_lc_GCJ=no
15474 old_archive_cmds_GCJ=$old_archive_cmds
15477 ## There is no encapsulation within the following macros, do not change
15478 ## the running order or otherwise move them around unless you know exactly
15479 ## what you are doing...
15481 lt_prog_compiler_no_builtin_flag_GCJ=
15483 if test "$GCC" = yes; then
15484 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15487 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15488 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 lt_cv_prog_compiler_rtti_exceptions=no
15493 ac_outfile=conftest.$ac_objext
15494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="-fno-rtti -fno-exceptions"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15508 cat conftest.err >&5
15509 echo "$as_me:__oline__: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings other than the usual output.
15513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15516 lt_cv_prog_compiler_rtti_exceptions=yes
15522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15523 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15526 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15533 lt_prog_compiler_wl_GCJ=
15534 lt_prog_compiler_pic_GCJ=
15535 lt_prog_compiler_static_GCJ=
15537 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15540 if test "$GCC" = yes; then
15541 lt_prog_compiler_wl_GCJ='-Wl,'
15542 lt_prog_compiler_static_GCJ='-static'
15546 # All AIX code is PIC.
15547 if test "$host_cpu" = ia64; then
15548 # AIX 5 now supports IA64 processor
15549 lt_prog_compiler_static_GCJ='-Bstatic'
15554 # FIXME: we need at least 68020 code to build shared libraries, but
15555 # adding the `-m68020' flag to GCC prevents building anything better,
15557 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15560 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15561 # PIC is the default for these OSes.
15564 mingw* | pw32* | os2*)
15565 # This hack is so that the source file can tell whether it is being
15566 # built for inclusion in a dll (and should export symbols for example).
15567 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15570 darwin* | rhapsody*)
15571 # PIC is the default on this platform
15572 # Common symbols not allowed in MH_DYLIB files
15573 lt_prog_compiler_pic_GCJ='-fno-common'
15577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15578 # Instead, we relocate shared libraries at runtime.
15582 # Just because we use GCC doesn't mean we suddenly get shared libraries
15583 # on systems that don't support them.
15584 lt_prog_compiler_can_build_shared_GCJ=no
15589 if test -d /usr/nec; then
15590 lt_prog_compiler_pic_GCJ=-Kconform_pic
15595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15596 # not for PA HP-UX.
15602 lt_prog_compiler_pic_GCJ='-fPIC'
15608 lt_prog_compiler_pic_GCJ='-fPIC'
15612 # PORTME Check for flag to pass linker flags through the system compiler.
15615 lt_prog_compiler_wl_GCJ='-Wl,'
15616 if test "$host_cpu" = ia64; then
15617 # AIX 5 now supports IA64 processor
15618 lt_prog_compiler_static_GCJ='-Bstatic'
15620 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15624 # PIC is the default on this platform
15625 # Common symbols not allowed in MH_DYLIB files
15626 case $cc_basename in
15628 lt_prog_compiler_pic_GCJ='-qnocommon'
15629 lt_prog_compiler_wl_GCJ='-Wl,'
15634 mingw* | pw32* | os2*)
15635 # This hack is so that the source file can tell whether it is being
15636 # built for inclusion in a dll (and should export symbols for example).
15637 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15640 hpux9* | hpux10* | hpux11*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15643 # not for PA HP-UX.
15649 lt_prog_compiler_pic_GCJ='+Z'
15652 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15653 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15656 irix5* | irix6* | nonstopux*)
15657 lt_prog_compiler_wl_GCJ='-Wl,'
15658 # PIC (with -KPIC) is the default.
15659 lt_prog_compiler_static_GCJ='-non_shared'
15663 lt_prog_compiler_pic_GCJ='-KPIC'
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15668 case $cc_basename in
15670 lt_prog_compiler_wl_GCJ='-Wl,'
15671 lt_prog_compiler_pic_GCJ='-KPIC'
15672 lt_prog_compiler_static_GCJ='-static'
15674 pgcc* | pgf77* | pgf90* | pgf95*)
15675 # Portland Group compilers (*not* the Pentium gcc compiler,
15676 # which looks to be a dead project)
15677 lt_prog_compiler_wl_GCJ='-Wl,'
15678 lt_prog_compiler_pic_GCJ='-fpic'
15679 lt_prog_compiler_static_GCJ='-Bstatic'
15682 lt_prog_compiler_wl_GCJ='-Wl,'
15683 # All Alpha code is PIC.
15684 lt_prog_compiler_static_GCJ='-non_shared'
15689 osf3* | osf4* | osf5*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 # All OSF/1 code is PIC.
15692 lt_prog_compiler_static_GCJ='-non_shared'
15696 lt_prog_compiler_pic_GCJ='-KPIC'
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15698 case $cc_basename in
15699 f77* | f90* | f95*)
15700 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15702 lt_prog_compiler_wl_GCJ='-Wl,';;
15707 lt_prog_compiler_wl_GCJ='-Qoption ld '
15708 lt_prog_compiler_pic_GCJ='-PIC'
15709 lt_prog_compiler_static_GCJ='-Bstatic'
15712 sysv4 | sysv4.2uw2* | sysv4.3*)
15713 lt_prog_compiler_wl_GCJ='-Wl,'
15714 lt_prog_compiler_pic_GCJ='-KPIC'
15715 lt_prog_compiler_static_GCJ='-Bstatic'
15719 if test -d /usr/nec ;then
15720 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15726 lt_prog_compiler_wl_GCJ='-Wl,'
15727 lt_prog_compiler_pic_GCJ='-KPIC'
15728 lt_prog_compiler_static_GCJ='-Bstatic'
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 lt_prog_compiler_can_build_shared_GCJ=no
15737 lt_prog_compiler_pic_GCJ='-pic'
15738 lt_prog_compiler_static_GCJ='-Bstatic'
15742 lt_prog_compiler_can_build_shared_GCJ=no
15747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15748 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15751 # Check to make sure the PIC flag actually works.
15753 if test -n "$lt_prog_compiler_pic_GCJ"; then
15755 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15757 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 lt_prog_compiler_pic_works_GCJ=no
15761 ac_outfile=conftest.$ac_objext
15762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15763 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15764 # Insert the option either (1) after the last *FLAGS variable, or
15765 # (2) before a word containing "conftest.", or (3) at the end.
15766 # Note that $ac_compile itself does not contain backslashes and begins
15767 # with a dollar sign (not a hyphen), so the echo should work correctly.
15768 # The option is referenced via a variable to avoid confusing sed.
15769 lt_compile=`echo "$ac_compile" | $SED \
15770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772 -e 's:$: $lt_compiler_flag:'`
15773 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15774 (eval "$lt_compile" 2>conftest.err)
15776 cat conftest.err >&5
15777 echo "$as_me:__oline__: \$? = $ac_status" >&5
15778 if (exit $ac_status) && test -s "$ac_outfile"; then
15779 # The compiler can only warn and ignore the option if not recognized
15780 # So say no if there are warnings other than the usual output.
15781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15784 lt_prog_compiler_pic_works_GCJ=yes
15790 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15791 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15793 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15794 case $lt_prog_compiler_pic_GCJ in
15796 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15799 lt_prog_compiler_pic_GCJ=
15800 lt_prog_compiler_can_build_shared_GCJ=no
15805 # For platforms which do not support PIC, -DPIC is meaningless:
15807 lt_prog_compiler_pic_GCJ=
15810 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15815 # Check to make sure the static flag actually works.
15817 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15818 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15819 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15820 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 lt_prog_compiler_static_works_GCJ=no
15824 save_LDFLAGS="$LDFLAGS"
15825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15826 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828 # The linker can only warn and ignore the option if not recognized
15829 # So say no if there are warnings
15830 if test -s conftest.err; then
15831 # Append any errors to the config.log.
15832 cat conftest.err 1>&5
15833 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835 if diff conftest.exp conftest.er2 >/dev/null; then
15836 lt_prog_compiler_static_works_GCJ=yes
15839 lt_prog_compiler_static_works_GCJ=yes
15843 LDFLAGS="$save_LDFLAGS"
15846 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15847 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15849 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15852 lt_prog_compiler_static_GCJ=
15856 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15858 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 lt_cv_prog_compiler_c_o_GCJ=no
15862 $rm -r conftest 2>/dev/null
15866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15868 lt_compiler_flag="-o out/conftest2.$ac_objext"
15869 # Insert the option either (1) after the last *FLAGS variable, or
15870 # (2) before a word containing "conftest.", or (3) at the end.
15871 # Note that $ac_compile itself does not contain backslashes and begins
15872 # with a dollar sign (not a hyphen), so the echo should work correctly.
15873 lt_compile=`echo "$ac_compile" | $SED \
15874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876 -e 's:$: $lt_compiler_flag:'`
15877 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15878 (eval "$lt_compile" 2>out/conftest.err)
15880 cat out/conftest.err >&5
15881 echo "$as_me:__oline__: \$? = $ac_status" >&5
15882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15884 # The compiler can only warn and ignore the option if not recognized
15885 # So say no if there are warnings
15886 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15889 lt_cv_prog_compiler_c_o_GCJ=yes
15894 # SGI C++ compiler will create directory out/ii_files/ for
15895 # template instantiation
15896 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15897 $rm out/* && rmdir out
15903 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15907 hard_links="nottested"
15908 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15909 # do not overwrite the value of need_locks provided by the user
15910 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15916 ln conftest.a conftest.b 2>&5 || hard_links=no
15917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15918 echo "$as_me:$LINENO: result: $hard_links" >&5
15919 echo "${ECHO_T}$hard_links" >&6
15920 if test "$hard_links" = no; then
15921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15929 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15933 allow_undefined_flag_GCJ=
15934 enable_shared_with_static_runtimes_GCJ=no
15936 archive_expsym_cmds_GCJ=
15937 old_archive_From_new_cmds_GCJ=
15938 old_archive_from_expsyms_cmds_GCJ=
15939 export_dynamic_flag_spec_GCJ=
15940 whole_archive_flag_spec_GCJ=
15941 thread_safe_flag_spec_GCJ=
15942 hardcode_libdir_flag_spec_GCJ=
15943 hardcode_libdir_flag_spec_ld_GCJ=
15944 hardcode_libdir_separator_GCJ=
15945 hardcode_direct_GCJ=no
15946 hardcode_minus_L_GCJ=no
15947 hardcode_shlibpath_var_GCJ=unsupported
15948 link_all_deplibs_GCJ=unknown
15949 hardcode_automatic_GCJ=no
15951 module_expsym_cmds_GCJ=
15952 always_export_symbols_GCJ=no
15953 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15954 # include_expsyms should be a list of space-separated symbols to be *always*
15955 # included in the symbol list
15956 include_expsyms_GCJ=
15957 # exclude_expsyms can be an extended regexp of symbols to exclude
15958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15960 # as well as any symbol that contains `d'.
15961 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15963 # platforms (ab)use it in PIC code, but their linkers get confused if
15964 # the symbol is explicitly referenced. Since portable code cannot
15965 # rely on this symbol name, it's probably fine to never include it in
15966 # preloaded symbol tables.
15967 extract_expsyms_cmds=
15968 # Just being paranoid about ensuring that cc_basename is set.
15969 for cc_temp in $compiler""; do
15971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15977 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15980 cygwin* | mingw* | pw32*)
15981 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15982 # When not using gcc, we currently assume that we are using
15983 # Microsoft Visual C++.
15984 if test "$GCC" != yes; then
15989 # we just hope/assume this is gcc and not c89 (= MSVC++)
15998 if test "$with_gnu_ld" = yes; then
15999 # If archive_cmds runs LD, not CC, wlarc should be empty
16002 # Set some defaults for GNU ld with shared library support. These
16003 # are reset later if shared libraries are not supported. Putting them
16004 # here allows them to be overridden if necessary.
16005 runpath_var=LD_RUN_PATH
16006 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16007 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16008 # ancient GNU ld didn't support --whole-archive et. al.
16009 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16010 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16012 whole_archive_flag_spec_GCJ=
16014 supports_anon_versioning=no
16015 case `$LD -v 2>/dev/null` in
16016 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16017 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16018 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16019 *\ 2.11.*) ;; # other 2.11 versions
16020 *) supports_anon_versioning=yes ;;
16023 # See if GNU ld supports shared libraries.
16025 aix3* | aix4* | aix5*)
16026 # On AIX/PPC, the GNU linker is very broken
16027 if test "$host_cpu" != ia64; then
16031 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16032 *** to be unable to reliably create shared libraries on AIX.
16033 *** Therefore, libtool is disabling shared libraries support. If you
16034 *** really care for shared libraries, you may want to modify your PATH
16035 *** so that a non-GNU linker is found, and then restart.
16042 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)'
16043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16044 hardcode_minus_L_GCJ=yes
16046 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16047 # that the semantics of dynamic libraries on AmigaOS, at least up
16048 # to version 4, is to share data among multiple programs linked
16049 # with the same dynamic library. Since this doesn't match the
16050 # behavior of shared libraries on other platforms, we can't use
16056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057 allow_undefined_flag_GCJ=unsupported
16058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16059 # support --undefined. This deserves some investigation. FIXME
16060 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 cygwin* | mingw* | pw32*)
16067 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16068 # as there is no search path for DLLs.
16069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16070 allow_undefined_flag_GCJ=unsupported
16071 always_export_symbols_GCJ=no
16072 enable_shared_with_static_runtimes_GCJ=yes
16073 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16075 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16077 # If the export-symbols file already is a .def file (1st line
16078 # is EXPORTS), use it as is; otherwise, prepend...
16079 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16080 cp $export_symbols $output_objdir/$soname.def;
16082 echo EXPORTS > $output_objdir/$soname.def;
16083 cat $export_symbols >> $output_objdir/$soname.def;
16085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16092 hardcode_direct_GCJ=no
16093 hardcode_shlibpath_var_GCJ=no
16094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16095 export_dynamic_flag_spec_GCJ='${wl}-E'
16096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16097 # Instead, shared libraries are loaded at an image base (0x10000000 by
16098 # default) and relocated if they conflict, which is a slow very memory
16099 # consuming and fragmenting process. To avoid this, we pick a random,
16100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16102 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'
16103 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'
16107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 case $cc_basename,$host_cpu in
16110 pgcc*) # Portland Group C compiler
16111 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'
16112 tmp_addflag=' $pic_flag'
16114 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16115 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'
16116 tmp_addflag=' $pic_flag -Mnomain' ;;
16117 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16118 tmp_addflag=' -i_dynamic' ;;
16119 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16120 tmp_addflag=' -i_dynamic -nofor_main' ;;
16121 ifc* | ifort*) # Intel Fortran compiler
16122 tmp_addflag=' -nofor_main' ;;
16124 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16126 if test $supports_anon_versioning = yes; then
16127 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16129 $echo "local: *; };" >> $output_objdir/$libname.ver~
16130 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16139 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16153 *** create shared libraries on Solaris systems. Therefore, libtool
16154 *** is disabling shared libraries support. We urge you to upgrade GNU
16155 *** binutils to release 2.9.1 or newer. Another option is to modify
16156 *** your PATH or compiler configuration so that the native linker is
16157 *** used, and then restart.
16160 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16169 case `$LD -v 2>&1` in
16170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16175 *** reliably create shared libraries on SCO systems. Therefore, libtool
16176 *** is disabling shared libraries support. We urge you to upgrade GNU
16177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16178 *** your PATH or compiler configuration so that the native linker is
16179 *** used, and then restart.
16184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16185 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16196 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16198 hardcode_direct_GCJ=yes
16199 hardcode_shlibpath_var_GCJ=no
16203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16212 if test "$ld_shlibs_GCJ" = no; then
16214 hardcode_libdir_flag_spec_GCJ=
16215 export_dynamic_flag_spec_GCJ=
16216 whole_archive_flag_spec_GCJ=
16219 # PORTME fill in a description of your system's linker (not GNU ld)
16222 allow_undefined_flag_GCJ=unsupported
16223 always_export_symbols_GCJ=yes
16224 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'
16225 # Note: this linker hardcodes the directories in LIBPATH if there
16226 # are no directories specified by -L.
16227 hardcode_minus_L_GCJ=yes
16228 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16229 # Neither direct hardcoding nor static linking is supported with a
16231 hardcode_direct_GCJ=unsupported
16236 if test "$host_cpu" = ia64; then
16237 # On IA64, the linker does run time linking by default, so we don't
16238 # have to do anything special.
16239 aix_use_runtimelinking=no
16240 exp_sym_flag='-Bexport'
16243 # If we're using GNU nm, then we don't want the "-C" option.
16244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16245 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16246 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'
16248 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'
16250 aix_use_runtimelinking=no
16252 # Test if we are trying to use run time linking or normal
16253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254 # need to do runtime linking.
16255 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16256 for ld_flag in $LDFLAGS; do
16257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16258 aix_use_runtimelinking=yes
16265 exp_sym_flag='-bexport'
16266 no_entry_flag='-bnoentry'
16269 # When large executables or shared objects are built, AIX ld can
16270 # have problems creating the table of contents. If linking a library
16271 # or program results in "error TOC overflow" add -mminimal-toc to
16272 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16273 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16275 archive_cmds_GCJ=''
16276 hardcode_direct_GCJ=yes
16277 hardcode_libdir_separator_GCJ=':'
16278 link_all_deplibs_GCJ=yes
16280 if test "$GCC" = yes; then
16281 case $host_os in aix4.[012]|aix4.[012].*)
16282 # We only want to do this on AIX 4.2 and lower, the check
16283 # below for broken collect2 doesn't work under 4.3+
16284 collect2name=`${CC} -print-prog-name=collect2`
16285 if test -f "$collect2name" && \
16286 strings "$collect2name" | grep resolve_lib_name >/dev/null
16288 # We have reworked collect2
16289 hardcode_direct_GCJ=yes
16291 # We have old collect2
16292 hardcode_direct_GCJ=unsupported
16293 # It fails to find uninstalled libraries when the uninstalled
16294 # path is not listed in the libpath. Setting hardcode_minus_L
16295 # to unsupported forces relinking
16296 hardcode_minus_L_GCJ=yes
16297 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298 hardcode_libdir_separator_GCJ=
16302 shared_flag='-shared'
16303 if test "$aix_use_runtimelinking" = yes; then
16304 shared_flag="$shared_flag "'${wl}-G'
16308 if test "$host_cpu" = ia64; then
16309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16310 # chokes on -Wl,-G. The following line is correct:
16313 if test "$aix_use_runtimelinking" = yes; then
16314 shared_flag='${wl}-G'
16316 shared_flag='${wl}-bM:SRE'
16321 # It seems that -bexpall does not export symbols beginning with
16322 # underscore (_), so it is better to generate a list of symbols to export.
16323 always_export_symbols_GCJ=yes
16324 if test "$aix_use_runtimelinking" = yes; then
16325 # Warning - without using the other runtime loading flags (-brtl),
16326 # -berok will link without error, but may produce a broken library.
16327 allow_undefined_flag_GCJ='-berok'
16328 # Determine the default libpath from the value encoded in an empty executable.
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346 (eval $ac_link) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest$ac_exeext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16369 # Check for a 64-bit object if we didn't find anything.
16370 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; }
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16377 rm -f conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16381 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16382 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"
16384 if test "$host_cpu" = ia64; then
16385 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16386 allow_undefined_flag_GCJ="-z nodefs"
16387 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"
16389 # Determine the default libpath from the value encoded in an empty executable.
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16405 rm -f conftest.$ac_objext conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag"
16415 || test ! -s conftest.err'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16430 # Check for a 64-bit object if we didn't find anything.
16431 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; }
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16438 rm -f conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16442 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16443 # Warning - without using the other run time loading flags,
16444 # -berok will link without error, but may produce a broken library.
16445 no_undefined_flag_GCJ=' ${wl}-bernotok'
16446 allow_undefined_flag_GCJ=' ${wl}-berok'
16447 # Exported symbols can be pulled into shared objects from archives
16448 whole_archive_flag_spec_GCJ='$convenience'
16449 archive_cmds_need_lc_GCJ=yes
16450 # This is similar to how AIX traditionally builds its shared libraries.
16451 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'
16457 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)'
16458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459 hardcode_minus_L_GCJ=yes
16460 # see comment about different semantics on the GNU ld section
16465 export_dynamic_flag_spec_GCJ=-rdynamic
16468 cygwin* | mingw* | pw32*)
16469 # When not using gcc, we currently assume that we are using
16470 # Microsoft Visual C++.
16471 # hardcode_libdir_flag_spec is actually meaningless, as there is
16472 # no search path for DLLs.
16473 hardcode_libdir_flag_spec_GCJ=' '
16474 allow_undefined_flag_GCJ=unsupported
16475 # Tell ltmain to make .lib files, not .a files.
16477 # Tell ltmain to make .dll files, not .so files.
16479 # FIXME: Setting linknames here is a bad hack.
16480 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16481 # The linker will automatically build a .lib file if we build a DLL.
16482 old_archive_From_new_cmds_GCJ='true'
16483 # FIXME: Should let the user specify the lib program.
16484 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16485 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16486 enable_shared_with_static_runtimes_GCJ=yes
16489 darwin* | rhapsody*)
16491 rhapsody* | darwin1.[012])
16492 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16495 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16496 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16498 case ${MACOSX_DEPLOYMENT_TARGET} in
16500 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16503 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16509 archive_cmds_need_lc_GCJ=no
16510 hardcode_direct_GCJ=no
16511 hardcode_automatic_GCJ=yes
16512 hardcode_shlibpath_var_GCJ=unsupported
16513 whole_archive_flag_spec_GCJ=''
16514 link_all_deplibs_GCJ=yes
16515 if test "$GCC" = yes ; then
16516 output_verbose_link_cmd='echo'
16517 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16520 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}'
16521 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}'
16523 case $cc_basename in
16525 output_verbose_link_cmd='echo'
16526 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16527 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16529 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}'
16530 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}'
16540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16542 hardcode_shlibpath_var_GCJ=no
16549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16550 # support. Future versions do this automatically, but an explicit c++rt0.o
16551 # does not break anything, and helps significantly (at the cost of a little
16554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16556 hardcode_direct_GCJ=yes
16557 hardcode_shlibpath_var_GCJ=no
16560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_direct_GCJ=yes
16564 hardcode_minus_L_GCJ=yes
16565 hardcode_shlibpath_var_GCJ=no
16568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16569 freebsd* | kfreebsd*-gnu | dragonfly*)
16570 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572 hardcode_direct_GCJ=yes
16573 hardcode_shlibpath_var_GCJ=no
16577 if test "$GCC" = yes; then
16578 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'
16580 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'
16582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16583 hardcode_libdir_separator_GCJ=:
16584 hardcode_direct_GCJ=yes
16586 # hardcode_minus_L: Not really in the search PATH,
16587 # but as the default location of the library.
16588 hardcode_minus_L_GCJ=yes
16589 export_dynamic_flag_spec_GCJ='${wl}-E'
16593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16594 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16598 if test "$with_gnu_ld" = no; then
16599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16600 hardcode_libdir_separator_GCJ=:
16602 hardcode_direct_GCJ=yes
16603 export_dynamic_flag_spec_GCJ='${wl}-E'
16605 # hardcode_minus_L: Not really in the search PATH,
16606 # but as the default location of the library.
16607 hardcode_minus_L_GCJ=yes
16612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16615 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16627 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16633 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16637 if test "$with_gnu_ld" = no; then
16638 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16639 hardcode_libdir_separator_GCJ=:
16643 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16644 hardcode_direct_GCJ=no
16645 hardcode_shlibpath_var_GCJ=no
16648 hardcode_direct_GCJ=yes
16649 export_dynamic_flag_spec_GCJ='${wl}-E'
16651 # hardcode_minus_L: Not really in the search PATH,
16652 # but as the default location of the library.
16653 hardcode_minus_L_GCJ=yes
16659 irix5* | irix6* | nonstopux*)
16660 if test "$GCC" = yes; then
16661 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'
16663 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'
16664 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16667 hardcode_libdir_separator_GCJ=:
16668 link_all_deplibs_GCJ=yes
16672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16673 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16675 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16678 hardcode_direct_GCJ=yes
16679 hardcode_shlibpath_var_GCJ=no
16683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 hardcode_direct_GCJ=yes
16685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16686 hardcode_libdir_separator_GCJ=:
16687 hardcode_shlibpath_var_GCJ=no
16691 hardcode_direct_GCJ=yes
16692 hardcode_shlibpath_var_GCJ=no
16693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16694 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16697 export_dynamic_flag_spec_GCJ='${wl}-E'
16700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16701 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16702 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16705 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714 hardcode_minus_L_GCJ=yes
16715 allow_undefined_flag_GCJ=unsupported
16716 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'
16717 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16721 if test "$GCC" = yes; then
16722 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16723 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'
16725 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16726 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'
16728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16729 hardcode_libdir_separator_GCJ=:
16732 osf4* | osf5*) # as osf3* with the addition of -msym flag
16733 if test "$GCC" = yes; then
16734 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16735 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'
16736 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16738 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16739 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'
16740 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~
16741 $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'
16743 # Both c and cxx compiler support -rpath directly
16744 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16746 hardcode_libdir_separator_GCJ=:
16750 no_undefined_flag_GCJ=' -z text'
16751 if test "$GCC" = yes; then
16753 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16755 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16758 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16760 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16762 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16763 hardcode_shlibpath_var_GCJ=no
16765 solaris2.[0-5] | solaris2.[0-5].*) ;;
16767 # The compiler driver will combine linker options so we
16768 # cannot just pass the convience library names through
16769 # without $wl, iff we do not link with $LD.
16770 # Luckily, gcc supports the same syntax we need for Sun Studio.
16771 # Supported since Solaris 2.6 (maybe 2.5.1?)
16774 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16776 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' ;;
16779 link_all_deplibs_GCJ=yes
16783 if test "x$host_vendor" = xsequent; then
16784 # Use $CC to link under sequent, because it throws in some extra .o
16785 # files that make .init and .fini sections work.
16786 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16788 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791 hardcode_direct_GCJ=yes
16792 hardcode_minus_L_GCJ=yes
16793 hardcode_shlibpath_var_GCJ=no
16797 case $host_vendor in
16799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800 hardcode_direct_GCJ=yes # is this really true???
16803 ## LD is ld it makes a PLAMLIB
16804 ## CC just makes a GrossModule.
16805 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16806 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16807 hardcode_direct_GCJ=no
16810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16811 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16814 runpath_var='LD_RUN_PATH'
16815 hardcode_shlibpath_var_GCJ=no
16819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16820 hardcode_shlibpath_var_GCJ=no
16821 export_dynamic_flag_spec_GCJ='-Bexport'
16825 if test -d /usr/nec; then
16826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16827 hardcode_shlibpath_var_GCJ=no
16828 runpath_var=LD_RUN_PATH
16829 hardcode_runpath_var=yes
16834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16835 no_undefined_flag_GCJ='${wl}-z,text'
16836 archive_cmds_need_lc_GCJ=no
16837 hardcode_shlibpath_var_GCJ=no
16838 runpath_var='LD_RUN_PATH'
16840 if test "$GCC" = yes; then
16841 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16842 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16844 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16845 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16849 sysv5* | sco3.2v5* | sco5v6*)
16850 # Note: We can NOT use -z defs as we might desire, because we do not
16851 # link with -lc, and that would cause any symbols used from libc to
16852 # always be unresolved, which means just about no library would
16853 # ever link correctly. If we're not using GNU ld we use -z text
16854 # though, which does catch some bad symbols but isn't as heavy-handed
16856 no_undefined_flag_GCJ='${wl}-z,text'
16857 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16858 archive_cmds_need_lc_GCJ=no
16859 hardcode_shlibpath_var_GCJ=no
16860 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16861 hardcode_libdir_separator_GCJ=':'
16862 link_all_deplibs_GCJ=yes
16863 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16864 runpath_var='LD_RUN_PATH'
16866 if test "$GCC" = yes; then
16867 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16868 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16870 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16871 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 hardcode_shlibpath_var_GCJ=no
16887 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16888 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16889 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16892 # Do we need to explicitly link libc?
16894 case "x$archive_cmds_need_lc_GCJ" in
16896 # Assume -lc should be added
16897 archive_cmds_need_lc_GCJ=yes
16899 if test "$enable_shared" = yes && test "$GCC" = yes; then
16900 case $archive_cmds_GCJ in
16902 # FIXME: we may have to deal with multi-command sequences.
16905 # Test whether the compiler implicitly links with -lc since on some
16906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16907 # to ld, don't add -lc before -lgcc.
16908 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16909 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16911 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914 (eval $ac_compile) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } 2>conftest.err; then
16920 libobjs=conftest.$ac_objext
16922 wl=$lt_prog_compiler_wl_GCJ
16923 pic_flag=$lt_prog_compiler_pic_GCJ
16929 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16930 allow_undefined_flag_GCJ=
16931 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16932 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }
16937 archive_cmds_need_lc_GCJ=no
16939 archive_cmds_need_lc_GCJ=yes
16941 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16943 cat conftest.err 1>&5
16946 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16947 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16954 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16955 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16956 library_names_spec=
16957 libname_spec='lib$name'
16961 postuninstall_cmds=
16965 shlibpath_overrides_runpath=unknown
16967 dynamic_linker="$host_os ld.so"
16968 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16969 if test "$GCC" = yes; then
16970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16971 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16972 # if the path contains ";" then we assume it to be the separator
16973 # otherwise default to the standard path separator (i.e. ":") - it is
16974 # assumed that no part of a normal pathname contains ";" but that should
16975 # okay in the real world where ";" in dirpaths is itself problematic.
16976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16983 need_lib_prefix=unknown
16984 hardcode_into_libs=no
16986 # when you set need_version to no, make sure it does not cause -set_version
16987 # flags to be left without arguments
16988 need_version=unknown
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16994 shlibpath_var=LIBPATH
16996 # AIX 3 has no versioning support, so we append a major version to the name.
16997 soname_spec='${libname}${release}${shared_ext}$major'
17004 hardcode_into_libs=yes
17005 if test "$host_cpu" = ia64; then
17006 # AIX 5 supports IA64
17007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17008 shlibpath_var=LD_LIBRARY_PATH
17010 # With GCC up to 2.95.x, collect2 would create an import file
17011 # for dependence libraries. The import file would start with
17012 # the line `#! .'. This would cause the generated library to
17013 # depend on `.', always an invalid library. This was fixed in
17014 # development snapshots of GCC prior to 3.0.
17016 aix4 | aix4.[01] | aix4.[01].*)
17017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17019 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17022 can_build_shared=no
17026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17027 # soname into executable. Probably we can add versioning support to
17028 # collect2, so additional links can be useful in future.
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17031 # instead of lib<name>.a to let people know that these are not
17032 # typical AIX shared libraries.
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 # We preserve .a as extension for shared libraries through AIX4.2
17036 # and later when we are not doing run time linking.
17037 library_names_spec='${libname}${release}.a $libname.a'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LIBPATH
17045 library_names_spec='$libname.ixlibrary $libname.a'
17046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17047 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'
17051 library_names_spec='${libname}${shared_ext}'
17052 dynamic_linker="$host_os ld.so"
17053 shlibpath_var=LIBRARY_PATH
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17065 # the default ld.so.conf also contains /usr/contrib/lib and
17066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17067 # libtool to hard-code these into programs
17070 cygwin* | mingw* | pw32*)
17071 version_type=windows
17076 case $GCC,$host_os in
17077 yes,cygwin* | yes,mingw* | yes,pw32*)
17078 library_names_spec='$libname.dll.a'
17079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17080 postinstall_cmds='base_file=`basename \${file}`~
17081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17082 dldir=$destdir/`dirname \$dlpath`~
17083 test -d \$dldir || mkdir -p \$dldir~
17084 $install_prog $dir/$dlname \$dldir/$dlname~
17085 chmod a+x \$dldir/$dlname'
17086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17087 dlpath=$dir/\$dldll~
17089 shlibpath_overrides_runpath=yes
17093 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17095 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17098 # MinGW DLLs use traditional 'lib' prefix
17099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17101 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17102 # It is most probably a Windows format PATH printed by
17103 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17104 # path with ; separators, and with drive letters. We can handle the
17105 # drive letters (cygwin fileutils understands them), so leave them,
17106 # especially as we might pass files found there to a mingw objdump,
17107 # which wouldn't understand a cygwinified path. Ahh.
17108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17114 # pw32 DLLs use 'pw' prefix rather than 'lib'
17115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17124 dynamic_linker='Win32 ld.exe'
17125 # FIXME: first we should search . and the directory the executable is in
17129 darwin* | rhapsody*)
17130 dynamic_linker="$host_os dyld"
17131 version_type=darwin
17134 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17135 soname_spec='${libname}${release}${major}$shared_ext'
17136 shlibpath_overrides_runpath=yes
17137 shlibpath_var=DYLD_LIBRARY_PATH
17138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17139 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17140 if test "$GCC" = yes; then
17141 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"`
17143 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17145 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17170 dynamic_linker='GNU ld.so'
17173 freebsd* | dragonfly*)
17174 # DragonFly does not have aout. When/if they implement a new
17175 # versioning mechanism, adjust this.
17176 if test -x /usr/bin/objformat; then
17177 objformat=`/usr/bin/objformat`
17180 freebsd[123]*) objformat=aout ;;
17181 *) objformat=elf ;;
17184 version_type=freebsd-$objformat
17185 case $version_type in
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17196 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17201 freebsd3.[01]* | freebsdelf3.[01]*)
17202 shlibpath_overrides_runpath=yes
17203 hardcode_into_libs=yes
17205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17207 shlibpath_overrides_runpath=no
17208 hardcode_into_libs=yes
17210 freebsd*) # from 4.6 on
17211 shlibpath_overrides_runpath=yes
17212 hardcode_into_libs=yes
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 hardcode_into_libs=yes
17227 hpux9* | hpux10* | hpux11*)
17228 # Give a soname corresponding to the major version so that dld.sl refuses to
17229 # link against other versions.
17236 hardcode_into_libs=yes
17237 dynamic_linker="$host_os dld.so"
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 if test "X$HPUX_IA64_MODE" = X32; then
17243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17251 hardcode_into_libs=yes
17252 dynamic_linker="$host_os dld.sl"
17253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17262 dynamic_linker="$host_os dld.sl"
17263 shlibpath_var=SHLIB_PATH
17264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17270 postinstall_cmds='chmod 555 $lib'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 hardcode_into_libs=yes
17285 irix5* | irix6* | nonstopux*)
17287 nonstopux*) version_type=nonstopux ;;
17289 if test "$lt_cv_prog_gnu_ld" = yes; then
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17300 irix5* | nonstopux*)
17301 libsuff= shlibsuff=
17304 case $LD in # libtool.m4 will add one of these switches to LD
17305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17306 libsuff= shlibsuff= libmagic=32-bit;;
17307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17308 libsuff=32 shlibsuff=N32 libmagic=N32;;
17309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17311 *) libsuff= shlibsuff= libmagic=never-match;;
17315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17319 hardcode_into_libs=yes
17322 # No shared lib support for Linux oldld, aout, or coff.
17323 linux*oldld* | linux*aout* | linux*coff*)
17327 # This must be Linux ELF.
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=no
17337 # This implies no fast_install, which is unacceptable.
17338 # Some rework will be needed to allow for fast_install
17339 # before this can be enabled.
17340 hardcode_into_libs=yes
17342 # Append ld.so.conf contents to the search path
17343 if test -f /etc/ld.so.conf; then
17344 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' ' '`
17345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17348 # We used to test for /lib/ld.so.1 and disable shared libraries on
17349 # powerpc, because MkLinux only supported shared libraries with the
17350 # GNU dynamic linker. Since this was broken with cross compilers,
17351 # most powerpc-linux boxes support dynamic linking these days and
17352 # people can always --disable-shared, the test was removed, and we
17353 # assume the GNU/Linux dynamic linker is in use.
17354 dynamic_linker='GNU/Linux ld.so'
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362 soname_spec='${libname}${release}${shared_ext}$major'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 shlibpath_overrides_runpath=no
17365 hardcode_into_libs=yes
17366 dynamic_linker='GNU ld.so'
17373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17376 dynamic_linker='NetBSD (a.out) ld.so'
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 dynamic_linker='NetBSD ld.elf_so'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 shlibpath_overrides_runpath=yes
17384 hardcode_into_libs=yes
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 shlibpath_overrides_runpath=yes
17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 soname_spec='${libname}${release}${shared_ext}$major'
17400 shlibpath_var=LD_LIBRARY_PATH
17401 shlibpath_overrides_runpath=yes
17406 sys_lib_dlsearch_path_spec="/usr/lib"
17408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17411 *) need_version=no ;;
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17418 openbsd2.[89] | openbsd2.[89].*)
17419 shlibpath_overrides_runpath=no
17422 shlibpath_overrides_runpath=yes
17426 shlibpath_overrides_runpath=yes
17431 libname_spec='$name'
17434 library_names_spec='$libname${shared_ext} $libname.a'
17435 dynamic_linker='OS/2 ld.exe'
17436 shlibpath_var=LIBPATH
17439 osf3* | osf4* | osf5*)
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 soname_spec='${libname}${release}${shared_ext}$major'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 shlibpath_overrides_runpath=yes
17458 hardcode_into_libs=yes
17459 # ldd complains unless libraries are executable
17460 postinstall_cmds='chmod +x $lib'
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=yes
17469 if test "$with_gnu_ld" = yes; then
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 case $host_vendor in
17482 shlibpath_overrides_runpath=no
17484 export_dynamic_flag_spec='${wl}-Blargedynsym'
17485 runpath_var=LD_RUN_PATH
17493 shlibpath_overrides_runpath=no
17494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17500 if test -d /usr/nec ;then
17502 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17503 soname_spec='$libname${shared_ext}.$major'
17504 shlibpath_var=LD_LIBRARY_PATH
17508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17509 version_type=freebsd-elf
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 hardcode_into_libs=yes
17516 if test "$with_gnu_ld" = yes; then
17517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17518 shlibpath_overrides_runpath=no
17520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17521 shlibpath_overrides_runpath=yes
17524 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17528 sys_lib_dlsearch_path_spec='/usr/lib'
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17542 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17543 echo "${ECHO_T}$dynamic_linker" >&6
17544 test "$dynamic_linker" = no && can_build_shared=no
17546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17547 if test "$GCC" = yes; then
17548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17553 hardcode_action_GCJ=
17554 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17555 test -n "$runpath_var_GCJ" || \
17556 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17558 # We can hardcode non-existant directories.
17559 if test "$hardcode_direct_GCJ" != no &&
17560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17561 # have to relink, otherwise we might link with an installed library
17562 # when we should be linking with a yet-to-be-installed one
17563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17564 test "$hardcode_minus_L_GCJ" != no; then
17565 # Linking always hardcodes the temporary library directory.
17566 hardcode_action_GCJ=relink
17568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17569 hardcode_action_GCJ=immediate
17572 # We cannot hardcode anything, or else we can only hardcode existing
17574 hardcode_action_GCJ=unsupported
17576 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17577 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17579 if test "$hardcode_action_GCJ" = relink; then
17580 # Fast installation is not supported
17581 enable_fast_install=no
17582 elif test "$shlibpath_overrides_runpath" = yes ||
17583 test "$enable_shared" = no; then
17584 # Fast installation is not necessary
17585 enable_fast_install=needless
17589 # The else clause should only fire when bootstrapping the
17590 # libtool distribution, otherwise you forgot to ship ltmain.sh
17591 # with your package, and you will get complaints that there are
17592 # no rules to generate ltmain.sh.
17593 if test -f "$ltmain"; then
17594 # See if we are running on zsh, and set the options which allow our commands through
17595 # without removal of \ escapes.
17596 if test -n "${ZSH_VERSION+set}" ; then
17597 setopt NO_GLOB_SUBST
17599 # Now quote all the things that may contain metacharacters while being
17600 # careful not to overquote the AC_SUBSTed values. We take copies of the
17601 # variables and quote the copies for generation of the libtool script.
17602 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17604 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17605 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17606 deplibs_check_method reload_flag reload_cmds need_locks \
17607 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17608 lt_cv_sys_global_symbol_to_c_name_address \
17609 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17610 old_postinstall_cmds old_postuninstall_cmds \
17614 lt_prog_compiler_wl_GCJ \
17615 lt_prog_compiler_pic_GCJ \
17616 lt_prog_compiler_static_GCJ \
17617 lt_prog_compiler_no_builtin_flag_GCJ \
17618 export_dynamic_flag_spec_GCJ \
17619 thread_safe_flag_spec_GCJ \
17620 whole_archive_flag_spec_GCJ \
17621 enable_shared_with_static_runtimes_GCJ \
17622 old_archive_cmds_GCJ \
17623 old_archive_from_new_cmds_GCJ \
17624 predep_objects_GCJ \
17625 postdep_objects_GCJ \
17628 compiler_lib_search_path_GCJ \
17630 archive_expsym_cmds_GCJ \
17631 postinstall_cmds_GCJ \
17632 postuninstall_cmds_GCJ \
17633 old_archive_from_expsyms_cmds_GCJ \
17634 allow_undefined_flag_GCJ \
17635 no_undefined_flag_GCJ \
17636 export_symbols_cmds_GCJ \
17637 hardcode_libdir_flag_spec_GCJ \
17638 hardcode_libdir_flag_spec_ld_GCJ \
17639 hardcode_libdir_separator_GCJ \
17640 hardcode_automatic_GCJ \
17642 module_expsym_cmds_GCJ \
17643 lt_cv_prog_compiler_c_o_GCJ \
17644 exclude_expsyms_GCJ \
17645 include_expsyms_GCJ; do
17648 old_archive_cmds_GCJ | \
17649 old_archive_from_new_cmds_GCJ | \
17650 archive_cmds_GCJ | \
17651 archive_expsym_cmds_GCJ | \
17652 module_cmds_GCJ | \
17653 module_expsym_cmds_GCJ | \
17654 old_archive_from_expsyms_cmds_GCJ | \
17655 export_symbols_cmds_GCJ | \
17656 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17657 postinstall_cmds | postuninstall_cmds | \
17658 old_postinstall_cmds | old_postuninstall_cmds | \
17659 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17660 # Double-quote double-evaled strings.
17661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17670 *'\$0 --fallback-echo"')
17671 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17677 cat <<__EOF__ >> "$cfgfile"
17678 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17682 # Shell to use when invoking shell scripts.
17685 # Whether or not to build shared libraries.
17686 build_libtool_libs=$enable_shared
17688 # Whether or not to build static libraries.
17689 build_old_libs=$enable_static
17691 # Whether or not to add -lc for building shared libraries.
17692 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17694 # Whether or not to disallow shared libs when runtime libs are static
17695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17697 # Whether or not to optimize for fast installation.
17698 fast_install=$enable_fast_install
17701 host_alias=$host_alias
17705 # The build system.
17706 build_alias=$build_alias
17710 # An echo program that does not interpret backslashes.
17715 AR_FLAGS=$lt_AR_FLAGS
17720 # LTCC compiler flags.
17721 LTCFLAGS=$lt_LTCFLAGS
17723 # A language-specific compiler.
17724 CC=$lt_compiler_GCJ
17726 # Is the compiler the GNU C compiler?
17732 # The linker used to build libraries.
17735 # Whether we need hard or soft links.
17738 # A BSD-compatible nm program.
17741 # A symbol stripping program
17744 # Used to examine libraries when file_magic_cmd begins "file"
17745 MAGIC_CMD=$MAGIC_CMD
17747 # Used on cygwin: DLL creation program.
17750 # Used on cygwin: object dumper.
17753 # Used on cygwin: assembler.
17756 # The name of the directory that contains temporary libtool files.
17759 # How to create reloadable object files.
17760 reload_flag=$lt_reload_flag
17761 reload_cmds=$lt_reload_cmds
17763 # How to pass a linker flag through the compiler.
17764 wl=$lt_lt_prog_compiler_wl_GCJ
17766 # Object file suffix (normally "o").
17767 objext="$ac_objext"
17769 # Old archive suffix (normally "a").
17772 # Shared library suffix (normally ".so").
17773 shrext_cmds='$shrext_cmds'
17775 # Executable file suffix (normally "").
17778 # Additional compiler flags for building library objects.
17779 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17782 # What is the maximum length of a command?
17783 max_cmd_len=$lt_cv_sys_max_cmd_len
17785 # Does compiler simultaneously support -c and -o options?
17786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17788 # Must we lock files when doing compilation?
17789 need_locks=$lt_need_locks
17791 # Do we need the lib prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17797 # Whether dlopen is supported.
17798 dlopen_support=$enable_dlopen
17800 # Whether dlopen of programs is supported.
17801 dlopen_self=$enable_dlopen_self
17803 # Whether dlopen of statically linked programs is supported.
17804 dlopen_self_static=$enable_dlopen_self_static
17806 # Compiler flag to prevent dynamic linking.
17807 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17809 # Compiler flag to turn off builtin functions.
17810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17812 # Compiler flag to allow reflexive dlopens.
17813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17815 # Compiler flag to generate shared objects directly from archives.
17816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17818 # Compiler flag to generate thread-safe objects.
17819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17821 # Library versioning type.
17822 version_type=$version_type
17824 # Format of library name prefix.
17825 libname_spec=$lt_libname_spec
17827 # List of archive names. First name is the real one, the rest are links.
17828 # The last name is the one that the linker finds with -lNAME.
17829 library_names_spec=$lt_library_names_spec
17831 # The coded name of the library, if different from the real name.
17832 soname_spec=$lt_soname_spec
17834 # Commands used to build and install an old-style archive.
17836 old_archive_cmds=$lt_old_archive_cmds_GCJ
17837 old_postinstall_cmds=$lt_old_postinstall_cmds
17838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17846 # Commands used to build and install a shared archive.
17847 archive_cmds=$lt_archive_cmds_GCJ
17848 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17849 postinstall_cmds=$lt_postinstall_cmds
17850 postuninstall_cmds=$lt_postuninstall_cmds
17852 # Commands used to build a loadable module (assumed same as above if empty)
17853 module_cmds=$lt_module_cmds_GCJ
17854 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17856 # Commands to strip libraries.
17857 old_striplib=$lt_old_striplib
17858 striplib=$lt_striplib
17860 # Dependencies to place before the objects being linked to create a
17862 predep_objects=$lt_predep_objects_GCJ
17864 # Dependencies to place after the objects being linked to create a
17866 postdep_objects=$lt_postdep_objects_GCJ
17868 # Dependencies to place before the objects being linked to create a
17870 predeps=$lt_predeps_GCJ
17872 # Dependencies to place after the objects being linked to create a
17874 postdeps=$lt_postdeps_GCJ
17876 # The library search path used internally by the compiler when linking
17877 # a shared library.
17878 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17880 # Method to check whether dependent libraries are shared objects.
17881 deplibs_check_method=$lt_deplibs_check_method
17883 # Command to use when deplibs_check_method == file_magic.
17884 file_magic_cmd=$lt_file_magic_cmd
17886 # Flag that allows shared libraries with undefined symbols to be built.
17887 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17889 # Flag that forces no undefined symbols.
17890 no_undefined_flag=$lt_no_undefined_flag_GCJ
17892 # Commands used to finish a libtool library installation in a directory.
17893 finish_cmds=$lt_finish_cmds
17895 # Same as above, but a single script fragment to be evaled but not shown.
17896 finish_eval=$lt_finish_eval
17898 # Take the output of nm and produce a listing of raw symbols and C names.
17899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17901 # Transform the output of nm in a proper C declaration
17902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17904 # Transform the output of nm in a C name address pair
17905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17907 # This is the shared library runtime path variable.
17908 runpath_var=$runpath_var
17910 # This is the shared library path variable.
17911 shlibpath_var=$shlibpath_var
17913 # Is shlibpath searched before the hard-coded library search path?
17914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17916 # How to hardcode a shared library path into an executable.
17917 hardcode_action=$hardcode_action_GCJ
17919 # Whether we should hardcode library paths into libraries.
17920 hardcode_into_libs=$hardcode_into_libs
17922 # Flag to hardcode \$libdir into a binary during linking.
17923 # This must work even if \$libdir does not exist.
17924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17926 # If ld is used when linking, flag to hardcode \$libdir into
17927 # a binary during linking. This must work even if \$libdir does
17929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17931 # Whether we need a single -rpath flag with a separated argument.
17932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17935 # resulting binary.
17936 hardcode_direct=$hardcode_direct_GCJ
17938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17939 # resulting binary.
17940 hardcode_minus_L=$hardcode_minus_L_GCJ
17942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17943 # the resulting binary.
17944 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17946 # Set to yes if building a shared library automatically hardcodes DIR into the library
17947 # and all subsequent libraries and executables linked against it.
17948 hardcode_automatic=$hardcode_automatic_GCJ
17950 # Variables whose values should be saved in libtool wrapper scripts and
17951 # restored at relink time.
17952 variables_saved_for_relink="$variables_saved_for_relink"
17954 # Whether libtool must link a program against all its dependency libraries.
17955 link_all_deplibs=$link_all_deplibs_GCJ
17957 # Compile-time system search path for libraries
17958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17960 # Run-time system search path for libraries
17961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17963 # Fix the shell variable \$srcfile for the compiler.
17964 fix_srcfile_path="$fix_srcfile_path_GCJ"
17966 # Set to yes if exported symbols are required.
17967 always_export_symbols=$always_export_symbols_GCJ
17969 # The commands to list exported symbols.
17970 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17972 # The commands to extract the exported symbol list from a shared archive.
17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17975 # Symbols that should not be listed in the preloaded symbols.
17976 exclude_expsyms=$lt_exclude_expsyms_GCJ
17978 # Symbols that must always be exported.
17979 include_expsyms=$lt_include_expsyms_GCJ
17981 # ### END LIBTOOL TAG CONFIG: $tagname
17987 # If there is no Makefile yet, we rely on a make rule to execute
17988 # `config.status --recheck' to rerun these tests and create the
17989 # libtool script then.
17990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17991 if test -f "$ltmain_in"; then
17992 test -f Makefile && make "$ltmain"
17998 ac_cpp='$CPP $CPPFLAGS'
17999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18014 # Source file extension for RC test sources.
18017 # Object file extension for compiled RC test sources.
18021 # Code to be used in simple compile tests
18022 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18024 # Code to be used in simple link tests
18025 lt_simple_link_test_code="$lt_simple_compile_test_code"
18027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18029 # If no C compiler was specified, use CC.
18032 # If no C compiler flags were specified, use CFLAGS.
18033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18035 # Allow CC to be a program name with arguments.
18039 # save warnings/boilerplate of simple test code
18040 ac_outfile=conftest.$ac_objext
18041 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18043 _lt_compiler_boilerplate=`cat conftest.err`
18046 ac_outfile=conftest.$ac_objext
18047 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18049 _lt_linker_boilerplate=`cat conftest.err`
18053 # Allow CC to be a program name with arguments.
18058 for cc_temp in $compiler""; do
18060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18068 lt_cv_prog_compiler_c_o_RC=yes
18070 # The else clause should only fire when bootstrapping the
18071 # libtool distribution, otherwise you forgot to ship ltmain.sh
18072 # with your package, and you will get complaints that there are
18073 # no rules to generate ltmain.sh.
18074 if test -f "$ltmain"; then
18075 # See if we are running on zsh, and set the options which allow our commands through
18076 # without removal of \ escapes.
18077 if test -n "${ZSH_VERSION+set}" ; then
18078 setopt NO_GLOB_SUBST
18080 # Now quote all the things that may contain metacharacters while being
18081 # careful not to overquote the AC_SUBSTed values. We take copies of the
18082 # variables and quote the copies for generation of the libtool script.
18083 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18085 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18086 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18087 deplibs_check_method reload_flag reload_cmds need_locks \
18088 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18089 lt_cv_sys_global_symbol_to_c_name_address \
18090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18091 old_postinstall_cmds old_postuninstall_cmds \
18095 lt_prog_compiler_wl_RC \
18096 lt_prog_compiler_pic_RC \
18097 lt_prog_compiler_static_RC \
18098 lt_prog_compiler_no_builtin_flag_RC \
18099 export_dynamic_flag_spec_RC \
18100 thread_safe_flag_spec_RC \
18101 whole_archive_flag_spec_RC \
18102 enable_shared_with_static_runtimes_RC \
18103 old_archive_cmds_RC \
18104 old_archive_from_new_cmds_RC \
18105 predep_objects_RC \
18106 postdep_objects_RC \
18109 compiler_lib_search_path_RC \
18111 archive_expsym_cmds_RC \
18112 postinstall_cmds_RC \
18113 postuninstall_cmds_RC \
18114 old_archive_from_expsyms_cmds_RC \
18115 allow_undefined_flag_RC \
18116 no_undefined_flag_RC \
18117 export_symbols_cmds_RC \
18118 hardcode_libdir_flag_spec_RC \
18119 hardcode_libdir_flag_spec_ld_RC \
18120 hardcode_libdir_separator_RC \
18121 hardcode_automatic_RC \
18123 module_expsym_cmds_RC \
18124 lt_cv_prog_compiler_c_o_RC \
18125 exclude_expsyms_RC \
18126 include_expsyms_RC; do
18129 old_archive_cmds_RC | \
18130 old_archive_from_new_cmds_RC | \
18131 archive_cmds_RC | \
18132 archive_expsym_cmds_RC | \
18134 module_expsym_cmds_RC | \
18135 old_archive_from_expsyms_cmds_RC | \
18136 export_symbols_cmds_RC | \
18137 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18138 postinstall_cmds | postuninstall_cmds | \
18139 old_postinstall_cmds | old_postuninstall_cmds | \
18140 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18141 # Double-quote double-evaled strings.
18142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18151 *'\$0 --fallback-echo"')
18152 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18158 cat <<__EOF__ >> "$cfgfile"
18159 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18163 # Shell to use when invoking shell scripts.
18166 # Whether or not to build shared libraries.
18167 build_libtool_libs=$enable_shared
18169 # Whether or not to build static libraries.
18170 build_old_libs=$enable_static
18172 # Whether or not to add -lc for building shared libraries.
18173 build_libtool_need_lc=$archive_cmds_need_lc_RC
18175 # Whether or not to disallow shared libs when runtime libs are static
18176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18178 # Whether or not to optimize for fast installation.
18179 fast_install=$enable_fast_install
18182 host_alias=$host_alias
18186 # The build system.
18187 build_alias=$build_alias
18191 # An echo program that does not interpret backslashes.
18196 AR_FLAGS=$lt_AR_FLAGS
18201 # LTCC compiler flags.
18202 LTCFLAGS=$lt_LTCFLAGS
18204 # A language-specific compiler.
18207 # Is the compiler the GNU C compiler?
18213 # The linker used to build libraries.
18216 # Whether we need hard or soft links.
18219 # A BSD-compatible nm program.
18222 # A symbol stripping program
18225 # Used to examine libraries when file_magic_cmd begins "file"
18226 MAGIC_CMD=$MAGIC_CMD
18228 # Used on cygwin: DLL creation program.
18231 # Used on cygwin: object dumper.
18234 # Used on cygwin: assembler.
18237 # The name of the directory that contains temporary libtool files.
18240 # How to create reloadable object files.
18241 reload_flag=$lt_reload_flag
18242 reload_cmds=$lt_reload_cmds
18244 # How to pass a linker flag through the compiler.
18245 wl=$lt_lt_prog_compiler_wl_RC
18247 # Object file suffix (normally "o").
18248 objext="$ac_objext"
18250 # Old archive suffix (normally "a").
18253 # Shared library suffix (normally ".so").
18254 shrext_cmds='$shrext_cmds'
18256 # Executable file suffix (normally "").
18259 # Additional compiler flags for building library objects.
18260 pic_flag=$lt_lt_prog_compiler_pic_RC
18263 # What is the maximum length of a command?
18264 max_cmd_len=$lt_cv_sys_max_cmd_len
18266 # Does compiler simultaneously support -c and -o options?
18267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18269 # Must we lock files when doing compilation?
18270 need_locks=$lt_need_locks
18272 # Do we need the lib prefix for modules?
18273 need_lib_prefix=$need_lib_prefix
18275 # Do we need a version for libraries?
18276 need_version=$need_version
18278 # Whether dlopen is supported.
18279 dlopen_support=$enable_dlopen
18281 # Whether dlopen of programs is supported.
18282 dlopen_self=$enable_dlopen_self
18284 # Whether dlopen of statically linked programs is supported.
18285 dlopen_self_static=$enable_dlopen_self_static
18287 # Compiler flag to prevent dynamic linking.
18288 link_static_flag=$lt_lt_prog_compiler_static_RC
18290 # Compiler flag to turn off builtin functions.
18291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18293 # Compiler flag to allow reflexive dlopens.
18294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18296 # Compiler flag to generate shared objects directly from archives.
18297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18299 # Compiler flag to generate thread-safe objects.
18300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18302 # Library versioning type.
18303 version_type=$version_type
18305 # Format of library name prefix.
18306 libname_spec=$lt_libname_spec
18308 # List of archive names. First name is the real one, the rest are links.
18309 # The last name is the one that the linker finds with -lNAME.
18310 library_names_spec=$lt_library_names_spec
18312 # The coded name of the library, if different from the real name.
18313 soname_spec=$lt_soname_spec
18315 # Commands used to build and install an old-style archive.
18317 old_archive_cmds=$lt_old_archive_cmds_RC
18318 old_postinstall_cmds=$lt_old_postinstall_cmds
18319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18321 # Create an old-style archive from a shared archive.
18322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18324 # Create a temporary old-style archive to link instead of a shared archive.
18325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18327 # Commands used to build and install a shared archive.
18328 archive_cmds=$lt_archive_cmds_RC
18329 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18330 postinstall_cmds=$lt_postinstall_cmds
18331 postuninstall_cmds=$lt_postuninstall_cmds
18333 # Commands used to build a loadable module (assumed same as above if empty)
18334 module_cmds=$lt_module_cmds_RC
18335 module_expsym_cmds=$lt_module_expsym_cmds_RC
18337 # Commands to strip libraries.
18338 old_striplib=$lt_old_striplib
18339 striplib=$lt_striplib
18341 # Dependencies to place before the objects being linked to create a
18343 predep_objects=$lt_predep_objects_RC
18345 # Dependencies to place after the objects being linked to create a
18347 postdep_objects=$lt_postdep_objects_RC
18349 # Dependencies to place before the objects being linked to create a
18351 predeps=$lt_predeps_RC
18353 # Dependencies to place after the objects being linked to create a
18355 postdeps=$lt_postdeps_RC
18357 # The library search path used internally by the compiler when linking
18358 # a shared library.
18359 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18361 # Method to check whether dependent libraries are shared objects.
18362 deplibs_check_method=$lt_deplibs_check_method
18364 # Command to use when deplibs_check_method == file_magic.
18365 file_magic_cmd=$lt_file_magic_cmd
18367 # Flag that allows shared libraries with undefined symbols to be built.
18368 allow_undefined_flag=$lt_allow_undefined_flag_RC
18370 # Flag that forces no undefined symbols.
18371 no_undefined_flag=$lt_no_undefined_flag_RC
18373 # Commands used to finish a libtool library installation in a directory.
18374 finish_cmds=$lt_finish_cmds
18376 # Same as above, but a single script fragment to be evaled but not shown.
18377 finish_eval=$lt_finish_eval
18379 # Take the output of nm and produce a listing of raw symbols and C names.
18380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18382 # Transform the output of nm in a proper C declaration
18383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18385 # Transform the output of nm in a C name address pair
18386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18388 # This is the shared library runtime path variable.
18389 runpath_var=$runpath_var
18391 # This is the shared library path variable.
18392 shlibpath_var=$shlibpath_var
18394 # Is shlibpath searched before the hard-coded library search path?
18395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18397 # How to hardcode a shared library path into an executable.
18398 hardcode_action=$hardcode_action_RC
18400 # Whether we should hardcode library paths into libraries.
18401 hardcode_into_libs=$hardcode_into_libs
18403 # Flag to hardcode \$libdir into a binary during linking.
18404 # This must work even if \$libdir does not exist.
18405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18407 # If ld is used when linking, flag to hardcode \$libdir into
18408 # a binary during linking. This must work even if \$libdir does
18410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18412 # Whether we need a single -rpath flag with a separated argument.
18413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18416 # resulting binary.
18417 hardcode_direct=$hardcode_direct_RC
18419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18420 # resulting binary.
18421 hardcode_minus_L=$hardcode_minus_L_RC
18423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18424 # the resulting binary.
18425 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18427 # Set to yes if building a shared library automatically hardcodes DIR into the library
18428 # and all subsequent libraries and executables linked against it.
18429 hardcode_automatic=$hardcode_automatic_RC
18431 # Variables whose values should be saved in libtool wrapper scripts and
18432 # restored at relink time.
18433 variables_saved_for_relink="$variables_saved_for_relink"
18435 # Whether libtool must link a program against all its dependency libraries.
18436 link_all_deplibs=$link_all_deplibs_RC
18438 # Compile-time system search path for libraries
18439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18441 # Run-time system search path for libraries
18442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18444 # Fix the shell variable \$srcfile for the compiler.
18445 fix_srcfile_path="$fix_srcfile_path_RC"
18447 # Set to yes if exported symbols are required.
18448 always_export_symbols=$always_export_symbols_RC
18450 # The commands to list exported symbols.
18451 export_symbols_cmds=$lt_export_symbols_cmds_RC
18453 # The commands to extract the exported symbol list from a shared archive.
18454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18456 # Symbols that should not be listed in the preloaded symbols.
18457 exclude_expsyms=$lt_exclude_expsyms_RC
18459 # Symbols that must always be exported.
18460 include_expsyms=$lt_include_expsyms_RC
18462 # ### END LIBTOOL TAG CONFIG: $tagname
18468 # If there is no Makefile yet, we rely on a make rule to execute
18469 # `config.status --recheck' to rerun these tests and create the
18470 # libtool script then.
18471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18472 if test -f "$ltmain_in"; then
18473 test -f Makefile && make "$ltmain"
18479 ac_cpp='$CPP $CPPFLAGS'
18480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18490 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18491 { (exit 1); exit 1; }; }
18495 # Append the new tag name to the list of available tags.
18496 if test -n "$tagname" ; then
18497 available_tags="$available_tags $tagname"
18503 # Now substitute the updated list of available tags.
18504 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18505 mv "${ofile}T" "$ofile"
18509 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18510 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18511 { (exit 1); exit 1; }; }
18517 # This can be used to rebuild libtool when needed
18518 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18520 # Always use our own libtool.
18521 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18523 # Prevent multiple expansion
18546 #AC_CONFIG_HEADERS(sysdep.h)
18550 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18551 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18554 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18558 # Find a good install program. We prefer a C program (faster),
18559 # so one script is as good as another. But avoid the broken or
18560 # incompatible versions:
18561 # SysV /etc/install, /usr/sbin/install
18562 # SunOS /usr/etc/install
18563 # IRIX /sbin/install
18565 # AmigaOS /C/install, which installs bootblocks on floppy discs
18566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18569 # OS/2's system install, which has a completely different semantic
18570 # ./install, which can be erroneously created by make from ./install.sh.
18571 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18573 if test -z "$INSTALL"; then
18574 if test "${ac_cv_path_install+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18581 test -z "$as_dir" && as_dir=.
18582 # Account for people who put trailing slashes in PATH elements.
18584 ./ | .// | /cC/* | \
18585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18589 # OSF1 and SCO ODT 3.0 have their own names for install.
18590 # Don't use installbsd from OSF since it installs stuff as root
18592 for ac_prog in ginstall scoinst install; do
18593 for ac_exec_ext in '' $ac_executable_extensions; do
18594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18595 if test $ac_prog = install &&
18596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18597 # AIX install. It has an incompatible calling convention.
18599 elif test $ac_prog = install &&
18600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18601 # program-specific install script used by HP pwplus--don't use.
18604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18616 if test "${ac_cv_path_install+set}" = set; then
18617 INSTALL=$ac_cv_path_install
18619 # As a last resort, use the slow shell script. We don't cache a
18620 # path for INSTALL within a source directory, because that will
18621 # break other packages using the cache if that directory is
18622 # removed, or if the path is relative.
18623 INSTALL=$ac_install_sh
18626 echo "$as_me:$LINENO: result: $INSTALL" >&5
18627 echo "${ECHO_T}$INSTALL" >&6
18629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18630 # It thinks the first close brace ends the variable substitution.
18631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18637 # Extract the first word of "autoconf", so it can be a program name with args.
18638 set dummy autoconf; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 if test -n "$AUTOCONF"; then
18645 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18651 test -z "$as_dir" && as_dir=.
18652 for ac_exec_ext in '' $ac_executable_extensions; do
18653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654 ac_cv_prog_AUTOCONF=""
18655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18663 AUTOCONF=$ac_cv_prog_AUTOCONF
18664 if test -n "$AUTOCONF"; then
18665 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18666 echo "${ECHO_T}$AUTOCONF" >&6
18668 echo "$as_me:$LINENO: result: no" >&5
18669 echo "${ECHO_T}no" >&6
18672 # Extract the first word of "sed", so it can be a program name with args.
18673 set dummy sed; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_prog_SED+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 if test -n "$SED"; then
18680 ac_cv_prog_SED="$SED" # Let the user override the test.
18682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18683 for as_dir in $PATH
18686 test -z "$as_dir" && as_dir=.
18687 for ac_exec_ext in '' $ac_executable_extensions; do
18688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18689 ac_cv_prog_SED="sed"
18690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18696 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18699 SED=$ac_cv_prog_SED
18700 if test -n "$SED"; then
18701 echo "$as_me:$LINENO: result: $SED" >&5
18702 echo "${ECHO_T}$SED" >&6
18704 echo "$as_me:$LINENO: result: no" >&5
18705 echo "${ECHO_T}no" >&6
18710 #AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
18711 #AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
18712 #AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
18714 # [ --with-ssl=PATH Specify path to OpenSSL installation ],
18716 # if test "x$withval" != "xno" ; then
18717 # tryssldir=$withval
18721 #AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
18723 cat >>confdefs.h <<\_ACEOF
18724 @%:@define HAVE_OPENSSL 1
18729 PTHREAD_DEFS=-D_REENTRANT
18732 test -z "$CC" && CC=cc
18737 PTHREAD_DEFS=-D_THREAD_SAFE
18740 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18746 ac_cpp='$CPP $CPPFLAGS'
18747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750 if test -n "$ac_tool_prefix"; then
18751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18753 echo "$as_me:$LINENO: checking for $ac_word" >&5
18754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18755 if test "${ac_cv_prog_CC+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 if test -n "$CC"; then
18759 ac_cv_prog_CC="$CC" # Let the user override the test.
18761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18762 for as_dir in $PATH
18765 test -z "$as_dir" && as_dir=.
18766 for ac_exec_ext in '' $ac_executable_extensions; do
18767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778 if test -n "$CC"; then
18779 echo "$as_me:$LINENO: result: $CC" >&5
18780 echo "${ECHO_T}$CC" >&6
18782 echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6
18787 if test -z "$ac_cv_prog_CC"; then
18789 # Extract the first word of "gcc", so it can be a program name with args.
18790 set dummy gcc; ac_word=$2
18791 echo "$as_me:$LINENO: checking for $ac_word" >&5
18792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 if test -n "$ac_ct_CC"; then
18797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800 for as_dir in $PATH
18803 test -z "$as_dir" && as_dir=.
18804 for ac_exec_ext in '' $ac_executable_extensions; do
18805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18806 ac_cv_prog_ac_ct_CC="gcc"
18807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18816 if test -n "$ac_ct_CC"; then
18817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18818 echo "${ECHO_T}$ac_ct_CC" >&6
18820 echo "$as_me:$LINENO: result: no" >&5
18821 echo "${ECHO_T}no" >&6
18826 CC="$ac_cv_prog_CC"
18829 if test -z "$CC"; then
18830 if test -n "$ac_tool_prefix"; then
18831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18832 set dummy ${ac_tool_prefix}cc; ac_word=$2
18833 echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835 if test "${ac_cv_prog_CC+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 if test -n "$CC"; then
18839 ac_cv_prog_CC="$CC" # Let the user override the test.
18841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18845 test -z "$as_dir" && as_dir=.
18846 for ac_exec_ext in '' $ac_executable_extensions; do
18847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848 ac_cv_prog_CC="${ac_tool_prefix}cc"
18849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18858 if test -n "$CC"; then
18859 echo "$as_me:$LINENO: result: $CC" >&5
18860 echo "${ECHO_T}$CC" >&6
18862 echo "$as_me:$LINENO: result: no" >&5
18863 echo "${ECHO_T}no" >&6
18867 if test -z "$ac_cv_prog_CC"; then
18869 # Extract the first word of "cc", so it can be a program name with args.
18870 set dummy cc; ac_word=$2
18871 echo "$as_me:$LINENO: checking for $ac_word" >&5
18872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 if test -n "$ac_ct_CC"; then
18877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880 for as_dir in $PATH
18883 test -z "$as_dir" && as_dir=.
18884 for ac_exec_ext in '' $ac_executable_extensions; do
18885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886 ac_cv_prog_ac_ct_CC="cc"
18887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18896 if test -n "$ac_ct_CC"; then
18897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18898 echo "${ECHO_T}$ac_ct_CC" >&6
18900 echo "$as_me:$LINENO: result: no" >&5
18901 echo "${ECHO_T}no" >&6
18906 CC="$ac_cv_prog_CC"
18910 if test -z "$CC"; then
18911 # Extract the first word of "cc", so it can be a program name with args.
18912 set dummy cc; ac_word=$2
18913 echo "$as_me:$LINENO: checking for $ac_word" >&5
18914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18915 if test "${ac_cv_prog_CC+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 if test -n "$CC"; then
18919 ac_cv_prog_CC="$CC" # Let the user override the test.
18921 ac_prog_rejected=no
18922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923 for as_dir in $PATH
18926 test -z "$as_dir" && as_dir=.
18927 for ac_exec_ext in '' $ac_executable_extensions; do
18928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18930 ac_prog_rejected=yes
18934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18940 if test $ac_prog_rejected = yes; then
18941 # We found a bogon in the path, so make sure we never use it.
18942 set dummy $ac_cv_prog_CC
18944 if test $@%:@ != 0; then
18945 # We chose a different compiler from the bogus one.
18946 # However, it has the same basename, so the bogon will be chosen
18947 # first if we set CC to just the basename; use the full file name.
18949 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18955 if test -n "$CC"; then
18956 echo "$as_me:$LINENO: result: $CC" >&5
18957 echo "${ECHO_T}$CC" >&6
18959 echo "$as_me:$LINENO: result: no" >&5
18960 echo "${ECHO_T}no" >&6
18964 if test -z "$CC"; then
18965 if test -n "$ac_tool_prefix"; then
18968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18970 echo "$as_me:$LINENO: checking for $ac_word" >&5
18971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18972 if test "${ac_cv_prog_CC+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 if test -n "$CC"; then
18976 ac_cv_prog_CC="$CC" # Let the user override the test.
18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18982 test -z "$as_dir" && as_dir=.
18983 for ac_exec_ext in '' $ac_executable_extensions; do
18984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18995 if test -n "$CC"; then
18996 echo "$as_me:$LINENO: result: $CC" >&5
18997 echo "${ECHO_T}$CC" >&6
18999 echo "$as_me:$LINENO: result: no" >&5
19000 echo "${ECHO_T}no" >&6
19003 test -n "$CC" && break
19006 if test -z "$CC"; then
19010 # Extract the first word of "$ac_prog", so it can be a program name with args.
19011 set dummy $ac_prog; ac_word=$2
19012 echo "$as_me:$LINENO: checking for $ac_word" >&5
19013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 if test -n "$ac_ct_CC"; then
19018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19024 test -z "$as_dir" && as_dir=.
19025 for ac_exec_ext in '' $ac_executable_extensions; do
19026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027 ac_cv_prog_ac_ct_CC="$ac_prog"
19028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19037 if test -n "$ac_ct_CC"; then
19038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19039 echo "${ECHO_T}$ac_ct_CC" >&6
19041 echo "$as_me:$LINENO: result: no" >&5
19042 echo "${ECHO_T}no" >&6
19045 test -n "$ac_ct_CC" && break
19054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19055 See \`config.log' for more details." >&5
19056 echo "$as_me: error: no acceptable C compiler found in \$PATH
19057 See \`config.log' for more details." >&2;}
19058 { (exit 1); exit 1; }; }
19060 # Provide some information about the compiler.
19061 echo "$as_me:$LINENO:" \
19062 "checking for C compiler version" >&5
19063 ac_compiler=`set X $ac_compile; echo $2`
19064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19065 (eval $ac_compiler --version </dev/null >&5) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }
19069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19070 (eval $ac_compiler -v </dev/null >&5) 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }
19074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19075 (eval $ac_compiler -V </dev/null >&5) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }
19080 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19081 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_compiler_gnu=yes
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19136 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19137 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19138 GCC=`test $ac_compiler_gnu = yes && echo yes`
19139 ac_test_CFLAGS=${CFLAGS+set}
19140 ac_save_CFLAGS=$CFLAGS
19142 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19143 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19144 if test "${ac_cv_prog_cc_g+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19162 rm -f conftest.$ac_objext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19164 (eval $ac_compile) 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_c_werror_flag"
19172 || test ! -s conftest.err'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest.$ac_objext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_prog_cc_g=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19195 if test "$ac_test_CFLAGS" = set; then
19196 CFLAGS=$ac_save_CFLAGS
19197 elif test $ac_cv_prog_cc_g = yes; then
19198 if test "$GCC" = yes; then
19204 if test "$GCC" = yes; then
19210 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19211 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19212 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 ac_cv_prog_cc_stdc=no
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #include <stdarg.h>
19225 #include <sys/types.h>
19226 #include <sys/stat.h>
19227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19228 struct buf { int x; };
19229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19230 static char *e (p, i)
19236 static char *f (char * (*g) (char **, int), char **p, ...)
19241 s = g (p, va_arg (v,int));
19246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19247 function prototypes and stuff, but not '\xHH' hex character constants.
19248 These don't provoke an error unfortunately, instead are silently treated
19249 as 'x'. The following induces an error, until -std1 is added to get
19250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19251 array size at least. It's necessary to write '\x00'==0 to get something
19252 that's true only with -std1. */
19253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19255 int test (int i, double x);
19256 struct s1 {int (*f) (int a);};
19257 struct s2 {int (*f) (double a);};
19258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19269 # Don't try gcc -ansi; that turns off useful extensions and
19270 # breaks some systems' header files.
19271 # AIX -qlanglvl=ansi
19272 # Ultrix and OSF/1 -std1
19273 # HP-UX 10.20 and later -Ae
19274 # HP-UX older versions -Aa -D_HPUX_SOURCE
19275 # SVR4 -Xc -D__EXTENSIONS__
19276 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19278 CC="$ac_save_CC $ac_arg"
19279 rm -f conftest.$ac_objext
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>conftest.er1
19283 grep -v '^ *+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
19288 { ac_try='test -z "$ac_c_werror_flag"
19289 || test ! -s conftest.err'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } &&
19295 { ac_try='test -s conftest.$ac_objext'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_prog_cc_stdc=$ac_arg
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19308 rm -f conftest.err conftest.$ac_objext
19310 rm -f conftest.$ac_ext conftest.$ac_objext
19315 case "x$ac_cv_prog_cc_stdc" in
19317 echo "$as_me:$LINENO: result: none needed" >&5
19318 echo "${ECHO_T}none needed" >&6 ;;
19320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19321 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19322 CC="$CC $ac_cv_prog_cc_stdc" ;;
19325 # Some people use a C++ compiler to compile C. Since we use `exit',
19326 # in C++ we need to declare it. In case someone uses the same compiler
19327 # for both compiling C and C++ we need to have the C++ compiler decide
19328 # the declaration of exit, since it's the most demanding environment.
19329 cat >conftest.$ac_ext <<_ACEOF
19330 @%:@ifndef __cplusplus
19334 rm -f conftest.$ac_objext
19335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19336 (eval $ac_compile) 2>conftest.er1
19338 grep -v '^ *+' conftest.er1 >conftest.err
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -z "$ac_c_werror_flag"
19344 || 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
19356 for ac_declaration in \
19358 'extern "C" void std::exit (int) throw (); using std::exit;' \
19359 'extern "C" void std::exit (int); using std::exit;' \
19360 'extern "C" void exit (int) throw ();' \
19361 'extern "C" void exit (int);' \
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19371 @%:@include <stdlib.h>
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19429 grep -v '^ *+' conftest.er1 >conftest.err
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_c_werror_flag"
19435 || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456 if test -n "$ac_declaration"; then
19457 echo '#ifdef __cplusplus' >>confdefs.h
19458 echo $ac_declaration >>confdefs.h
19459 echo '#endif' >>confdefs.h
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 ac_cpp='$CPP $CPPFLAGS'
19470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474 depcc="$CC" am_compiler_list=
19476 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19478 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19482 # We make a subdir and do the tests there. Otherwise we can end up
19483 # making bogus files that we don't know about and never remove. For
19484 # instance it was reported that on HP-UX the gcc test will end up
19485 # making a dummy file named `D' -- because `-MD' means `put the output
19488 # Copy depcomp to subdir because otherwise we won't find it if we're
19489 # using a relative directory.
19490 cp "$am_depcomp" conftest.dir
19492 # We will build objects and dependencies in a subdirectory because
19493 # it helps to detect inapplicable dependency modes. For instance
19494 # both Tru64's cc and ICC support -MD to output dependencies as a
19495 # side effect of compilation, but ICC will put the dependencies in
19496 # the current directory while Tru64 will put them in the object
19500 am_cv_CC_dependencies_compiler_type=none
19501 if test "$am_compiler_list" = ""; then
19502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19504 for depmode in $am_compiler_list; do
19505 # Setup a source with many dependencies, because some compilers
19506 # like to wrap large dependency lists on column 80 (with \), and
19507 # we should not choose a depcomp mode which is confused by this.
19509 # We need to recreate these files for each test, as the compiler may
19510 # overwrite some of them when testing with obscure command lines.
19511 # This happens at least with the AIX C compiler.
19513 for i in 1 2 3 4 5 6; do
19514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19516 # Solaris 8's {/usr,}/bin/sh.
19517 touch sub/conftst$i.h
19519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19523 # after this tag, mechanisms are not by side-effect, so they'll
19524 # only be used when explicitly requested
19525 if test "x$enable_dependency_tracking" = xyes; then
19533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19534 # mode. It turns out that the SunPro C++ compiler does not properly
19535 # handle `-M -o', and we need to detect this.
19536 if depmode=$depmode \
19537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19540 >/dev/null 2>conftest.err &&
19541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19544 # icc doesn't choke on unknown options, it will just issue warnings
19545 # or remarks (even with -Werror). So we grep stderr for any message
19546 # that says an option was ignored or not supported.
19547 # When given -MP, icc 7.0 and 7.1 complain thusly:
19548 # icc: Command line warning: ignoring option '-M'; no argument required
19549 # The diagnosis changed in icc 8.0:
19550 # icc: Command line remark: option '-MP' not supported
19551 if (grep 'ignoring option' conftest.err ||
19552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19553 am_cv_CC_dependencies_compiler_type=$depmode
19560 rm -rf conftest.dir
19562 am_cv_CC_dependencies_compiler_type=none
19566 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19567 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19573 test "x$enable_dependency_tracking" != xno \
19574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19575 am__fastdepCC_TRUE=
19576 am__fastdepCC_FALSE='#'
19578 am__fastdepCC_TRUE='#'
19579 am__fastdepCC_FALSE=
19584 if test "$GCC" = yes; then
19587 CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19590 CFLAGS="$CFLAGS -Wall"
19595 # missing_dir=`cd $ac_aux_dir && pwd`
19596 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19598 if test "$LIBS" != -pthread; then
19600 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19601 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19602 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lpthread $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any gcc2 internal prototype to avoid an error. */
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19620 char pthread_create ();
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_pthread_pthread_create=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_lib_pthread_pthread_create=no
19658 rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19663 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19664 if test $ac_cv_lib_pthread_pthread_create = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666 @%:@define HAVE_LIBPTHREAD 1
19669 LIBS="-lpthread $LIBS"
19674 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19675 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19676 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lpthreads $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any gcc2 internal prototype to avoid an error. */
19692 /* We use char because int might match the return type of a gcc2
19693 builtin and then its argument prototype would still apply. */
19694 char pthread_create ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_lib_pthreads_pthread_create=yes
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_cv_lib_pthreads_pthread_create=no
19732 rm -f conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19737 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19738 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 @%:@define HAVE_LIBPTHREADS 1
19743 LIBS="-lpthreads $LIBS"
19748 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19749 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19750 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-liconv $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* Override any gcc2 internal prototype to avoid an error. */
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779 (eval $ac_link) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_lib_iconv_libiconv=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_iconv_libiconv=no
19806 rm -f conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19811 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19812 if test $ac_cv_lib_iconv_libiconv = yes; then
19813 LIBS="$LIBS -liconv"
19816 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19817 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19818 if test "${ac_cv_search_gethostbyname+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 ac_func_search_save_LIBS=$LIBS
19822 ac_cv_search_gethostbyname=no
19823 cat >conftest.$ac_ext <<_ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19830 /* Override any gcc2 internal prototype to avoid an error. */
19834 /* We use char because int might match the return type of a gcc2
19835 builtin and then its argument prototype would still apply. */
19836 char gethostbyname ();
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847 (eval $ac_link) 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest$ac_exeext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_search_gethostbyname="none required"
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19873 rm -f conftest.err conftest.$ac_objext \
19874 conftest$ac_exeext conftest.$ac_ext
19875 if test "$ac_cv_search_gethostbyname" = no; then
19876 for ac_lib in nsl; do
19877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19885 /* Override any gcc2 internal prototype to avoid an error. */
19889 /* We use char because int might match the return type of a gcc2
19890 builtin and then its argument prototype would still apply. */
19891 char gethostbyname ();
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902 (eval $ac_link) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_search_gethostbyname="-l$ac_lib"
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19929 rm -f conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19933 LIBS=$ac_func_search_save_LIBS
19935 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19936 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19937 if test "$ac_cv_search_gethostbyname" != no; then
19938 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19942 echo "$as_me:$LINENO: checking for library containing connect" >&5
19943 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19944 if test "${ac_cv_search_connect+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 ac_func_search_save_LIBS=$LIBS
19948 ac_cv_search_connect=no
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 /* Override any gcc2 internal prototype to avoid an error. */
19960 /* We use char because int might match the return type of a gcc2
19961 builtin and then its argument prototype would still apply. */
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973 (eval $ac_link) 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag"
19981 || test ! -s conftest.err'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest$ac_exeext'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_search_connect="none required"
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19999 rm -f conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001 if test "$ac_cv_search_connect" = no; then
20002 for ac_lib in socket; do
20003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20011 /* Override any gcc2 internal prototype to avoid an error. */
20015 /* We use char because int might match the return type of a gcc2
20016 builtin and then its argument prototype would still apply. */
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028 (eval $ac_link) 2>conftest.er1
20030 grep -v '^ *+' conftest.er1 >conftest.err
20032 cat conftest.err >&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } &&
20035 { ac_try='test -z "$ac_c_werror_flag"
20036 || test ! -s conftest.err'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest$ac_exeext'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
20048 ac_cv_search_connect="-l$ac_lib"
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20055 rm -f conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_func_search_save_LIBS
20061 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20062 echo "${ECHO_T}$ac_cv_search_connect" >&6
20063 if test "$ac_cv_search_connect" != no; then
20064 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20069 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20071 if test "${ac_cv_header_stdc+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <stdlib.h>
20081 #include <stdarg.h>
20082 #include <string.h>
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_header_stdc=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_cv_header_stdc=no
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124 if test $ac_cv_header_stdc = yes; then
20125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 #include <string.h>
20135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20136 $EGREP "memchr" >/dev/null 2>&1; then
20139 ac_cv_header_stdc=no
20145 if test $ac_cv_header_stdc = yes; then
20146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <stdlib.h>
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157 $EGREP "free" >/dev/null 2>&1; then
20160 ac_cv_header_stdc=no
20166 if test $ac_cv_header_stdc = yes; then
20167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20168 if test "$cross_compiling" = yes; then
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20178 #if ((' ' & 0x0FF) == 0x020)
20179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20182 # define ISLOWER(c) \
20183 (('a' <= (c) && (c) <= 'i') \
20184 || ('j' <= (c) && (c) <= 'r') \
20185 || ('s' <= (c) && (c) <= 'z'))
20186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20194 for (i = 0; i < 256; i++)
20195 if (XOR (islower (i), ISLOWER (i))
20196 || toupper (i) != TOUPPER (i))
20201 rm -f conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20214 echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ( exit $ac_status )
20219 ac_cv_header_stdc=no
20221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20226 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20227 if test $ac_cv_header_stdc = yes; then
20229 cat >>confdefs.h <<\_ACEOF
20230 @%:@define STDC_HEADERS 1
20239 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243 echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20251 # Is the header compilable?
20252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 $ac_includes_default
20261 @%:@include <$ac_header>
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265 (eval $ac_compile) 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag"
20273 || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_header_compiler=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_header_compiler=no
20292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20294 echo "${ECHO_T}$ac_header_compiler" >&6
20296 # Is the header present?
20297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 @%:@include <$ac_header>
20307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } >/dev/null; then
20315 if test -s conftest.err; then
20316 ac_cpp_err=$ac_c_preproc_warn_flag
20317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20324 if test -z "$ac_cpp_err"; then
20325 ac_header_preproc=yes
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_preproc=no
20332 rm -f conftest.err conftest.$ac_ext
20333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20334 echo "${ECHO_T}$ac_header_preproc" >&6
20336 # So? What about this header?
20337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20343 ac_header_preproc=yes
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20360 @%:@@%:@ ------------------------------------- @%:@@%:@
20361 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20362 @%:@@%:@ ------------------------------------- @%:@@%:@
20365 sed "s/^/$as_me: WARNING: /" >&2
20368 echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 eval "$as_ac_Header=\$ac_header_preproc"
20375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20392 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20393 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20394 if test "${ac_cv_c_const+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20407 /* FIXME: Include the comments suggested by Paul. */
20408 #ifndef __cplusplus
20409 /* Ultrix mips cc rejects this. */
20410 typedef int charset[2];
20412 /* SunOS 4.1.1 cc rejects this. */
20413 char const *const *ccp;
20415 /* NEC SVR4.0.2 mips cc rejects this. */
20416 struct point {int x, y;};
20417 static struct point const zero = {0,0};
20418 /* AIX XL C 1.02.0.0 rejects this.
20419 It does not let you subtract one const X* pointer from another in
20420 an arm of an if-expression whose if-part is not a constant
20422 const char *g = "string";
20423 ccp = &g + (g ? g-g : 0);
20424 /* HPUX 7.0 cc rejects these. */
20427 ccp = (char const *const *) p;
20428 { /* SCO 3.2v4 cc rejects this. */
20430 char const *s = 0 ? (char *) 0 : (char const *) 0;
20434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20435 int x[] = {25, 17};
20436 const int *foo = &x[0];
20439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20440 typedef const int *iptr;
20444 { /* AIX XL C 1.02.0.0 rejects this saying
20445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20446 struct s { int j; const int *ap[3]; };
20447 struct s *b; b->j = 5;
20449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20450 const int foo = 10;
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20490 echo "${ECHO_T}$ac_cv_c_const" >&6
20491 if test $ac_cv_c_const = no; then
20493 cat >>confdefs.h <<\_ACEOF
20499 echo "$as_me:$LINENO: checking for off_t" >&5
20500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20501 if test "${ac_cv_type_off_t+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 $ac_includes_default
20516 if (sizeof (off_t))
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524 (eval $ac_compile) 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try='test -z "$ac_c_werror_flag"
20532 || test ! -s conftest.err'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest.$ac_objext'
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv_type_off_t=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_type_off_t=no
20551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20553 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20554 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20555 if test $ac_cv_type_off_t = yes; then
20559 cat >>confdefs.h <<_ACEOF
20560 @%:@define off_t long
20565 echo "$as_me:$LINENO: checking for size_t" >&5
20566 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20567 if test "${ac_cv_type_size_t+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 $ac_includes_default
20582 if (sizeof (size_t))
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag"
20598 || test ! -s conftest.err'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_type_size_t=yes
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 ac_cv_type_size_t=no
20617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20619 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20620 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20621 if test $ac_cv_type_size_t = yes; then
20625 cat >>confdefs.h <<_ACEOF
20626 @%:@define size_t unsigned
20632 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20633 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20634 if test "${ac_cv_type_signal+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 cat >conftest.$ac_ext <<_ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 #include <sys/types.h>
20644 #include <signal.h>
20649 extern "C" void (*signal (int, void (*)(int)))(int);
20651 void (*signal ()) ();
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_c_werror_flag"
20672 || test ! -s conftest.err'
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); }; } &&
20678 { ac_try='test -s conftest.$ac_objext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_type_signal=void
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_cv_type_signal=int
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20694 echo "${ECHO_T}$ac_cv_type_signal" >&6
20696 cat >>confdefs.h <<_ACEOF
20697 @%:@define RETSIGTYPE $ac_cv_type_signal
20702 for ac_func in backtrace
20704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705 echo "$as_me:$LINENO: checking for $ac_func" >&5
20706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_var+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20718 #define $ac_func innocuous_$ac_func
20720 /* System header to define __stub macros and hopefully few prototypes,
20721 which can conflict with char $ac_func (); below.
20722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20723 <limits.h> exists even on freestanding compilers. */
20726 # include <limits.h>
20728 # include <assert.h>
20733 /* Override any gcc2 internal prototype to avoid an error. */
20738 /* We use char because int might match the return type of a gcc2
20739 builtin and then its argument prototype would still apply. */
20741 /* The GNU C library defines this for functions which it implements
20742 to always fail with ENOSYS. Some functions are actually named
20743 something starting with __ and the normal name is an alias. */
20744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20747 char (*f) () = $ac_func;
20756 return f != $ac_func;
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20763 (eval $ac_link) 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
20770 { ac_try='test -z "$ac_c_werror_flag"
20771 || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest$ac_exeext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 eval "$as_ac_var=yes"
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 eval "$as_ac_var=no"
20790 rm -f conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20795 if test `eval echo '${'$as_ac_var'}'` = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20804 for ac_func in snprintf
20806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20807 echo "$as_me:$LINENO: checking for $ac_func" >&5
20808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_var+set}\" = set"; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20820 #define $ac_func innocuous_$ac_func
20822 /* System header to define __stub macros and hopefully few prototypes,
20823 which can conflict with char $ac_func (); below.
20824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20825 <limits.h> exists even on freestanding compilers. */
20828 # include <limits.h>
20830 # include <assert.h>
20835 /* Override any gcc2 internal prototype to avoid an error. */
20840 /* We use char because int might match the return type of a gcc2
20841 builtin and then its argument prototype would still apply. */
20843 /* The GNU C library defines this for functions which it implements
20844 to always fail with ENOSYS. Some functions are actually named
20845 something starting with __ and the normal name is an alias. */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20849 char (*f) () = $ac_func;
20858 return f != $ac_func;
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try='test -z "$ac_c_werror_flag"
20873 || test ! -s conftest.err'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try='test -s conftest$ac_exeext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 eval "$as_ac_var=yes"
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 eval "$as_ac_var=no"
20892 rm -f conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20897 if test `eval echo '${'$as_ac_var'}'` = yes; then
20898 cat >>confdefs.h <<_ACEOF
20899 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20903 case $LIB@&t@OBJS in
20904 "$ac_func.$ac_objext" | \
20905 *" $ac_func.$ac_objext" | \
20906 "$ac_func.$ac_objext "* | \
20907 *" $ac_func.$ac_objext "* ) ;;
20908 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20917 cat >>confdefs.h <<\_ACEOF
20918 @%:@define HAVE_LIBICAL 1
20922 if test "x$with_libical" != xno ; then
20924 for ac_header in ical.h
20926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20928 echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20936 # Is the header compilable?
20937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 $ac_includes_default
20946 @%:@include <$ac_header>
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950 (eval $ac_compile) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag"
20958 || test ! -s conftest.err'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_header_compiler=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_header_compiler=no
20977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20979 echo "${ECHO_T}$ac_header_compiler" >&6
20981 # Is the header present?
20982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 @%:@include <$ac_header>
20992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } >/dev/null; then
21000 if test -s conftest.err; then
21001 ac_cpp_err=$ac_c_preproc_warn_flag
21002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21009 if test -z "$ac_cpp_err"; then
21010 ac_header_preproc=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_preproc=no
21017 rm -f conftest.err conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21019 echo "${ECHO_T}$ac_header_preproc" >&6
21021 # So? What about this header?
21022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21028 ac_header_preproc=yes
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21045 @%:@@%:@ ------------------------------------- @%:@@%:@
21046 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21047 @%:@@%:@ ------------------------------------- @%:@@%:@
21050 sed "s/^/$as_me: WARNING: /" >&2
21053 echo "$as_me:$LINENO: checking for $ac_header" >&5
21054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 eval "$as_ac_Header=\$ac_header_preproc"
21060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21068 echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21069 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21070 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 ac_check_lib_save_LIBS=$LIBS
21074 LIBS="-lical $LIBS"
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 /* Override any gcc2 internal prototype to avoid an error. */
21086 /* We use char because int might match the return type of a gcc2
21087 builtin and then its argument prototype would still apply. */
21088 char icalcomponent_new ();
21092 icalcomponent_new ();
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099 (eval $ac_link) 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -z "$ac_c_werror_flag"
21107 || test ! -s conftest.err'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest$ac_exeext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_cv_lib_ical_icalcomponent_new=yes
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_cv_lib_ical_icalcomponent_new=no
21126 rm -f conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21128 LIBS=$ac_check_lib_save_LIBS
21130 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21131 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21132 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21142 if test "x$ok_libical" = xyes ; then
21144 if test "$cross_compiling" = yes; then
21145 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21146 See \`config.log' for more details." >&5
21147 echo "$as_me: error: cannot run test program while cross compiling
21148 See \`config.log' for more details." >&2;}
21149 { (exit 1); exit 1; }; }
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21160 int major, minor, v;
21161 sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21162 v = 100*major + minor;
21163 printf("libical version: %i\n", v);
21165 printf("This version is ok.\n");
21168 printf("libical 0.24 or newer required.\n");
21169 printf("Citadel will be built without calendar support.\n");
21174 rm -f conftest$ac_exeext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21176 (eval $ac_link) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21186 LIBS="$LIBS -lical"
21187 cat >>confdefs.h <<\_ACEOF
21188 @%:@define HAVE_LIBICAL 1
21194 echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21206 cat >>confdefs.h <<\_ACEOF
21207 @%:@define with_zlib 1
21211 if test "x$ok_zlib" = xyes ; then
21216 # Check whether --with-ok_newt or --without-ok_newt was given.
21217 if test "${with_ok_newt+set}" = set; then
21218 withval="$with_ok_newt"
21222 for ac_header in newt.h
21224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21226 echo "$as_me:$LINENO: checking for $ac_header" >&5
21227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21234 # Is the header compilable?
21235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21244 @%:@include <$ac_header>
21246 rm -f conftest.$ac_objext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248 (eval $ac_compile) 2>conftest.er1
21250 grep -v '^ *+' conftest.er1 >conftest.err
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
21255 { ac_try='test -z "$ac_c_werror_flag"
21256 || test ! -s conftest.err'
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; } &&
21262 { ac_try='test -s conftest.$ac_objext'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 ac_header_compiler=yes
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21273 ac_header_compiler=no
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6
21279 # Is the header present?
21280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 @%:@include <$ac_header>
21290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } >/dev/null; then
21298 if test -s conftest.err; then
21299 ac_cpp_err=$ac_c_preproc_warn_flag
21300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21307 if test -z "$ac_cpp_err"; then
21308 ac_header_preproc=yes
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ac_header_preproc=no
21315 rm -f conftest.err conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317 echo "${ECHO_T}$ac_header_preproc" >&6
21319 # So? What about this header?
21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326 ac_header_preproc=yes
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21343 @%:@@%:@ ------------------------------------- @%:@@%:@
21344 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21345 @%:@@%:@ ------------------------------------- @%:@@%:@
21348 sed "s/^/$as_me: WARNING: /" >&2
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 eval "$as_ac_Header=\$ac_header_preproc"
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21363 cat >>confdefs.h <<_ACEOF
21364 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21366 echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21367 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21368 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 ac_check_lib_save_LIBS=$LIBS
21372 LIBS="-lnewt $LIBS"
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21380 /* Override any gcc2 internal prototype to avoid an error. */
21384 /* We use char because int might match the return type of a gcc2
21385 builtin and then its argument prototype would still apply. */
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>conftest.er1
21399 grep -v '^ *+' conftest.er1 >conftest.err
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_c_werror_flag"
21405 || test ! -s conftest.err'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest$ac_exeext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_cv_lib_newt_newtInit=yes
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_cv_lib_newt_newtInit=no
21424 rm -f conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21428 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21429 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21430 if test $ac_cv_lib_newt_newtInit = yes; then
21444 if test "x$ok_newt" = xyes ; then
21445 SETUP_LIBS="-lnewt $SETUP_LIBS"
21448 # The big search for OpenSSL
21449 if test "$with_ssl" != "no"; then
21451 saved_LDFLAGS="$LDFLAGS"
21452 saved_CFLAGS="$CFLAGS"
21453 if test "x$prefix" != "xNONE"; then
21454 tryssldir="$tryssldir $prefix"
21456 echo "$as_me:$LINENO: checking for OpenSSL" >&5
21457 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21458 if test "${ac_cv_openssldir+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 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
21463 CFLAGS="$saved_CFLAGS"
21464 LDFLAGS="$saved_LDFLAGS"
21465 LIBS="$saved_LIBS -lssl -lcrypto"
21467 # Skip directories if they don't exist
21468 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21471 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21472 # Try to use $ssldir/lib if it exists, otherwise
21474 if test -d "$ssldir/lib" ; then
21475 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21476 if test ! -z "$need_dash_r" ; then
21477 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21480 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21481 if test ! -z "$need_dash_r" ; then
21482 LDFLAGS="-R$ssldir $LDFLAGS"
21485 # Try to use $ssldir/include if it exists, otherwise
21487 if test -d "$ssldir/include" ; then
21488 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21490 CFLAGS="-I$ssldir $saved_CFLAGS"
21494 # Basic test to check for compatible version and correct linking
21495 # *does not* test for RSA - that comes later.
21496 if test "$cross_compiling" = yes; then
21497 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21498 See \`config.log' for more details." >&5
21499 echo "$as_me: error: cannot run test program while cross compiling
21500 See \`config.log' for more details." >&2;}
21501 { (exit 1); exit 1; }; }
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21510 #include <string.h>
21511 #include <openssl/rand.h>
21515 memset(a, 0, sizeof(a));
21516 RAND_add(a, sizeof(a), sizeof(a));
21517 return(RAND_status() <= 0);
21521 rm -f conftest$ac_exeext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523 (eval $ac_link) 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21537 echo "$as_me: program exited with status $ac_status" >&5
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21541 ( exit $ac_status )
21545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21548 if test ! -z "$found_crypto" ; then
21553 if test -z "$ssldir" ; then
21557 if test ! -z "$found_crypto" ; then
21558 ac_cv_openssldir=$ssldir
21560 ac_cv_openssldir="no"
21564 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21565 echo "${ECHO_T}$ac_cv_openssldir" >&6
21567 LDFLAGS="$saved_LDFLAGS"
21568 CFLAGS="$saved_CFLAGS"
21570 if test "x$ac_cv_openssldir" != "xno" ; then
21571 cat >>confdefs.h <<\_ACEOF
21572 @%:@define HAVE_OPENSSL 1
21575 LIBS="-lssl -lcrypto $LIBS"
21576 ssldir=$ac_cv_openssldir
21577 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21578 # Try to use $ssldir/lib if it exists, otherwise
21580 if test -d "$ssldir/lib" ; then
21581 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21582 if test ! -z "$need_dash_r" ; then
21583 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21586 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21587 if test ! -z "$need_dash_r" ; then
21588 LDFLAGS="-R$ssldir $LDFLAGS"
21591 # Try to use $ssldir/include if it exists, otherwise
21593 if test -d "$ssldir/include" ; then
21594 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21596 CFLAGS="-I$ssldir $saved_CFLAGS"
21604 cat >>confdefs.h <<\_ACEOF
21605 @%:@define HAVE_ICONV 1
21609 if test "$ok_nls" != "no"; then
21610 echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21611 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21612 if test "$cross_compiling" = yes; then
21613 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21614 See \`config.log' for more details." >&5
21615 echo "$as_me: error: cannot run test program while cross compiling
21616 See \`config.log' for more details." >&2;}
21617 { (exit 1); exit 1; }; }
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21628 iconv_t ic = (iconv_t)(-1) ;
21629 ic = iconv_open("UTF-8", "us-ascii");
21635 rm -f conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637 (eval $ac_link) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21648 echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ( exit $ac_status )
21656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 if test "$ok_iconv" != "no"; then
21661 echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21662 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21663 cat >>confdefs.h <<\_ACEOF
21664 @%:@define HAVE_ICONV 1
21668 echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21669 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21673 cat >>confdefs.h <<_ACEOF
21674 @%:@define PREFIX "$prefix"
21681 # if we have intl/...
21684 if test -n ""; then
21685 echo "$as_me:$LINENO: checking for intltool >= " >&5
21686 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21688 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
21689 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${ac_aux_dir}/intltool-update.in`
21691 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
21694 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
21695 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21696 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21698 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
21699 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
21704 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 $< $@'
21705 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 $< $@'
21706 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 $< $@'
21707 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 $< $@'
21708 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21709 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 $< $@'
21710 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 $< $@'
21711 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 $< $@'
21712 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 $< $@'
21713 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 $< $@'
21714 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 $< $@'
21715 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
21716 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 $< $@'
21717 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 $< $@'
21718 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 $< $@'
21719 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 $< $@'
21720 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 $< $@'
21740 # Use the tools built into the package, not the ones that are installed.
21742 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21743 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21744 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21750 # Extract the first word of "perl", so it can be a program name with args.
21751 set dummy perl; ac_word=$2
21752 echo "$as_me:$LINENO: checking for $ac_word" >&5
21753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21754 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 case $INTLTOOL_PERL in
21759 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21766 test -z "$as_dir" && as_dir=.
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21769 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21779 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21781 if test -n "$INTLTOOL_PERL"; then
21782 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21783 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21785 echo "$as_me:$LINENO: result: no" >&5
21786 echo "${ECHO_T}no" >&6
21789 if test -z "$INTLTOOL_PERL"; then
21790 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21791 echo "$as_me: error: perl not found; required for intltool" >&2;}
21792 { (exit 1); exit 1; }; }
21794 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21795 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21796 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21797 { (exit 1); exit 1; }; }
21799 if test "x" != "xno-xml"; then
21800 echo "$as_me:$LINENO: checking for XML::Parser" >&5
21801 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21802 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21803 echo "$as_me:$LINENO: result: ok" >&5
21804 echo "${ECHO_T}ok" >&6
21806 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21807 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21808 { (exit 1); exit 1; }; }
21812 # Extract the first word of "iconv", so it can be a program name with args.
21813 set dummy iconv; ac_word=$2
21814 echo "$as_me:$LINENO: checking for $ac_word" >&5
21815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21816 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 case $INTLTOOL_ICONV in
21821 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21825 for as_dir in $PATH
21828 test -z "$as_dir" && as_dir=.
21829 for ac_exec_ext in '' $ac_executable_extensions; do
21830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21831 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21838 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21842 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21844 if test -n "$INTLTOOL_ICONV"; then
21845 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21846 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21848 echo "$as_me:$LINENO: result: no" >&5
21849 echo "${ECHO_T}no" >&6
21852 # Extract the first word of "msgfmt", so it can be a program name with args.
21853 set dummy msgfmt; ac_word=$2
21854 echo "$as_me:$LINENO: checking for $ac_word" >&5
21855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21856 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 case $INTLTOOL_MSGFMT in
21861 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21865 for as_dir in $PATH
21868 test -z "$as_dir" && as_dir=.
21869 for ac_exec_ext in '' $ac_executable_extensions; do
21870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21871 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21878 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21882 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21884 if test -n "$INTLTOOL_MSGFMT"; then
21885 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21886 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21888 echo "$as_me:$LINENO: result: no" >&5
21889 echo "${ECHO_T}no" >&6
21892 # Extract the first word of "msgmerge", so it can be a program name with args.
21893 set dummy msgmerge; ac_word=$2
21894 echo "$as_me:$LINENO: checking for $ac_word" >&5
21895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21896 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 case $INTLTOOL_MSGMERGE in
21901 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $PATH
21908 test -z "$as_dir" && as_dir=.
21909 for ac_exec_ext in '' $ac_executable_extensions; do
21910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21911 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21918 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21922 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21924 if test -n "$INTLTOOL_MSGMERGE"; then
21925 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21926 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21928 echo "$as_me:$LINENO: result: no" >&5
21929 echo "${ECHO_T}no" >&6
21932 # Extract the first word of "xgettext", so it can be a program name with args.
21933 set dummy xgettext; ac_word=$2
21934 echo "$as_me:$LINENO: checking for $ac_word" >&5
21935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21936 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 case $INTLTOOL_XGETTEXT in
21941 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in $PATH
21948 test -z "$as_dir" && as_dir=.
21949 for ac_exec_ext in '' $ac_executable_extensions; do
21950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21951 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21958 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21962 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21964 if test -n "$INTLTOOL_XGETTEXT"; then
21965 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21966 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21968 echo "$as_me:$LINENO: result: no" >&5
21969 echo "${ECHO_T}no" >&6
21973 # Remove file type tags (using []) from po/POTFILES.
21981 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
21983 ac_config_commands="$ac_config_commands intltool"
21989 if test -n "$ac_aux_dir"; then
21990 case "$ac_aux_dir" in
21991 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21992 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21995 if test -z "$MKINSTALLDIRS"; then
21996 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22001 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22002 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22003 # Check whether --enable-nls or --disable-nls was given.
22004 if test "${enable_nls+set}" = set; then
22005 enableval="$enable_nls"
22010 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22011 echo "${ECHO_T}$USE_NLS" >&6
22018 # Prepare PATH_SEPARATOR.
22019 # The user is always right.
22020 if test "${PATH_SEPARATOR+set}" != set; then
22021 echo "#! /bin/sh" >conf$$.sh
22022 echo "exit 0" >>conf$$.sh
22024 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22032 # Find out how to test for executable files. Don't use a zero-byte file,
22033 # as systems may use methods other than mode bits to determine executability.
22034 cat >conf$$.file <<_ASEOF
22038 chmod +x conf$$.file
22039 if test -x conf$$.file >/dev/null 2>&1; then
22040 ac_executable_p="test -x"
22042 ac_executable_p="test -f"
22046 # Extract the first word of "msgfmt", so it can be a program name with args.
22047 set dummy msgfmt; ac_word=$2
22048 echo "$as_me:$LINENO: checking for $ac_word" >&5
22049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22050 if test "${ac_cv_path_MSGFMT+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22058 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22059 for ac_dir in $PATH; do
22061 test -z "$ac_dir" && ac_dir=.
22062 for ac_exec_ext in '' $ac_executable_extensions; do
22063 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22064 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22065 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22066 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22073 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22077 MSGFMT="$ac_cv_path_MSGFMT"
22078 if test "$MSGFMT" != ":"; then
22079 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22080 echo "${ECHO_T}$MSGFMT" >&6
22082 echo "$as_me:$LINENO: result: no" >&5
22083 echo "${ECHO_T}no" >&6
22086 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22087 set dummy gmsgfmt; ac_word=$2
22088 echo "$as_me:$LINENO: checking for $ac_word" >&5
22089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22090 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099 for as_dir in $PATH
22102 test -z "$as_dir" && as_dir=.
22103 for ac_exec_ext in '' $ac_executable_extensions; do
22104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22105 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22112 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22116 GMSGFMT=$ac_cv_path_GMSGFMT
22118 if test -n "$GMSGFMT"; then
22119 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22120 echo "${ECHO_T}$GMSGFMT" >&6
22122 echo "$as_me:$LINENO: result: no" >&5
22123 echo "${ECHO_T}no" >&6
22128 # Prepare PATH_SEPARATOR.
22129 # The user is always right.
22130 if test "${PATH_SEPARATOR+set}" != set; then
22131 echo "#! /bin/sh" >conf$$.sh
22132 echo "exit 0" >>conf$$.sh
22134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22142 # Find out how to test for executable files. Don't use a zero-byte file,
22143 # as systems may use methods other than mode bits to determine executability.
22144 cat >conf$$.file <<_ASEOF
22148 chmod +x conf$$.file
22149 if test -x conf$$.file >/dev/null 2>&1; then
22150 ac_executable_p="test -x"
22152 ac_executable_p="test -f"
22156 # Extract the first word of "xgettext", so it can be a program name with args.
22157 set dummy xgettext; ac_word=$2
22158 echo "$as_me:$LINENO: checking for $ac_word" >&5
22159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22160 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 case "$XGETTEXT" in
22165 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22168 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22169 for ac_dir in $PATH; do
22171 test -z "$ac_dir" && ac_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22174 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22175 (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
22176 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22183 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22187 XGETTEXT="$ac_cv_path_XGETTEXT"
22188 if test "$XGETTEXT" != ":"; then
22189 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22190 echo "${ECHO_T}$XGETTEXT" >&6
22192 echo "$as_me:$LINENO: result: no" >&5
22193 echo "${ECHO_T}no" >&6
22199 # Prepare PATH_SEPARATOR.
22200 # The user is always right.
22201 if test "${PATH_SEPARATOR+set}" != set; then
22202 echo "#! /bin/sh" >conf$$.sh
22203 echo "exit 0" >>conf$$.sh
22205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22213 # Find out how to test for executable files. Don't use a zero-byte file,
22214 # as systems may use methods other than mode bits to determine executability.
22215 cat >conf$$.file <<_ASEOF
22219 chmod +x conf$$.file
22220 if test -x conf$$.file >/dev/null 2>&1; then
22221 ac_executable_p="test -x"
22223 ac_executable_p="test -f"
22227 # Extract the first word of "msgmerge", so it can be a program name with args.
22228 set dummy msgmerge; ac_word=$2
22229 echo "$as_me:$LINENO: checking for $ac_word" >&5
22230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22231 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 case "$MSGMERGE" in
22236 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22239 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22240 for ac_dir in $PATH; do
22242 test -z "$ac_dir" && ac_dir=.
22243 for ac_exec_ext in '' $ac_executable_extensions; do
22244 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22245 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22246 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22253 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22257 MSGMERGE="$ac_cv_path_MSGMERGE"
22258 if test "$MSGMERGE" != ":"; then
22259 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22260 echo "${ECHO_T}$MSGMERGE" >&6
22262 echo "$as_me:$LINENO: result: no" >&5
22263 echo "${ECHO_T}no" >&6
22267 if test "$GMSGFMT" != ":"; then
22268 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22269 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22272 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22273 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22274 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22279 if test "$XGETTEXT" != ":"; then
22280 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22281 (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
22284 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22285 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22291 ac_config_commands="$ac_config_commands default-1"
22295 if test "X$prefix" = "XNONE"; then
22296 acl_final_prefix="$ac_default_prefix"
22298 acl_final_prefix="$prefix"
22300 if test "X$exec_prefix" = "XNONE"; then
22301 acl_final_exec_prefix='${prefix}'
22303 acl_final_exec_prefix="$exec_prefix"
22305 acl_save_prefix="$prefix"
22306 prefix="$acl_final_prefix"
22307 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22308 prefix="$acl_save_prefix"
22311 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22312 if test "${with_gnu_ld+set}" = set; then
22313 withval="$with_gnu_ld"
22314 test "$withval" = no || with_gnu_ld=yes
22318 # Prepare PATH_SEPARATOR.
22319 # The user is always right.
22320 if test "${PATH_SEPARATOR+set}" != set; then
22321 echo "#! /bin/sh" >conf$$.sh
22322 echo "exit 0" >>conf$$.sh
22324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22332 if test "$GCC" = yes; then
22333 # Check if gcc -print-prog-name=ld gives a path.
22334 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22335 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22338 # gcc leaves a trailing carriage return which upsets mingw
22339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22344 # Accept absolute paths.
22345 [\\/]* | [A-Za-z]:[\\/]*)
22346 re_direlt='/[^/][^/]*/\.\./'
22347 # Canonicalize the path of ld
22348 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22349 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22350 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22352 test -z "$LD" && LD="$ac_prog"
22355 # If it fails, then pretend we aren't using GCC.
22359 # If it is relative, then search for the first ld in PATH.
22360 with_gnu_ld=unknown
22363 elif test "$with_gnu_ld" = yes; then
22364 echo "$as_me:$LINENO: checking for GNU ld" >&5
22365 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22367 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22368 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22370 if test "${acl_cv_path_LD+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 if test -z "$LD"; then
22374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22375 for ac_dir in $PATH; do
22376 test -z "$ac_dir" && ac_dir=.
22377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22378 acl_cv_path_LD="$ac_dir/$ac_prog"
22379 # Check to see if the program is GNU ld. I'd rather use --version,
22380 # but apparently some GNU ld's only accept -v.
22381 # Break only if it was the GNU/non-GNU ld that we prefer.
22382 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22383 *GNU* | *'with BFD'*)
22384 test "$with_gnu_ld" != no && break ;;
22386 test "$with_gnu_ld" != yes && break ;;
22392 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22396 LD="$acl_cv_path_LD"
22397 if test -n "$LD"; then
22398 echo "$as_me:$LINENO: result: $LD" >&5
22399 echo "${ECHO_T}$LD" >&6
22401 echo "$as_me:$LINENO: result: no" >&5
22402 echo "${ECHO_T}no" >&6
22404 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22405 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22406 { (exit 1); exit 1; }; }
22407 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22408 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22409 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22413 case `$LD -v 2>&1 </dev/null` in
22414 *GNU* | *'with BFD'*)
22415 acl_cv_prog_gnu_ld=yes ;;
22417 acl_cv_prog_gnu_ld=no ;;
22420 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22421 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22422 with_gnu_ld=$acl_cv_prog_gnu_ld
22426 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22427 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22428 if test "${acl_cv_rpath+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22433 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22435 rm -f ./conftest.sh
22439 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22440 echo "${ECHO_T}$acl_cv_rpath" >&6
22442 libext="$acl_cv_libext"
22443 shlibext="$acl_cv_shlibext"
22444 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22445 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22446 hardcode_direct="$acl_cv_hardcode_direct"
22447 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22448 # Check whether --enable-rpath or --disable-rpath was given.
22449 if test "${enable_rpath+set}" = set; then
22450 enableval="$enable_rpath"
22464 acl_save_prefix="$prefix"
22465 prefix="$acl_final_prefix"
22466 acl_save_exec_prefix="$exec_prefix"
22467 exec_prefix="$acl_final_exec_prefix"
22469 eval additional_includedir=\"$includedir\"
22470 eval additional_libdir=\"$libdir\"
22472 exec_prefix="$acl_save_exec_prefix"
22473 prefix="$acl_save_prefix"
22476 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22477 if test "${with_libiconv_prefix+set}" = set; then
22478 withval="$with_libiconv_prefix"
22480 if test "X$withval" = "Xno"; then
22483 if test "X$withval" = "X"; then
22485 acl_save_prefix="$prefix"
22486 prefix="$acl_final_prefix"
22487 acl_save_exec_prefix="$exec_prefix"
22488 exec_prefix="$acl_final_exec_prefix"
22490 eval additional_includedir=\"$includedir\"
22491 eval additional_libdir=\"$libdir\"
22493 exec_prefix="$acl_save_exec_prefix"
22494 prefix="$acl_save_prefix"
22497 additional_includedir="$withval/include"
22498 additional_libdir="$withval/lib"
22508 names_already_handled=
22509 names_next_round='iconv '
22510 while test -n "$names_next_round"; do
22511 names_this_round="$names_next_round"
22513 for name in $names_this_round; do
22515 for n in $names_already_handled; do
22516 if test "$n" = "$name"; then
22517 already_handled=yes
22521 if test -z "$already_handled"; then
22522 names_already_handled="$names_already_handled $name"
22523 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22524 eval value=\"\$HAVE_LIB$uppername\"
22525 if test -n "$value"; then
22526 if test "$value" = yes; then
22527 eval value=\"\$LIB$uppername\"
22528 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22529 eval value=\"\$LTLIB$uppername\"
22530 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22539 if test $use_additional = yes; then
22540 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22541 found_dir="$additional_libdir"
22542 found_so="$additional_libdir/lib$name.$shlibext"
22543 if test -f "$additional_libdir/lib$name.la"; then
22544 found_la="$additional_libdir/lib$name.la"
22547 if test -f "$additional_libdir/lib$name.$libext"; then
22548 found_dir="$additional_libdir"
22549 found_a="$additional_libdir/lib$name.$libext"
22550 if test -f "$additional_libdir/lib$name.la"; then
22551 found_la="$additional_libdir/lib$name.la"
22556 if test "X$found_dir" = "X"; then
22557 for x in $LDFLAGS $LTLIBICONV; do
22559 acl_save_prefix="$prefix"
22560 prefix="$acl_final_prefix"
22561 acl_save_exec_prefix="$exec_prefix"
22562 exec_prefix="$acl_final_exec_prefix"
22564 exec_prefix="$acl_save_exec_prefix"
22565 prefix="$acl_save_prefix"
22569 dir=`echo "X$x" | sed -e 's/^X-L//'`
22570 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22572 found_so="$dir/lib$name.$shlibext"
22573 if test -f "$dir/lib$name.la"; then
22574 found_la="$dir/lib$name.la"
22577 if test -f "$dir/lib$name.$libext"; then
22579 found_a="$dir/lib$name.$libext"
22580 if test -f "$dir/lib$name.la"; then
22581 found_la="$dir/lib$name.la"
22587 if test "X$found_dir" != "X"; then
22592 if test "X$found_dir" != "X"; then
22593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22594 if test "X$found_so" != "X"; then
22595 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22599 for x in $ltrpathdirs; do
22600 if test "X$x" = "X$found_dir"; then
22605 if test -z "$haveit"; then
22606 ltrpathdirs="$ltrpathdirs $found_dir"
22608 if test "$hardcode_direct" = yes; then
22609 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22611 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22612 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22614 for x in $rpathdirs; do
22615 if test "X$x" = "X$found_dir"; then
22620 if test -z "$haveit"; then
22621 rpathdirs="$rpathdirs $found_dir"
22625 for x in $LDFLAGS $LIBICONV; do
22627 acl_save_prefix="$prefix"
22628 prefix="$acl_final_prefix"
22629 acl_save_exec_prefix="$exec_prefix"
22630 exec_prefix="$acl_final_exec_prefix"
22632 exec_prefix="$acl_save_exec_prefix"
22633 prefix="$acl_save_prefix"
22635 if test "X$x" = "X-L$found_dir"; then
22640 if test -z "$haveit"; then
22641 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22643 if test "$hardcode_minus_L" != no; then
22644 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22646 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22652 if test "X$found_a" != "X"; then
22653 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22655 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22658 additional_includedir=
22659 case "$found_dir" in
22661 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22662 additional_includedir="$basedir/include"
22665 if test "X$additional_includedir" != "X"; then
22666 if test "X$additional_includedir" != "X/usr/include"; then
22668 if test "X$additional_includedir" = "X/usr/local/include"; then
22669 if test -n "$GCC"; then
22671 linux*) haveit=yes;;
22675 if test -z "$haveit"; then
22676 for x in $CPPFLAGS $INCICONV; do
22678 acl_save_prefix="$prefix"
22679 prefix="$acl_final_prefix"
22680 acl_save_exec_prefix="$exec_prefix"
22681 exec_prefix="$acl_final_exec_prefix"
22683 exec_prefix="$acl_save_exec_prefix"
22684 prefix="$acl_save_prefix"
22686 if test "X$x" = "X-I$additional_includedir"; then
22691 if test -z "$haveit"; then
22692 if test -d "$additional_includedir"; then
22693 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22699 if test -n "$found_la"; then
22700 save_libdir="$libdir"
22701 case "$found_la" in
22702 */* | *\\*) . "$found_la" ;;
22703 *) . "./$found_la" ;;
22705 libdir="$save_libdir"
22706 for dep in $dependency_libs; do
22709 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22710 if test "X$additional_libdir" != "X/usr/lib"; then
22712 if test "X$additional_libdir" = "X/usr/local/lib"; then
22713 if test -n "$GCC"; then
22715 linux*) haveit=yes;;
22719 if test -z "$haveit"; then
22721 for x in $LDFLAGS $LIBICONV; do
22723 acl_save_prefix="$prefix"
22724 prefix="$acl_final_prefix"
22725 acl_save_exec_prefix="$exec_prefix"
22726 exec_prefix="$acl_final_exec_prefix"
22728 exec_prefix="$acl_save_exec_prefix"
22729 prefix="$acl_save_prefix"
22731 if test "X$x" = "X-L$additional_libdir"; then
22736 if test -z "$haveit"; then
22737 if test -d "$additional_libdir"; then
22738 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22742 for x in $LDFLAGS $LTLIBICONV; do
22744 acl_save_prefix="$prefix"
22745 prefix="$acl_final_prefix"
22746 acl_save_exec_prefix="$exec_prefix"
22747 exec_prefix="$acl_final_exec_prefix"
22749 exec_prefix="$acl_save_exec_prefix"
22750 prefix="$acl_save_prefix"
22752 if test "X$x" = "X-L$additional_libdir"; then
22757 if test -z "$haveit"; then
22758 if test -d "$additional_libdir"; then
22759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22766 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22767 if test "$enable_rpath" != no; then
22769 for x in $rpathdirs; do
22770 if test "X$x" = "X$dir"; then
22775 if test -z "$haveit"; then
22776 rpathdirs="$rpathdirs $dir"
22779 for x in $ltrpathdirs; do
22780 if test "X$x" = "X$dir"; then
22785 if test -z "$haveit"; then
22786 ltrpathdirs="$ltrpathdirs $dir"
22791 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22794 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22797 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22804 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22811 if test "X$rpathdirs" != "X"; then
22812 if test -n "$hardcode_libdir_separator"; then
22814 for found_dir in $rpathdirs; do
22815 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22817 acl_save_libdir="$libdir"
22819 eval flag=\"$hardcode_libdir_flag_spec\"
22820 libdir="$acl_save_libdir"
22821 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22823 for found_dir in $rpathdirs; do
22824 acl_save_libdir="$libdir"
22825 libdir="$found_dir"
22826 eval flag=\"$hardcode_libdir_flag_spec\"
22827 libdir="$acl_save_libdir"
22828 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22832 if test "X$ltrpathdirs" != "X"; then
22833 for found_dir in $ltrpathdirs; do
22834 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22839 cat >conftest.$ac_ext <<_ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 #include <locale.h>
22849 extern locale_t wc_locales[]
22854 rm -f conftest.$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856 (eval $ac_compile) 2>conftest.er1
22858 grep -v '^ *+' conftest.er1 >conftest.err
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest.$ac_objext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22894 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22895 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22896 # Check whether --enable-nls or --disable-nls was given.
22897 if test "${enable_nls+set}" = set; then
22898 enableval="$enable_nls"
22903 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22904 echo "${ECHO_T}$USE_NLS" >&6
22913 if test "$USE_NLS" = "yes"; then
22914 gt_use_preinstalled_gnugettext=no
22921 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22922 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22923 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 #include <libintl.h>
22933 extern int _nl_msg_cat_cntr;
22934 extern int *_nl_domain_bindings;
22938 bindtextdomain ("", "");
22939 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22944 rm -f conftest.$ac_objext conftest$ac_exeext
22945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946 (eval $ac_link) 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
22953 { ac_try='test -z "$ac_c_werror_flag"
22954 || test ! -s conftest.err'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; } &&
22960 { ac_try='test -s conftest$ac_exeext'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }; then
22966 gt_cv_func_gnugettext2_libc=yes
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 gt_cv_func_gnugettext2_libc=no
22973 rm -f conftest.err conftest.$ac_objext \
22974 conftest$ac_exeext conftest.$ac_ext
22976 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22977 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22979 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22985 am_save_CPPFLAGS="$CPPFLAGS"
22987 for element in $INCICONV; do
22989 for x in $CPPFLAGS; do
22991 acl_save_prefix="$prefix"
22992 prefix="$acl_final_prefix"
22993 acl_save_exec_prefix="$exec_prefix"
22994 exec_prefix="$acl_final_exec_prefix"
22996 exec_prefix="$acl_save_exec_prefix"
22997 prefix="$acl_save_prefix"
22999 if test "X$x" = "X$element"; then
23004 if test -z "$haveit"; then
23005 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23010 echo "$as_me:$LINENO: checking for iconv" >&5
23011 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23012 if test "${am_cv_func_iconv+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 am_cv_func_iconv="no, consider installing GNU libiconv"
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <stdlib.h>
23029 iconv_t cd = iconv_open("","");
23030 iconv(cd,NULL,NULL,NULL,NULL);
23036 rm -f conftest.$ac_objext conftest$ac_exeext
23037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23038 (eval $ac_link) 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } &&
23045 { ac_try='test -z "$ac_c_werror_flag"
23046 || test ! -s conftest.err'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; } &&
23052 { ac_try='test -s conftest$ac_exeext'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 am_cv_func_iconv=yes
23060 echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23064 rm -f conftest.err conftest.$ac_objext \
23065 conftest$ac_exeext conftest.$ac_ext
23066 if test "$am_cv_func_iconv" != yes; then
23067 am_save_LIBS="$LIBS"
23068 LIBS="$LIBS $LIBICONV"
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23075 #include <stdlib.h>
23080 iconv_t cd = iconv_open("","");
23081 iconv(cd,NULL,NULL,NULL,NULL);
23087 rm -f conftest.$ac_objext conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089 (eval $ac_link) 2>conftest.er1
23091 grep -v '^ *+' conftest.er1 >conftest.err
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
23096 { ac_try='test -z "$ac_c_werror_flag"
23097 || test ! -s conftest.err'
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; } &&
23103 { ac_try='test -s conftest$ac_exeext'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; }; then
23109 am_cv_lib_iconv=yes
23110 am_cv_func_iconv=yes
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23116 rm -f conftest.err conftest.$ac_objext \
23117 conftest$ac_exeext conftest.$ac_ext
23118 LIBS="$am_save_LIBS"
23122 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23123 echo "${ECHO_T}$am_cv_func_iconv" >&6
23124 if test "$am_cv_func_iconv" = yes; then
23126 cat >>confdefs.h <<\_ACEOF
23127 @%:@define HAVE_ICONV 1
23131 if test "$am_cv_lib_iconv" = yes; then
23132 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23133 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23134 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23135 echo "${ECHO_T}$LIBICONV" >&6
23137 CPPFLAGS="$am_save_CPPFLAGS"
23149 acl_save_prefix="$prefix"
23150 prefix="$acl_final_prefix"
23151 acl_save_exec_prefix="$exec_prefix"
23152 exec_prefix="$acl_final_exec_prefix"
23154 eval additional_includedir=\"$includedir\"
23155 eval additional_libdir=\"$libdir\"
23157 exec_prefix="$acl_save_exec_prefix"
23158 prefix="$acl_save_prefix"
23161 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23162 if test "${with_libintl_prefix+set}" = set; then
23163 withval="$with_libintl_prefix"
23165 if test "X$withval" = "Xno"; then
23168 if test "X$withval" = "X"; then
23170 acl_save_prefix="$prefix"
23171 prefix="$acl_final_prefix"
23172 acl_save_exec_prefix="$exec_prefix"
23173 exec_prefix="$acl_final_exec_prefix"
23175 eval additional_includedir=\"$includedir\"
23176 eval additional_libdir=\"$libdir\"
23178 exec_prefix="$acl_save_exec_prefix"
23179 prefix="$acl_save_prefix"
23182 additional_includedir="$withval/include"
23183 additional_libdir="$withval/lib"
23193 names_already_handled=
23194 names_next_round='intl '
23195 while test -n "$names_next_round"; do
23196 names_this_round="$names_next_round"
23198 for name in $names_this_round; do
23200 for n in $names_already_handled; do
23201 if test "$n" = "$name"; then
23202 already_handled=yes
23206 if test -z "$already_handled"; then
23207 names_already_handled="$names_already_handled $name"
23208 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23209 eval value=\"\$HAVE_LIB$uppername\"
23210 if test -n "$value"; then
23211 if test "$value" = yes; then
23212 eval value=\"\$LIB$uppername\"
23213 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23214 eval value=\"\$LTLIB$uppername\"
23215 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23224 if test $use_additional = yes; then
23225 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23226 found_dir="$additional_libdir"
23227 found_so="$additional_libdir/lib$name.$shlibext"
23228 if test -f "$additional_libdir/lib$name.la"; then
23229 found_la="$additional_libdir/lib$name.la"
23232 if test -f "$additional_libdir/lib$name.$libext"; then
23233 found_dir="$additional_libdir"
23234 found_a="$additional_libdir/lib$name.$libext"
23235 if test -f "$additional_libdir/lib$name.la"; then
23236 found_la="$additional_libdir/lib$name.la"
23241 if test "X$found_dir" = "X"; then
23242 for x in $LDFLAGS $LTLIBINTL; do
23244 acl_save_prefix="$prefix"
23245 prefix="$acl_final_prefix"
23246 acl_save_exec_prefix="$exec_prefix"
23247 exec_prefix="$acl_final_exec_prefix"
23249 exec_prefix="$acl_save_exec_prefix"
23250 prefix="$acl_save_prefix"
23254 dir=`echo "X$x" | sed -e 's/^X-L//'`
23255 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23257 found_so="$dir/lib$name.$shlibext"
23258 if test -f "$dir/lib$name.la"; then
23259 found_la="$dir/lib$name.la"
23262 if test -f "$dir/lib$name.$libext"; then
23264 found_a="$dir/lib$name.$libext"
23265 if test -f "$dir/lib$name.la"; then
23266 found_la="$dir/lib$name.la"
23272 if test "X$found_dir" != "X"; then
23277 if test "X$found_dir" != "X"; then
23278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23279 if test "X$found_so" != "X"; then
23280 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23284 for x in $ltrpathdirs; do
23285 if test "X$x" = "X$found_dir"; then
23290 if test -z "$haveit"; then
23291 ltrpathdirs="$ltrpathdirs $found_dir"
23293 if test "$hardcode_direct" = yes; then
23294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23296 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23299 for x in $rpathdirs; do
23300 if test "X$x" = "X$found_dir"; then
23305 if test -z "$haveit"; then
23306 rpathdirs="$rpathdirs $found_dir"
23310 for x in $LDFLAGS $LIBINTL; do
23312 acl_save_prefix="$prefix"
23313 prefix="$acl_final_prefix"
23314 acl_save_exec_prefix="$exec_prefix"
23315 exec_prefix="$acl_final_exec_prefix"
23317 exec_prefix="$acl_save_exec_prefix"
23318 prefix="$acl_save_prefix"
23320 if test "X$x" = "X-L$found_dir"; then
23325 if test -z "$haveit"; then
23326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23328 if test "$hardcode_minus_L" != no; then
23329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23337 if test "X$found_a" != "X"; then
23338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23343 additional_includedir=
23344 case "$found_dir" in
23346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23347 additional_includedir="$basedir/include"
23350 if test "X$additional_includedir" != "X"; then
23351 if test "X$additional_includedir" != "X/usr/include"; then
23353 if test "X$additional_includedir" = "X/usr/local/include"; then
23354 if test -n "$GCC"; then
23356 linux*) haveit=yes;;
23360 if test -z "$haveit"; then
23361 for x in $CPPFLAGS $INCINTL; do
23363 acl_save_prefix="$prefix"
23364 prefix="$acl_final_prefix"
23365 acl_save_exec_prefix="$exec_prefix"
23366 exec_prefix="$acl_final_exec_prefix"
23368 exec_prefix="$acl_save_exec_prefix"
23369 prefix="$acl_save_prefix"
23371 if test "X$x" = "X-I$additional_includedir"; then
23376 if test -z "$haveit"; then
23377 if test -d "$additional_includedir"; then
23378 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23384 if test -n "$found_la"; then
23385 save_libdir="$libdir"
23386 case "$found_la" in
23387 */* | *\\*) . "$found_la" ;;
23388 *) . "./$found_la" ;;
23390 libdir="$save_libdir"
23391 for dep in $dependency_libs; do
23394 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23395 if test "X$additional_libdir" != "X/usr/lib"; then
23397 if test "X$additional_libdir" = "X/usr/local/lib"; then
23398 if test -n "$GCC"; then
23400 linux*) haveit=yes;;
23404 if test -z "$haveit"; then
23406 for x in $LDFLAGS $LIBINTL; do
23408 acl_save_prefix="$prefix"
23409 prefix="$acl_final_prefix"
23410 acl_save_exec_prefix="$exec_prefix"
23411 exec_prefix="$acl_final_exec_prefix"
23413 exec_prefix="$acl_save_exec_prefix"
23414 prefix="$acl_save_prefix"
23416 if test "X$x" = "X-L$additional_libdir"; then
23421 if test -z "$haveit"; then
23422 if test -d "$additional_libdir"; then
23423 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23427 for x in $LDFLAGS $LTLIBINTL; do
23429 acl_save_prefix="$prefix"
23430 prefix="$acl_final_prefix"
23431 acl_save_exec_prefix="$exec_prefix"
23432 exec_prefix="$acl_final_exec_prefix"
23434 exec_prefix="$acl_save_exec_prefix"
23435 prefix="$acl_save_prefix"
23437 if test "X$x" = "X-L$additional_libdir"; then
23442 if test -z "$haveit"; then
23443 if test -d "$additional_libdir"; then
23444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23451 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23452 if test "$enable_rpath" != no; then
23454 for x in $rpathdirs; do
23455 if test "X$x" = "X$dir"; then
23460 if test -z "$haveit"; then
23461 rpathdirs="$rpathdirs $dir"
23464 for x in $ltrpathdirs; do
23465 if test "X$x" = "X$dir"; then
23470 if test -z "$haveit"; then
23471 ltrpathdirs="$ltrpathdirs $dir"
23476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23482 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23483 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23496 if test "X$rpathdirs" != "X"; then
23497 if test -n "$hardcode_libdir_separator"; then
23499 for found_dir in $rpathdirs; do
23500 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23502 acl_save_libdir="$libdir"
23504 eval flag=\"$hardcode_libdir_flag_spec\"
23505 libdir="$acl_save_libdir"
23506 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23508 for found_dir in $rpathdirs; do
23509 acl_save_libdir="$libdir"
23510 libdir="$found_dir"
23511 eval flag=\"$hardcode_libdir_flag_spec\"
23512 libdir="$acl_save_libdir"
23513 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23517 if test "X$ltrpathdirs" != "X"; then
23518 for found_dir in $ltrpathdirs; do
23519 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23523 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23524 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23525 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 gt_save_CPPFLAGS="$CPPFLAGS"
23529 CPPFLAGS="$CPPFLAGS $INCINTL"
23530 gt_save_LIBS="$LIBS"
23531 LIBS="$LIBS $LIBINTL"
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23538 #include <libintl.h>
23539 extern int _nl_msg_cat_cntr;
23544 const char *_nl_expand_alias ();
23548 bindtextdomain ("", "");
23549 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556 (eval $ac_link) 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag"
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest$ac_exeext'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 gt_cv_func_gnugettext2_libintl=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 gt_cv_func_gnugettext2_libintl=no
23583 rm -f conftest.err conftest.$ac_objext \
23584 conftest$ac_exeext conftest.$ac_ext
23585 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23586 LIBS="$LIBS $LIBICONV"
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 #include <libintl.h>
23594 extern int _nl_msg_cat_cntr;
23599 const char *_nl_expand_alias ();
23603 bindtextdomain ("", "");
23604 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23609 rm -f conftest.$ac_objext conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611 (eval $ac_link) 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
23618 { ac_try='test -z "$ac_c_werror_flag"
23619 || test ! -s conftest.err'
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; } &&
23625 { ac_try='test -s conftest$ac_exeext'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23631 LIBINTL="$LIBINTL $LIBICONV"
23632 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23633 gt_cv_func_gnugettext2_libintl=yes
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23640 rm -f conftest.err conftest.$ac_objext \
23641 conftest$ac_exeext conftest.$ac_ext
23643 CPPFLAGS="$gt_save_CPPFLAGS"
23644 LIBS="$gt_save_LIBS"
23646 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23647 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23650 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23651 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23652 && test "$PACKAGE" != gettext-runtime \
23653 && test "$PACKAGE" != gettext-tools; }; then
23654 gt_use_preinstalled_gnugettext=yes
23663 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23664 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23666 cat >>confdefs.h <<\_ACEOF
23667 @%:@define ENABLE_NLS 1
23675 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23676 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23677 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23678 echo "${ECHO_T}$USE_NLS" >&6
23679 if test "$USE_NLS" = "yes"; then
23680 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23681 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23682 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23683 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23684 gt_source="external libintl"
23689 gt_source="included intl directory"
23691 echo "$as_me:$LINENO: result: $gt_source" >&5
23692 echo "${ECHO_T}$gt_source" >&6
23695 if test "$USE_NLS" = "yes"; then
23697 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23698 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23699 echo "$as_me:$LINENO: checking how to link with libintl" >&5
23700 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23701 echo "$as_me:$LINENO: result: $LIBINTL" >&5
23702 echo "${ECHO_T}$LIBINTL" >&6
23704 for element in $INCINTL; do
23706 for x in $CPPFLAGS; do
23708 acl_save_prefix="$prefix"
23709 prefix="$acl_final_prefix"
23710 acl_save_exec_prefix="$exec_prefix"
23711 exec_prefix="$acl_final_exec_prefix"
23713 exec_prefix="$acl_save_exec_prefix"
23714 prefix="$acl_save_prefix"
23716 if test "X$x" = "X$element"; then
23721 if test -z "$haveit"; then
23722 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23729 cat >>confdefs.h <<\_ACEOF
23730 @%:@define HAVE_GETTEXT 1
23734 cat >>confdefs.h <<\_ACEOF
23735 @%:@define HAVE_DCGETTEXT 1
23745 INTLLIBS="$LIBINTL"
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23774 # Check whether --with-rundir or --without-rundir was given.
23775 if test "${with_rundir+set}" = set; then
23776 withval="$with_rundir"
23779 rundir=/usr/local/citadel
23782 cat >>confdefs.h <<_ACEOF
23783 @%:@define RUNDIR "$rundir"
23789 # Check whether --with-staticdir or --without-staticdir was given.
23790 if test "${with_staticdir+set}" = set; then
23791 withval="$with_staticdir"
23799 # Check whether --with-staticrundir or --without-staticrundir was given.
23800 if test "${with_staticrundir+set}" = set; then
23801 withval="$with_staticrundir"
23802 staticrundir=$withval
23804 staticrundir=$staticdir
23808 cat >>confdefs.h <<_ACEOF
23809 @%:@define DATADIR "$staticrundir"
23815 # Check whether --with-editordir or --without-editordir was given.
23816 if test "${with_editordir+set}" = set; then
23817 withval="$with_editordir"
23820 editordir=$staticrundir
23824 cat >>confdefs.h <<_ACEOF
23825 @%:@define EDITORDIR "$editordir"
23831 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23832 cat >confcache <<\_ACEOF
23833 # This file is a shell script that caches the results of configure
23834 # tests run on this system so they can be shared between configure
23835 # scripts and configure runs, see configure's option --config-cache.
23836 # It is not useful on other systems. If it contains results you don't
23837 # want to keep, you may remove or edit it.
23839 # config.status only pays attention to the cache file if you give it
23840 # the --recheck option to rerun configure.
23842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23844 # following values.
23848 # The following way of writing the cache mishandles newlines in values,
23849 # but we know of no workaround that is simple, portable, and efficient.
23850 # So, don't put newlines in cache variables' values.
23851 # Ultrix sh set writes to stderr and can't be redirected directly,
23852 # and sets the high bit in the cache file unless we assign to the vars.
23855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23857 # `set' does not quote correctly, so add quotes (double-quote
23858 # substitution turns \\\\ into \\, and sed turns \\ into \).
23861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23864 # `set' quotes correctly as required by POSIX, so do not add quotes.
23866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23877 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23878 if test -w $cache_file; then
23879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23880 cat confcache >$cache_file
23882 echo "not updating unwritable cache $cache_file"
23887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23888 # Let make expand exec_prefix.
23889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23893 # trailing colons and then remove the whole line if VPATH becomes empty
23894 # (actually we leave an empty line to preserve line numbers).
23895 if test "x$srcdir" = x.; then
23896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23897 s/:*\$(srcdir):*/:/;
23898 s/:*\${srcdir}:*/:/;
23900 s/^\([^=]*=[ ]*\):*/\1/;
23906 DEFS=-DHAVE_CONFIG_H
23910 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23911 # 1. Remove the extension, and $U if already installed.
23912 ac_i=`echo "$ac_i" |
23913 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23915 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23916 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23918 LIB@&t@OBJS=$ac_libobjs
23920 LTLIBOBJS=$ac_ltlibobjs
23923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23924 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23925 Usually this means the macro was only invoked conditionally." >&5
23926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23927 Usually this means the macro was only invoked conditionally." >&2;}
23928 { (exit 1); exit 1; }; }
23930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23932 Usually this means the macro was only invoked conditionally." >&5
23933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23934 Usually this means the macro was only invoked conditionally." >&2;}
23935 { (exit 1); exit 1; }; }
23937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23938 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23939 Usually this means the macro was only invoked conditionally." >&5
23940 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23941 Usually this means the macro was only invoked conditionally." >&2;}
23942 { (exit 1); exit 1; }; }
23944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23945 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23946 Usually this means the macro was only invoked conditionally." >&5
23947 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23948 Usually this means the macro was only invoked conditionally." >&2;}
23949 { (exit 1); exit 1; }; }
23952 mv -f po/POTFILES po/POTFILES.tmp
23953 sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
23954 rm -f po/POTFILES.tmp
23957 : ${CONFIG_STATUS=./config.status}
23958 ac_clean_files_save=$ac_clean_files
23959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23960 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23961 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23962 cat >$CONFIG_STATUS <<_ACEOF
23964 # Generated by $as_me.
23965 # Run this file to recreate the current configuration.
23966 # Compiler output produced by configure, useful for debugging
23967 # configure, is in config.log if it exists.
23970 ac_cs_recheck=false
23972 SHELL=\${CONFIG_SHELL-$SHELL}
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23976 ## --------------------- ##
23977 ## M4sh Initialization. ##
23978 ## --------------------- ##
23980 # Be Bourne compatible
23981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23984 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23985 # is contrary to our usage. Disable this feature.
23986 alias -g '${1+"$@"}'='"$@"'
23987 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23990 DUALCASE=1; export DUALCASE # for MKS sh
23992 # Support unset when possible.
23993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24000 # Work around bugs in pre-3.0 UWIN ksh.
24001 $as_unset ENV MAIL MAILPATH
24008 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24009 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24010 LC_TELEPHONE LC_TIME
24012 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24013 eval $as_var=C; export $as_var
24019 # Required to use basename.
24020 if expr a : '\(a\)' >/dev/null 2>&1; then
24026 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24027 as_basename=basename
24033 # Name of the executable.
24034 as_me=`$as_basename "$0" ||
24035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24036 X"$0" : 'X\(//\)$' \| \
24037 X"$0" : 'X\(/\)$' \| \
24038 . : '\(.\)' 2>/dev/null ||
24040 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24041 /^X\/\(\/\/\)$/{ s//\1/; q; }
24042 /^X\/\(\/\).*/{ s//\1/; q; }
24046 # PATH needs CR, and LINENO needs CR and PATH.
24047 # Avoid depending upon Character Ranges.
24048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24051 as_cr_digits='0123456789'
24052 as_cr_alnum=$as_cr_Letters$as_cr_digits
24054 # The user is always right.
24055 if test "${PATH_SEPARATOR+set}" != set; then
24056 echo "#! /bin/sh" >conf$$.sh
24057 echo "exit 0" >>conf$$.sh
24059 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24068 as_lineno_1=$LINENO
24069 as_lineno_2=$LINENO
24070 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24071 test "x$as_lineno_1" != "x$as_lineno_2" &&
24072 test "x$as_lineno_3" = "x$as_lineno_2" || {
24073 # Find who we are. Look in the path if we contain no path at all
24076 *[\\/]* ) as_myself=$0 ;;
24077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24078 for as_dir in $PATH
24081 test -z "$as_dir" && as_dir=.
24082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24087 # We did not find ourselves, most probably we were run as `sh COMMAND'
24088 # in which case we are not to be found in the path.
24089 if test "x$as_myself" = x; then
24092 if test ! -f "$as_myself"; then
24093 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24094 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24095 { (exit 1); exit 1; }; }
24097 case $CONFIG_SHELL in
24099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24100 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24103 test -z "$as_dir" && as_dir=.
24104 for as_base in sh bash ksh sh5; do
24107 if ("$as_dir/$as_base" -c '
24108 as_lineno_1=$LINENO
24109 as_lineno_2=$LINENO
24110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24111 test "x$as_lineno_1" != "x$as_lineno_2" &&
24112 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24113 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24114 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24115 CONFIG_SHELL=$as_dir/$as_base
24116 export CONFIG_SHELL
24117 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24125 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24126 # uniformly replaced by the line number. The first 'sed' inserts a
24127 # line-number line before each line; the second 'sed' does the real
24128 # work. The second script uses 'N' to pair each line-number line
24129 # with the numbered line, and appends trailing '-' during
24130 # substitution so that $LINENO is not a special case at line end.
24131 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24132 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24133 sed '=' <$as_myself |
24138 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24141 s,^['$as_cr_digits']*\n,,
24142 ' >$as_me.lineno &&
24143 chmod +x $as_me.lineno ||
24144 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24145 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24146 { (exit 1); exit 1; }; }
24148 # Don't try to exec as it changes $[0], causing all sort of problems
24149 # (the dirname of $[0] is not the place where we might find the
24150 # original and so on. Autoconf is especially sensible to this).
24152 # Exit status is that of the last command.
24157 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24158 *c*,-n*) ECHO_N= ECHO_C='
24160 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24161 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24164 if expr a : '\(a\)' >/dev/null 2>&1; then
24170 rm -f conf$$ conf$$.exe conf$$.file
24172 if ln -s conf$$.file conf$$ 2>/dev/null; then
24173 # We could just check for DJGPP; but this test a) works b) is more generic
24174 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24175 if test -f conf$$.exe; then
24176 # Don't use ln at all; we don't have any links
24181 elif ln conf$$.file conf$$ 2>/dev/null; then
24186 rm -f conf$$ conf$$.exe conf$$.file
24188 if mkdir -p . 2>/dev/null; then
24191 test -d ./-p && rmdir ./-p
24195 as_executable_p="test -f"
24197 # Sed expression to map a string onto a valid CPP name.
24198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24200 # Sed expression to map a string onto a valid variable name.
24201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24205 # We need space, tab and new line, in precisely that order.
24215 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24216 # report actual input values of CONFIG_FILES etc. instead of their
24217 # values after options handling. Logging --version etc. is OK.
24221 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24222 @%:@@%:@ Running $as_me. @%:@@%:@
24227 This file was extended by webcit $as_me 6.80, which was
24228 generated by GNU Autoconf 2.59. Invocation command line was
24230 CONFIG_FILES = $CONFIG_FILES
24231 CONFIG_HEADERS = $CONFIG_HEADERS
24232 CONFIG_LINKS = $CONFIG_LINKS
24233 CONFIG_COMMANDS = $CONFIG_COMMANDS
24237 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24241 # Files that config.status was made for.
24242 if test -n "$ac_config_files"; then
24243 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24246 if test -n "$ac_config_headers"; then
24247 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24250 if test -n "$ac_config_links"; then
24251 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24254 if test -n "$ac_config_commands"; then
24255 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24258 cat >>$CONFIG_STATUS <<\_ACEOF
24261 \`$as_me' instantiates files from templates according to the
24262 current configuration.
24264 Usage: $0 [OPTIONS] [FILE]...
24266 -h, --help print this help, then exit
24267 -V, --version print version number, then exit
24268 -q, --quiet do not print progress messages
24269 -d, --debug don't remove temporary files
24270 --recheck update $as_me by reconfiguring in the same conditions
24271 --file=FILE[:TEMPLATE]
24272 instantiate the configuration file FILE
24273 --header=FILE[:TEMPLATE]
24274 instantiate the configuration header FILE
24276 Configuration files:
24279 Configuration headers:
24282 Configuration commands:
24285 Report bugs to <bug-autoconf@gnu.org>."
24288 cat >>$CONFIG_STATUS <<_ACEOF
24290 webcit config.status 6.80
24291 configured by $0, generated by GNU Autoconf 2.59,
24292 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24294 Copyright (C) 2003 Free Software Foundation, Inc.
24295 This config.status script is free software; the Free Software Foundation
24296 gives unlimited permission to copy, distribute and modify it."
24301 cat >>$CONFIG_STATUS <<\_ACEOF
24302 # If no file are specified by the user, then we need to provide default
24303 # value. By we need to know if files were specified by the user.
24309 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24310 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24318 *) # This is not an option, so the user has probably given explicit
24321 ac_need_defaults=false;;
24325 # Handling of the options.
24327 cat >>$CONFIG_STATUS <<\_ACEOF
24328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24330 --version | --vers* | -V )
24331 echo "$ac_cs_version"; exit 0 ;;
24333 # Conflict between --help and --header
24334 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24335 Try \`$0 --help' for more information." >&5
24336 echo "$as_me: error: ambiguous option: $1
24337 Try \`$0 --help' for more information." >&2;}
24338 { (exit 1); exit 1; }; };;
24339 --help | --hel | -h )
24340 echo "$ac_cs_usage"; exit 0 ;;
24341 --debug | --d* | -d )
24343 --file | --fil | --fi | --f )
24345 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24346 ac_need_defaults=false;;
24347 --header | --heade | --head | --hea )
24349 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24350 ac_need_defaults=false;;
24351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24355 # This is an error.
24356 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24357 Try \`$0 --help' for more information." >&5
24358 echo "$as_me: error: unrecognized option: $1
24359 Try \`$0 --help' for more information." >&2;}
24360 { (exit 1); exit 1; }; } ;;
24362 *) ac_config_targets="$ac_config_targets $1" ;;
24368 ac_configure_extra_args=
24370 if $ac_cs_silent; then
24372 ac_configure_extra_args="$ac_configure_extra_args --silent"
24376 cat >>$CONFIG_STATUS <<_ACEOF
24377 if \$ac_cs_recheck; then
24378 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24379 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24384 cat >>$CONFIG_STATUS <<_ACEOF
24386 # INIT-COMMANDS section.
24389 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24390 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
24391 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
24392 MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
24393 XGETTEXT='${INTLTOOL_XGETTEXT}'
24394 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24395 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24397 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24398 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24399 LINGUAS="${LINGUAS-%UNSET%}"
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 for ac_config_target in $ac_config_targets
24409 case "$ac_config_target" in
24410 # Handling of arguments.
24411 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24412 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24413 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24414 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24415 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24416 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24417 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24418 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24419 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24420 { (exit 1); exit 1; }; };;
24424 # If the user did not use the arguments to specify the items to instantiate,
24425 # then the envvar interface is used. Set only those that are not.
24426 # We use the long form for the default assignment because of an extremely
24427 # bizarre bug on SunOS 4.1.3.
24428 if $ac_need_defaults; then
24429 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24430 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24431 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24434 # Have a temporary directory for convenience. Make it in the build tree
24435 # simply because there is no reason to put it here, and in addition,
24436 # creating and moving files from /tmp can sometimes cause problems.
24437 # Create a temporary directory, and hook for its removal unless debugging.
24440 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24441 trap '{ (exit 1); exit 1; }' 1 2 13 15
24444 # Create a (secure) tmp directory for tmp files.
24447 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24448 test -n "$tmp" && test -d "$tmp"
24451 tmp=./confstat$$-$RANDOM
24452 (umask 077 && mkdir $tmp)
24455 echo "$me: cannot create a temporary directory in ." >&2
24456 { (exit 1); exit 1; }
24461 cat >>$CONFIG_STATUS <<_ACEOF
24464 # CONFIG_FILES section.
24467 # No need to generate the scripts if there are no CONFIG_FILES.
24468 # This happens for instance when ./config.status config.h
24469 if test -n "\$CONFIG_FILES"; then
24470 # Protect against being on the right side of a sed subst in config.status.
24471 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24472 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24473 s,@SHELL@,$SHELL,;t t
24474 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24475 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24476 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24477 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24478 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24479 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24480 s,@exec_prefix@,$exec_prefix,;t t
24481 s,@prefix@,$prefix,;t t
24482 s,@program_transform_name@,$program_transform_name,;t t
24483 s,@bindir@,$bindir,;t t
24484 s,@sbindir@,$sbindir,;t t
24485 s,@libexecdir@,$libexecdir,;t t
24486 s,@datadir@,$datadir,;t t
24487 s,@sysconfdir@,$sysconfdir,;t t
24488 s,@sharedstatedir@,$sharedstatedir,;t t
24489 s,@localstatedir@,$localstatedir,;t t
24490 s,@libdir@,$libdir,;t t
24491 s,@includedir@,$includedir,;t t
24492 s,@oldincludedir@,$oldincludedir,;t t
24493 s,@infodir@,$infodir,;t t
24494 s,@mandir@,$mandir,;t t
24495 s,@build_alias@,$build_alias,;t t
24496 s,@host_alias@,$host_alias,;t t
24497 s,@target_alias@,$target_alias,;t t
24498 s,@DEFS@,$DEFS,;t t
24499 s,@ECHO_C@,$ECHO_C,;t t
24500 s,@ECHO_N@,$ECHO_N,;t t
24501 s,@ECHO_T@,$ECHO_T,;t t
24502 s,@LIBS@,$LIBS,;t t
24503 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24504 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24505 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24506 s,@CYGPATH_W@,$CYGPATH_W,;t t
24507 s,@PACKAGE@,$PACKAGE,;t t
24508 s,@VERSION@,$VERSION,;t t
24509 s,@ACLOCAL@,$ACLOCAL,;t t
24510 s,@AUTOCONF@,$AUTOCONF,;t t
24511 s,@AUTOMAKE@,$AUTOMAKE,;t t
24512 s,@AUTOHEADER@,$AUTOHEADER,;t t
24513 s,@MAKEINFO@,$MAKEINFO,;t t
24514 s,@install_sh@,$install_sh,;t t
24515 s,@STRIP@,$STRIP,;t t
24516 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24517 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24518 s,@mkdir_p@,$mkdir_p,;t t
24520 s,@SET_MAKE@,$SET_MAKE,;t t
24521 s,@am__leading_dot@,$am__leading_dot,;t t
24522 s,@AMTAR@,$AMTAR,;t t
24523 s,@am__tar@,$am__tar,;t t
24524 s,@am__untar@,$am__untar,;t t
24525 s,@build@,$build,;t t
24526 s,@build_cpu@,$build_cpu,;t t
24527 s,@build_vendor@,$build_vendor,;t t
24528 s,@build_os@,$build_os,;t t
24529 s,@host@,$host,;t t
24530 s,@host_cpu@,$host_cpu,;t t
24531 s,@host_vendor@,$host_vendor,;t t
24532 s,@host_os@,$host_os,;t t
24534 s,@CFLAGS@,$CFLAGS,;t t
24535 s,@LDFLAGS@,$LDFLAGS,;t t
24536 s,@CPPFLAGS@,$CPPFLAGS,;t t
24537 s,@ac_ct_CC@,$ac_ct_CC,;t t
24538 s,@EXEEXT@,$EXEEXT,;t t
24539 s,@OBJEXT@,$OBJEXT,;t t
24540 s,@DEPDIR@,$DEPDIR,;t t
24541 s,@am__include@,$am__include,;t t
24542 s,@am__quote@,$am__quote,;t t
24543 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24544 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24545 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24546 s,@CCDEPMODE@,$CCDEPMODE,;t t
24547 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24548 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24549 s,@EGREP@,$EGREP,;t t
24550 s,@LN_S@,$LN_S,;t t
24551 s,@ECHO@,$ECHO,;t t
24553 s,@ac_ct_AR@,$ac_ct_AR,;t t
24554 s,@RANLIB@,$RANLIB,;t t
24555 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24558 s,@CXXFLAGS@,$CXXFLAGS,;t t
24559 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24560 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24561 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24562 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24563 s,@CXXCPP@,$CXXCPP,;t t
24565 s,@FFLAGS@,$FFLAGS,;t t
24566 s,@ac_ct_F77@,$ac_ct_F77,;t t
24567 s,@LIBTOOL@,$LIBTOOL,;t t
24568 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24570 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24571 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24572 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24573 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24574 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24575 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24576 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24577 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24578 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24579 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24580 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24581 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24582 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24583 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24584 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24585 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24586 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24587 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24588 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24589 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24590 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24591 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24592 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24593 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24594 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24595 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24596 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24597 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24598 s,@USE_NLS@,$USE_NLS,;t t
24599 s,@MSGFMT@,$MSGFMT,;t t
24600 s,@GMSGFMT@,$GMSGFMT,;t t
24601 s,@XGETTEXT@,$XGETTEXT,;t t
24602 s,@MSGMERGE@,$MSGMERGE,;t t
24603 s,@LIBICONV@,$LIBICONV,;t t
24604 s,@LTLIBICONV@,$LTLIBICONV,;t t
24605 s,@INTLLIBS@,$INTLLIBS,;t t
24606 s,@LIBINTL@,$LIBINTL,;t t
24607 s,@LTLIBINTL@,$LTLIBINTL,;t t
24608 s,@POSUB@,$POSUB,;t t
24609 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24610 s,@staticdir@,$staticdir,;t t
24611 s,@editordir@,$editordir,;t t
24612 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24617 cat >>$CONFIG_STATUS <<\_ACEOF
24618 # Split the substitutions into bite-sized pieces for seds with
24619 # small command number limits, like on Digital OSF/1 and HP-UX.
24620 ac_max_sed_lines=48
24621 ac_sed_frag=1 # Number of current file.
24622 ac_beg=1 # First line for current file.
24623 ac_end=$ac_max_sed_lines # Line after last line for current file.
24626 while $ac_more_lines; do
24627 if test $ac_beg -gt 1; then
24628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24632 if test ! -s $tmp/subs.frag; then
24633 ac_more_lines=false
24635 # The purpose of the label and of the branching condition is to
24636 # speed up the sed processing (if there are no `@' at all, there
24637 # is no need to browse any of the substitutions).
24638 # These are the two extra sed commands mentioned above.
24640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24641 if test -z "$ac_sed_cmds"; then
24642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24646 ac_sed_frag=`expr $ac_sed_frag + 1`
24648 ac_end=`expr $ac_end + $ac_max_sed_lines`
24651 if test -z "$ac_sed_cmds"; then
24654 fi # test -n "$CONFIG_FILES"
24657 cat >>$CONFIG_STATUS <<\_ACEOF
24658 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24661 - | *:- | *:-:* ) # input from stdin
24663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24667 * ) ac_file_in=$ac_file.in ;;
24670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24673 X"$ac_file" : 'X\(//\)[^/]' \| \
24674 X"$ac_file" : 'X\(//\)$' \| \
24675 X"$ac_file" : 'X\(/\)' \| \
24676 . : '\(.\)' 2>/dev/null ||
24678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24680 /^X\(\/\/\)$/{ s//\1/; q; }
24681 /^X\(\/\).*/{ s//\1/; q; }
24683 { if $as_mkdir_p; then
24688 while test ! -d "$as_dir"; do
24689 as_dirs="$as_dir $as_dirs"
24690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24692 X"$as_dir" : 'X\(//\)[^/]' \| \
24693 X"$as_dir" : 'X\(//\)$' \| \
24694 X"$as_dir" : 'X\(/\)' \| \
24695 . : '\(.\)' 2>/dev/null ||
24697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24699 /^X\(\/\/\)$/{ s//\1/; q; }
24700 /^X\(\/\).*/{ s//\1/; q; }
24703 test ! -n "$as_dirs" || mkdir $as_dirs
24704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24706 { (exit 1); exit 1; }; }; }
24710 if test "$ac_dir" != .; then
24711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24712 # A "../" for each directory in $ac_dir_suffix.
24713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24715 ac_dir_suffix= ac_top_builddir=
24719 .) # No --srcdir option. We are building in place.
24721 if test -z "$ac_top_builddir"; then
24724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24726 [\\/]* | ?:[\\/]* ) # Absolute path.
24727 ac_srcdir=$srcdir$ac_dir_suffix;
24728 ac_top_srcdir=$srcdir ;;
24729 *) # Relative path.
24730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24734 # Do not use `cd foo && pwd` to compute absolute paths, because
24735 # the directories may not exist.
24737 .) ac_abs_builddir="$ac_dir";;
24740 .) ac_abs_builddir=`pwd`;;
24741 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24742 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24745 case $ac_abs_builddir in
24746 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24748 case ${ac_top_builddir}. in
24749 .) ac_abs_top_builddir=$ac_abs_builddir;;
24750 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24751 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24754 case $ac_abs_builddir in
24755 .) ac_abs_srcdir=$ac_srcdir;;
24758 .) ac_abs_srcdir=$ac_abs_builddir;;
24759 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24760 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24763 case $ac_abs_builddir in
24764 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24766 case $ac_top_srcdir in
24767 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24768 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24769 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24776 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24779 if test x"$ac_file" != x-; then
24780 { echo "$as_me:$LINENO: creating $ac_file" >&5
24781 echo "$as_me: creating $ac_file" >&6;}
24784 # Let's still pretend it is `configure' which instantiates (i.e., don't
24785 # use $as_me), people would be surprised to read:
24786 # /* config.h. Generated by config.status. */
24787 if test x"$ac_file" = x-; then
24790 configure_input="$ac_file. "
24792 configure_input=$configure_input"Generated from `echo $ac_file_in |
24793 sed 's,.*/,,'` by configure."
24795 # First look for the input files in the build tree, otherwise in the
24797 ac_file_inputs=`IFS=:
24798 for f in $ac_file_in; do
24800 -) echo $tmp/stdin ;;
24802 # Absolute (can't be DOS-style, as IFS=:)
24803 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24804 echo "$as_me: error: cannot find input file: $f" >&2;}
24805 { (exit 1); exit 1; }; }
24808 if test -f "$f"; then
24811 elif test -f "$srcdir/$f"; then
24816 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24817 echo "$as_me: error: cannot find input file: $f" >&2;}
24818 { (exit 1); exit 1; }; }
24821 done` || { (exit 1); exit 1; }
24823 cat >>$CONFIG_STATUS <<_ACEOF
24827 cat >>$CONFIG_STATUS <<\_ACEOF
24829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24830 s,@configure_input@,$configure_input,;t t
24831 s,@srcdir@,$ac_srcdir,;t t
24832 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24833 s,@top_srcdir@,$ac_top_srcdir,;t t
24834 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24835 s,@builddir@,$ac_builddir,;t t
24836 s,@abs_builddir@,$ac_abs_builddir,;t t
24837 s,@top_builddir@,$ac_top_builddir,;t t
24838 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24839 s,@INSTALL@,$ac_INSTALL,;t t
24840 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24842 if test x"$ac_file" != x-; then
24843 mv $tmp/out $ac_file
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24854 # CONFIG_HEADER section.
24857 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24858 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24860 # ac_d sets the value in "#define NAME VALUE" lines.
24861 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24862 ac_dB='[ ].*$,\1#\2'
24865 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24866 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24867 ac_uB='$,\1#\2define\3'
24871 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24874 - | *:- | *:-:* ) # input from stdin
24876 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24878 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24880 * ) ac_file_in=$ac_file.in ;;
24883 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24884 echo "$as_me: creating $ac_file" >&6;}
24886 # First look for the input files in the build tree, otherwise in the
24888 ac_file_inputs=`IFS=:
24889 for f in $ac_file_in; do
24891 -) echo $tmp/stdin ;;
24893 # Absolute (can't be DOS-style, as IFS=:)
24894 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24895 echo "$as_me: error: cannot find input file: $f" >&2;}
24896 { (exit 1); exit 1; }; }
24897 # Do quote $f, to prevent DOS paths from being IFS'd.
24900 if test -f "$f"; then
24903 elif test -f "$srcdir/$f"; then
24908 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24909 echo "$as_me: error: cannot find input file: $f" >&2;}
24910 { (exit 1); exit 1; }; }
24913 done` || { (exit 1); exit 1; }
24914 # Remove the trailing spaces.
24915 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24919 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24920 # `conftest.undefs', that substitutes the proper values into
24921 # config.h.in to produce config.h. The first handles `#define'
24922 # templates, and the second `#undef' templates.
24923 # And first: Protect against being on the right side of a sed subst in
24924 # config.status. Protect against being in an unquoted here document
24925 # in config.status.
24926 rm -f conftest.defines conftest.undefs
24927 # Using a here document instead of a string reduces the quoting nightmare.
24928 # Putting comments in sed scripts is not portable.
24930 # `end' is used to avoid that the second main sed command (meant for
24931 # 0-ary CPP macros) applies to n-ary macro definitions.
24932 # See the Autoconf documentation for `clear'.
24933 cat >confdef2sed.sed <<\_ACEOF
24938 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24940 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24943 # If some macros were called several times there might be several times
24944 # the same #defines, which is useless. Nevertheless, we may not want to
24945 # sort them, since we want the *last* AC-DEFINE to be honored.
24946 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24947 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24948 rm -f confdef2sed.sed
24950 # This sed command replaces #undef with comments. This is necessary, for
24951 # example, in the case of _POSIX_SOURCE, which is predefined and required
24952 # on some systems where configure will not decide to define it.
24953 cat >>conftest.undefs <<\_ACEOF
24954 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24957 # Break up conftest.defines because some shells have a limit on the size
24958 # of here documents, and old seds have small limits too (100 cmds).
24959 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24960 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24961 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24962 echo ' :' >>$CONFIG_STATUS
24963 rm -f conftest.tail
24964 while grep . conftest.defines >/dev/null
24966 # Write a limited-size here document to $tmp/defines.sed.
24967 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24968 # Speed up: don't consider the non `#define' lines.
24969 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24970 # Work around the forget-to-reset-the-flag bug.
24971 echo 't clr' >>$CONFIG_STATUS
24972 echo ': clr' >>$CONFIG_STATUS
24973 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24975 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24977 mv $tmp/out $tmp/in
24979 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24980 rm -f conftest.defines
24981 mv conftest.tail conftest.defines
24983 rm -f conftest.defines
24984 echo ' fi # grep' >>$CONFIG_STATUS
24985 echo >>$CONFIG_STATUS
24987 # Break up conftest.undefs because some shells have a limit on the size
24988 # of here documents, and old seds have small limits too (100 cmds).
24989 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24990 rm -f conftest.tail
24991 while grep . conftest.undefs >/dev/null
24993 # Write a limited-size here document to $tmp/undefs.sed.
24994 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24995 # Speed up: don't consider the non `#undef'
24996 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24997 # Work around the forget-to-reset-the-flag bug.
24998 echo 't clr' >>$CONFIG_STATUS
24999 echo ': clr' >>$CONFIG_STATUS
25000 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25002 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25004 mv $tmp/out $tmp/in
25006 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25007 rm -f conftest.undefs
25008 mv conftest.tail conftest.undefs
25010 rm -f conftest.undefs
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25013 # Let's still pretend it is `configure' which instantiates (i.e., don't
25014 # use $as_me), people would be surprised to read:
25015 # /* config.h. Generated by config.status. */
25016 if test x"$ac_file" = x-; then
25017 echo "/* Generated by configure. */" >$tmp/config.h
25019 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25021 cat $tmp/in >>$tmp/config.h
25023 if test x"$ac_file" != x-; then
25024 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25025 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25026 echo "$as_me: $ac_file is unchanged" >&6;}
25028 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030 X"$ac_file" : 'X\(//\)[^/]' \| \
25031 X"$ac_file" : 'X\(//\)$' \| \
25032 X"$ac_file" : 'X\(/\)' \| \
25033 . : '\(.\)' 2>/dev/null ||
25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25037 /^X\(\/\/\)$/{ s//\1/; q; }
25038 /^X\(\/\).*/{ s//\1/; q; }
25040 { if $as_mkdir_p; then
25045 while test ! -d "$as_dir"; do
25046 as_dirs="$as_dir $as_dirs"
25047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25049 X"$as_dir" : 'X\(//\)[^/]' \| \
25050 X"$as_dir" : 'X\(//\)$' \| \
25051 X"$as_dir" : 'X\(/\)' \| \
25052 . : '\(.\)' 2>/dev/null ||
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25056 /^X\(\/\/\)$/{ s//\1/; q; }
25057 /^X\(\/\).*/{ s//\1/; q; }
25060 test ! -n "$as_dirs" || mkdir $as_dirs
25061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25063 { (exit 1); exit 1; }; }; }
25066 mv $tmp/config.h $ac_file
25070 rm -f $tmp/config.h
25072 # Compute $ac_file's index in $config_headers.
25074 for _am_header in $config_headers :; do
25075 case $_am_header in
25076 $ac_file | $ac_file:* )
25079 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25082 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25083 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25084 X$ac_file : 'X\(//\)[^/]' \| \
25085 X$ac_file : 'X\(//\)$' \| \
25086 X$ac_file : 'X\(/\)' \| \
25087 . : '\(.\)' 2>/dev/null ||
25089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25091 /^X\(\/\/\)$/{ s//\1/; q; }
25092 /^X\(\/\).*/{ s//\1/; q; }
25093 s/.*/./; q'`/stamp-h$_am_stamp_count
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25099 # CONFIG_COMMANDS section.
25101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25104 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106 X"$ac_dest" : 'X\(//\)[^/]' \| \
25107 X"$ac_dest" : 'X\(//\)$' \| \
25108 X"$ac_dest" : 'X\(/\)' \| \
25109 . : '\(.\)' 2>/dev/null ||
25111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113 /^X\(\/\/\)$/{ s//\1/; q; }
25114 /^X\(\/\).*/{ s//\1/; q; }
25116 { if $as_mkdir_p; then
25121 while test ! -d "$as_dir"; do
25122 as_dirs="$as_dir $as_dirs"
25123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25125 X"$as_dir" : 'X\(//\)[^/]' \| \
25126 X"$as_dir" : 'X\(//\)$' \| \
25127 X"$as_dir" : 'X\(/\)' \| \
25128 . : '\(.\)' 2>/dev/null ||
25130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25132 /^X\(\/\/\)$/{ s//\1/; q; }
25133 /^X\(\/\).*/{ s//\1/; q; }
25136 test ! -n "$as_dirs" || mkdir $as_dirs
25137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25139 { (exit 1); exit 1; }; }; }
25143 if test "$ac_dir" != .; then
25144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25145 # A "../" for each directory in $ac_dir_suffix.
25146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25148 ac_dir_suffix= ac_top_builddir=
25152 .) # No --srcdir option. We are building in place.
25154 if test -z "$ac_top_builddir"; then
25157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25159 [\\/]* | ?:[\\/]* ) # Absolute path.
25160 ac_srcdir=$srcdir$ac_dir_suffix;
25161 ac_top_srcdir=$srcdir ;;
25162 *) # Relative path.
25163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25167 # Do not use `cd foo && pwd` to compute absolute paths, because
25168 # the directories may not exist.
25170 .) ac_abs_builddir="$ac_dir";;
25173 .) ac_abs_builddir=`pwd`;;
25174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25178 case $ac_abs_builddir in
25179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25181 case ${ac_top_builddir}. in
25182 .) ac_abs_top_builddir=$ac_abs_builddir;;
25183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25187 case $ac_abs_builddir in
25188 .) ac_abs_srcdir=$ac_srcdir;;
25191 .) ac_abs_srcdir=$ac_abs_builddir;;
25192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25196 case $ac_abs_builddir in
25197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25199 case $ac_top_srcdir in
25200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25207 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25208 echo "$as_me: executing $ac_dest commands" >&6;}
25210 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25211 # Strip MF so we end up with the name of the file.
25212 mf=`echo "$mf" | sed -e 's/:.*$//'`
25213 # Check whether this is an Automake generated Makefile or not.
25214 # We used to match only the files named `Makefile.in', but
25215 # some people rename them; so instead we look at the file content.
25216 # Grep'ing the first line is not enough: some people post-process
25217 # each Makefile.in and add a new line on top of each file to say so.
25218 # So let's grep whole file.
25219 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25220 dirpart=`(dirname "$mf") 2>/dev/null ||
25221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25222 X"$mf" : 'X\(//\)[^/]' \| \
25223 X"$mf" : 'X\(//\)$' \| \
25224 X"$mf" : 'X\(/\)' \| \
25225 . : '\(.\)' 2>/dev/null ||
25227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25229 /^X\(\/\/\)$/{ s//\1/; q; }
25230 /^X\(\/\).*/{ s//\1/; q; }
25235 # Extract the definition of DEPDIR, am__include, and am__quote
25236 # from the Makefile without running `make'.
25237 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25238 test -z "$DEPDIR" && continue
25239 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25240 test -z "am__include" && continue
25241 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25242 # When using ansi2knr, U may be empty or an underscore; expand it
25243 U=`sed -n 's/^U = //p' < "$mf"`
25244 # Find all dependency output files, they are included files with
25245 # $(DEPDIR) in their names. We invoke sed twice because it is the
25246 # simplest approach to changing $(DEPDIR) to its actual value in the
25248 for file in `sed -n "
25249 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25250 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25251 # Make sure the directory exists.
25252 test -f "$dirpart/$file" && continue
25253 fdir=`(dirname "$file") 2>/dev/null ||
25254 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25255 X"$file" : 'X\(//\)[^/]' \| \
25256 X"$file" : 'X\(//\)$' \| \
25257 X"$file" : 'X\(/\)' \| \
25258 . : '\(.\)' 2>/dev/null ||
25260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25262 /^X\(\/\/\)$/{ s//\1/; q; }
25263 /^X\(\/\).*/{ s//\1/; q; }
25265 { if $as_mkdir_p; then
25266 mkdir -p $dirpart/$fdir
25268 as_dir=$dirpart/$fdir
25270 while test ! -d "$as_dir"; do
25271 as_dirs="$as_dir $as_dirs"
25272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25274 X"$as_dir" : 'X\(//\)[^/]' \| \
25275 X"$as_dir" : 'X\(//\)$' \| \
25276 X"$as_dir" : 'X\(/\)' \| \
25277 . : '\(.\)' 2>/dev/null ||
25279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25281 /^X\(\/\/\)$/{ s//\1/; q; }
25282 /^X\(\/\).*/{ s//\1/; q; }
25285 test ! -n "$as_dirs" || mkdir $as_dirs
25286 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25287 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25288 { (exit 1); exit 1; }; }; }
25290 # echo "creating $dirpart/$file"
25291 echo '# dummy' > "$dirpart/$file"
25297 intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
25298 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
25299 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
25300 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
25301 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
25302 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
25304 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
25305 > intltool-extract.out
25306 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
25307 rm -f intltool-extract.out
25309 mv -f intltool-extract.out intltool-extract
25311 chmod ugo+x intltool-extract
25312 chmod u+w intltool-extract
25314 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
25315 > intltool-merge.out
25316 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
25317 rm -f intltool-merge.out
25319 mv -f intltool-merge.out intltool-merge
25321 chmod ugo+x intltool-merge
25322 chmod u+w intltool-merge
25324 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
25325 > intltool-update.out
25326 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
25327 rm -f intltool-update.out
25329 mv -f intltool-update.out intltool-update
25331 chmod ugo+x intltool-update
25332 chmod u+w intltool-update
25336 for ac_file in $CONFIG_FILES; do
25337 # Support "outfile[:infile[:infile...]]"
25339 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25341 # PO directories have a Makefile.in generated from Makefile.in.in.
25342 case "$ac_file" in */Makefile.in)
25343 # Adjust a relative srcdir.
25344 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25345 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25346 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25347 # In autoconf-2.13 it is called $ac_given_srcdir.
25348 # In autoconf-2.50 it is called $srcdir.
25349 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25350 case "$ac_given_srcdir" in
25351 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25352 /*) top_srcdir="$ac_given_srcdir" ;;
25353 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25355 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25356 rm -f "$ac_dir/POTFILES"
25357 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25358 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25359 POMAKEFILEDEPS="POTFILES.in"
25360 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25361 # on $ac_dir but don't depend on user-specified configuration
25363 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25364 # The LINGUAS file contains the set of available languages.
25365 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25366 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25368 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25369 # Hide the ALL_LINGUAS assigment from automake.
25370 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25371 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25373 # The set of available languages was given in configure.in.
25374 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25377 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25378 # Compute UPDATEPOFILES
25379 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25380 # Compute DUMMYPOFILES
25381 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25383 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25384 case "$ac_given_srcdir" in
25386 *) srcdirpre='$(srcdir)/' ;;
25392 for lang in $ALL_LINGUAS; do
25393 POFILES="$POFILES $srcdirpre$lang.po"
25394 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25395 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25396 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25398 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25399 # environment variable.
25401 if test -n "$ALL_LINGUAS"; then
25402 for presentlang in $ALL_LINGUAS; do
25404 if test "%UNSET%" != "$LINGUAS"; then
25405 desiredlanguages="$LINGUAS"
25407 desiredlanguages="$ALL_LINGUAS"
25409 for desiredlang in $desiredlanguages; do
25410 # Use the presentlang catalog if desiredlang is
25411 # a. equal to presentlang, or
25412 # b. a variant of presentlang (because in this case,
25413 # presentlang can be used as a fallback for messages
25414 # which are not translated in the desiredlang catalog).
25415 case "$desiredlang" in
25416 "$presentlang"*) useit=yes;;
25419 if test $useit = yes; then
25420 INST_LINGUAS="$INST_LINGUAS $presentlang"
25425 if test -n "$INST_LINGUAS"; then
25426 for lang in $INST_LINGUAS; do
25427 CATALOGS="$CATALOGS $lang.gmo"
25430 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25431 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"
25432 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25433 if test -f "$f"; then
25435 *.orig | *.bak | *~) ;;
25436 *) cat "$f" >> "$ac_dir/Makefile" ;;
25448 cat >>$CONFIG_STATUS <<\_ACEOF
25450 { (exit 0); exit 0; }
25452 chmod +x $CONFIG_STATUS
25453 ac_clean_files=$ac_clean_files_save
25456 # configure is writing to config.log, and then calls config.status.
25457 # config.status does its own redirection, appending to config.log.
25458 # Unfortunately, on DOS this fails, as config.log is still kept open
25459 # by configure, so config.status won't be able to write to it; its
25460 # output is simply discarded. So we exec the FD to /dev/null,
25461 # effectively closing config.log, so it can be properly (re)opened and
25462 # appended to by config.status. When coming back to configure, we
25463 # need to make the FD available again.
25464 if test "$no_create" != yes; then
25466 ac_config_status_args=
25467 test "$silent" = yes &&
25468 ac_config_status_args="$ac_config_status_args --quiet"
25470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25473 # would make configure fail if this is the last instruction.
25474 $ac_cs_success || { (exit 1); exit 1; }
25479 echo ------------------------------------------------------------------------
25480 echo 'nls is available? '$_nls_avail
25481 echo 'zlib compression: ' $ok_zlib
25482 echo 'Calendar support: ' $ok_libical
25483 echo 'Character set conversion support:' $ok_iconv
25484 echo 'National language support: ' $ok_nls