2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.0.
5 # Report bugs to <sebastian.marsching@suphp.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.
246 # Find the correct PATH separator. Usually this is `:', but
247 # DJGPP uses `;' like DOS.
248 if test "X${PATH_SEPARATOR+set}" != Xset; then
249 UNAME=${UNAME-`uname 2>/dev/null`}
251 *-DOS) lt_cv_sys_path_separator=';' ;;
252 *) lt_cv_sys_path_separator=':' ;;
254 PATH_SEPARATOR=$lt_cv_sys_path_separator
258 # Check that we are running under the correct shell.
259 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Remove one level of quotation (which was required for Make).
264 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
269 if test "X$1" = X--no-reexec; then
270 # Discard the --no-reexec flag, and continue.
272 elif test "X$1" = X--fallback-echo; then
273 # Avoid inline document here, it may be left over
275 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
276 # Yippee, $echo works!
279 # Restart under the correct shell.
280 exec $SHELL "$0" --no-reexec ${1+"$@"}
283 if test "X$1" = X--fallback-echo; then
284 # used as fallback echo
292 # The HP-UX ksh and POSIX shell print the target directory to stdout
294 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
296 if test -z "$ECHO"; then
297 if test "X${echo_test_string+set}" != Xset; then
298 # find a string as large as possible, as long as the shell can cope with it
299 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
300 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
301 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
302 echo_test_string="`eval $cmd`" &&
303 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
310 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
311 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
312 test "X$echo_testing_string" = "X$echo_test_string"; then
315 # The Solaris, AIX, and Digital Unix default echo programs unquote
316 # backslashes. This makes it impossible to quote backslashes using
317 # echo "$something" | sed 's/\\/\\\\/g'
319 # So, first we look for a working echo in the user's PATH.
321 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
322 for dir in $PATH /usr/ucb; do
323 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
324 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
333 if test "X$echo" = Xecho; then
334 # We didn't find a better echo, so look for alternatives.
335 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
336 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
337 test "X$echo_testing_string" = "X$echo_test_string"; then
338 # This shell has a builtin print -r that does the trick.
340 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
341 test "X$CONFIG_SHELL" != X/bin/ksh; then
342 # If we have ksh, try running configure again with it.
343 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
344 export ORIGINAL_CONFIG_SHELL
345 CONFIG_SHELL=/bin/ksh
347 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
351 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
352 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
356 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
362 SHELL="$CONFIG_SHELL"
364 echo="$CONFIG_SHELL $0 --fallback-echo"
365 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
366 test "X$echo_testing_string" = 'X\t' &&
367 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
368 test "X$echo_testing_string" = "X$echo_test_string"; then
369 echo="$CONFIG_SHELL $0 --fallback-echo"
371 # maybe with a smaller string...
374 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
375 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
382 if test "$prev" != 'sed 50q "$0"'; then
383 echo_test_string=`eval $prev`
384 export echo_test_string
385 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
387 # Oops. We lost completely, so just stick with echo.
396 # Copy echo and quote the copy suitably for passing to libtool from
397 # the Makefile, instead of quoting the original, which is used later.
399 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
400 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
406 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407 # so uname gets run too.
408 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
415 ac_default_prefix=/usr/local
416 ac_config_libobj_dir=.
421 SHELL=${CONFIG_SHELL-/bin/sh}
423 # Maximum number of lines to put in a shell here document.
424 # This variable seems obsolete. It should probably be removed, and
425 # only ac_max_sed_lines should be used.
426 : ${ac_max_here_lines=38}
428 # Identity of this package.
430 PACKAGE_TARNAME='suphp'
431 PACKAGE_VERSION='0.6.0'
432 PACKAGE_STRING='suPHP 0.6.0'
433 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
435 ac_unique_file="src/Application.cpp"
436 # Factoring default headers for most tests.
437 ac_includes_default="\
440 # include <sys/types.h>
443 # include <sys/stat.h>
454 # if !STDC_HEADERS && HAVE_MEMORY_H
460 # include <strings.h>
463 # include <inttypes.h>
473 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE LIBOBJS LTLIBOBJS'
476 # Initialize some variables set by options.
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
488 program_transform_name=s,x,x,
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
517 # If the previous option needs an argument, assign it.
518 if test -n "$ac_prev"; then
519 eval "$ac_prev=\$ac_option"
524 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526 # Accept the important Cygnus configure options, so we can diagnose typos.
530 -bindir | --bindir | --bindi | --bind | --bin | --bi)
532 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 -build | --build | --buil | --bui | --bu)
536 ac_prev=build_alias ;;
537 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538 build_alias=$ac_optarg ;;
540 -cache-file | --cache-file | --cache-fil | --cache-fi \
541 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542 ac_prev=cache_file ;;
543 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545 cache_file=$ac_optarg ;;
548 cache_file=config.cache ;;
550 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554 datadir=$ac_optarg ;;
556 -disable-* | --disable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 eval "enable_$ac_feature=no" ;;
565 -enable-* | --enable-*)
566 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567 # Reject names that are not valid shell variable names.
568 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570 { (exit 1); exit 1; }; }
571 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 eval "enable_$ac_feature='$ac_optarg'" ;;
578 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580 | --exec | --exe | --ex)
581 ac_prev=exec_prefix ;;
582 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584 | --exec=* | --exe=* | --ex=*)
585 exec_prefix=$ac_optarg ;;
587 -gas | --gas | --ga | --g)
588 # Obsolete; use --with-gas.
591 -help | --help | --hel | --he | -h)
593 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594 ac_init_help=recursive ;;
595 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596 ac_init_help=short ;;
598 -host | --host | --hos | --ho)
599 ac_prev=host_alias ;;
600 -host=* | --host=* | --hos=* | --ho=*)
601 host_alias=$ac_optarg ;;
603 -includedir | --includedir | --includedi | --included | --include \
604 | --includ | --inclu | --incl | --inc)
605 ac_prev=includedir ;;
606 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607 | --includ=* | --inclu=* | --incl=* | --inc=*)
608 includedir=$ac_optarg ;;
610 -infodir | --infodir | --infodi | --infod | --info | --inf)
612 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613 infodir=$ac_optarg ;;
615 -libdir | --libdir | --libdi | --libd)
617 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621 | --libexe | --libex | --libe)
622 ac_prev=libexecdir ;;
623 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624 | --libexe=* | --libex=* | --libe=*)
625 libexecdir=$ac_optarg ;;
627 -localstatedir | --localstatedir | --localstatedi | --localstated \
628 | --localstate | --localstat | --localsta | --localst \
629 | --locals | --local | --loca | --loc | --lo)
630 ac_prev=localstatedir ;;
631 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634 localstatedir=$ac_optarg ;;
636 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 # Obsolete; use --without-fp.
645 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646 | --no-cr | --no-c | -n)
649 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655 | --oldin | --oldi | --old | --ol | --o)
656 ac_prev=oldincludedir ;;
657 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660 oldincludedir=$ac_optarg ;;
662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 -program-prefix | --program-prefix | --program-prefi | --program-pref \
668 | --program-pre | --program-pr | --program-p)
669 ac_prev=program_prefix ;;
670 -program-prefix=* | --program-prefix=* | --program-prefi=* \
671 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672 program_prefix=$ac_optarg ;;
674 -program-suffix | --program-suffix | --program-suffi | --program-suff \
675 | --program-suf | --program-su | --program-s)
676 ac_prev=program_suffix ;;
677 -program-suffix=* | --program-suffix=* | --program-suffi=* \
678 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679 program_suffix=$ac_optarg ;;
681 -program-transform-name | --program-transform-name \
682 | --program-transform-nam | --program-transform-na \
683 | --program-transform-n | --program-transform- \
684 | --program-transform | --program-transfor \
685 | --program-transfo | --program-transf \
686 | --program-trans | --program-tran \
687 | --progr-tra | --program-tr | --program-t)
688 ac_prev=program_transform_name ;;
689 -program-transform-name=* | --program-transform-name=* \
690 | --program-transform-nam=* | --program-transform-na=* \
691 | --program-transform-n=* | --program-transform-=* \
692 | --program-transform=* | --program-transfor=* \
693 | --program-transfo=* | --program-transf=* \
694 | --program-trans=* | --program-tran=* \
695 | --progr-tra=* | --program-tr=* | --program-t=*)
696 program_transform_name=$ac_optarg ;;
698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699 | -silent | --silent | --silen | --sile | --sil)
702 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706 sbindir=$ac_optarg ;;
708 -sharedstatedir | --sharedstatedir | --sharedstatedi \
709 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710 | --sharedst | --shareds | --shared | --share | --shar \
712 ac_prev=sharedstatedir ;;
713 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717 sharedstatedir=$ac_optarg ;;
719 -site | --site | --sit)
721 -site=* | --site=* | --sit=*)
724 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730 | --syscon | --sysco | --sysc | --sys | --sy)
731 ac_prev=sysconfdir ;;
732 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734 sysconfdir=$ac_optarg ;;
736 -target | --target | --targe | --targ | --tar | --ta | --t)
737 ac_prev=target_alias ;;
738 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739 target_alias=$ac_optarg ;;
741 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 -version | --version | --versio | --versi | --vers | -V)
748 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package| sed 's/-/_/g'`
755 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 eval "with_$ac_package='$ac_optarg'" ;;
760 -without-* | --without-*)
761 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764 { echo "$as_me: error: invalid package name: $ac_package" >&2
765 { (exit 1); exit 1; }; }
766 ac_package=`echo $ac_package | sed 's/-/_/g'`
767 eval "with_$ac_package=no" ;;
770 # Obsolete; use --with-x.
773 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774 | --x-incl | --x-inc | --x-in | --x-i)
775 ac_prev=x_includes ;;
776 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778 x_includes=$ac_optarg ;;
780 -x-libraries | --x-libraries | --x-librarie | --x-librari \
781 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782 ac_prev=x_libraries ;;
783 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785 x_libraries=$ac_optarg ;;
787 -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789 { (exit 1); exit 1; }; }
793 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797 { (exit 1); exit 1; }; }
798 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799 eval "$ac_envvar='$ac_optarg'"
803 # FIXME: should be removed in autoconf 3.0.
804 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 if test -n "$ac_prev"; then
814 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815 { echo "$as_me: error: missing argument to $ac_option" >&2
816 { (exit 1); exit 1; }; }
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832 localstatedir libdir includedir oldincludedir infodir mandir
834 eval ac_val=$`echo $ac_var`
836 [\\/$]* | ?:[\\/]* ) ;;
837 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838 { (exit 1); exit 1; }; };;
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851 if test "x$build_alias" = x; then
852 cross_compiling=maybe
853 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854 If a cross compiler is detected then cross compile mode will be used." >&2
855 elif test "x$build_alias" != "x$host_alias"; then
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
863 test "$silent" = yes && exec 6>/dev/null
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868 ac_srcdir_defaulted=yes
869 # Try the directory containing this script, then its parent.
870 ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872 X"$0" : 'X\(//\)[^/]' \| \
873 X"$0" : 'X\(//\)$' \| \
874 X"$0" : 'X\(/\)' \| \
875 . : '\(.\)' 2>/dev/null ||
877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879 /^X\(\/\/\)$/{ s//\1/; q; }
880 /^X\(\/\).*/{ s//\1/; q; }
883 if test ! -r $srcdir/$ac_unique_file; then
887 ac_srcdir_defaulted=no
889 if test ! -r $srcdir/$ac_unique_file; then
890 if test "$ac_srcdir_defaulted" = yes; then
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892 { (exit 1); exit 1; }; }
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895 { (exit 1); exit 1; }; }
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900 { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CC_set=${CC+set}
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CPP_set=${CPP+set}
939 ac_env_CPP_value=$CPP
940 ac_cv_env_CPP_set=${CPP+set}
941 ac_cv_env_CPP_value=$CPP
944 # Report the --help message.
946 if test "$ac_init_help" = "long"; then
947 # Omit some internal or obsolete options to make the list less imposing.
948 # This message is too long to be a string in the A/UX 3.1 sh.
950 \`configure' configures suPHP 0.6.0 to adapt to many kinds of systems.
952 Usage: $0 [OPTION]... [VAR=VALUE]...
954 To assign environment variables (e.g., CC, CFLAGS...), specify them as
955 VAR=VALUE. See below for descriptions of some of the useful variables.
957 Defaults for the options are specified in brackets.
960 -h, --help display this help and exit
961 --help=short display options specific to this package
962 --help=recursive display the short help of all the included packages
963 -V, --version display version information and exit
964 -q, --quiet, --silent do not print \`checking...' messages
965 --cache-file=FILE cache test results in FILE [disabled]
966 -C, --config-cache alias for \`--cache-file=config.cache'
967 -n, --no-create do not create output files
968 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 Installation directories:
974 --prefix=PREFIX install architecture-independent files in PREFIX
976 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
979 By default, \`make install' will install all the files in
980 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
981 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
982 for instance \`--prefix=\$HOME'.
984 For better control, use the options below.
986 Fine tuning of the installation directories:
987 --bindir=DIR user executables [EPREFIX/bin]
988 --sbindir=DIR system admin executables [EPREFIX/sbin]
989 --libexecdir=DIR program executables [EPREFIX/libexec]
990 --datadir=DIR read-only architecture-independent data [PREFIX/share]
991 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
992 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
993 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
994 --libdir=DIR object code libraries [EPREFIX/lib]
995 --includedir=DIR C header files [PREFIX/include]
996 --oldincludedir=DIR C header files for non-gcc [/usr/include]
997 --infodir=DIR info documentation [PREFIX/info]
998 --mandir=DIR man documentation [PREFIX/man]
1004 --program-prefix=PREFIX prepend PREFIX to installed program names
1005 --program-suffix=SUFFIX append SUFFIX to installed program names
1006 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 if test -n "$ac_init_help"; then
1015 case $ac_init_help in
1016 short | recursive ) echo "Configuration of suPHP 0.6.0:";;
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --disable-dependency-tracking Speeds up one-time builds
1024 --enable-dependency-tracking Do not reject slow dependency extractors
1025 --enable-shared=PKGS build shared libraries default=yes
1026 --enable-static=PKGS build static libraries default=yes
1027 --enable-fast-install=PKGS optimize for fast installation default=yes
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1029 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1035 --with-gnu-ld assume the C compiler uses GNU ld default=no
1036 --with-pic try to use only PIC/non-PIC objects default=use both
1037 --with-apxs=FILE Build shared Apache module. FILE is the optional
1038 pathname to the Apache apxs tool; defaults to
1040 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1041 "owner", "config" or "paranoid"; defaults to
1043 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1045 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1047 --with-apache-user=USERNAME
1048 Name of the user Apache is running as (default is
1050 --with-logfile=FILE Path to suPHP logfile (default is
1051 "/var/log/httpd/suphp_log"
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1067 Report bugs to <sebastian.marsching@suphp.org>.
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 ac_dir_suffix= ac_top_builddir=
1087 .) # No --srcdir option. We are building in place.
1089 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1105 .) ac_abs_builddir="$ac_dir";;
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1152 $ac_configure --help
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1163 suPHP configure 0.6.0
1164 generated by GNU Autoconf 2.59
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1177 It was created by suPHP $as_me 0.6.0, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_must_keep_next=false
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 -* ) ac_must_keep_next=true ;;
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1295 # The following way of writing the cache mishandles newlines in values,
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1318 for ac_var in $ac_subst_vars
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1325 if test -n "$ac_subst_files"; then
1332 for ac_var in $ac_subst_files
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1340 if test -s confdefs.h; then
1347 sed "/^$/d" confdefs.h | sort
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 # Predefined preprocessor variables.
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1430 # Check that the precious variables saved in the cache have kept the same
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 for ac_dir in config $srcdir/config; do
1517 if test -f $ac_dir/install-sh; then
1519 ac_install_sh="$ac_aux_dir/install-sh -c"
1521 elif test -f $ac_dir/install.sh; then
1523 ac_install_sh="$ac_aux_dir/install.sh -c"
1525 elif test -f $ac_dir/shtool; then
1527 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 if test -z "$ac_aux_dir"; then
1532 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1533 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1534 { (exit 1); exit 1; }; }
1536 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541 am__api_version="1.6"
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 # Account for people who put trailing slashes in PATH elements.
1568 ./ | .// | /cC/* | \
1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1576 for ac_prog in ginstall scoinst install; do
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1583 elif test $ac_prog = install &&
1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL=$ac_cv_path_install
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL=$ac_install_sh
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments. Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1635 set X `ls -t $srcdir/configure conftest.file`
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1652 test "$2" = conftest.file
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $. echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686 am_missing_run="$MISSING --run "
1689 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693 for ac_prog in gawk mawk nawk awk
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_AWK+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$AWK"; then
1703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_AWK="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$AWK"; then
1723 echo "$as_me:$LINENO: result: $AWK" >&5
1724 echo "${ECHO_T}$AWK" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$AWK" && break
1733 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1735 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1736 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 cat >conftest.make <<\_ACEOF
1741 @echo 'ac_maketemp="$(MAKE)"'
1743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1744 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1745 if test -n "$ac_maketemp"; then
1746 eval ac_cv_prog_make_${ac_make}_set=yes
1748 eval ac_cv_prog_make_${ac_make}_set=no
1752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1753 echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 SET_MAKE="MAKE=${MAKE-make}"
1762 # test to see if srcdir already configured
1763 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1764 test -f $srcdir/config.status; then
1765 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1766 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1767 { (exit 1); exit 1; }; }
1770 # Define the identity of the package.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE "$PACKAGE"
1780 cat >>confdefs.h <<_ACEOF
1781 #define VERSION "$VERSION"
1784 # Some tools Automake needs.
1786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1801 AMTAR=${AMTAR-"${am_missing_run}tar"}
1803 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1805 # Installed binaries are usually stripped using `strip' when the user
1806 # run `make install-strip'. However `strip' might not be the right
1807 # tool to use in cross-compilation environments, therefore Automake
1808 # will honor the `STRIP' environment variable to overrule this program.
1809 if test "$cross_compiling" != no; then
1810 if test -n "$ac_tool_prefix"; then
1811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1812 set dummy ${ac_tool_prefix}strip; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_STRIP+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 if test -n "$STRIP"; then
1819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 STRIP=$ac_cv_prog_STRIP
1838 if test -n "$STRIP"; then
1839 echo "$as_me:$LINENO: result: $STRIP" >&5
1840 echo "${ECHO_T}$STRIP" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1847 if test -z "$ac_cv_prog_STRIP"; then
1849 # Extract the first word of "strip", so it can be a program name with args.
1850 set dummy strip; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$ac_ct_STRIP"; then
1857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_STRIP="strip"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1877 if test -n "$ac_ct_STRIP"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1879 echo "${ECHO_T}$ac_ct_STRIP" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1887 STRIP="$ac_cv_prog_STRIP"
1891 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1893 # We need awk for the "check" target. The system "awk" is bad on
1898 # Check for right directory
1900 # Config headers for automake
1901 # Add the stamp file to the list of files AC keeps track of,
1902 # along with our hook.
1903 ac_config_headers="$ac_config_headers src/config.h"
1908 # Build time sanity check
1909 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1910 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1913 echo timestamp > conftest.file
1914 # Do `set' in a subshell so we don't clobber the current shell's
1915 # arguments. Must try -L first in case configure is actually a
1916 # symlink; some systems play weird games with the mod time of symlinks
1917 # (eg FreeBSD returns the mod time of the symlink's containing
1920 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1921 if test "$*" = "X"; then
1923 set X `ls -t $srcdir/configure conftest.file`
1926 if test "$*" != "X $srcdir/configure conftest.file" \
1927 && test "$*" != "X conftest.file $srcdir/configure"; then
1929 # If neither matched, then we have a broken ls. This can happen
1930 # if, for instance, CONFIG_SHELL is bash and it inherits a
1931 # broken ls alias from the environment. This has actually
1932 # happened. Such a system could not be considered "sane".
1933 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1934 alias in your environment" >&5
1935 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1936 alias in your environment" >&2;}
1937 { (exit 1); exit 1; }; }
1940 test "$2" = conftest.file
1946 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1947 Check your system clock" >&5
1948 echo "$as_me: error: newly created file is older than distributed files!
1949 Check your system clock" >&2;}
1950 { (exit 1); exit 1; }; }
1952 echo "$as_me:$LINENO: result: yes" >&5
1953 echo "${ECHO_T}yes" >&6
1955 # Look for install program
1956 # Find a good install program. We prefer a C program (faster),
1957 # so one script is as good as another. But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 # Account for people who put trailing slashes in PATH elements.
1982 ./ | .// | /cC/* | \
1983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1987 # OSF1 and SCO ODT 3.0 have their own names for install.
1988 # Don't use installbsd from OSF since it installs stuff as root
1990 for ac_prog in ginstall scoinst install; do
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1993 if test $ac_prog = install &&
1994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995 # AIX install. It has an incompatible calling convention.
1997 elif test $ac_prog = install &&
1998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999 # program-specific install script used by HP pwplus--don't use.
2002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2014 if test "${ac_cv_path_install+set}" = set; then
2015 INSTALL=$ac_cv_path_install
2017 # As a last resort, use the slow shell script. We don't cache a
2018 # path for INSTALL within a source directory, because that will
2019 # break other packages using the cache if that directory is
2020 # removed, or if the path is relative.
2021 INSTALL=$ac_install_sh
2024 echo "$as_me:$LINENO: result: $INSTALL" >&5
2025 echo "${ECHO_T}$INSTALL" >&6
2027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2028 # It thinks the first close brace ends the variable substitution.
2029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2121 if test -z "$CC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_CC="${ac_tool_prefix}cc"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2159 if test -z "$ac_cv_prog_CC"; then
2161 # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test -n "$ac_ct_CC"; then
2169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_ac_ct_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222 ac_prog_rejected=yes
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 if test $ac_prog_rejected = yes; then
2233 # We found a bogon in the path, so make sure we never use it.
2234 set dummy $ac_cv_prog_CC
2236 if test $# != 0; then
2237 # We chose a different compiler from the bogus one.
2238 # However, it has the same basename, so the bogon will be chosen
2239 # first if we set CC to just the basename; use the full file name.
2241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2256 if test -z "$CC"; then
2257 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 if test -n "$CC"; then
2288 echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2291 echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2295 test -n "$CC" && break
2298 if test -z "$CC"; then
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 ac_cv_prog_ac_ct_CC="$ac_prog"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329 if test -n "$ac_ct_CC"; then
2330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331 echo "${ECHO_T}$ac_ct_CC" >&6
2333 echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6
2337 test -n "$ac_ct_CC" && break
2346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: no acceptable C compiler found in \$PATH
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2352 # Provide some information about the compiler.
2353 echo "$as_me:$LINENO:" \
2354 "checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357 (eval $ac_compiler --version </dev/null >&5) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362 (eval $ac_compiler -v </dev/null >&5) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367 (eval $ac_compiler -V </dev/null >&5) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396 (eval $ac_link_default) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # Find the output, starting from the most likely. This scheme is
2401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404 # Be careful to initialize this variable, since it used to be cached.
2405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2407 # b.out is created by i960 compilers.
2408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2410 test -f "$ac_file" || continue
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415 # This is the source file.
2418 # We found the default executable, but exeext='' is most
2422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # FIXME: I believe we export ac_cv_exeext for Libtool,
2424 # but it would be cool to find out if it's true. Does anybody
2425 # maintain Libtool? --akim.
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&2;}
2440 { (exit 77); exit 77; }; }
2443 ac_exeext=$ac_cv_exeext
2444 echo "$as_me:$LINENO: result: $ac_file" >&5
2445 echo "${ECHO_T}$ac_file" >&6
2447 # Check the compiler produces executables we can run. If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454 if { ac_try='./$ac_file'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 if test "$cross_compiling" = maybe; then
2465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466 If you meant to cross compile, use \`--host'.
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479 ac_clean_files=$ac_clean_files_save
2480 # Check the compiler produces executables we can run. If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485 echo "${ECHO_T}$cross_compiling" >&6
2487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490 (eval $ac_link) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; then
2494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 for ac_file in conftest.exe conftest conftest.*; do
2499 test -f "$ac_file" || continue
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2516 rm -f conftest$ac_cv_exeext
2517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2697 if test "$GCC" = yes; then
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 ac_cv_prog_cc_stdc=no
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2734 s = g (p, va_arg (v,int));
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std1 is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std1. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX -qlanglvl=ansi
2765 # Ultrix and OSF/1 -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions -Aa -D_HPUX_SOURCE
2768 # SVR4 -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 CC="$ac_save_CC $ac_arg"
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_prog_cc_stdc=$ac_arg
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f conftest.err conftest.$ac_objext
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2808 case "x$ac_cv_prog_cc_stdc" in
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815 CC="$CC $ac_cv_prog_cc_stdc" ;;
2818 # Some people use a C++ compiler to compile C. Since we use `exit',
2819 # in C++ we need to declare it. In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 for ac_declaration in \
2851 'extern "C" void std::exit (int) throw (); using std::exit;' \
2852 'extern "C" void std::exit (int); using std::exit;' \
2853 'extern "C" void exit (int) throw ();' \
2854 'extern "C" void exit (int);' \
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 rm -f .deps 2>/dev/null
2967 mkdir .deps 2>/dev/null
2968 if test -d .deps; then
2971 # MS-DOS does not allow filenames that begin with a dot.
2974 rmdir .deps 2>/dev/null
2977 ac_config_commands="$ac_config_commands depfiles"
2980 am_make=${MAKE-make}
2981 cat > confinc << 'END'
2985 # If we don't find an include directive, just comment out the code.
2986 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2987 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2991 # First try GNU make style include.
2992 echo "include confinc" > confmf
2993 # We grep out `Entering directory' and `Leaving directory'
2994 # messages which can occur if `w' ends up in MAKEFLAGS.
2995 # In particular we don't look at `^make:' because GNU make might
2996 # be invoked under some other name (usually "gmake"), in which
2997 # case it prints its new name instead of `make'.
2998 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3003 # Now try BSD make style include.
3004 if test "$am__include" = "#"; then
3005 echo '.include "confinc"' > confmf
3006 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3007 am__include=.include
3014 echo "$as_me:$LINENO: result: $_am_result" >&5
3015 echo "${ECHO_T}$_am_result" >&6
3016 rm -f confinc confmf
3018 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3019 if test "${enable_dependency_tracking+set}" = set; then
3020 enableval="$enable_dependency_tracking"
3023 if test "x$enable_dependency_tracking" != xno; then
3024 am_depcomp="$ac_aux_dir/depcomp"
3029 if test "x$enable_dependency_tracking" != xno; then
3040 depcc="$CC" am_compiler_list=
3042 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3043 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3048 # We make a subdir and do the tests there. Otherwise we can end up
3049 # making bogus files that we don't know about and never remove. For
3050 # instance it was reported that on HP-UX the gcc test will end up
3051 # making a dummy file named `D' -- because `-MD' means `put the output
3054 # Copy depcomp to subdir because otherwise we won't find it if we're
3055 # using a relative directory.
3056 cp "$am_depcomp" conftest.dir
3059 am_cv_CC_dependencies_compiler_type=none
3060 if test "$am_compiler_list" = ""; then
3061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3063 for depmode in $am_compiler_list; do
3064 # We need to recreate these files for each test, as the compiler may
3065 # overwrite some of them when testing with obscure command lines.
3066 # This happens at least with the AIX C compiler.
3067 echo '#include "conftest.h"' > conftest.c
3068 echo 'int i;' > conftest.h
3069 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3073 # after this tag, mechanisms are not by side-effect, so they'll
3074 # only be used when explicitly requested
3075 if test "x$enable_dependency_tracking" = xyes; then
3083 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3084 # mode. It turns out that the SunPro C++ compiler does not properly
3085 # handle `-M -o', and we need to detect this.
3086 if depmode=$depmode \
3087 source=conftest.c object=conftest.o \
3088 depfile=conftest.Po tmpdepfile=conftest.TPo \
3089 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3090 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3092 am_cv_CC_dependencies_compiler_type=$depmode
3100 am_cv_CC_dependencies_compiler_type=none
3104 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3105 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3110 ac_cpp='$CXXCPP $CPPFLAGS'
3111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_CXX+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$CXX"; then
3125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 if test -n "$CXX"; then
3145 echo "$as_me:$LINENO: result: $CXX" >&5
3146 echo "${ECHO_T}$CXX" >&6
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3152 test -n "$CXX" && break
3155 if test -z "$CXX"; then
3157 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$ac_ct_CXX"; then
3167 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CXX="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3186 if test -n "$ac_ct_CXX"; then
3187 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3188 echo "${ECHO_T}$ac_ct_CXX" >&6
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3194 test -n "$ac_ct_CXX" && break
3196 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3202 # Provide some information about the compiler.
3203 echo "$as_me:$LINENO:" \
3204 "checking for C++ compiler version" >&5
3205 ac_compiler=`set X $ac_compile; echo $2`
3206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3207 (eval $ac_compiler --version </dev/null >&5) 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3212 (eval $ac_compiler -v </dev/null >&5) 2>&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }
3216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3217 (eval $ac_compiler -V </dev/null >&5) 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3222 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3223 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3224 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -z "$ac_cxx_werror_flag"
3255 || test ! -s conftest.err'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; } &&
3261 { ac_try='test -s conftest.$ac_objext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3278 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3279 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3280 GXX=`test $ac_compiler_gnu = yes && echo yes`
3281 ac_test_CXXFLAGS=${CXXFLAGS+set}
3282 ac_save_CXXFLAGS=$CXXFLAGS
3284 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3286 if test "${ac_cv_prog_cxx_g+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_cxx_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_cv_prog_cxx_g=yes
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3336 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3337 if test "$ac_test_CXXFLAGS" = set; then
3338 CXXFLAGS=$ac_save_CXXFLAGS
3339 elif test $ac_cv_prog_cxx_g = yes; then
3340 if test "$GXX" = yes; then
3346 if test "$GXX" = yes; then
3352 for ac_declaration in \
3354 'extern "C" void std::exit (int) throw (); using std::exit;' \
3355 'extern "C" void std::exit (int); using std::exit;' \
3356 'extern "C" void exit (int) throw ();' \
3357 'extern "C" void exit (int);' \
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -z "$ac_cxx_werror_flag"
3386 || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_cxx_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452 if test -n "$ac_declaration"; then
3453 echo '#ifdef __cplusplus' >>confdefs.h
3454 echo $ac_declaration >>confdefs.h
3455 echo '#endif' >>confdefs.h
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 depcc="$CXX" am_compiler_list=
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3483 am_cv_CXX_dependencies_compiler_type=none
3484 if test "$am_compiler_list" = ""; then
3485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487 for depmode in $am_compiler_list; do
3488 # We need to recreate these files for each test, as the compiler may
3489 # overwrite some of them when testing with obscure command lines.
3490 # This happens at least with the AIX C compiler.
3491 echo '#include "conftest.h"' > conftest.c
3492 echo 'int i;' > conftest.h
3493 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3497 # after this tag, mechanisms are not by side-effect, so they'll
3498 # only be used when explicitly requested
3499 if test "x$enable_dependency_tracking" = xyes; then
3507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508 # mode. It turns out that the SunPro C++ compiler does not properly
3509 # handle `-M -o', and we need to detect this.
3510 if depmode=$depmode \
3511 source=conftest.c object=conftest.o \
3512 depfile=conftest.Po tmpdepfile=conftest.TPo \
3513 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3514 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3516 am_cv_CXX_dependencies_compiler_type=$depmode
3524 am_cv_CXX_dependencies_compiler_type=none
3528 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3529 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3530 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3533 # Check whether --enable-shared or --disable-shared was given.
3534 if test "${enable_shared+set}" = set; then
3535 enableval="$enable_shared"
3536 p=${PACKAGE-default}
3538 yes) enable_shared=yes ;;
3539 no) enable_shared=no ;;
3542 # Look at the argument we got. We use all the common list separators.
3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3544 for pkg in $enableval; do
3545 if test "X$pkg" = "X$p"; then
3555 # Check whether --enable-static or --disable-static was given.
3556 if test "${enable_static+set}" = set; then
3557 enableval="$enable_static"
3558 p=${PACKAGE-default}
3560 yes) enable_static=yes ;;
3561 no) enable_static=no ;;
3564 # Look at the argument we got. We use all the common list separators.
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3566 for pkg in $enableval; do
3567 if test "X$pkg" = "X$p"; then
3577 # Check whether --enable-fast-install or --disable-fast-install was given.
3578 if test "${enable_fast_install+set}" = set; then
3579 enableval="$enable_fast_install"
3580 p=${PACKAGE-default}
3582 yes) enable_fast_install=yes ;;
3583 no) enable_fast_install=no ;;
3585 enable_fast_install=no
3586 # Look at the argument we got. We use all the common list separators.
3587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3588 for pkg in $enableval; do
3589 if test "X$pkg" = "X$p"; then
3590 enable_fast_install=yes
3597 enable_fast_install=yes
3599 # Make sure we can run config.sub.
3600 $ac_config_sub sun4 >/dev/null 2>&1 ||
3601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3603 { (exit 1); exit 1; }; }
3605 echo "$as_me:$LINENO: checking build system type" >&5
3606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3607 if test "${ac_cv_build+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_build_alias=$build_alias
3611 test -z "$ac_cv_build_alias" &&
3612 ac_cv_build_alias=`$ac_config_guess`
3613 test -z "$ac_cv_build_alias" &&
3614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3616 { (exit 1); exit 1; }; }
3617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3620 { (exit 1); exit 1; }; }
3623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3624 echo "${ECHO_T}$ac_cv_build" >&6
3626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3631 echo "$as_me:$LINENO: checking host system type" >&5
3632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3633 if test "${ac_cv_host+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_cv_host_alias=$host_alias
3637 test -z "$ac_cv_host_alias" &&
3638 ac_cv_host_alias=$ac_cv_build_alias
3639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3642 { (exit 1); exit 1; }; }
3645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3646 echo "${ECHO_T}$ac_cv_host" >&6
3648 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3649 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3650 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3653 # Find the correct PATH separator. Usually this is `:', but
3654 # DJGPP uses `;' like DOS.
3655 if test "X${PATH_SEPARATOR+set}" != Xset; then
3656 UNAME=${UNAME-`uname 2>/dev/null`}
3658 *-DOS) lt_cv_sys_path_separator=';' ;;
3659 *) lt_cv_sys_path_separator=':' ;;
3661 PATH_SEPARATOR=$lt_cv_sys_path_separator
3665 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3666 if test "${with_gnu_ld+set}" = set; then
3667 withval="$with_gnu_ld"
3668 test "$withval" = no || with_gnu_ld=yes
3673 if test "$GCC" = yes; then
3674 # Check if gcc -print-prog-name=ld gives a path.
3675 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3676 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3679 # gcc leaves a trailing carriage return which upsets mingw
3680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3685 # Accept absolute paths.
3686 [\\/]* | [A-Za-z]:[\\/]*)
3687 re_direlt='/[^/][^/]*/\.\./'
3688 # Canonicalize the path of ld
3689 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3690 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3691 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3693 test -z "$LD" && LD="$ac_prog"
3696 # If it fails, then pretend we aren't using GCC.
3700 # If it is relative, then search for the first ld in PATH.
3704 elif test "$with_gnu_ld" = yes; then
3705 echo "$as_me:$LINENO: checking for GNU ld" >&5
3706 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3708 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3709 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3711 if test "${lt_cv_path_LD+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test -z "$LD"; then
3715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716 for ac_dir in $PATH; do
3717 test -z "$ac_dir" && ac_dir=.
3718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3719 lt_cv_path_LD="$ac_dir/$ac_prog"
3720 # Check to see if the program is GNU ld. I'd rather use --version,
3721 # but apparently some GNU ld's only accept -v.
3722 # Break only if it was the GNU/non-GNU ld that we prefer.
3723 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3724 test "$with_gnu_ld" != no && break
3726 test "$with_gnu_ld" != yes && break
3732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3737 if test -n "$LD"; then
3738 echo "$as_me:$LINENO: result: $LD" >&5
3739 echo "${ECHO_T}$LD" >&6
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3744 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3745 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3746 { (exit 1); exit 1; }; }
3747 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3748 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3753 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3754 lt_cv_prog_gnu_ld=yes
3756 lt_cv_prog_gnu_ld=no
3759 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3761 with_gnu_ld=$lt_cv_prog_gnu_ld
3764 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3765 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3766 if test "${lt_cv_ld_reload_flag+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 lt_cv_ld_reload_flag='-r'
3771 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3772 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3773 reload_flag=$lt_cv_ld_reload_flag
3774 test -n "$reload_flag" && reload_flag=" $reload_flag"
3776 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3777 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3778 if test "${lt_cv_path_NM+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -n "$NM"; then
3782 # Let the user override the test.
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3786 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3787 test -z "$ac_dir" && ac_dir=.
3788 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3789 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3790 # Check to see if the nm accepts a BSD-compat flag.
3791 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3792 # nm: unknown option "B" ignored
3793 # Tru64's nm complains that /dev/null is an invalid object file
3794 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3795 lt_cv_path_NM="$tmp_nm -B"
3797 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3798 lt_cv_path_NM="$tmp_nm -p"
3801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3802 continue # so that we can try to find one that supports BSD flags
3807 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3812 echo "$as_me:$LINENO: result: $NM" >&5
3813 echo "${ECHO_T}$NM" >&6
3815 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3816 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3817 if test "${lt_cv_path_SED+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 # Loop through the user's path and test for sed and gsed.
3821 # Then use that list of sed's as ones to test for truncation.
3822 as_executable_p="test -f"
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 test -z "$as_dir" && as_dir=.
3828 for ac_prog in sed gsed; do
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3831 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3837 # Create a temporary directory, and hook for its removal unless debugging.
3840 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3841 trap '{ (exit 1); exit 1; }' 1 2 13 15
3844 # Create a (secure) tmp directory for tmp files.
3847 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3848 test -n "$tmp" && test -d "$tmp"
3851 tmp=$TMPDIR/sed$$-$RANDOM
3852 (umask 077 && mkdir $tmp)
3855 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3856 { (exit 1); exit 1; }
3860 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3861 # along with /bin/sed that truncates output.
3862 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3863 test ! -f ${_sed} && break
3864 cat /dev/null > "$tmp/sed.in"
3866 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3867 # Check for GNU sed and select it if it is found.
3868 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3869 lt_cv_path_SED=${_sed}
3873 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3874 mv "$tmp/sed.tmp" "$tmp/sed.in"
3875 cp "$tmp/sed.in" "$tmp/sed.nl"
3876 echo >>"$tmp/sed.nl"
3877 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3878 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3879 # 40000 chars as input seems more than enough
3880 test $_count -gt 10 && break
3881 _count=`expr $_count + 1`
3882 if test $_count -gt $_max; then
3884 lt_cv_path_SED=$_sed
3892 if test "X$SED" != "X"; then
3897 echo "$as_me:$LINENO: result: $SED" >&5
3898 echo "${ECHO_T}$SED" >&6
3900 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3901 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3903 if test "$LN_S" = "ln -s"; then
3904 echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6
3907 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3908 echo "${ECHO_T}no, using $LN_S" >&6
3911 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3912 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3913 if test "${lt_cv_deplibs_check_method+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 lt_cv_file_magic_cmd='$MAGIC_CMD'
3917 lt_cv_file_magic_test_file=
3918 lt_cv_deplibs_check_method='unknown'
3919 # Need to set the preceding variable on all platforms that support
3920 # interlibrary dependencies.
3921 # 'none' -- dependencies not supported.
3922 # `unknown' -- same as none, but documents that we really don't know.
3923 # 'pass_all' -- all dependencies passed with no checks.
3924 # 'test_compile' -- check by making test program.
3925 # 'file_magic [[regex]]' -- check by looking for files in library path
3926 # which responds to the $file_magic_cmd with a given egrep regex.
3927 # If you have `file' or equivalent on your system and you're not sure
3928 # whether `pass_all' will *always* work, you probably want this one.
3932 lt_cv_deplibs_check_method=pass_all
3936 lt_cv_deplibs_check_method=pass_all
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3941 lt_cv_file_magic_cmd='/usr/bin/file -L'
3942 lt_cv_file_magic_test_file=/shlib/libc.so
3945 cygwin* | mingw* | pw32*)
3946 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3947 lt_cv_file_magic_cmd='$OBJDUMP -f'
3950 darwin* | rhapsody*)
3951 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3952 lt_cv_file_magic_cmd='/usr/bin/file -L'
3954 rhapsody* | darwin1.[012])
3955 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3958 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3967 # Not sure whether the presence of OpenBSD here was a mistake.
3968 # Let's accept both of them until this is cleared up.
3969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3970 lt_cv_file_magic_cmd=/usr/bin/file
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3975 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_deplibs_check_method=pass_all
3984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3985 lt_cv_file_magic_cmd=/usr/bin/file
3986 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3989 irix5* | irix6* | nonstopux*)
3991 irix5* | nonstopux*)
3992 # this will be overridden with pass_all, but let us keep it just in case
3993 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3997 *-32|*"-32 ") libmagic=32-bit;;
3998 *-n32|*"-n32 ") libmagic=N32;;
3999 *-64|*"-64 ") libmagic=64-bit;;
4000 *) libmagic=never-match;;
4002 # this will be overridden with pass_all, but let us keep it just in case
4003 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4006 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4007 lt_cv_deplibs_check_method=pass_all
4010 # This must be Linux ELF.
4013 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4014 lt_cv_deplibs_check_method=pass_all ;;
4016 # glibc up to 2.1.1 does not perform some relocations on ARM
4017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4019 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4023 lt_cv_deplibs_check_method=pass_all
4024 lt_cv_file_magic_test_file=`echo /lib/libuClibc*.so`
4028 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4029 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4031 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4037 lt_cv_file_magic_cmd=/usr/bin/file
4038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4042 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4047 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4051 osf3* | osf4* | osf5*)
4052 # this will be overridden with pass_all, but let us keep it just in case
4053 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4054 lt_cv_file_magic_test_file=/shlib/libc.so
4055 lt_cv_deplibs_check_method=pass_all
4059 lt_cv_deplibs_check_method=pass_all
4063 lt_cv_deplibs_check_method=pass_all
4064 lt_cv_file_magic_test_file=/lib/libc.so
4067 sysv5uw[78]* | sysv4*uw2*)
4068 lt_cv_deplibs_check_method=pass_all
4071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4072 case $host_vendor in
4074 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]'
4075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4078 lt_cv_deplibs_check_method=pass_all
4081 lt_cv_file_magic_cmd='/bin/file'
4082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4085 lt_cv_file_magic_cmd='/bin/file'
4086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4087 lt_cv_file_magic_test_file=/lib/libc.so
4090 lt_cv_deplibs_check_method=pass_all
4097 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4098 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4099 file_magic_cmd=$lt_cv_file_magic_cmd
4100 deplibs_check_method=$lt_cv_deplibs_check_method
4109 # Check for command to grab the raw symbol name followed by C symbol from nm.
4110 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4111 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4112 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 # These are sane defaults that work on at least a few old systems.
4117 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4119 # Character class describing NM global symbol codes.
4120 symcode='[BCDEGRST]'
4122 # Regexp to match symbols that can be accessed directly from C.
4123 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4125 # Transform the above into a raw symbol and a C symbol.
4126 symxfrm='\1 \2\3 \3'
4128 # Transform an extracted symbol line into a proper C declaration
4129 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4131 # Transform an extracted symbol line into symbol name and symbol address
4132 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4134 # Define system-specific variables.
4139 cygwin* | mingw* | pw32*)
4140 symcode='[ABCDGISTW]'
4142 hpux*) # Its linker distinguishes data from code symbols
4143 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4144 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4147 symcode='[BCDEGRST]'
4150 symcode='[BCDEGQRST]'
4160 # Handle CRLF in mingw tool chain
4164 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4168 # If we're using GNU nm, then use its standard symbol codes.
4169 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4170 symcode='[ABCDGISTW]'
4173 # Try without a prefix undercore, then with it.
4174 for ac_symprfx in "" "_"; do
4176 # Write the raw and C identifiers.
4177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4179 # Check to see that the pipe works correctly.
4182 cat > conftest.$ac_ext <<EOF
4187 void nm_test_func(){}
4191 int main(){nm_test_var='a';nm_test_func();return(0);}
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; then
4199 # Now try to grab the symbols.
4201 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4202 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && test -s "$nlist"; then
4206 # Try sorting and uniquifying the output.
4207 if sort "$nlist" | uniq > "$nlist"T; then
4208 mv -f "$nlist"T "$nlist"
4213 # Make sure that we snagged all the symbols we need.
4214 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4215 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4216 cat <<EOF > conftest.$ac_ext
4222 # Now generate the symbol file.
4223 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4225 cat <<EOF >> conftest.$ac_ext
4226 #if defined (__STDC__) && __STDC__
4227 # define lt_ptr void *
4229 # define lt_ptr char *
4233 /* The mapping between symbol names and symbols. */
4238 lt_preloaded_symbols[] =
4241 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4242 cat <<\EOF >> conftest.$ac_ext
4250 # Now try linking the two files.
4251 mv conftest.$ac_objext conftstm.$ac_objext
4253 save_CFLAGS="$CFLAGS"
4254 LIBS="conftstm.$ac_objext"
4255 CFLAGS="$CFLAGS$no_builtin_flag"
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && test -s conftest$ac_exeext; then
4264 CFLAGS="$save_CFLAGS"
4266 echo "cannot find nm_test_func in $nlist" >&5
4269 echo "cannot find nm_test_var in $nlist" >&5
4272 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4275 echo "$progname: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 rm -f conftest* conftst*
4280 # Do not use the global_symbol_pipe unless it works.
4281 if test "$pipe_works" = yes; then
4284 lt_cv_sys_global_symbol_pipe=
4290 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4292 global_symbol_to_cdecl=
4293 global_symbol_to_c_name_address=
4295 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4296 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4298 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4300 echo "$as_me:$LINENO: result: failed" >&5
4301 echo "${ECHO_T}failed" >&6
4303 echo "$as_me:$LINENO: result: ok" >&5
4304 echo "${ECHO_T}ok" >&6
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4318 if test -z "$CPP"; then
4319 if test "${ac_cv_prog_CPP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 # Double quotes because CPP needs to be expanded
4323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326 for ac_c_preproc_warn_flag in '' yes
4328 # Use a header file that comes with gcc, so configuring glibc
4329 # with a fresh cross-compiler works.
4330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 # <limits.h> exists even on freestanding compilers.
4332 # On the NeXT, cc -E runs the code through the compiler's parser,
4333 # not just through cpp. "Syntax error" is here to catch this case.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4341 # include <limits.h>
4343 # include <assert.h>
4347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null; then
4355 if test -s conftest.err; then
4356 ac_cpp_err=$ac_c_preproc_warn_flag
4357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4364 if test -z "$ac_cpp_err"; then
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 # Broken: fails on valid input.
4373 rm -f conftest.err conftest.$ac_ext
4375 # OK, works on sane cases. Now check whether non-existent headers
4376 # can be detected and how.
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null; then
4393 if test -s conftest.err; then
4394 ac_cpp_err=$ac_c_preproc_warn_flag
4395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4402 if test -z "$ac_cpp_err"; then
4403 # Broken: success on invalid input.
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 # Passes both tests.
4413 rm -f conftest.err conftest.$ac_ext
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then
4430 echo "$as_me:$LINENO: result: $CPP" >&5
4431 echo "${ECHO_T}$CPP" >&6
4433 for ac_c_preproc_warn_flag in '' yes
4435 # Use a header file that comes with gcc, so configuring glibc
4436 # with a fresh cross-compiler works.
4437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4438 # <limits.h> exists even on freestanding compilers.
4439 # On the NeXT, cc -E runs the code through the compiler's parser,
4440 # not just through cpp. "Syntax error" is here to catch this case.
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4448 # include <limits.h>
4450 # include <assert.h>
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471 if test -z "$ac_cpp_err"; then
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 # Broken: fails on valid input.
4480 rm -f conftest.err conftest.$ac_ext
4482 # OK, works on sane cases. Now check whether non-existent headers
4483 # can be detected and how.
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <ac_nonexistent.h>
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null; then
4500 if test -s conftest.err; then
4501 ac_cpp_err=$ac_c_preproc_warn_flag
4502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4509 if test -z "$ac_cpp_err"; then
4510 # Broken: success on invalid input.
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # Passes both tests.
4520 rm -f conftest.err conftest.$ac_ext
4523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524 rm -f conftest.err conftest.$ac_ext
4525 if $ac_preproc_ok; then
4528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4529 See \`config.log' for more details." >&5
4530 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4531 See \`config.log' for more details." >&2;}
4532 { (exit 1); exit 1; }; }
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 echo "$as_me:$LINENO: checking for egrep" >&5
4543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4544 if test "${ac_cv_prog_egrep+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4548 then ac_cv_prog_egrep='grep -E'
4549 else ac_cv_prog_egrep='egrep'
4552 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4553 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4554 EGREP=$ac_cv_prog_egrep
4557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4559 if test "${ac_cv_header_stdc+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.$ac_ext <<_ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_header_stdc=yes
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608 ac_cv_header_stdc=no
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 if test $ac_cv_header_stdc = yes; then
4613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "memchr" >/dev/null 2>&1; then
4627 ac_cv_header_stdc=no
4633 if test $ac_cv_header_stdc = yes; then
4634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "free" >/dev/null 2>&1; then
4648 ac_cv_header_stdc=no
4654 if test $ac_cv_header_stdc = yes; then
4655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656 if test "$cross_compiling" = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4666 #if ((' ' & 0x0FF) == 0x020)
4667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4670 # define ISLOWER(c) \
4671 (('a' <= (c) && (c) <= 'i') \
4672 || ('j' <= (c) && (c) <= 'r') \
4673 || ('s' <= (c) && (c) <= 'z'))
4674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4682 for (i = 0; i < 256; i++)
4683 if (XOR (islower (i), ISLOWER (i))
4684 || toupper (i) != TOUPPER (i))
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4702 echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4707 ac_cv_header_stdc=no
4709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4714 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4715 if test $ac_cv_header_stdc = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define STDC_HEADERS 1
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734 inttypes.h stdint.h unistd.h
4736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4750 #include <$ac_header>
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754 (eval $ac_compile) 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag"
4762 || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 eval "$as_ac_Header=yes"
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 eval "$as_ac_Header=no"
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 for ac_header in dlfcn.h
4798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo "$as_me:$LINENO: checking for $ac_header" >&5
4801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4808 # Is the header compilable?
4809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4818 #include <$ac_header>
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 ac_header_compiler=yes
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 ac_header_compiler=no
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4851 echo "${ECHO_T}$ac_header_compiler" >&6
4853 # Is the header present?
4854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <$ac_header>
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_c_preproc_warn_flag
4874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881 if test -z "$ac_cpp_err"; then
4882 ac_header_preproc=yes
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_header_preproc=no
4889 rm -f conftest.err conftest.$ac_ext
4890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4891 echo "${ECHO_T}$ac_header_preproc" >&6
4893 # So? What about this header?
4894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4900 ac_header_preproc=yes
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4917 ## -------------------------------------------- ##
4918 ## Report this to sebastian.marsching@suphp.org ##
4919 ## -------------------------------------------- ##
4922 sed "s/^/$as_me: WARNING: /" >&2
4925 echo "$as_me:$LINENO: checking for $ac_header" >&5
4926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 eval "$as_ac_Header=\$ac_header_preproc"
4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 # Only perform the check for file, if the check method requires it
4951 case $deplibs_check_method in
4953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4954 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4955 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4956 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4967 ac_save_MAGIC_CMD="$MAGIC_CMD"
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4969 ac_dummy="/usr/bin:$PATH"
4970 for ac_dir in $ac_dummy; do
4971 test -z "$ac_dir" && ac_dir=.
4972 if test -f $ac_dir/${ac_tool_prefix}file; then
4973 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4974 if test -n "$file_magic_test_file"; then
4975 case $deplibs_check_method in
4977 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4980 egrep "$file_magic_regex" > /dev/null; then
4985 *** Warning: the command libtool uses to detect shared libraries,
4986 *** $file_magic_cmd, produces output that libtool cannot recognize.
4987 *** The result is that libtool may fail to recognize shared libraries
4988 *** as such. This will affect the creation of libtool libraries that
4989 *** depend on shared libraries, but programs linked with such libtool
4990 *** libraries will work regardless of this problem. Nevertheless, you
4991 *** may want to report the problem to your system manager and/or to
4992 *** bug-libtool@gnu.org
5002 MAGIC_CMD="$ac_save_MAGIC_CMD"
5007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5008 if test -n "$MAGIC_CMD"; then
5009 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5010 echo "${ECHO_T}$MAGIC_CMD" >&6
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5016 if test -z "$lt_cv_path_MAGIC_CMD"; then
5017 if test -n "$ac_tool_prefix"; then
5018 echo "$as_me:$LINENO: checking for file" >&5
5019 echo $ECHO_N "checking for file... $ECHO_C" >&6
5020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5031 ac_save_MAGIC_CMD="$MAGIC_CMD"
5032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5033 ac_dummy="/usr/bin:$PATH"
5034 for ac_dir in $ac_dummy; do
5035 test -z "$ac_dir" && ac_dir=.
5036 if test -f $ac_dir/file; then
5037 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5038 if test -n "$file_magic_test_file"; then
5039 case $deplibs_check_method in
5041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5044 egrep "$file_magic_regex" > /dev/null; then
5049 *** Warning: the command libtool uses to detect shared libraries,
5050 *** $file_magic_cmd, produces output that libtool cannot recognize.
5051 *** The result is that libtool may fail to recognize shared libraries
5052 *** as such. This will affect the creation of libtool libraries that
5053 *** depend on shared libraries, but programs linked with such libtool
5054 *** libraries will work regardless of this problem. Nevertheless, you
5055 *** may want to report the problem to your system manager and/or to
5056 *** bug-libtool@gnu.org
5066 MAGIC_CMD="$ac_save_MAGIC_CMD"
5071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5072 if test -n "$MAGIC_CMD"; then
5073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5074 echo "${ECHO_T}$MAGIC_CMD" >&6
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_prog_RANLIB+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$RANLIB"; then
5098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 RANLIB=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118 echo "$as_me:$LINENO: result: $RANLIB" >&5
5119 echo "${ECHO_T}$RANLIB" >&6
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5126 if test -z "$ac_cv_prog_RANLIB"; then
5127 ac_ct_RANLIB=$RANLIB
5128 # Extract the first word of "ranlib", so it can be a program name with args.
5129 set dummy ranlib; ac_word=$2
5130 echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test -n "$ac_ct_RANLIB"; then
5136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_RANLIB="ranlib"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5156 if test -n "$ac_ct_RANLIB"; then
5157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5160 echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5164 RANLIB=$ac_ct_RANLIB
5166 RANLIB="$ac_cv_prog_RANLIB"
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}strip; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_STRIP+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$STRIP"; then
5178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 STRIP=$ac_cv_prog_STRIP
5197 if test -n "$STRIP"; then
5198 echo "$as_me:$LINENO: result: $STRIP" >&5
5199 echo "${ECHO_T}$STRIP" >&6
5201 echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5206 if test -z "$ac_cv_prog_STRIP"; then
5208 # Extract the first word of "strip", so it can be a program name with args.
5209 set dummy strip; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 if test -n "$ac_ct_STRIP"; then
5216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_STRIP="strip"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5236 if test -n "$ac_ct_STRIP"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5238 echo "${ECHO_T}$ac_ct_STRIP" >&6
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5246 STRIP="$ac_cv_prog_STRIP"
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255 enableval="$enable_libtool_lock"
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5260 # Some flags need to be propagated to the compiler or linker for good
5264 # Find out which ABI we are using.
5265 echo '#line 5265 "configure"' > conftest.$ac_ext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; then
5271 case `/usr/bin/file conftest.$ac_objext` in
5287 # Test if the compiler is 64bit
5288 echo 'int i;' > conftest.$ac_ext
5289 lt_cv_cc_64bit_output=no
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; then
5295 case `/usr/bin/file conftest.$ac_objext` in
5297 lt_cv_cc_64bit_output=yes
5305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5306 SAVE_CFLAGS="$CFLAGS"
5307 CFLAGS="$CFLAGS -belf"
5308 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5310 if test "${lt_cv_cc_needs_belf+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 lt_cv_cc_needs_belf=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 lt_cv_cc_needs_belf=no
5365 rm -f conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5378 CFLAGS="$SAVE_CFLAGS"
5385 # Sed substitution that helps us do robust quoting. It backslashifies
5386 # metacharacters that are still active within double-quoted strings.
5387 Xsed='sed -e s/^X//'
5388 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5390 # Same as above, but do not quote variable references.
5391 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5393 # Sed substitution to delay expansion of an escaped shell variable in a
5394 # double_quote_subst'ed string.
5395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5401 default_ofile=libtool
5402 can_build_shared=yes
5404 # All known linkers require a `.a' archive for static linking (except M$VC,
5405 # which needs '.lib').
5407 ltmain="$ac_aux_dir/ltmain.sh"
5408 ofile="$default_ofile"
5409 with_gnu_ld="$lt_cv_prog_gnu_ld"
5410 need_locks="$enable_libtool_lock"
5413 old_CFLAGS="$CFLAGS"
5415 # Set sane defaults for various variables
5416 test -z "$AR" && AR=ar
5417 test -z "$AR_FLAGS" && AR_FLAGS=cru
5418 test -z "$AS" && AS=as
5419 test -z "$CC" && CC=cc
5420 test -z "$DLLTOOL" && DLLTOOL=dlltool
5421 test -z "$LD" && LD=ld
5422 test -z "$LN_S" && LN_S="ln -s"
5423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5424 test -z "$NM" && NM=nm
5425 test -z "$OBJDUMP" && OBJDUMP=objdump
5426 test -z "$RANLIB" && RANLIB=:
5427 test -z "$STRIP" && STRIP=:
5428 test -z "$ac_objext" && ac_objext=o
5430 if test x"$host" != x"$build"; then
5431 ac_tool_prefix=${host_alias}-
5436 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5438 linux-gnu*|linux-uclibc*) ;;
5439 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5444 # AIX sometimes has problems with the GCC collect2 program. For some
5445 # reason, if we set the COLLECT_NAMES environment variable, the problems
5446 # vanish in a puff of smoke.
5447 if test "X${COLLECT_NAMES+set}" != Xset; then
5449 export COLLECT_NAMES
5454 # Determine commands to create old-style static archives.
5455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5456 old_postinstall_cmds='chmod 644 $oldlib'
5457 old_postuninstall_cmds=
5459 if test -n "$RANLIB"; then
5462 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5465 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5471 # Allow CC to be a program name with arguments.
5475 echo "$as_me:$LINENO: checking for objdir" >&5
5476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5477 rm -f .libs 2>/dev/null
5478 mkdir .libs 2>/dev/null
5479 if test -d .libs; then
5482 # MS-DOS does not allow filenames that begin with a dot.
5485 rmdir .libs 2>/dev/null
5486 echo "$as_me:$LINENO: result: $objdir" >&5
5487 echo "${ECHO_T}$objdir" >&6
5491 # Check whether --with-pic or --without-pic was given.
5492 if test "${with_pic+set}" = set; then
5498 test -z "$pic_mode" && pic_mode=default
5500 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5501 # in isolation, and that seeing it set (from the cache) indicates that
5502 # the associated values are set (in the cache) correctly too.
5503 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5505 if test "${lt_cv_prog_cc_pic+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 lt_cv_prog_cc_shlib=
5511 lt_cv_prog_cc_static=
5512 lt_cv_prog_cc_no_builtin=
5513 lt_cv_prog_cc_can_build_shared=$can_build_shared
5515 if test "$GCC" = yes; then
5516 lt_cv_prog_cc_wl='-Wl,'
5517 lt_cv_prog_cc_static='-static'
5521 # Below there is a dirty hack to force normal static linking with -ldl
5522 # The problem is because libdl dynamically linked with both libc and
5523 # libC (AIX C++ library), which obviously doesn't included in libraries
5524 # list by gcc. This cause undefined symbols with -static flags.
5525 # This hack allows C programs to be linked with "-static -ldl", but
5526 # not sure about C++ programs.
5527 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5530 # FIXME: we need at least 68020 code to build shared libraries, but
5531 # adding the `-m68020' flag to GCC prevents building anything better,
5533 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5536 # PIC is the default for these OSes.
5538 darwin* | rhapsody*)
5539 # PIC is the default on this platform
5540 # Common symbols not allowed in MH_DYLIB files
5541 lt_cv_prog_cc_pic='-fno-common'
5543 cygwin* | mingw* | pw32* | os2*)
5544 # This hack is so that the source file can tell whether it is being
5545 # built for inclusion in a dll (and should export symbols for example).
5546 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5549 if test -d /usr/nec; then
5550 lt_cv_prog_cc_pic=-Kconform_pic
5554 lt_cv_prog_cc_pic='-fPIC'
5558 # PORTME Check for PIC flags for the system compiler.
5560 aix3* | aix4* | aix5*)
5561 lt_cv_prog_cc_wl='-Wl,'
5562 # All AIX code is PIC.
5563 if test "$host_cpu" = ia64; then
5564 # AIX 5 now supports IA64 processor
5565 lt_cv_prog_cc_static='-Bstatic'
5567 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5571 hpux9* | hpux10* | hpux11*)
5572 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5573 lt_cv_prog_cc_wl='-Wl,'
5574 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5575 lt_cv_prog_cc_pic='+Z'
5578 irix5* | irix6* | nonstopux*)
5579 lt_cv_prog_cc_wl='-Wl,'
5580 lt_cv_prog_cc_static='-non_shared'
5581 # PIC (with -KPIC) is the default.
5584 cygwin* | mingw* | pw32* | os2*)
5585 # This hack is so that the source file can tell whether it is being
5586 # built for inclusion in a dll (and should export symbols for example).
5587 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5591 lt_cv_prog_cc_pic='-KPIC'
5592 lt_cv_prog_cc_static='-Bstatic'
5595 osf3* | osf4* | osf5*)
5596 # All OSF/1 code is PIC.
5597 lt_cv_prog_cc_wl='-Wl,'
5598 lt_cv_prog_cc_static='-non_shared'
5602 lt_cv_prog_cc_pic='-Kpic'
5603 lt_cv_prog_cc_static='-dn'
5604 lt_cv_prog_cc_shlib='-belf'
5608 lt_cv_prog_cc_pic='-KPIC'
5609 lt_cv_prog_cc_static='-Bstatic'
5610 lt_cv_prog_cc_wl='-Wl,'
5614 lt_cv_prog_cc_pic='-PIC'
5615 lt_cv_prog_cc_static='-Bstatic'
5616 lt_cv_prog_cc_wl='-Qoption ld '
5619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5620 lt_cv_prog_cc_pic='-KPIC'
5621 lt_cv_prog_cc_static='-Bstatic'
5622 lt_cv_prog_cc_wl='-Wl,'
5626 lt_cv_prog_cc_pic='-pic'
5627 lt_cv_prog_cc_static='-Bstatic'
5631 if test -d /usr/nec ;then
5632 lt_cv_prog_cc_pic='-Kconform_pic'
5633 lt_cv_prog_cc_static='-Bstatic'
5638 lt_cv_prog_cc_can_build_shared=no
5645 if test -z "$lt_cv_prog_cc_pic"; then
5646 echo "$as_me:$LINENO: result: none" >&5
5647 echo "${ECHO_T}none" >&6
5649 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5650 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5652 # Check to make sure the pic_flag actually works.
5653 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5654 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5655 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 save_CFLAGS="$CFLAGS"
5659 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5660 cat >conftest.$ac_ext <<_ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_c_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5698 hpux9* | hpux10* | hpux11*)
5699 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5700 # they create non-PIC objects. So, if there were any warnings, we
5701 # assume that PIC is not supported.
5702 if test -s conftest.err; then
5703 lt_cv_prog_cc_pic_works=no
5705 lt_cv_prog_cc_pic_works=yes
5709 lt_cv_prog_cc_pic_works=yes
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 lt_cv_prog_cc_pic_works=no
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5721 CFLAGS="$save_CFLAGS"
5726 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5728 lt_cv_prog_cc_can_build_shared=no
5730 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5733 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5734 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5737 # Check for any special shared library compilation flags.
5738 if test -n "$lt_cv_prog_cc_shlib"; then
5739 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5740 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5741 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5743 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5744 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5745 lt_cv_prog_cc_can_build_shared=no
5749 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5750 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5751 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 lt_cv_prog_cc_static_works=no
5755 save_LDFLAGS="$LDFLAGS"
5756 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774 (eval $ac_link) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 lt_cv_prog_cc_static_works=yes
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5800 rm -f conftest.err conftest.$ac_objext \
5801 conftest$ac_exeext conftest.$ac_ext
5802 LDFLAGS="$save_LDFLAGS"
5807 # Belt *and* braces to stop my trousers falling down:
5808 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5809 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5810 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5812 pic_flag="$lt_cv_prog_cc_pic"
5813 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5814 wl="$lt_cv_prog_cc_wl"
5815 link_static_flag="$lt_cv_prog_cc_static"
5816 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5817 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5820 # Check to see if options -o and -c are simultaneously supported by compiler
5821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5823 if test "${lt_cv_compiler_c_o+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 $rm -r conftest 2>/dev/null
5830 echo "int some_variable = 0;" > conftest.$ac_ext
5832 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5833 # that will create temporary files in the current directory regardless of
5834 # the output directory. Thus, making CWD read-only will cause this test
5835 # to fail, enabling locking or at least warning the user not to do parallel
5838 save_CFLAGS="$CFLAGS"
5839 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5841 if { (eval echo configure:5841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5842 # The compiler can only warn and ignore the option if not recognized
5843 # So say no if there are warnings
5844 if test -s out/conftest.err; then
5845 lt_cv_compiler_c_o=no
5847 lt_cv_compiler_c_o=yes
5850 # Append any errors to the config.log.
5851 cat out/conftest.err 1>&5
5852 lt_cv_compiler_c_o=no
5854 CFLAGS="$save_CFLAGS"
5860 $rm -r conftest 2>/dev/null
5864 compiler_c_o=$lt_cv_compiler_c_o
5865 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5866 echo "${ECHO_T}$compiler_c_o" >&6
5868 if test x"$compiler_c_o" = x"yes"; then
5869 # Check to see if we can write to a .lo
5870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5871 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5872 if test "${lt_cv_compiler_o_lo+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 lt_cv_compiler_o_lo=no
5877 save_CFLAGS="$CFLAGS"
5878 CFLAGS="$CFLAGS -c -o conftest.lo"
5879 save_objext="$ac_objext"
5881 cat >conftest.$ac_ext <<_ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5891 int some_variable = 0;
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 # The compiler can only warn and ignore the option if not recognized
5919 # So say no if there are warnings
5920 if test -s conftest.err; then
5921 lt_cv_compiler_o_lo=no
5923 lt_cv_compiler_o_lo=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 ac_objext="$save_objext"
5933 CFLAGS="$save_CFLAGS"
5937 compiler_o_lo=$lt_cv_compiler_o_lo
5938 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5939 echo "${ECHO_T}$compiler_o_lo" >&6
5944 # Check to see if we can do hard links to lock some files if needed
5945 hard_links="nottested"
5946 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5947 # do not overwrite the value of need_locks provided by the user
5948 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5954 ln conftest.a conftest.b 2>&5 || hard_links=no
5955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5956 echo "$as_me:$LINENO: result: $hard_links" >&5
5957 echo "${ECHO_T}$hard_links" >&6
5958 if test "$hard_links" = no; then
5959 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5967 if test "$GCC" = yes; then
5968 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5969 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5970 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5971 echo "int some_variable = 0;" > conftest.$ac_ext
5972 save_CFLAGS="$CFLAGS"
5973 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5974 compiler_rtti_exceptions=no
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5985 int some_variable = 0;
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 # The compiler can only warn and ignore the option if not recognized
6013 # So say no if there are warnings
6014 if test -s conftest.err; then
6015 compiler_rtti_exceptions=no
6017 compiler_rtti_exceptions=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 CFLAGS="$save_CFLAGS"
6027 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6028 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6030 if test "$compiler_rtti_exceptions" = "yes"; then
6031 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6033 no_builtin_flag=' -fno-builtin'
6037 # See if the linker supports building shared libraries.
6038 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6039 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6041 allow_undefined_flag=
6043 need_lib_prefix=unknown
6044 need_version=unknown
6045 # when you set need_version to no, make sure it does not cause -set_version
6046 # flags to be left without arguments
6048 archive_expsym_cmds=
6049 old_archive_from_new_cmds=
6050 old_archive_from_expsyms_cmds=
6051 export_dynamic_flag_spec=
6052 whole_archive_flag_spec=
6053 thread_safe_flag_spec=
6054 hardcode_into_libs=no
6055 hardcode_libdir_flag_spec=
6056 hardcode_libdir_separator=
6059 hardcode_shlibpath_var=unsupported
6061 link_all_deplibs=unknown
6062 always_export_symbols=no
6063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6064 # include_expsyms should be a list of space-separated symbols to be *always*
6065 # included in the symbol list
6067 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6070 # as well as any symbol that contains `d'.
6071 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6073 # platforms (ab)use it in PIC code, but their linkers get confused if
6074 # the symbol is explicitly referenced. Since portable code cannot
6075 # rely on this symbol name, it's probably fine to never include it in
6076 # preloaded symbol tables.
6077 extract_expsyms_cmds=
6080 cygwin* | mingw* | pw32*)
6081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6082 # When not using gcc, we currently assume that we are using
6083 # Microsoft Visual C++.
6084 if test "$GCC" != yes; then
6094 if test "$with_gnu_ld" = yes; then
6095 # If archive_cmds runs LD, not CC, wlarc should be empty
6098 # See if GNU ld supports shared libraries.
6100 aix3* | aix4* | aix5*)
6101 # On AIX, the GNU linker is very broken
6102 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6106 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6107 *** to be unable to reliably create shared libraries on AIX.
6108 *** Therefore, libtool is disabling shared libraries support. If you
6109 *** really care for shared libraries, you may want to modify your PATH
6110 *** so that a non-GNU linker is found, and then restart.
6116 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)'
6117 hardcode_libdir_flag_spec='-L$libdir'
6118 hardcode_minus_L=yes
6120 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6121 # that the semantics of dynamic libraries on AmigaOS, at least up
6122 # to version 4, is to share data among multiple programs linked
6123 # with the same dynamic library. Since this doesn't match the
6124 # behavior of shared libraries on other platforms, we can use
6130 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6131 allow_undefined_flag=unsupported
6132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6133 # support --undefined. This deserves some investigation. FIXME
6134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6140 cygwin* | mingw* | pw32*)
6141 # hardcode_libdir_flag_spec is actually meaningless, as there is
6142 # no search path for DLLs.
6143 hardcode_libdir_flag_spec='-L$libdir'
6144 allow_undefined_flag=unsupported
6145 always_export_symbols=yes
6147 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6148 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6149 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6150 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6151 else $CC -o impgen impgen.c ; fi)~
6152 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6154 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6156 # cygwin and mingw dlls have different entry points and sets of symbols
6158 # FIXME: what about values for MSVC?
6159 dll_entry=__cygwin_dll_entry@12
6160 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6164 dll_entry=_DllMainCRTStartup@12
6165 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6169 # mingw and cygwin differ, and it's simplest to just exclude the union
6170 # of the two symbol sets.
6171 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6173 # recent cygwin and mingw systems supply a stub DllMain which the user
6174 # can override, but on older systems we have to supply one (in ltdll.c)
6175 if test "x$lt_cv_need_dllmain" = "xyes"; then
6176 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6177 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6178 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6184 # Extract the symbol export list from an `--export-all' def file,
6185 # then regenerate the def file from the symbol export list, so that
6186 # the compiled dll only exports the symbol export list.
6187 # Be careful not to strip the DATA tag left be newer dlltools.
6188 export_symbols_cmds="$ltdll_cmds"'
6189 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6190 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6192 # If the export-symbols file already is a .def file (1st line
6193 # is EXPORTS), use it as is.
6194 # If DATA tags from a recent dlltool are present, honour them!
6195 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6196 cp $export_symbols $output_objdir/$soname-def;
6198 echo EXPORTS > $output_objdir/$soname-def;
6200 cat $export_symbols | while read symbol; do
6203 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6204 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6205 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6207 _lt_hint=`expr 1 + \$_lt_hint`;
6211 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6212 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6213 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6214 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6215 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6220 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6223 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6224 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6229 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6233 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6234 *** create shared libraries on Solaris systems. Therefore, libtool
6235 *** is disabling shared libraries support. We urge you to upgrade GNU
6236 *** binutils to release 2.9.1 or newer. Another option is to modify
6237 *** your PATH or compiler configuration so that the native linker is
6238 *** used, and then restart.
6241 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6250 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6253 hardcode_shlibpath_var=no
6257 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6259 supports_anon_versioning=no
6260 case `$LD -v 2>/dev/null` in
6261 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6262 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6263 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6264 *\ 2.11.*) ;; # other 2.11 versions
6265 *) supports_anon_versioning=yes ;;
6267 if test $supports_anon_versioning = yes; then
6268 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6270 $echo "local: *; };" >> $output_objdir/$libname.ver~
6271 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6273 $archive_expsym_cmds="$archive_cmds"
6281 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6290 if test "$ld_shlibs" = yes; then
6291 runpath_var=LD_RUN_PATH
6292 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6293 export_dynamic_flag_spec='${wl}--export-dynamic'
6295 cygwin* | mingw* | pw32*)
6296 # dlltool doesn't understand --whole-archive et. al.
6297 whole_archive_flag_spec=
6300 # ancient GNU ld didn't support --whole-archive et. al.
6301 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6302 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6304 whole_archive_flag_spec=
6310 # PORTME fill in a description of your system's linker (not GNU ld)
6313 allow_undefined_flag=unsupported
6314 always_export_symbols=yes
6315 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'
6316 # Note: this linker hardcodes the directories in LIBPATH if there
6317 # are no directories specified by -L.
6318 hardcode_minus_L=yes
6319 if test "$GCC" = yes && test -z "$link_static_flag"; then
6320 # Neither direct hardcoding nor static linking is supported with a
6322 hardcode_direct=unsupported
6327 if test "$host_cpu" = ia64; then
6328 # On IA64, the linker does run time linking by default, so we don't
6329 # have to do anything special.
6330 aix_use_runtimelinking=no
6331 exp_sym_flag='-Bexport'
6334 aix_use_runtimelinking=no
6336 # Test if we are trying to use run time linking or normal
6337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6338 # need to do runtime linking.
6339 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6340 for ld_flag in $LDFLAGS; do
6343 aix_use_runtimelinking=yes
6350 exp_sym_flag='-bexport'
6351 no_entry_flag='-bnoentry'
6354 # When large executables or shared objects are built, AIX ld can
6355 # have problems creating the table of contents. If linking a library
6356 # or program results in "error TOC overflow" add -mminimal-toc to
6357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6362 hardcode_libdir_separator=':'
6363 if test "$GCC" = yes; then
6364 case $host_os in aix4.[012]|aix4.[012].*)
6365 collect2name=`${CC} -print-prog-name=collect2`
6366 if test -f "$collect2name" && \
6367 strings "$collect2name" | grep resolve_lib_name >/dev/null
6369 # We have reworked collect2
6372 # We have old collect2
6373 hardcode_direct=unsupported
6374 # It fails to find uninstalled libraries when the uninstalled
6375 # path is not listed in the libpath. Setting hardcode_minus_L
6376 # to unsupported forces relinking
6377 hardcode_minus_L=yes
6378 hardcode_libdir_flag_spec='-L$libdir'
6379 hardcode_libdir_separator=
6383 shared_flag='-shared'
6386 if test "$host_cpu" = ia64; then
6387 shared_flag='${wl}-G'
6389 if test "$aix_use_runtimelinking" = yes; then
6390 shared_flag='${wl}-G'
6392 shared_flag='${wl}-bM:SRE'
6397 # It seems that -bexpall can do strange things, so it is better to
6398 # generate a list of symbols to export.
6399 always_export_symbols=yes
6400 if test "$aix_use_runtimelinking" = yes; then
6401 # Warning - without using the other runtime loading flags (-brtl),
6402 # -berok will link without error, but may produce a broken library.
6403 allow_undefined_flag='-berok'
6404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6405 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6407 if test "$host_cpu" = ia64; then
6408 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6409 allow_undefined_flag="-z nodefs"
6410 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6412 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6413 # Warning - without using the other run time loading flags,
6414 # -berok will link without error, but may produce a broken library.
6415 allow_undefined_flag='${wl}-berok'
6416 # This is a bit strange, but is similar to how AIX traditionally builds
6417 # it's shared libraries.
6418 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6424 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)'
6425 hardcode_libdir_flag_spec='-L$libdir'
6426 hardcode_minus_L=yes
6427 # see comment about different semantics on the GNU ld section
6431 cygwin* | mingw* | pw32*)
6432 # When not using gcc, we currently assume that we are using
6433 # Microsoft Visual C++.
6434 # hardcode_libdir_flag_spec is actually meaningless, as there is
6435 # no search path for DLLs.
6436 hardcode_libdir_flag_spec=' '
6437 allow_undefined_flag=unsupported
6438 # Tell ltmain to make .lib files, not .a files.
6440 # FIXME: Setting linknames here is a bad hack.
6441 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6442 # The linker will automatically build a .lib file if we build a DLL.
6443 old_archive_from_new_cmds='true'
6444 # FIXME: Should let the user specify the lib program.
6445 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6446 fix_srcfile_path='`cygpath -w "$srcfile"`'
6449 darwin* | rhapsody*)
6451 rhapsody* | darwin1.[012])
6452 allow_undefined_flag='-undefined suppress'
6455 allow_undefined_flag='-flat_namespace -undefined suppress'
6458 # FIXME: Relying on posixy $() will cause problems for
6459 # cross-compilation, but unfortunately the echo tests do not
6460 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6461 # `"' quotes if we put them in here... so don't!
6462 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6463 # We need to add '_' to the symbols in $export_symbols first
6464 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6466 hardcode_shlibpath_var=no
6467 whole_archive_flag_spec='-all_load $convenience'
6474 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6475 # support. Future versions do this automatically, but an explicit c++rt0.o
6476 # does not break anything, and helps significantly (at the cost of a little
6479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6480 hardcode_libdir_flag_spec='-R$libdir'
6482 hardcode_shlibpath_var=no
6485 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6489 hardcode_minus_L=yes
6490 hardcode_shlibpath_var=no
6493 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6495 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6496 hardcode_libdir_flag_spec='-R$libdir'
6498 hardcode_shlibpath_var=no
6501 hpux9* | hpux10* | hpux11*)
6503 hpux9*) 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' ;;
6504 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6507 hardcode_libdir_separator=:
6509 hardcode_minus_L=yes # Not in the search PATH, but as the default
6510 # location of the library.
6511 export_dynamic_flag_spec='${wl}-E'
6514 irix5* | irix6* | nonstopux*)
6515 if test "$GCC" = yes; then
6516 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'
6517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6519 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'
6520 hardcode_libdir_flag_spec='-rpath $libdir'
6522 hardcode_libdir_separator=:
6523 link_all_deplibs=yes
6527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6532 hardcode_libdir_flag_spec='-R$libdir'
6534 hardcode_shlibpath_var=no
6538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6541 hardcode_libdir_separator=:
6542 hardcode_shlibpath_var=no
6547 hardcode_shlibpath_var=no
6548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6551 export_dynamic_flag_spec='${wl}-E'
6554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6556 hardcode_libdir_flag_spec='-R$libdir'
6559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6567 hardcode_libdir_flag_spec='-L$libdir'
6568 hardcode_minus_L=yes
6569 allow_undefined_flag=unsupported
6570 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'
6571 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6575 if test "$GCC" = yes; then
6576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6577 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'
6579 allow_undefined_flag=' -expect_unresolved \*'
6580 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'
6582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6583 hardcode_libdir_separator=:
6586 osf4* | osf5*) # as osf3* with the addition of -msym flag
6587 if test "$GCC" = yes; then
6588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6589 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'
6590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6592 allow_undefined_flag=' -expect_unresolved \*'
6593 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'
6594 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6595 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6597 #Both c and cxx compiler support -rpath directly
6598 hardcode_libdir_flag_spec='-rpath $libdir'
6600 hardcode_libdir_separator=:
6604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6605 hardcode_shlibpath_var=no
6606 runpath_var=LD_RUN_PATH
6607 hardcode_runpath_var=yes
6608 export_dynamic_flag_spec='${wl}-Bexport'
6612 # gcc --version < 3.0 without binutils cannot create self contained
6613 # shared libraries reliably, requiring libgcc.a to resolve some of
6614 # the object symbols generated in some cases. Libraries that use
6615 # assert need libgcc.a to resolve __eprintf, for example. Linking
6616 # a copy of libgcc.a into every shared library to guarantee resolving
6617 # such symbols causes other problems: According to Tim Van Holder
6618 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6619 # (to the application) exception stack for one thing.
6620 no_undefined_flag=' -z defs'
6621 if test "$GCC" = yes; then
6622 case `$CC --version 2>/dev/null` in
6626 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6627 *** create self contained shared libraries on Solaris systems, without
6628 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6629 *** -no-undefined support, which will at least allow you to build shared
6630 *** libraries. However, you may find that when you link such libraries
6631 *** into an application without using GCC, you have to manually add
6632 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6633 *** upgrade to a newer version of GCC. Another option is to rebuild your
6634 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6641 # $CC -shared without GNU ld will not create a library from C++
6642 # object files and a static libstdc++, better avoid it by now
6643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6644 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6646 hardcode_libdir_flag_spec='-R$libdir'
6647 hardcode_shlibpath_var=no
6649 solaris2.[0-5] | solaris2.[0-5].*) ;;
6650 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6653 link_all_deplibs=yes
6657 if test "x$host_vendor" = xsequent; then
6658 # Use $CC to link under sequent, because it throws in some extra .o
6659 # files that make .init and .fini sections work.
6660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_libdir_flag_spec='-L$libdir'
6666 hardcode_minus_L=yes
6667 hardcode_shlibpath_var=no
6671 case $host_vendor in
6673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6674 hardcode_direct=yes # is this really true???
6677 ## LD is ld it makes a PLAMLIB
6678 ## CC just makes a GrossModule.
6679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6680 reload_cmds='$CC -r -o $output$reload_objs'
6684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6688 runpath_var='LD_RUN_PATH'
6689 hardcode_shlibpath_var=no
6693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694 hardcode_shlibpath_var=no
6695 export_dynamic_flag_spec='-Bexport'
6699 no_undefined_flag=' -z text'
6700 # $CC -shared without GNU ld will not create a library from C++
6701 # object files and a static libstdc++, better avoid it by now
6702 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6705 hardcode_libdir_flag_spec=
6706 hardcode_shlibpath_var=no
6707 runpath_var='LD_RUN_PATH'
6711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712 hardcode_libdir_flag_spec='-L$libdir'
6713 hardcode_shlibpath_var=no
6717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718 hardcode_libdir_flag_spec='-L$libdir'
6719 hardcode_shlibpath_var=no
6723 if test -d /usr/nec; then
6724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6725 hardcode_shlibpath_var=no
6726 runpath_var=LD_RUN_PATH
6727 hardcode_runpath_var=yes
6733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6736 hardcode_shlibpath_var=no
6737 hardcode_runpath_var=yes
6738 runpath_var=LD_RUN_PATH
6741 sysv5uw7* | unixware7*)
6742 no_undefined_flag='${wl}-z ${wl}text'
6743 if test "$GCC" = yes; then
6744 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6746 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6748 runpath_var='LD_RUN_PATH'
6749 hardcode_shlibpath_var=no
6757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6758 echo "${ECHO_T}$ld_shlibs" >&6
6759 test "$ld_shlibs" = no && can_build_shared=no
6761 # Check hardcoding attributes.
6762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6765 if test -n "$hardcode_libdir_flag_spec" || \
6766 test -n "$runpath_var"; then
6768 # We can hardcode non-existant directories.
6769 if test "$hardcode_direct" != no &&
6770 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6771 # have to relink, otherwise we might link with an installed library
6772 # when we should be linking with a yet-to-be-installed one
6773 ## test "$hardcode_shlibpath_var" != no &&
6774 test "$hardcode_minus_L" != no; then
6775 # Linking always hardcodes the temporary library directory.
6776 hardcode_action=relink
6778 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6779 hardcode_action=immediate
6782 # We cannot hardcode anything, or else we can only hardcode existing
6784 hardcode_action=unsupported
6786 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6787 echo "${ECHO_T}$hardcode_action" >&6
6791 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6792 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6793 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6796 echo "$as_me:$LINENO: result: yes" >&5
6797 echo "${ECHO_T}yes" >&6
6799 echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6806 # PORTME Fill in your ld.so characteristics
6807 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6810 libname_spec='lib$name'
6817 shlibpath_overrides_runpath=unknown
6819 dynamic_linker="$host_os ld.so"
6820 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6826 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6827 shlibpath_var=LIBPATH
6829 # AIX has no versioning support, so we append a major version to the name.
6830 soname_spec='${libname}${release}.so$major'
6837 hardcode_into_libs=yes
6838 if test "$host_cpu" = ia64; then
6839 # AIX 5 supports IA64
6840 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6841 shlibpath_var=LD_LIBRARY_PATH
6843 # With GCC up to 2.95.x, collect2 would create an import file
6844 # for dependence libraries. The import file would start with
6845 # the line `#! .'. This would cause the generated library to
6846 # depend on `.', always an invalid library. This was fixed in
6847 # development snapshots of GCC prior to 3.0.
6849 aix4 | aix4.[01] | aix4.[01].*)
6850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6859 # AIX (on Power*) has no versioning support, so currently we can
6860 # not hardcode correct soname into executable. Probably we can
6861 # add versioning support to collect2, so additional links can
6862 # be useful in future.
6863 if test "$aix_use_runtimelinking" = yes; then
6864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6865 # instead of lib<name>.a to let people know that these are not
6866 # typical AIX shared libraries.
6867 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6869 # We preserve .a as extension for shared libraries through AIX4.2
6870 # and later when we are not doing run time linking.
6871 library_names_spec='${libname}${release}.a $libname.a'
6872 soname_spec='${libname}${release}.so$major'
6874 shlibpath_var=LIBPATH
6876 hardcode_into_libs=yes
6880 library_names_spec='$libname.ixlibrary $libname.a'
6881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6882 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'
6886 library_names_spec='${libname}.so'
6887 dynamic_linker="$host_os ld.so"
6888 shlibpath_var=LIBRARY_PATH
6894 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6895 soname_spec='${libname}${release}.so$major'
6896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6897 shlibpath_var=LD_LIBRARY_PATH
6898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6900 export_dynamic_flag_spec=-rdynamic
6901 # the default ld.so.conf also contains /usr/contrib/lib and
6902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6903 # libtool to hard-code these into programs
6906 cygwin* | mingw* | pw32*)
6907 version_type=windows
6910 case $GCC,$host_os in
6912 library_names_spec='$libname.dll.a'
6913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6914 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6915 dldir=$destdir/`dirname \$dlpath`~
6916 test -d \$dldir || mkdir -p \$dldir~
6917 $install_prog .libs/$dlname \$dldir/$dlname'
6918 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6919 dlpath=$dir/\$dldll~
6923 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6930 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6933 dynamic_linker='Win32 ld.exe'
6934 # FIXME: first we should search . and the directory the executable is in
6938 darwin* | rhapsody*)
6939 dynamic_linker="$host_os dyld"
6943 # FIXME: Relying on posixy $() will cause problems for
6944 # cross-compilation, but unfortunately the echo tests do not
6945 # yet detect zsh echo's removal of \ escapes.
6946 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6947 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6948 shlibpath_overrides_runpath=yes
6949 shlibpath_var=DYLD_LIBRARY_PATH
6957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6958 version_type=freebsd-$objformat
6959 case $version_type in
6961 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6966 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6970 shlibpath_var=LD_LIBRARY_PATH
6973 shlibpath_overrides_runpath=yes
6976 shlibpath_overrides_runpath=no
6977 hardcode_into_libs=yes
6986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6987 soname_spec='${libname}${release}.so$major'
6988 shlibpath_var=LD_LIBRARY_PATH
6989 hardcode_into_libs=yes
6992 hpux9* | hpux10* | hpux11*)
6993 # Give a soname corresponding to the major version so that dld.sl refuses to
6994 # link against other versions.
6995 dynamic_linker="$host_os dld.sl"
6999 shlibpath_var=SHLIB_PATH
7000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7001 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7002 soname_spec='${libname}${release}.sl$major'
7003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7004 postinstall_cmds='chmod 555 $lib'
7007 irix5* | irix6* | nonstopux*)
7009 nonstopux*) version_type=nonstopux ;;
7010 *) version_type=irix ;;
7014 soname_spec='${libname}${release}.so$major'
7015 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7017 irix5* | nonstopux*)
7021 case $LD in # libtool.m4 will add one of these switches to LD
7022 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7023 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7024 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7025 *) libsuff= shlibsuff= libmagic=never-match;;
7029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7030 shlibpath_overrides_runpath=no
7031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7035 # No shared lib support for Linux oldld, aout, or coff.
7036 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7040 # This must be Linux ELF.
7045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7046 soname_spec='${libname}${release}.so$major'
7047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7048 shlibpath_var=LD_LIBRARY_PATH
7049 shlibpath_overrides_runpath=no
7050 # This implies no fast_install, which is unacceptable.
7051 # Some rework will be needed to allow for fast_install
7052 # before this can be enabled.
7053 hardcode_into_libs=yes
7055 case $host_cpu:$lt_cv_cc_64bit_output in
7056 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7057 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7058 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7062 # We used to test for /lib/ld.so.1 and disable shared libraries on
7063 # powerpc, because MkLinux only supported shared libraries with the
7064 # GNU dynamic linker. Since this was broken with cross compilers,
7065 # most powerpc-linux boxes support dynamic linking these days and
7066 # people can always --disable-shared, the test was removed, and we
7067 # assume the GNU/Linux dynamic linker is in use.
7068 dynamic_linker='GNU/Linux ld.so'
7070 # Find out which ABI we are using (multilib Linux x86_64 hack).
7074 echo '#line 7074 "configure"' > conftest.$ac_ext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076 (eval $ac_compile) 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; then
7080 case `/usr/bin/file conftest.$ac_objext` in
7091 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7092 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7099 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7100 soname_spec='${libname}${release}.so$major'
7101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7102 shlibpath_var=LD_LIBRARY_PATH
7103 shlibpath_overrides_runpath=no
7104 # This implies no fast_install, which is unacceptable.
7105 # Some rework will be needed to allow for fast_install
7106 # before this can be enabled.
7107 # Note: copied from linux-gnu, and may not be appropriate.
7108 hardcode_into_libs=yes
7109 # Assume using the uClibc dynamic linker.
7110 dynamic_linker="uClibc ld.so"
7117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120 dynamic_linker='NetBSD (a.out) ld.so'
7122 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7123 soname_spec='${libname}${release}.so$major'
7124 dynamic_linker='NetBSD ld.elf_so'
7126 shlibpath_var=LD_LIBRARY_PATH
7127 shlibpath_overrides_runpath=yes
7128 hardcode_into_libs=yes
7133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7134 shlibpath_var=LD_LIBRARY_PATH
7135 shlibpath_overrides_runpath=yes
7142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7144 openbsd2.[89] | openbsd2.[89].*)
7145 shlibpath_overrides_runpath=no
7148 shlibpath_overrides_runpath=yes
7152 shlibpath_overrides_runpath=yes
7154 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7156 shlibpath_var=LD_LIBRARY_PATH
7160 libname_spec='$name'
7162 library_names_spec='$libname.dll $libname.a'
7163 dynamic_linker='OS/2 ld.exe'
7164 shlibpath_var=LIBPATH
7167 osf3* | osf4* | osf5*)
7170 soname_spec='${libname}${release}.so$major'
7171 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7172 shlibpath_var=LD_LIBRARY_PATH
7173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7175 hardcode_into_libs=yes
7180 soname_spec='${libname}${release}.so$major'
7181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7182 shlibpath_var=LD_LIBRARY_PATH
7189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7190 soname_spec='${libname}${release}.so$major'
7191 shlibpath_var=LD_LIBRARY_PATH
7192 shlibpath_overrides_runpath=yes
7193 hardcode_into_libs=yes
7194 # ldd complains unless libraries are executable
7195 postinstall_cmds='chmod +x $lib'
7200 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7202 shlibpath_var=LD_LIBRARY_PATH
7203 shlibpath_overrides_runpath=yes
7204 if test "$with_gnu_ld" = yes; then
7210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7213 soname_spec='${libname}${release}.so$major'
7214 shlibpath_var=LD_LIBRARY_PATH
7215 case $host_vendor in
7217 shlibpath_overrides_runpath=no
7219 export_dynamic_flag_spec='${wl}-Blargedynsym'
7220 runpath_var=LD_RUN_PATH
7228 shlibpath_overrides_runpath=no
7229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7236 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7237 soname_spec='${libname}${release}.so$major'
7238 shlibpath_var=LD_LIBRARY_PATH
7245 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7246 soname_spec='${libname}${release}.so$major'
7247 shlibpath_var=LD_LIBRARY_PATH
7251 if test -d /usr/nec ;then
7253 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7254 soname_spec='$libname.so.$major'
7255 shlibpath_var=LD_LIBRARY_PATH
7263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7264 echo "${ECHO_T}$dynamic_linker" >&6
7265 test "$dynamic_linker" = no && can_build_shared=no
7267 # Report the final consequences.
7268 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7269 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7270 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7271 echo "${ECHO_T}$can_build_shared" >&6
7273 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7274 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7275 test "$can_build_shared" = "no" && enable_shared=no
7277 # On AIX, shared libraries and static libraries use the same namespace, and
7278 # are all built from PIC.
7281 test "$enable_shared" = yes && enable_static=no
7282 if test -n "$RANLIB"; then
7283 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7284 postinstall_cmds='$RANLIB $lib'
7289 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7290 test "$enable_shared" = yes && enable_static=no
7294 echo "$as_me:$LINENO: result: $enable_shared" >&5
7295 echo "${ECHO_T}$enable_shared" >&6
7297 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7298 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7299 # Make sure either enable_shared or enable_static is yes.
7300 test "$enable_shared" = yes || enable_static=yes
7301 echo "$as_me:$LINENO: result: $enable_static" >&5
7302 echo "${ECHO_T}$enable_static" >&6
7304 if test "$hardcode_action" = relink; then
7305 # Fast installation is not supported
7306 enable_fast_install=no
7307 elif test "$shlibpath_overrides_runpath" = yes ||
7308 test "$enable_shared" = no; then
7309 # Fast installation is not necessary
7310 enable_fast_install=needless
7313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7314 if test "$GCC" = yes; then
7315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7318 if test "x$enable_dlopen" != xyes; then
7319 enable_dlopen=unknown
7320 enable_dlopen_self=unknown
7321 enable_dlopen_self_static=unknown
7328 lt_cv_dlopen="load_add_on"
7330 lt_cv_dlopen_self=yes
7333 cygwin* | mingw* | pw32*)
7334 lt_cv_dlopen="LoadLibrary"
7339 echo "$as_me:$LINENO: checking for shl_load" >&5
7340 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7341 if test "${ac_cv_func_shl_load+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7352 #define shl_load innocuous_shl_load
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char shl_load (); below.
7356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7357 <limits.h> exists even on freestanding compilers. */
7360 # include <limits.h>
7362 # include <assert.h>
7367 /* Override any gcc2 internal prototype to avoid an error. */
7372 /* We use char because int might match the return type of a gcc2
7373 builtin and then its argument prototype would still apply. */
7375 /* The GNU C library defines this for functions which it implements
7376 to always fail with ENOSYS. Some functions are actually named
7377 something starting with __ and the normal name is an alias. */
7378 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7381 char (*f) () = shl_load;
7390 return f != shl_load;
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>conftest.er1
7399 grep -v '^ *+' conftest.er1 >conftest.err
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag"
7405 || test ! -s conftest.err'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; } &&
7411 { ac_try='test -s conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_cv_func_shl_load=yes
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_cv_func_shl_load=no
7424 rm -f conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7427 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7428 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7429 if test $ac_cv_func_shl_load = yes; then
7430 lt_cv_dlopen="shl_load"
7432 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7433 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7434 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 ac_check_lib_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1 >conftest.err
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest$ac_exeext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_lib_dld_shl_load=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 ac_cv_lib_dld_shl_load=no
7490 rm -f conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 LIBS=$ac_check_lib_save_LIBS
7494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7495 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7496 if test $ac_cv_lib_dld_shl_load = yes; then
7497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7499 echo "$as_me:$LINENO: checking for dlopen" >&5
7500 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7501 if test "${ac_cv_func_dlopen+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7512 #define dlopen innocuous_dlopen
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char dlopen (); below.
7516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 <limits.h> exists even on freestanding compilers. */
7520 # include <limits.h>
7522 # include <assert.h>
7527 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7541 char (*f) () = dlopen;
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_func_dlopen=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_func_dlopen=no
7584 rm -f conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7589 if test $ac_cv_func_dlopen = yes; then
7590 lt_cv_dlopen="dlopen"
7592 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_check_lib_save_LIBS=$LIBS
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7606 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_lib_dl_dlopen=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_lib_dl_dlopen=no
7650 rm -f conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7656 if test $ac_cv_lib_dl_dlopen = yes; then
7657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7659 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7660 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7661 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_check_lib_save_LIBS=$LIBS
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7673 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>conftest.er1
7692 grep -v '^ *+' conftest.er1 >conftest.err
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -z "$ac_c_werror_flag"
7698 || test ! -s conftest.err'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_lib_svld_dlopen=yes
7712 echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7715 ac_cv_lib_svld_dlopen=no
7717 rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719 LIBS=$ac_check_lib_save_LIBS
7721 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7722 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7723 if test $ac_cv_lib_svld_dlopen = yes; then
7724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7726 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7727 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7728 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_check_lib_save_LIBS=$LIBS
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_lib_dld_dld_link=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_lib_dld_dld_link=no
7784 rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786 LIBS=$ac_check_lib_save_LIBS
7788 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7789 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7790 if test $ac_cv_lib_dld_dld_link = yes; then
7791 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7812 if test "x$lt_cv_dlopen" != xno; then
7818 case $lt_cv_dlopen in
7820 save_CPPFLAGS="$CPPFLAGS"
7821 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7823 save_LDFLAGS="$LDFLAGS"
7824 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7827 LIBS="$lt_cv_dlopen_libs $LIBS"
7829 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7830 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7831 if test "${lt_cv_dlopen_self+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 if test "$cross_compiling" = yes; then :
7835 lt_cv_dlopen_self=cross
7837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7838 lt_status=$lt_dlunknown
7839 cat > conftest.$ac_ext <<EOF
7840 #line 7840 "configure"
7841 #include "confdefs.h"
7850 # define LT_DLGLOBAL RTLD_GLOBAL
7853 # define LT_DLGLOBAL DL_GLOBAL
7855 # define LT_DLGLOBAL 0
7859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7860 find out it does not work in some platform. */
7861 #ifndef LT_DLLAZY_OR_NOW
7863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7866 # define LT_DLLAZY_OR_NOW DL_LAZY
7869 # define LT_DLLAZY_OR_NOW RTLD_NOW
7872 # define LT_DLLAZY_OR_NOW DL_NOW
7874 # define LT_DLLAZY_OR_NOW 0
7882 extern "C" void exit (int);
7885 void fnord() { int i=42;}
7888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7889 int status = $lt_dlunknown;
7893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7895 /* dlclose (self); */
7901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7906 (./conftest; exit; ) 2>/dev/null
7909 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7910 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7911 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7914 # compilation failed
7915 lt_cv_dlopen_self=no
7922 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7923 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7925 if test "x$lt_cv_dlopen_self" = xyes; then
7926 LDFLAGS="$LDFLAGS $link_static_flag"
7927 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7928 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7929 if test "${lt_cv_dlopen_self_static+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 if test "$cross_compiling" = yes; then :
7933 lt_cv_dlopen_self_static=cross
7935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7936 lt_status=$lt_dlunknown
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7938 "configure"
7939 #include "confdefs.h"
7948 # define LT_DLGLOBAL RTLD_GLOBAL
7951 # define LT_DLGLOBAL DL_GLOBAL
7953 # define LT_DLGLOBAL 0
7957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7958 find out it does not work in some platform. */
7959 #ifndef LT_DLLAZY_OR_NOW
7961 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7964 # define LT_DLLAZY_OR_NOW DL_LAZY
7967 # define LT_DLLAZY_OR_NOW RTLD_NOW
7970 # define LT_DLLAZY_OR_NOW DL_NOW
7972 # define LT_DLLAZY_OR_NOW 0
7980 extern "C" void exit (int);
7983 void fnord() { int i=42;}
7986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7987 int status = $lt_dlunknown;
7991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7992 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7993 /* dlclose (self); */
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8004 (./conftest; exit; ) 2>/dev/null
8007 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8008 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8009 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8012 # compilation failed
8013 lt_cv_dlopen_self_static=no
8020 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8021 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8024 CPPFLAGS="$save_CPPFLAGS"
8025 LDFLAGS="$save_LDFLAGS"
8030 case $lt_cv_dlopen_self in
8031 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8032 *) enable_dlopen_self=unknown ;;
8035 case $lt_cv_dlopen_self_static in
8036 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8037 *) enable_dlopen_self_static=unknown ;;
8042 if test "$enable_shared" = yes && test "$GCC" = yes; then
8043 case $archive_cmds in
8045 # FIXME: we may have to deal with multi-command sequences.
8048 # Test whether the compiler implicitly links with -lc since on some
8049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8050 # to ld, don't add -lc before -lgcc.
8051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8053 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 echo 'static int dummy;' > conftest.$ac_ext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; then
8066 libobjs=conftest.$ac_objext
8068 wl=$lt_cv_prog_cc_wl
8074 save_allow_undefined_flag=$allow_undefined_flag
8075 allow_undefined_flag=
8076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8077 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }
8082 lt_cv_archive_cmds_need_lc=no
8084 lt_cv_archive_cmds_need_lc=yes
8086 allow_undefined_flag=$save_allow_undefined_flag
8088 cat conftest.err 1>&5
8092 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8093 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8097 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8099 # The second clause should only fire when bootstrapping the
8100 # libtool distribution, otherwise you forgot to ship ltmain.sh
8101 # with your package, and you will get complaints that there are
8102 # no rules to generate ltmain.sh.
8103 if test -f "$ltmain"; then
8106 # If there is no Makefile yet, we rely on a make rule to execute
8107 # `config.status --recheck' to rerun these tests and create the
8108 # libtool script then.
8109 test -f Makefile && make "$ltmain"
8112 if test -f "$ltmain"; then
8113 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8116 echo creating $ofile
8118 # Now quote all the things that may contain metacharacters while being
8119 # careful not to overquote the AC_SUBSTed values. We take copies of the
8120 # variables and quote the copies for generation of the libtool script.
8121 for var in echo old_CC old_CFLAGS SED \
8122 AR AR_FLAGS CC LD LN_S NM SHELL \
8123 reload_flag reload_cmds wl \
8124 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8125 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8126 library_names_spec soname_spec \
8127 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8128 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8129 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8130 old_striplib striplib file_magic_cmd export_symbols_cmds \
8131 deplibs_check_method allow_undefined_flag no_undefined_flag \
8132 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8133 global_symbol_to_c_name_address \
8134 hardcode_libdir_flag_spec hardcode_libdir_separator \
8135 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8136 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8139 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8140 old_postinstall_cmds | old_postuninstall_cmds | \
8141 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8142 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8143 postinstall_cmds | postuninstall_cmds | \
8144 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8145 # Double-quote double-evaled strings.
8146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8154 cat <<__EOF__ > "${ofile}T"
8157 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8158 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8159 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8161 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8164 # This program is free software; you can redistribute it and/or modify
8165 # it under the terms of the GNU General Public License as published by
8166 # the Free Software Foundation; either version 2 of the License, or
8167 # (at your option) any later version.
8169 # This program is distributed in the hope that it will be useful, but
8170 # WITHOUT ANY WARRANTY; without even the implied warranty of
8171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8172 # General Public License for more details.
8174 # You should have received a copy of the GNU General Public License
8175 # along with this program; if not, write to the Free Software
8176 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8178 # As a special exception to the GNU General Public License, if you
8179 # distribute this file as part of a program that contains a
8180 # configuration script generated by Autoconf, you may include it under
8181 # the same distribution terms that you use for the rest of that program.
8183 # A sed that does not truncate output.
8186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8187 Xsed="${SED} -e s/^X//"
8189 # The HP-UX ksh and POSIX shell print the target directory to stdout
8191 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8193 # ### BEGIN LIBTOOL CONFIG
8195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8197 # Shell to use when invoking shell scripts.
8200 # Whether or not to build shared libraries.
8201 build_libtool_libs=$enable_shared
8203 # Whether or not to build static libraries.
8204 build_old_libs=$enable_static
8206 # Whether or not to add -lc for building shared libraries.
8207 build_libtool_need_lc=$need_lc
8209 # Whether or not to optimize for fast installation.
8210 fast_install=$enable_fast_install
8213 host_alias=$host_alias
8216 # An echo program that does not interpret backslashes.
8221 AR_FLAGS=$lt_AR_FLAGS
8223 # The default C compiler.
8226 # Is the compiler the GNU C compiler?
8229 # The linker used to build libraries.
8232 # Whether we need hard or soft links.
8235 # A BSD-compatible nm program.
8238 # A symbol stripping program
8241 # Used to examine libraries when file_magic_cmd begins "file"
8242 MAGIC_CMD=$MAGIC_CMD
8244 # Used on cygwin: DLL creation program.
8247 # Used on cygwin: object dumper.
8250 # Used on cygwin: assembler.
8253 # The name of the directory that contains temporary libtool files.
8256 # How to create reloadable object files.
8257 reload_flag=$lt_reload_flag
8258 reload_cmds=$lt_reload_cmds
8260 # How to pass a linker flag through the compiler.
8263 # Object file suffix (normally "o").
8266 # Old archive suffix (normally "a").
8269 # Executable file suffix (normally "").
8272 # Additional compiler flags for building library objects.
8273 pic_flag=$lt_pic_flag
8276 # Does compiler simultaneously support -c and -o options?
8277 compiler_c_o=$lt_compiler_c_o
8279 # Can we write directly to a .lo ?
8280 compiler_o_lo=$lt_compiler_o_lo
8282 # Must we lock files when doing compilation ?
8283 need_locks=$lt_need_locks
8285 # Do we need the lib prefix for modules?
8286 need_lib_prefix=$need_lib_prefix
8288 # Do we need a version for libraries?
8289 need_version=$need_version
8291 # Whether dlopen is supported.
8292 dlopen_support=$enable_dlopen
8294 # Whether dlopen of programs is supported.
8295 dlopen_self=$enable_dlopen_self
8297 # Whether dlopen of statically linked programs is supported.
8298 dlopen_self_static=$enable_dlopen_self_static
8300 # Compiler flag to prevent dynamic linking.
8301 link_static_flag=$lt_link_static_flag
8303 # Compiler flag to turn off builtin functions.
8304 no_builtin_flag=$lt_no_builtin_flag
8306 # Compiler flag to allow reflexive dlopens.
8307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8309 # Compiler flag to generate shared objects directly from archives.
8310 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8312 # Compiler flag to generate thread-safe objects.
8313 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8315 # Library versioning type.
8316 version_type=$version_type
8318 # Format of library name prefix.
8319 libname_spec=$lt_libname_spec
8321 # List of archive names. First name is the real one, the rest are links.
8322 # The last name is the one that the linker finds with -lNAME.
8323 library_names_spec=$lt_library_names_spec
8325 # The coded name of the library, if different from the real name.
8326 soname_spec=$lt_soname_spec
8328 # Commands used to build and install an old-style archive.
8330 old_archive_cmds=$lt_old_archive_cmds
8331 old_postinstall_cmds=$lt_old_postinstall_cmds
8332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8334 # Create an old-style archive from a shared archive.
8335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8337 # Create a temporary old-style archive to link instead of a shared archive.
8338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8340 # Commands used to build and install a shared archive.
8341 archive_cmds=$lt_archive_cmds
8342 archive_expsym_cmds=$lt_archive_expsym_cmds
8343 postinstall_cmds=$lt_postinstall_cmds
8344 postuninstall_cmds=$lt_postuninstall_cmds
8346 # Commands to strip libraries.
8347 old_striplib=$lt_old_striplib
8348 striplib=$lt_striplib
8350 # Method to check whether dependent libraries are shared objects.
8351 deplibs_check_method=$lt_deplibs_check_method
8353 # Command to use when deplibs_check_method == file_magic.
8354 file_magic_cmd=$lt_file_magic_cmd
8356 # Flag that allows shared libraries with undefined symbols to be built.
8357 allow_undefined_flag=$lt_allow_undefined_flag
8359 # Flag that forces no undefined symbols.
8360 no_undefined_flag=$lt_no_undefined_flag
8362 # Commands used to finish a libtool library installation in a directory.
8363 finish_cmds=$lt_finish_cmds
8365 # Same as above, but a single script fragment to be evaled but not shown.
8366 finish_eval=$lt_finish_eval
8368 # Take the output of nm and produce a listing of raw symbols and C names.
8369 global_symbol_pipe=$lt_global_symbol_pipe
8371 # Transform the output of nm in a proper C declaration
8372 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8374 # Transform the output of nm in a C name address pair
8375 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8377 # This is the shared library runtime path variable.
8378 runpath_var=$runpath_var
8380 # This is the shared library path variable.
8381 shlibpath_var=$shlibpath_var
8383 # Is shlibpath searched before the hard-coded library search path?
8384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8386 # How to hardcode a shared library path into an executable.
8387 hardcode_action=$hardcode_action
8389 # Whether we should hardcode library paths into libraries.
8390 hardcode_into_libs=$hardcode_into_libs
8392 # Flag to hardcode \$libdir into a binary during linking.
8393 # This must work even if \$libdir does not exist.
8394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8396 # Whether we need a single -rpath flag with a separated argument.
8397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8399 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8401 hardcode_direct=$hardcode_direct
8403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8405 hardcode_minus_L=$hardcode_minus_L
8407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8408 # the resulting binary.
8409 hardcode_shlibpath_var=$hardcode_shlibpath_var
8411 # Variables whose values should be saved in libtool wrapper scripts and
8412 # restored at relink time.
8413 variables_saved_for_relink="$variables_saved_for_relink"
8415 # Whether libtool must link a program against all its dependency libraries.
8416 link_all_deplibs=$link_all_deplibs
8418 # Compile-time system search path for libraries
8419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8421 # Run-time system search path for libraries
8422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8424 # Fix the shell variable \$srcfile for the compiler.
8425 fix_srcfile_path="$fix_srcfile_path"
8427 # Set to yes if exported symbols are required.
8428 always_export_symbols=$always_export_symbols
8430 # The commands to list exported symbols.
8431 export_symbols_cmds=$lt_export_symbols_cmds
8433 # The commands to extract the exported symbol list from a shared archive.
8434 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8436 # Symbols that should not be listed in the preloaded symbols.
8437 exclude_expsyms=$lt_exclude_expsyms
8439 # Symbols that must always be exported.
8440 include_expsyms=$lt_include_expsyms
8442 # ### END LIBTOOL CONFIG
8448 cat <<\EOF >> "${ofile}T"
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8455 export COLLECT_NAMES
8462 cygwin* | mingw* | pw32* | os2*)
8463 cat <<'EOF' >> "${ofile}T"
8464 # This is a source program that is used to create dlls on Windows
8465 # Don't remove nor modify the starting and closing comments
8466 # /* ltdll.c starts here */
8467 # #define WIN32_LEAN_AND_MEAN
8468 # #include <windows.h>
8469 # #undef WIN32_LEAN_AND_MEAN
8470 # #include <stdio.h>
8472 # #ifndef __CYGWIN__
8473 # # ifdef __CYGWIN32__
8474 # # define __CYGWIN__ __CYGWIN32__
8478 # #ifdef __cplusplus
8481 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8482 # #ifdef __cplusplus
8487 # #include <cygwin/cygwin_dll.h>
8488 # DECLARE_CYGWIN_DLL( DllMain );
8490 # HINSTANCE __hDllInstance_base;
8493 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8495 # __hDllInstance_base = hInst;
8498 # /* ltdll.c ends here */
8499 # This is a source program that is used to create import libraries
8500 # on Windows for dlls which lack them. Don't remove nor modify the
8501 # starting and closing comments
8502 # /* impgen.c starts here */
8503 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8505 # This file is part of GNU libtool.
8507 # This program is free software; you can redistribute it and/or modify
8508 # it under the terms of the GNU General Public License as published by
8509 # the Free Software Foundation; either version 2 of the License, or
8510 # (at your option) any later version.
8512 # This program is distributed in the hope that it will be useful,
8513 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8515 # GNU General Public License for more details.
8517 # You should have received a copy of the GNU General Public License
8518 # along with this program; if not, write to the Free Software
8519 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8522 # #include <stdio.h> /* for printf() */
8523 # #include <unistd.h> /* for open(), lseek(), read() */
8524 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8525 # #include <string.h> /* for strdup() */
8527 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8529 # #define O_BINARY 0
8532 # static unsigned int
8533 # pe_get16 (fd, offset)
8537 # unsigned char b[2];
8538 # lseek (fd, offset, SEEK_SET);
8540 # return b[0] + (b[1]<<8);
8543 # static unsigned int
8544 # pe_get32 (fd, offset)
8548 # unsigned char b[4];
8549 # lseek (fd, offset, SEEK_SET);
8551 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8554 # static unsigned int
8558 # unsigned char *b = ptr;
8559 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8568 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8569 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8570 # unsigned long name_rvas, nexp;
8571 # unsigned char *expdata, *erva;
8572 # char *filename, *dll_name;
8574 # filename = argv[1];
8576 # dll = open(filename, O_RDONLY|O_BINARY);
8580 # dll_name = filename;
8582 # for (i=0; filename[i]; i++)
8583 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8584 # dll_name = filename + i +1;
8586 # pe_header_offset = pe_get32 (dll, 0x3c);
8587 # opthdr_ofs = pe_header_offset + 4 + 20;
8588 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8590 # if (num_entries < 1) /* no exports */
8593 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8594 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8595 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8596 # secptr = (pe_header_offset + 4 + 20 +
8597 # pe_get16 (dll, pe_header_offset + 4 + 16));
8600 # for (i = 0; i < nsections; i++)
8603 # unsigned long secptr1 = secptr + 40 * i;
8604 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8605 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8606 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8607 # lseek(dll, secptr1, SEEK_SET);
8608 # read(dll, sname, 8);
8609 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8611 # expptr = fptr + (export_rva - vaddr);
8612 # if (export_rva + export_size > vaddr + vsize)
8613 # export_size = vsize - (export_rva - vaddr);
8618 # expdata = (unsigned char*)malloc(export_size);
8619 # lseek (dll, expptr, SEEK_SET);
8620 # read (dll, expdata, export_size);
8621 # erva = expdata - export_rva;
8623 # nexp = pe_as32 (expdata+24);
8624 # name_rvas = pe_as32 (expdata+32);
8626 # printf ("EXPORTS\n");
8627 # for (i = 0; i<nexp; i++)
8629 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8630 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8635 # /* impgen.c ends here */
8641 # We use sed instead of cat because bash on DJGPP gets confused if
8642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8643 # text mode, it properly converts lines to CR/LF. This bash problem
8644 # is reportedly fixed, but why not run on old versions too?
8645 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8647 mv -f "${ofile}T" "$ofile" || \
8648 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8656 # This can be used to rebuild libtool when needed
8657 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8659 # Always use our own libtool.
8660 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8662 # Prevent multiple expansion
8666 # Checks for header files.
8667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8669 if test "${ac_cv_header_stdc+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8691 rm -f conftest.$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693 (eval $ac_compile) 2>conftest.er1
8695 grep -v '^ *+' conftest.er1 >conftest.err
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_header_stdc=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_cv_header_stdc=no
8720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8722 if test $ac_cv_header_stdc = yes; then
8723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "memchr" >/dev/null 2>&1; then
8737 ac_cv_header_stdc=no
8743 if test $ac_cv_header_stdc = yes; then
8744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755 $EGREP "free" >/dev/null 2>&1; then
8758 ac_cv_header_stdc=no
8764 if test $ac_cv_header_stdc = yes; then
8765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8766 if test "$cross_compiling" = yes; then
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8776 #if ((' ' & 0x0FF) == 0x020)
8777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8780 # define ISLOWER(c) \
8781 (('a' <= (c) && (c) <= 'i') \
8782 || ('j' <= (c) && (c) <= 'r') \
8783 || ('s' <= (c) && (c) <= 'z'))
8784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8792 for (i = 0; i < 256; i++)
8793 if (XOR (islower (i), ISLOWER (i))
8794 || toupper (i) != TOUPPER (i))
8799 rm -f conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8812 echo "$as_me: program exited with status $ac_status" >&5
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_header_stdc=no
8819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8825 if test $ac_cv_header_stdc = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8837 for ac_header in fcntl.h stdlib.h string.h unistd.h
8839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8841 echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 #include <$ac_header>
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest.$ac_objext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_header_compiler=yes
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_header_compiler=no
8890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8892 echo "${ECHO_T}$ac_header_compiler" >&6
8894 # Is the header present?
8895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 #include <$ac_header>
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } >/dev/null; then
8913 if test -s conftest.err; then
8914 ac_cpp_err=$ac_c_preproc_warn_flag
8915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8922 if test -z "$ac_cpp_err"; then
8923 ac_header_preproc=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_header_preproc=no
8930 rm -f conftest.err conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8932 echo "${ECHO_T}$ac_header_preproc" >&6
8934 # So? What about this header?
8935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8941 ac_header_preproc=yes
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8958 ## -------------------------------------------- ##
8959 ## Report this to sebastian.marsching@suphp.org ##
8960 ## -------------------------------------------- ##
8963 sed "s/^/$as_me: WARNING: /" >&2
8966 echo "$as_me:$LINENO: checking for $ac_header" >&5
8967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 eval "$as_ac_Header=\$ac_header_preproc"
8973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 # Determine Apache version and find apxs
8989 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
8990 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
8992 # Check whether --with-apxs or --without-apxs was given.
8993 if test "${with_apxs+set}" = set; then
8994 withval="$with_apxs"
8996 if test "$withval" = "yes"; then
9004 if test -z "$APXS"; then
9008 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
9009 for i in /usr/sbin /usr/local/apache/bin ; do
9010 if test -f "$i/apxs"; then
9016 if test -n "$APXS"; then
9019 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
9020 | grep "Server version" \
9024 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
9025 if test "$major_version" = "2.0"; then
9026 APACHE_VERSION_2=true
9027 APACHE_VERSION_1_3=false
9029 APACHE_VERSION_2=false
9030 APACHE_VERSION_1_3=true
9035 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
9036 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
9037 if test x"{$APACHE_VERSION_2}" = xtrue ; then \
9038 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
9040 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
9041 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
9047 echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
9048 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
9053 echo "$as_me:$LINENO: result: no" >&5
9054 echo "${ECHO_T}no" >&6
9060 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
9061 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
9063 # Check whether --with-setid-mode or --without-setid-mode was given.
9064 if test "${with_setid_mode+set}" = set; then
9065 withval="$with_setid_mode"
9067 if test "$withval" = "yes"; then
9068 SETID_MODE="paranoid"
9070 SETID_MODE="$withval"
9075 if test -z "$SETID_MODE" ; then
9076 SETID_MODE="paranoid"
9079 if test -n "$SETID_MODE"; then
9080 case "$SETID_MODE" in
9082 OPT_APACHEMOD_USERGROUP_DEF=""
9085 cat >>confdefs.h <<\_ACEOF
9086 #define OPT_USERGROUP_OWNER 1
9091 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
9094 cat >>confdefs.h <<\_ACEOF
9095 #define OPT_USERGROUP_FORCE 1
9100 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
9103 cat >>confdefs.h <<\_ACEOF
9104 #define OPT_USERGROUP_PARANOID 1
9109 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
9110 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
9111 { (exit 1); exit 1; }; }
9114 echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
9115 echo "${ECHO_T}ok - using $SETID_MODE" >&6
9119 # Checkpath (docroot) option
9122 # Check whether --enable-checkpath or --disable-checkpath was given.
9123 if test "${enable_checkpath+set}" = set; then
9124 enableval="$enable_checkpath"
9126 if test "$enableval" = "no"; then
9129 cat >>confdefs.h <<\_ACEOF
9130 #define OPT_DISABLE_CHECKPATH 1
9141 # Check whether --with-min-uid or --without-min-uid was given.
9142 if test "${with_min_uid+set}" = set; then
9143 withval="$with_min_uid"
9145 if test "$withval" -a ! "$withval" = "yes" ; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define OPT_MIN_UID $withval
9156 cat >>confdefs.h <<\_ACEOF
9157 #define OPT_MIN_UID 100
9166 # Check whether --with-min-gid or --without-min-gid was given.
9167 if test "${with_min_gid+set}" = set; then
9168 withval="$with_min_gid"
9170 if test "$withval" -a ! "$withval" = "yes" ; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define OPT_MIN_GID $withval
9181 cat >>confdefs.h <<\_ACEOF
9182 #define OPT_MIN_GID 100
9192 # Check whether --with-apache-user or --without-apache-user was given.
9193 if test "${with_apache_user+set}" = set; then
9194 withval="$with_apache_user"
9196 if test "$withval" -a ! "$withval" = "yes" ; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define OPT_APACHE_USER "$withval"
9207 cat >>confdefs.h <<_ACEOF
9208 #define OPT_APACHE_USER "wwwrun"
9217 # Check whether --with-logfile or --without-logfile was given.
9218 if test "${with_logfile+set}" = set; then
9219 withval="$with_logfile"
9221 if test "$withval" -a ! "$withval" = "yes" ; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define OPT_LOGFILE "$withval"
9232 cat >>confdefs.h <<_ACEOF
9233 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
9240 # Conditional building of Apache module
9243 if test x"$APACHE_VERSION_1_3" = xtrue; then
9253 if test x"$APACHE_VERSION_2" = xtrue; then
9262 # Conditionally include UserGroup support
9265 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
9266 COND_APUSERGROUP_TRUE=
9267 COND_APUSERGROUP_FALSE='#'
9269 COND_APUSERGROUP_TRUE='#'
9270 COND_APUSERGROUP_FALSE=
9274 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
9276 cat >confcache <<\_ACEOF
9277 # This file is a shell script that caches the results of configure
9278 # tests run on this system so they can be shared between configure
9279 # scripts and configure runs, see configure's option --config-cache.
9280 # It is not useful on other systems. If it contains results you don't
9281 # want to keep, you may remove or edit it.
9283 # config.status only pays attention to the cache file if you give it
9284 # the --recheck option to rerun configure.
9286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9292 # The following way of writing the cache mishandles newlines in values,
9293 # but we know of no workaround that is simple, portable, and efficient.
9294 # So, don't put newlines in cache variables' values.
9295 # Ultrix sh set writes to stderr and can't be redirected directly,
9296 # and sets the high bit in the cache file unless we assign to the vars.
9299 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9301 # `set' does not quote correctly, so add quotes (double-quote
9302 # substitution turns \\\\ into \\, and sed turns \\ into \).
9305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9308 # `set' quotes correctly as required by POSIX, so do not add quotes.
9310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9317 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9319 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9321 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9322 if test -w $cache_file; then
9323 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9324 cat confcache >$cache_file
9326 echo "not updating unwritable cache $cache_file"
9331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9332 # Let make expand exec_prefix.
9333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9337 # trailing colons and then remove the whole line if VPATH becomes empty
9338 # (actually we leave an empty line to preserve line numbers).
9339 if test "x$srcdir" = x.; then
9340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9341 s/:*\$(srcdir):*/:/;
9342 s/:*\${srcdir}:*/:/;
9344 s/^\([^=]*=[ ]*\):*/\1/;
9350 DEFS=-DHAVE_CONFIG_H
9354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9355 # 1. Remove the extension, and $U if already installed.
9356 ac_i=`echo "$ac_i" |
9357 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9359 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9360 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9364 LTLIBOBJS=$ac_ltlibobjs
9367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9368 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9369 Usually this means the macro was only invoked conditionally." >&5
9370 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9371 Usually this means the macro was only invoked conditionally." >&2;}
9372 { (exit 1); exit 1; }; }
9374 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
9375 { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
9376 Usually this means the macro was only invoked conditionally." >&5
9377 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
9378 Usually this means the macro was only invoked conditionally." >&2;}
9379 { (exit 1); exit 1; }; }
9381 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
9382 { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
9383 Usually this means the macro was only invoked conditionally." >&5
9384 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
9385 Usually this means the macro was only invoked conditionally." >&2;}
9386 { (exit 1); exit 1; }; }
9388 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
9389 { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
9390 Usually this means the macro was only invoked conditionally." >&5
9391 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
9392 Usually this means the macro was only invoked conditionally." >&2;}
9393 { (exit 1); exit 1; }; }
9396 : ${CONFIG_STATUS=./config.status}
9397 ac_clean_files_save=$ac_clean_files
9398 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9399 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9400 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9401 cat >$CONFIG_STATUS <<_ACEOF
9403 # Generated by $as_me.
9404 # Run this file to recreate the current configuration.
9405 # Compiler output produced by configure, useful for debugging
9406 # configure, is in config.log if it exists.
9411 SHELL=\${CONFIG_SHELL-$SHELL}
9414 cat >>$CONFIG_STATUS <<\_ACEOF
9415 ## --------------------- ##
9416 ## M4sh Initialization. ##
9417 ## --------------------- ##
9419 # Be Bourne compatible
9420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9423 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9424 # is contrary to our usage. Disable this feature.
9425 alias -g '${1+"$@"}'='"$@"'
9426 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9429 DUALCASE=1; export DUALCASE # for MKS sh
9431 # Support unset when possible.
9432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9439 # Work around bugs in pre-3.0 UWIN ksh.
9440 $as_unset ENV MAIL MAILPATH
9447 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9448 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9449 LC_TELEPHONE LC_TIME
9451 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9452 eval $as_var=C; export $as_var
9458 # Required to use basename.
9459 if expr a : '\(a\)' >/dev/null 2>&1; then
9465 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9466 as_basename=basename
9472 # Name of the executable.
9473 as_me=`$as_basename "$0" ||
9474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9475 X"$0" : 'X\(//\)$' \| \
9476 X"$0" : 'X\(/\)$' \| \
9477 . : '\(.\)' 2>/dev/null ||
9479 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9480 /^X\/\(\/\/\)$/{ s//\1/; q; }
9481 /^X\/\(\/\).*/{ s//\1/; q; }
9485 # PATH needs CR, and LINENO needs CR and PATH.
9486 # Avoid depending upon Character Ranges.
9487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9490 as_cr_digits='0123456789'
9491 as_cr_alnum=$as_cr_Letters$as_cr_digits
9493 # The user is always right.
9494 if test "${PATH_SEPARATOR+set}" != set; then
9495 echo "#! /bin/sh" >conf$$.sh
9496 echo "exit 0" >>conf$$.sh
9498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9510 test "x$as_lineno_1" != "x$as_lineno_2" &&
9511 test "x$as_lineno_3" = "x$as_lineno_2" || {
9512 # Find who we are. Look in the path if we contain no path at all
9515 *[\\/]* ) as_myself=$0 ;;
9516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 test -z "$as_dir" && as_dir=.
9521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9526 # We did not find ourselves, most probably we were run as `sh COMMAND'
9527 # in which case we are not to be found in the path.
9528 if test "x$as_myself" = x; then
9531 if test ! -f "$as_myself"; then
9532 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9533 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9534 { (exit 1); exit 1; }; }
9536 case $CONFIG_SHELL in
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9542 test -z "$as_dir" && as_dir=.
9543 for as_base in sh bash ksh sh5; do
9546 if ("$as_dir/$as_base" -c '
9549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9550 test "x$as_lineno_1" != "x$as_lineno_2" &&
9551 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9552 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9553 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9554 CONFIG_SHELL=$as_dir/$as_base
9556 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9564 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9565 # uniformly replaced by the line number. The first 'sed' inserts a
9566 # line-number line before each line; the second 'sed' does the real
9567 # work. The second script uses 'N' to pair each line-number line
9568 # with the numbered line, and appends trailing '-' during
9569 # substitution so that $LINENO is not a special case at line end.
9570 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9571 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9572 sed '=' <$as_myself |
9577 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9580 s,^['$as_cr_digits']*\n,,
9582 chmod +x $as_me.lineno ||
9583 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9585 { (exit 1); exit 1; }; }
9587 # Don't try to exec as it changes $[0], causing all sort of problems
9588 # (the dirname of $[0] is not the place where we might find the
9589 # original and so on. Autoconf is especially sensible to this).
9591 # Exit status is that of the last command.
9596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9597 *c*,-n*) ECHO_N= ECHO_C='
9599 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9600 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9603 if expr a : '\(a\)' >/dev/null 2>&1; then
9609 rm -f conf$$ conf$$.exe conf$$.file
9611 if ln -s conf$$.file conf$$ 2>/dev/null; then
9612 # We could just check for DJGPP; but this test a) works b) is more generic
9613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9614 if test -f conf$$.exe; then
9615 # Don't use ln at all; we don't have any links
9620 elif ln conf$$.file conf$$ 2>/dev/null; then
9625 rm -f conf$$ conf$$.exe conf$$.file
9627 if mkdir -p . 2>/dev/null; then
9630 test -d ./-p && rmdir ./-p
9634 as_executable_p="test -f"
9636 # Sed expression to map a string onto a valid CPP name.
9637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9639 # Sed expression to map a string onto a valid variable name.
9640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9644 # We need space, tab and new line, in precisely that order.
9654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9655 # report actual input values of CONFIG_FILES etc. instead of their
9656 # values after options handling. Logging --version etc. is OK.
9660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9661 ## Running $as_me. ##
9666 This file was extended by suPHP $as_me 0.6.0, which was
9667 generated by GNU Autoconf 2.59. Invocation command line was
9669 CONFIG_FILES = $CONFIG_FILES
9670 CONFIG_HEADERS = $CONFIG_HEADERS
9671 CONFIG_LINKS = $CONFIG_LINKS
9672 CONFIG_COMMANDS = $CONFIG_COMMANDS
9676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9680 # Files that config.status was made for.
9681 if test -n "$ac_config_files"; then
9682 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9685 if test -n "$ac_config_headers"; then
9686 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9689 if test -n "$ac_config_links"; then
9690 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9693 if test -n "$ac_config_commands"; then
9694 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9697 cat >>$CONFIG_STATUS <<\_ACEOF
9700 \`$as_me' instantiates files from templates according to the
9701 current configuration.
9703 Usage: $0 [OPTIONS] [FILE]...
9705 -h, --help print this help, then exit
9706 -V, --version print version number, then exit
9707 -q, --quiet do not print progress messages
9708 -d, --debug don't remove temporary files
9709 --recheck update $as_me by reconfiguring in the same conditions
9710 --file=FILE[:TEMPLATE]
9711 instantiate the configuration file FILE
9712 --header=FILE[:TEMPLATE]
9713 instantiate the configuration header FILE
9715 Configuration files:
9718 Configuration headers:
9721 Configuration commands:
9724 Report bugs to <bug-autoconf@gnu.org>."
9727 cat >>$CONFIG_STATUS <<_ACEOF
9729 suPHP config.status 0.6.0
9730 configured by $0, generated by GNU Autoconf 2.59,
9731 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9733 Copyright (C) 2003 Free Software Foundation, Inc.
9734 This config.status script is free software; the Free Software Foundation
9735 gives unlimited permission to copy, distribute and modify it."
9740 cat >>$CONFIG_STATUS <<\_ACEOF
9741 # If no file are specified by the user, then we need to provide default
9742 # value. By we need to know if files were specified by the user.
9748 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9749 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9757 *) # This is not an option, so the user has probably given explicit
9760 ac_need_defaults=false;;
9764 # Handling of the options.
9766 cat >>$CONFIG_STATUS <<\_ACEOF
9767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9769 --version | --vers* | -V )
9770 echo "$ac_cs_version"; exit 0 ;;
9772 # Conflict between --help and --header
9773 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9774 Try \`$0 --help' for more information." >&5
9775 echo "$as_me: error: ambiguous option: $1
9776 Try \`$0 --help' for more information." >&2;}
9777 { (exit 1); exit 1; }; };;
9778 --help | --hel | -h )
9779 echo "$ac_cs_usage"; exit 0 ;;
9780 --debug | --d* | -d )
9782 --file | --fil | --fi | --f )
9784 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9785 ac_need_defaults=false;;
9786 --header | --heade | --head | --hea )
9788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9789 ac_need_defaults=false;;
9790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9791 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9795 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9796 Try \`$0 --help' for more information." >&5
9797 echo "$as_me: error: unrecognized option: $1
9798 Try \`$0 --help' for more information." >&2;}
9799 { (exit 1); exit 1; }; } ;;
9801 *) ac_config_targets="$ac_config_targets $1" ;;
9807 ac_configure_extra_args=
9809 if $ac_cs_silent; then
9811 ac_configure_extra_args="$ac_configure_extra_args --silent"
9815 cat >>$CONFIG_STATUS <<_ACEOF
9816 if \$ac_cs_recheck; then
9817 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9818 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9823 cat >>$CONFIG_STATUS <<_ACEOF
9825 # INIT-COMMANDS section.
9828 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9834 cat >>$CONFIG_STATUS <<\_ACEOF
9835 for ac_config_target in $ac_config_targets
9837 case "$ac_config_target" in
9838 # Handling of arguments.
9839 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9840 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9841 "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
9842 "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
9843 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9844 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9845 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9847 { (exit 1); exit 1; }; };;
9851 # If the user did not use the arguments to specify the items to instantiate,
9852 # then the envvar interface is used. Set only those that are not.
9853 # We use the long form for the default assignment because of an extremely
9854 # bizarre bug on SunOS 4.1.3.
9855 if $ac_need_defaults; then
9856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9861 # Have a temporary directory for convenience. Make it in the build tree
9862 # simply because there is no reason to put it here, and in addition,
9863 # creating and moving files from /tmp can sometimes cause problems.
9864 # Create a temporary directory, and hook for its removal unless debugging.
9867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9868 trap '{ (exit 1); exit 1; }' 1 2 13 15
9871 # Create a (secure) tmp directory for tmp files.
9874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9875 test -n "$tmp" && test -d "$tmp"
9878 tmp=./confstat$$-$RANDOM
9879 (umask 077 && mkdir $tmp)
9882 echo "$me: cannot create a temporary directory in ." >&2
9883 { (exit 1); exit 1; }
9888 cat >>$CONFIG_STATUS <<_ACEOF
9891 # CONFIG_FILES section.
9894 # No need to generate the scripts if there are no CONFIG_FILES.
9895 # This happens for instance when ./config.status config.h
9896 if test -n "\$CONFIG_FILES"; then
9897 # Protect against being on the right side of a sed subst in config.status.
9898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9900 s,@SHELL@,$SHELL,;t t
9901 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9902 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9903 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9904 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9905 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9906 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9907 s,@exec_prefix@,$exec_prefix,;t t
9908 s,@prefix@,$prefix,;t t
9909 s,@program_transform_name@,$program_transform_name,;t t
9910 s,@bindir@,$bindir,;t t
9911 s,@sbindir@,$sbindir,;t t
9912 s,@libexecdir@,$libexecdir,;t t
9913 s,@datadir@,$datadir,;t t
9914 s,@sysconfdir@,$sysconfdir,;t t
9915 s,@sharedstatedir@,$sharedstatedir,;t t
9916 s,@localstatedir@,$localstatedir,;t t
9917 s,@libdir@,$libdir,;t t
9918 s,@includedir@,$includedir,;t t
9919 s,@oldincludedir@,$oldincludedir,;t t
9920 s,@infodir@,$infodir,;t t
9921 s,@mandir@,$mandir,;t t
9922 s,@build_alias@,$build_alias,;t t
9923 s,@host_alias@,$host_alias,;t t
9924 s,@target_alias@,$target_alias,;t t
9926 s,@ECHO_C@,$ECHO_C,;t t
9927 s,@ECHO_N@,$ECHO_N,;t t
9928 s,@ECHO_T@,$ECHO_T,;t t
9930 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9931 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9932 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9933 s,@PACKAGE@,$PACKAGE,;t t
9934 s,@VERSION@,$VERSION,;t t
9935 s,@ACLOCAL@,$ACLOCAL,;t t
9936 s,@AUTOCONF@,$AUTOCONF,;t t
9937 s,@AUTOMAKE@,$AUTOMAKE,;t t
9938 s,@AUTOHEADER@,$AUTOHEADER,;t t
9939 s,@MAKEINFO@,$MAKEINFO,;t t
9940 s,@AMTAR@,$AMTAR,;t t
9941 s,@install_sh@,$install_sh,;t t
9942 s,@STRIP@,$STRIP,;t t
9943 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9944 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9946 s,@SET_MAKE@,$SET_MAKE,;t t
9948 s,@CFLAGS@,$CFLAGS,;t t
9949 s,@LDFLAGS@,$LDFLAGS,;t t
9950 s,@CPPFLAGS@,$CPPFLAGS,;t t
9951 s,@ac_ct_CC@,$ac_ct_CC,;t t
9952 s,@EXEEXT@,$EXEEXT,;t t
9953 s,@OBJEXT@,$OBJEXT,;t t
9954 s,@DEPDIR@,$DEPDIR,;t t
9955 s,@am__include@,$am__include,;t t
9956 s,@am__quote@,$am__quote,;t t
9957 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9958 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9959 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9960 s,@CCDEPMODE@,$CCDEPMODE,;t t
9962 s,@CXXFLAGS@,$CXXFLAGS,;t t
9963 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9964 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9965 s,@build@,$build,;t t
9966 s,@build_cpu@,$build_cpu,;t t
9967 s,@build_vendor@,$build_vendor,;t t
9968 s,@build_os@,$build_os,;t t
9970 s,@host_cpu@,$host_cpu,;t t
9971 s,@host_vendor@,$host_vendor,;t t
9972 s,@host_os@,$host_os,;t t
9975 s,@RANLIB@,$RANLIB,;t t
9976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9978 s,@EGREP@,$EGREP,;t t
9979 s,@LIBTOOL@,$LIBTOOL,;t t
9981 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
9982 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
9983 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
9984 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
9985 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
9986 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
9987 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
9988 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
9989 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
9990 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
9991 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
9992 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
9993 s,@LIBOBJS@,$LIBOBJS,;t t
9994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9999 cat >>$CONFIG_STATUS <<\_ACEOF
10000 # Split the substitutions into bite-sized pieces for seds with
10001 # small command number limits, like on Digital OSF/1 and HP-UX.
10002 ac_max_sed_lines=48
10003 ac_sed_frag=1 # Number of current file.
10004 ac_beg=1 # First line for current file.
10005 ac_end=$ac_max_sed_lines # Line after last line for current file.
10008 while $ac_more_lines; do
10009 if test $ac_beg -gt 1; then
10010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10014 if test ! -s $tmp/subs.frag; then
10015 ac_more_lines=false
10017 # The purpose of the label and of the branching condition is to
10018 # speed up the sed processing (if there are no `@' at all, there
10019 # is no need to browse any of the substitutions).
10020 # These are the two extra sed commands mentioned above.
10022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10023 if test -z "$ac_sed_cmds"; then
10024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10028 ac_sed_frag=`expr $ac_sed_frag + 1`
10030 ac_end=`expr $ac_end + $ac_max_sed_lines`
10033 if test -z "$ac_sed_cmds"; then
10036 fi # test -n "$CONFIG_FILES"
10039 cat >>$CONFIG_STATUS <<\_ACEOF
10040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10043 - | *:- | *:-:* ) # input from stdin
10045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10049 * ) ac_file_in=$ac_file.in ;;
10052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10055 X"$ac_file" : 'X\(//\)[^/]' \| \
10056 X"$ac_file" : 'X\(//\)$' \| \
10057 X"$ac_file" : 'X\(/\)' \| \
10058 . : '\(.\)' 2>/dev/null ||
10060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10062 /^X\(\/\/\)$/{ s//\1/; q; }
10063 /^X\(\/\).*/{ s//\1/; q; }
10065 { if $as_mkdir_p; then
10070 while test ! -d "$as_dir"; do
10071 as_dirs="$as_dir $as_dirs"
10072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074 X"$as_dir" : 'X\(//\)[^/]' \| \
10075 X"$as_dir" : 'X\(//\)$' \| \
10076 X"$as_dir" : 'X\(/\)' \| \
10077 . : '\(.\)' 2>/dev/null ||
10079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10081 /^X\(\/\/\)$/{ s//\1/; q; }
10082 /^X\(\/\).*/{ s//\1/; q; }
10085 test ! -n "$as_dirs" || mkdir $as_dirs
10086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10088 { (exit 1); exit 1; }; }; }
10092 if test "$ac_dir" != .; then
10093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10094 # A "../" for each directory in $ac_dir_suffix.
10095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10097 ac_dir_suffix= ac_top_builddir=
10101 .) # No --srcdir option. We are building in place.
10103 if test -z "$ac_top_builddir"; then
10106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10108 [\\/]* | ?:[\\/]* ) # Absolute path.
10109 ac_srcdir=$srcdir$ac_dir_suffix;
10110 ac_top_srcdir=$srcdir ;;
10111 *) # Relative path.
10112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10116 # Do not use `cd foo && pwd` to compute absolute paths, because
10117 # the directories may not exist.
10119 .) ac_abs_builddir="$ac_dir";;
10122 .) ac_abs_builddir=`pwd`;;
10123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10127 case $ac_abs_builddir in
10128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10130 case ${ac_top_builddir}. in
10131 .) ac_abs_top_builddir=$ac_abs_builddir;;
10132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10136 case $ac_abs_builddir in
10137 .) ac_abs_srcdir=$ac_srcdir;;
10140 .) ac_abs_srcdir=$ac_abs_builddir;;
10141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10145 case $ac_abs_builddir in
10146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10148 case $ac_top_srcdir in
10149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10161 if test x"$ac_file" != x-; then
10162 { echo "$as_me:$LINENO: creating $ac_file" >&5
10163 echo "$as_me: creating $ac_file" >&6;}
10166 # Let's still pretend it is `configure' which instantiates (i.e., don't
10167 # use $as_me), people would be surprised to read:
10168 # /* config.h. Generated by config.status. */
10169 if test x"$ac_file" = x-; then
10172 configure_input="$ac_file. "
10174 configure_input=$configure_input"Generated from `echo $ac_file_in |
10175 sed 's,.*/,,'` by configure."
10177 # First look for the input files in the build tree, otherwise in the
10179 ac_file_inputs=`IFS=:
10180 for f in $ac_file_in; do
10182 -) echo $tmp/stdin ;;
10184 # Absolute (can't be DOS-style, as IFS=:)
10185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10186 echo "$as_me: error: cannot find input file: $f" >&2;}
10187 { (exit 1); exit 1; }; }
10190 if test -f "$f"; then
10193 elif test -f "$srcdir/$f"; then
10198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10199 echo "$as_me: error: cannot find input file: $f" >&2;}
10200 { (exit 1); exit 1; }; }
10203 done` || { (exit 1); exit 1; }
10205 cat >>$CONFIG_STATUS <<_ACEOF
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10212 s,@configure_input@,$configure_input,;t t
10213 s,@srcdir@,$ac_srcdir,;t t
10214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10215 s,@top_srcdir@,$ac_top_srcdir,;t t
10216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10217 s,@builddir@,$ac_builddir,;t t
10218 s,@abs_builddir@,$ac_abs_builddir,;t t
10219 s,@top_builddir@,$ac_top_builddir,;t t
10220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10221 s,@INSTALL@,$ac_INSTALL,;t t
10222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10224 if test x"$ac_file" != x-; then
10225 mv $tmp/out $ac_file
10233 cat >>$CONFIG_STATUS <<\_ACEOF
10236 # CONFIG_HEADER section.
10239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10242 # ac_d sets the value in "#define NAME VALUE" lines.
10243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10244 ac_dB='[ ].*$,\1#\2'
10247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10248 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10249 ac_uB='$,\1#\2define\3'
10253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10256 - | *:- | *:-:* ) # input from stdin
10258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10262 * ) ac_file_in=$ac_file.in ;;
10265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10266 echo "$as_me: creating $ac_file" >&6;}
10268 # First look for the input files in the build tree, otherwise in the
10270 ac_file_inputs=`IFS=:
10271 for f in $ac_file_in; do
10273 -) echo $tmp/stdin ;;
10275 # Absolute (can't be DOS-style, as IFS=:)
10276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10277 echo "$as_me: error: cannot find input file: $f" >&2;}
10278 { (exit 1); exit 1; }; }
10279 # Do quote $f, to prevent DOS paths from being IFS'd.
10282 if test -f "$f"; then
10285 elif test -f "$srcdir/$f"; then
10290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10291 echo "$as_me: error: cannot find input file: $f" >&2;}
10292 { (exit 1); exit 1; }; }
10295 done` || { (exit 1); exit 1; }
10296 # Remove the trailing spaces.
10297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10302 # `conftest.undefs', that substitutes the proper values into
10303 # config.h.in to produce config.h. The first handles `#define'
10304 # templates, and the second `#undef' templates.
10305 # And first: Protect against being on the right side of a sed subst in
10306 # config.status. Protect against being in an unquoted here document
10307 # in config.status.
10308 rm -f conftest.defines conftest.undefs
10309 # Using a here document instead of a string reduces the quoting nightmare.
10310 # Putting comments in sed scripts is not portable.
10312 # `end' is used to avoid that the second main sed command (meant for
10313 # 0-ary CPP macros) applies to n-ary macro definitions.
10314 # See the Autoconf documentation for `clear'.
10315 cat >confdef2sed.sed <<\_ACEOF
10320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10325 # If some macros were called several times there might be several times
10326 # the same #defines, which is useless. Nevertheless, we may not want to
10327 # sort them, since we want the *last* AC-DEFINE to be honored.
10328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10330 rm -f confdef2sed.sed
10332 # This sed command replaces #undef with comments. This is necessary, for
10333 # example, in the case of _POSIX_SOURCE, which is predefined and required
10334 # on some systems where configure will not decide to define it.
10335 cat >>conftest.undefs <<\_ACEOF
10336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10339 # Break up conftest.defines because some shells have a limit on the size
10340 # of here documents, and old seds have small limits too (100 cmds).
10341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10344 echo ' :' >>$CONFIG_STATUS
10345 rm -f conftest.tail
10346 while grep . conftest.defines >/dev/null
10348 # Write a limited-size here document to $tmp/defines.sed.
10349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10350 # Speed up: don't consider the non `#define' lines.
10351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10352 # Work around the forget-to-reset-the-flag bug.
10353 echo 't clr' >>$CONFIG_STATUS
10354 echo ': clr' >>$CONFIG_STATUS
10355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10359 mv $tmp/out $tmp/in
10361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10362 rm -f conftest.defines
10363 mv conftest.tail conftest.defines
10365 rm -f conftest.defines
10366 echo ' fi # grep' >>$CONFIG_STATUS
10367 echo >>$CONFIG_STATUS
10369 # Break up conftest.undefs because some shells have a limit on the size
10370 # of here documents, and old seds have small limits too (100 cmds).
10371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10372 rm -f conftest.tail
10373 while grep . conftest.undefs >/dev/null
10375 # Write a limited-size here document to $tmp/undefs.sed.
10376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10377 # Speed up: don't consider the non `#undef'
10378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10379 # Work around the forget-to-reset-the-flag bug.
10380 echo 't clr' >>$CONFIG_STATUS
10381 echo ': clr' >>$CONFIG_STATUS
10382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10386 mv $tmp/out $tmp/in
10388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10389 rm -f conftest.undefs
10390 mv conftest.tail conftest.undefs
10392 rm -f conftest.undefs
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395 # Let's still pretend it is `configure' which instantiates (i.e., don't
10396 # use $as_me), people would be surprised to read:
10397 # /* config.h. Generated by config.status. */
10398 if test x"$ac_file" = x-; then
10399 echo "/* Generated by configure. */" >$tmp/config.h
10401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10403 cat $tmp/in >>$tmp/config.h
10405 if test x"$ac_file" != x-; then
10406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10408 echo "$as_me: $ac_file is unchanged" >&6;}
10410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10412 X"$ac_file" : 'X\(//\)[^/]' \| \
10413 X"$ac_file" : 'X\(//\)$' \| \
10414 X"$ac_file" : 'X\(/\)' \| \
10415 . : '\(.\)' 2>/dev/null ||
10417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10419 /^X\(\/\/\)$/{ s//\1/; q; }
10420 /^X\(\/\).*/{ s//\1/; q; }
10422 { if $as_mkdir_p; then
10427 while test ! -d "$as_dir"; do
10428 as_dirs="$as_dir $as_dirs"
10429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10431 X"$as_dir" : 'X\(//\)[^/]' \| \
10432 X"$as_dir" : 'X\(//\)$' \| \
10433 X"$as_dir" : 'X\(/\)' \| \
10434 . : '\(.\)' 2>/dev/null ||
10436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10438 /^X\(\/\/\)$/{ s//\1/; q; }
10439 /^X\(\/\).*/{ s//\1/; q; }
10442 test ! -n "$as_dirs" || mkdir $as_dirs
10443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10445 { (exit 1); exit 1; }; }; }
10448 mv $tmp/config.h $ac_file
10452 rm -f $tmp/config.h
10454 # Run the commands associated with the file.
10456 src/config.h ) # update the timestamp
10457 echo 'timestamp for src/config.h' >"src/stamp-h1"
10462 cat >>$CONFIG_STATUS <<\_ACEOF
10465 # CONFIG_COMMANDS section.
10467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10472 X"$ac_dest" : 'X\(//\)[^/]' \| \
10473 X"$ac_dest" : 'X\(//\)$' \| \
10474 X"$ac_dest" : 'X\(/\)' \| \
10475 . : '\(.\)' 2>/dev/null ||
10477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10479 /^X\(\/\/\)$/{ s//\1/; q; }
10480 /^X\(\/\).*/{ s//\1/; q; }
10482 { if $as_mkdir_p; then
10487 while test ! -d "$as_dir"; do
10488 as_dirs="$as_dir $as_dirs"
10489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491 X"$as_dir" : 'X\(//\)[^/]' \| \
10492 X"$as_dir" : 'X\(//\)$' \| \
10493 X"$as_dir" : 'X\(/\)' \| \
10494 . : '\(.\)' 2>/dev/null ||
10496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10498 /^X\(\/\/\)$/{ s//\1/; q; }
10499 /^X\(\/\).*/{ s//\1/; q; }
10502 test ! -n "$as_dirs" || mkdir $as_dirs
10503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10505 { (exit 1); exit 1; }; }; }
10509 if test "$ac_dir" != .; then
10510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10511 # A "../" for each directory in $ac_dir_suffix.
10512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10514 ac_dir_suffix= ac_top_builddir=
10518 .) # No --srcdir option. We are building in place.
10520 if test -z "$ac_top_builddir"; then
10523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10525 [\\/]* | ?:[\\/]* ) # Absolute path.
10526 ac_srcdir=$srcdir$ac_dir_suffix;
10527 ac_top_srcdir=$srcdir ;;
10528 *) # Relative path.
10529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10533 # Do not use `cd foo && pwd` to compute absolute paths, because
10534 # the directories may not exist.
10536 .) ac_abs_builddir="$ac_dir";;
10539 .) ac_abs_builddir=`pwd`;;
10540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10544 case $ac_abs_builddir in
10545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10547 case ${ac_top_builddir}. in
10548 .) ac_abs_top_builddir=$ac_abs_builddir;;
10549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10553 case $ac_abs_builddir in
10554 .) ac_abs_srcdir=$ac_srcdir;;
10557 .) ac_abs_srcdir=$ac_abs_builddir;;
10558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10562 case $ac_abs_builddir in
10563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10565 case $ac_top_srcdir in
10566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10574 echo "$as_me: executing $ac_dest commands" >&6;}
10576 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10577 # Strip MF so we end up with the name of the file.
10578 mf=`echo "$mf" | sed -e 's/:.*$//'`
10579 # Check whether this is an Automake generated Makefile or not.
10580 # We used to match only the files named `Makefile.in', but
10581 # some people rename them; so instead we look at the file content.
10582 # Grep'ing the first line is not enough: some people post-process
10583 # each Makefile.in and add a new line on top of each file to say so.
10584 # So let's grep whole file.
10585 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10586 dirpart=`(dirname "$mf") 2>/dev/null ||
10587 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10588 X"$mf" : 'X\(//\)[^/]' \| \
10589 X"$mf" : 'X\(//\)$' \| \
10590 X"$mf" : 'X\(/\)' \| \
10591 . : '\(.\)' 2>/dev/null ||
10593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10595 /^X\(\/\/\)$/{ s//\1/; q; }
10596 /^X\(\/\).*/{ s//\1/; q; }
10601 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10602 # Extract the definition of DEP_FILES from the Makefile without
10604 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10605 test -z "$DEPDIR" && continue
10606 # When using ansi2knr, U may be empty or an underscore; expand it
10607 U=`sed -n -e '/^U = / s///p' < "$mf"`
10608 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10609 # We invoke sed twice because it is the simplest approach to
10610 # changing $(DEPDIR) to its actual value in the expansion.
10611 for file in `sed -n -e '
10612 /^DEP_FILES = .*\\\\$/ {
10621 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10622 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10623 # Make sure the directory exists.
10624 test -f "$dirpart/$file" && continue
10625 fdir=`(dirname "$file") 2>/dev/null ||
10626 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10627 X"$file" : 'X\(//\)[^/]' \| \
10628 X"$file" : 'X\(//\)$' \| \
10629 X"$file" : 'X\(/\)' \| \
10630 . : '\(.\)' 2>/dev/null ||
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10634 /^X\(\/\/\)$/{ s//\1/; q; }
10635 /^X\(\/\).*/{ s//\1/; q; }
10637 { if $as_mkdir_p; then
10638 mkdir -p $dirpart/$fdir
10640 as_dir=$dirpart/$fdir
10642 while test ! -d "$as_dir"; do
10643 as_dirs="$as_dir $as_dirs"
10644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10646 X"$as_dir" : 'X\(//\)[^/]' \| \
10647 X"$as_dir" : 'X\(//\)$' \| \
10648 X"$as_dir" : 'X\(/\)' \| \
10649 . : '\(.\)' 2>/dev/null ||
10651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10653 /^X\(\/\/\)$/{ s//\1/; q; }
10654 /^X\(\/\).*/{ s//\1/; q; }
10657 test ! -n "$as_dirs" || mkdir $as_dirs
10658 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10659 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10660 { (exit 1); exit 1; }; }; }
10662 # echo "creating $dirpart/$file"
10663 echo '# dummy' > "$dirpart/$file"
10671 cat >>$CONFIG_STATUS <<\_ACEOF
10673 { (exit 0); exit 0; }
10675 chmod +x $CONFIG_STATUS
10676 ac_clean_files=$ac_clean_files_save
10679 # configure is writing to config.log, and then calls config.status.
10680 # config.status does its own redirection, appending to config.log.
10681 # Unfortunately, on DOS this fails, as config.log is still kept open
10682 # by configure, so config.status won't be able to write to it; its
10683 # output is simply discarded. So we exec the FD to /dev/null,
10684 # effectively closing config.log, so it can be properly (re)opened and
10685 # appended to by config.status. When coming back to configure, we
10686 # need to make the FD available again.
10687 if test "$no_create" != yes; then
10689 ac_config_status_args=
10690 test "$silent" = yes &&
10691 ac_config_status_args="$ac_config_status_args --quiet"
10693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10696 # would make configure fail if this is the last instruction.
10697 $ac_cs_success || { (exit 1); exit 1; }
10701 if test "$APXS" = "/notfound/"; then
10702 { echo "$as_me:$LINENO: WARNING:
10703 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10704 !!*** APXS was not found, so mod_suphp will not be built! ***!!
10705 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10707 echo "$as_me: WARNING:
10708 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10709 !!*** APXS was not found, so mod_suphp will not be built! ***!!
10710 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!