2007-05-30 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / libmudflap / configure
blob4c3e6eede33ce1e6b93dc7a9eae6cb26aec853a4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='libmudflap'
418 PACKAGE_TARNAME='libmudflap'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libmudflap 1.0'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="mf-runtime.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 # Report the --help message.
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
925 Defaults for the options are specified in brackets.
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938 _ACEOF
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
952 For better control, use the options below.
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
969 cat <<\_ACEOF
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libmudflap 1.0:";;
986 esac
987 cat <<\_ACEOF
989 Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005 --enable-tls Use thread-local storage [default=yes]
1007 Optional Packages:
1008 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1009 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1026 _ACEOF
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097 esac
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 cd $ac_popdir
1115 done
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1121 libmudflap configure 1.0
1122 generated by GNU Autoconf 2.59
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128 exit 0
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1135 It was created by libmudflap $as_me 1.0, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1138 $ $0 $@
1140 _ACEOF
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164 _ASUNAME
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1174 } >&5
1176 cat >&5 <<_ACEOF
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1183 _ACEOF
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1198 for ac_arg
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
1213 ac_must_keep_next=false # Got value, back to normal.
1214 else
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1231 esac
1232 done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log. We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1245 echo
1247 cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 esac;
1268 echo
1270 cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
1312 rm -f core *.core &&
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1316 for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1326 # Predefined preprocessor variables.
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1362 for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1369 done
1371 if test -r "$cache_file"; then
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
1409 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1410 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1411 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1412 echo "$as_me: former value: $ac_old_val" >&2;}
1413 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1414 echo "$as_me: current value: $ac_new_val" >&2;}
1415 ac_cache_corrupted=:
1416 fi;;
1417 esac
1418 # Pass precious variables to config.status.
1419 if test "$ac_new_set" = set; then
1420 case $ac_new_val in
1421 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 *) ac_arg=$ac_var=$ac_new_val ;;
1424 esac
1425 case " $ac_configure_args " in
1426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1427 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428 esac
1430 done
1431 if $ac_cache_corrupted; then
1432 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436 { (exit 1); exit 1; }; }
1439 ac_ext=c
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 echo "$as_me:$LINENO: checking target system type" >&5
1552 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1553 if test "${ac_cv_target+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 ac_cv_target_alias=$target_alias
1557 test "x$ac_cv_target_alias" = "x" &&
1558 ac_cv_target_alias=$ac_cv_host_alias
1559 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1565 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1566 echo "${ECHO_T}$ac_cv_target" >&6
1567 target=$ac_cv_target
1568 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 # The aliases save the names the user supplied, while $host etc.
1574 # will get canonicalized.
1575 test -n "$target_alias" &&
1576 test "$program_prefix$program_suffix$program_transform_name" = \
1577 NONENONEs,x,x, &&
1578 program_prefix=${target_alias}-
1579 case ${build_alias} in
1580 "") build_noncanonical=${build} ;;
1581 *) build_noncanonical=${build_alias} ;;
1582 esac
1584 case ${host_alias} in
1585 "") host_noncanonical=${build_noncanonical} ;;
1586 *) host_noncanonical=${host_alias} ;;
1587 esac
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
1592 esac
1597 am__api_version="1.9"
1598 # Find a good install program. We prefer a C program (faster),
1599 # so one script is as good as another. But avoid the broken or
1600 # incompatible versions:
1601 # SysV /etc/install, /usr/sbin/install
1602 # SunOS /usr/etc/install
1603 # IRIX /sbin/install
1604 # AIX /bin/install
1605 # AmigaOS /C/install, which installs bootblocks on floppy discs
1606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1609 # OS/2's system install, which has a completely different semantic
1610 # ./install, which can be erroneously created by make from ./install.sh.
1611 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1612 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1613 if test -z "$INSTALL"; then
1614 if test "${ac_cv_path_install+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 # Account for people who put trailing slashes in PATH elements.
1623 case $as_dir/ in
1624 ./ | .// | /cC/* | \
1625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1626 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1627 /usr/ucb/* ) ;;
1629 # OSF1 and SCO ODT 3.0 have their own names for install.
1630 # Don't use installbsd from OSF since it installs stuff as root
1631 # by default.
1632 for ac_prog in ginstall scoinst install; do
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1635 if test $ac_prog = install &&
1636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637 # AIX install. It has an incompatible calling convention.
1639 elif test $ac_prog = install &&
1640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # program-specific install script used by HP pwplus--don't use.
1643 else
1644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1645 break 3
1648 done
1649 done
1651 esac
1652 done
1656 if test "${ac_cv_path_install+set}" = set; then
1657 INSTALL=$ac_cv_path_install
1658 else
1659 # As a last resort, use the slow shell script. We don't cache a
1660 # path for INSTALL within a source directory, because that will
1661 # break other packages using the cache if that directory is
1662 # removed, or if the path is relative.
1663 INSTALL=$ac_install_sh
1666 echo "$as_me:$LINENO: result: $INSTALL" >&5
1667 echo "${ECHO_T}$INSTALL" >&6
1669 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1670 # It thinks the first close brace ends the variable substitution.
1671 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1673 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1675 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1677 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1678 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1679 # Just in case
1680 sleep 1
1681 echo timestamp > conftest.file
1682 # Do `set' in a subshell so we don't clobber the current shell's
1683 # arguments. Must try -L first in case configure is actually a
1684 # symlink; some systems play weird games with the mod time of symlinks
1685 # (eg FreeBSD returns the mod time of the symlink's containing
1686 # directory).
1687 if (
1688 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1689 if test "$*" = "X"; then
1690 # -L didn't work.
1691 set X `ls -t $srcdir/configure conftest.file`
1693 rm -f conftest.file
1694 if test "$*" != "X $srcdir/configure conftest.file" \
1695 && test "$*" != "X conftest.file $srcdir/configure"; then
1697 # If neither matched, then we have a broken ls. This can happen
1698 # if, for instance, CONFIG_SHELL is bash and it inherits a
1699 # broken ls alias from the environment. This has actually
1700 # happened. Such a system could not be considered "sane".
1701 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1702 alias in your environment" >&5
1703 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1704 alias in your environment" >&2;}
1705 { (exit 1); exit 1; }; }
1708 test "$2" = conftest.file
1710 then
1711 # Ok.
1713 else
1714 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1715 Check your system clock" >&5
1716 echo "$as_me: error: newly created file is older than distributed files!
1717 Check your system clock" >&2;}
1718 { (exit 1); exit 1; }; }
1720 echo "$as_me:$LINENO: result: yes" >&5
1721 echo "${ECHO_T}yes" >&6
1722 test "$program_prefix" != NONE &&
1723 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1724 # Use a double $ so make ignores it.
1725 test "$program_suffix" != NONE &&
1726 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1727 # Double any \ or $. echo might interpret backslashes.
1728 # By default was `s,x,x', remove it if useless.
1729 cat <<\_ACEOF >conftest.sed
1730 s/[\\$]/&&/g;s/;s,x,x,$//
1731 _ACEOF
1732 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1733 rm conftest.sed
1735 # expand $ac_aux_dir to an absolute path
1736 am_aux_dir=`cd $ac_aux_dir && pwd`
1738 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1739 # Use eval to expand $SHELL
1740 if eval "$MISSING --run true"; then
1741 am_missing_run="$MISSING --run "
1742 else
1743 am_missing_run=
1744 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1745 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1748 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1749 # We used to keeping the `.' as first argument, in order to
1750 # allow $(mkdir_p) to be used without argument. As in
1751 # $(mkdir_p) $(somedir)
1752 # where $(somedir) is conditionally defined. However this is wrong
1753 # for two reasons:
1754 # 1. if the package is installed by a user who cannot write `.'
1755 # make install will fail,
1756 # 2. the above comment should most certainly read
1757 # $(mkdir_p) $(DESTDIR)$(somedir)
1758 # so it does not work when $(somedir) is undefined and
1759 # $(DESTDIR) is not.
1760 # To support the latter case, we have to write
1761 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1762 # so the `.' trick is pointless.
1763 mkdir_p='mkdir -p --'
1764 else
1765 # On NextStep and OpenStep, the `mkdir' command does not
1766 # recognize any option. It will interpret all options as
1767 # directories to create, and then abort because `.' already
1768 # exists.
1769 for d in ./-p ./--version;
1771 test -d $d && rmdir $d
1772 done
1773 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1774 if test -f "$ac_aux_dir/mkinstalldirs"; then
1775 mkdir_p='$(mkinstalldirs)'
1776 else
1777 mkdir_p='$(install_sh) -d'
1781 for ac_prog in gawk mawk nawk awk
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_AWK+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 if test -n "$AWK"; then
1791 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_AWK="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2
1804 done
1805 done
1809 AWK=$ac_cv_prog_AWK
1810 if test -n "$AWK"; then
1811 echo "$as_me:$LINENO: result: $AWK" >&5
1812 echo "${ECHO_T}$AWK" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$AWK" && break
1819 done
1821 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1822 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827 cat >conftest.make <<\_ACEOF
1828 all:
1829 @echo 'ac_maketemp="$(MAKE)"'
1830 _ACEOF
1831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1833 if test -n "$ac_maketemp"; then
1834 eval ac_cv_prog_make_${ac_make}_set=yes
1835 else
1836 eval ac_cv_prog_make_${ac_make}_set=no
1838 rm -f conftest.make
1840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1843 SET_MAKE=
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 SET_MAKE="MAKE=${MAKE-make}"
1850 rm -rf .tst 2>/dev/null
1851 mkdir .tst 2>/dev/null
1852 if test -d .tst; then
1853 am__leading_dot=.
1854 else
1855 am__leading_dot=_
1857 rmdir .tst 2>/dev/null
1859 # test to see if srcdir already configured
1860 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1861 test -f $srcdir/config.status; then
1862 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1863 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1864 { (exit 1); exit 1; }; }
1867 # test whether we have cygpath
1868 if test -z "$CYGPATH_W"; then
1869 if (cygpath --version) >/dev/null 2>/dev/null; then
1870 CYGPATH_W='cygpath -w'
1871 else
1872 CYGPATH_W=echo
1877 # Define the identity of the package.
1878 PACKAGE='libmudflap'
1879 VERSION='1.0'
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE "$PACKAGE"
1884 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define VERSION "$VERSION"
1889 _ACEOF
1891 # Some tools Automake needs.
1893 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1896 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1899 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1902 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1905 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1907 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1909 # Installed binaries are usually stripped using `strip' when the user
1910 # run `make install-strip'. However `strip' might not be the right
1911 # tool to use in cross-compilation environments, therefore Automake
1912 # will honor the `STRIP' environment variable to overrule this program.
1913 if test "$cross_compiling" != no; then
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1916 set dummy ${ac_tool_prefix}strip; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_STRIP+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test -n "$STRIP"; then
1923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1936 done
1937 done
1941 STRIP=$ac_cv_prog_STRIP
1942 if test -n "$STRIP"; then
1943 echo "$as_me:$LINENO: result: $STRIP" >&5
1944 echo "${ECHO_T}$STRIP" >&6
1945 else
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1951 if test -z "$ac_cv_prog_STRIP"; then
1952 ac_ct_STRIP=$STRIP
1953 # Extract the first word of "strip", so it can be a program name with args.
1954 set dummy strip; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_STRIP"; then
1961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_STRIP="strip"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1974 done
1975 done
1977 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1981 if test -n "$ac_ct_STRIP"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1983 echo "${ECHO_T}$ac_ct_STRIP" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 STRIP=$ac_ct_STRIP
1990 else
1991 STRIP="$ac_cv_prog_STRIP"
1995 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1997 # We need awk for the "check" target. The system "awk" is bad on
1998 # some platforms.
1999 # Always define AMTAR for backward compatibility.
2001 AMTAR=${AMTAR-"${am_missing_run}tar"}
2003 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2010 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2011 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2012 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2013 if test "${enable_version_specific_runtime_libs+set}" = set; then
2014 enableval="$enable_version_specific_runtime_libs"
2015 case "$enableval" in
2016 yes) version_specific_libs=yes ;;
2017 no) version_specific_libs=no ;;
2018 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2019 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2020 { (exit 1); exit 1; }; };;
2021 esac
2022 else
2023 version_specific_libs=no
2025 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2026 echo "${ECHO_T}$version_specific_libs" >&6
2028 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2030 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032 enableval="$enable_maintainer_mode"
2033 USE_MAINTAINER_MODE=$enableval
2034 else
2035 USE_MAINTAINER_MODE=no
2037 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2041 if test $USE_MAINTAINER_MODE = yes; then
2042 MAINTAINER_MODE_TRUE=
2043 MAINTAINER_MODE_FALSE='#'
2044 else
2045 MAINTAINER_MODE_TRUE='#'
2046 MAINTAINER_MODE_FALSE=
2049 MAINT=$MAINTAINER_MODE_TRUE
2054 # Default to --enable-multilib
2055 # Check whether --enable-multilib or --disable-multilib was given.
2056 if test "${enable_multilib+set}" = set; then
2057 enableval="$enable_multilib"
2058 case "$enableval" in
2059 yes) multilib=yes ;;
2060 no) multilib=no ;;
2061 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2062 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2063 { (exit 1); exit 1; }; } ;;
2064 esac
2065 else
2066 multilib=yes
2069 # We may get other options which we leave undocumented:
2070 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2071 # See config-ml.in if you want the gory details.
2073 if test "$srcdir" = "."; then
2074 if test "$with_target_subdir" != "."; then
2075 multi_basedir="$srcdir/$with_multisrctop../.."
2076 else
2077 multi_basedir="$srcdir/$with_multisrctop.."
2079 else
2080 multi_basedir="$srcdir/.."
2084 # Even if the default multilib is not a cross compilation,
2085 # it may be that some of the other multilibs are.
2086 if test $cross_compiling = no && test $multilib = yes \
2087 && test "x${with_multisubdir}" != x ; then
2088 cross_compiling=maybe
2091 ac_config_commands="$ac_config_commands default-1"
2094 target_alias=${target_alias-$host_alias}
2097 ac_config_headers="$ac_config_headers config.h"
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2107 # We must force CC to /not/ be precious variables; otherwise
2108 # the wrong, non-multilib-adjusted value will be used in multilibs.
2109 # As a side effect, we have to subst CFLAGS ourselves.
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123 if test "${ac_cv_prog_CC+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 if test -n "$CC"; then
2127 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2140 done
2141 done
2145 CC=$ac_cv_prog_CC
2146 if test -n "$CC"; then
2147 echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6
2149 else
2150 echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6
2155 if test -z "$ac_cv_prog_CC"; then
2156 ac_ct_CC=$CC
2157 # Extract the first word of "gcc", so it can be a program name with args.
2158 set dummy gcc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$ac_ct_CC"; then
2165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_ac_ct_CC="gcc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186 echo "${ECHO_T}$ac_ct_CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2192 CC=$ac_ct_CC
2193 else
2194 CC="$ac_cv_prog_CC"
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CC="${ac_tool_prefix}cc"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2229 else
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2235 if test -z "$ac_cv_prog_CC"; then
2236 ac_ct_CC=$CC
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$ac_ct_CC"; then
2245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_ac_ct_CC="cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6
2267 else
2268 echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2272 CC=$ac_ct_CC
2273 else
2274 CC="$ac_cv_prog_CC"
2278 if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 ac_prog_rejected=no
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298 ac_prog_rejected=yes
2299 continue
2301 ac_cv_prog_CC="cc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2305 done
2306 done
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6
2326 else
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$CC" && break
2372 done
2374 if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2413 test -n "$ac_ct_CC" && break
2414 done
2416 CC=$ac_ct_CC
2422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: no acceptable C compiler found in \$PATH
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430 "checking for C compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433 (eval $ac_compiler --version </dev/null >&5) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438 (eval $ac_compiler -v </dev/null >&5) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443 (eval $ac_compiler -V </dev/null >&5) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h. */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2456 main ()
2460 return 0;
2462 _ACEOF
2463 ac_clean_files_save=$ac_clean_files
2464 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2465 # Try to create an executable without -o first, disregard a.out.
2466 # It will help us diagnose broken compilers, and finding out an intuition
2467 # of exeext.
2468 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2469 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2470 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2471 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2472 (eval $ac_link_default) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
2476 # Find the output, starting from the most likely. This scheme is
2477 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2478 # resort.
2480 # Be careful to initialize this variable, since it used to be cached.
2481 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2482 ac_cv_exeext=
2483 # b.out is created by i960 compilers.
2484 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2486 test -f "$ac_file" || continue
2487 case $ac_file in
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2490 conftest.$ac_ext )
2491 # This is the source file.
2493 [ab].out )
2494 # We found the default executable, but exeext='' is most
2495 # certainly right.
2496 break;;
2497 *.* )
2498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499 # FIXME: I believe we export ac_cv_exeext for Libtool,
2500 # but it would be cool to find out if it's true. Does anybody
2501 # maintain Libtool? --akim.
2502 export ac_cv_exeext
2503 break;;
2505 break;;
2506 esac
2507 done
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&2;}
2516 { (exit 77); exit 77; }; }
2519 ac_exeext=$ac_cv_exeext
2520 echo "$as_me:$LINENO: result: $ac_file" >&5
2521 echo "${ECHO_T}$ac_file" >&6
2523 # Check the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2526 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2528 # If not cross compiling, check that we can run a simple program.
2529 if test "$cross_compiling" != yes; then
2530 if { ac_try='./$ac_file'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 cross_compiling=no
2537 else
2538 if test "$cross_compiling" = maybe; then
2539 cross_compiling=yes
2540 else
2541 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2542 If you meant to cross compile, use \`--host'.
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot run C compiled programs.
2545 If you meant to cross compile, use \`--host'.
2546 See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2551 echo "$as_me:$LINENO: result: yes" >&5
2552 echo "${ECHO_T}yes" >&6
2554 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2555 ac_clean_files=$ac_clean_files_save
2556 # Check the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2559 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2560 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2561 echo "${ECHO_T}$cross_compiling" >&6
2563 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2564 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2571 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2572 # work properly (i.e., refer to `conftest.exe'), while it won't with
2573 # `rm'.
2574 for ac_file in conftest.exe conftest conftest.*; do
2575 test -f "$ac_file" || continue
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579 export ac_cv_exeext
2580 break;;
2581 * ) break;;
2582 esac
2583 done
2584 else
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }
2592 rm -f conftest$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2594 echo "${ECHO_T}$ac_cv_exeext" >&6
2596 rm -f conftest.$ac_ext
2597 EXEEXT=$ac_cv_exeext
2598 ac_exeext=$EXEEXT
2599 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2600 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2601 if test "${ac_cv_objext+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h. */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2612 main ()
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.o conftest.obj
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 break;;
2630 esac
2631 done
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2645 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2646 echo "${ECHO_T}$ac_cv_objext" >&6
2647 OBJEXT=$ac_cv_objext
2648 ac_objext=$OBJEXT
2649 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 main ()
2664 #ifndef __GNUC__
2665 choke me
2666 #endif
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_compiler_gnu=yes
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 ac_compiler_gnu=no
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2705 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2707 GCC=`test $ac_compiler_gnu = yes && echo yes`
2708 ac_test_CFLAGS=${CFLAGS+set}
2709 ac_save_CFLAGS=$CFLAGS
2710 CFLAGS="-g"
2711 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_g+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 main ()
2728 return 0;
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_prog_cc_g=yes
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 ac_cv_prog_cc_g=no
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2764 if test "$ac_test_CFLAGS" = set; then
2765 CFLAGS=$ac_save_CFLAGS
2766 elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2768 CFLAGS="-g -O2"
2769 else
2770 CFLAGS="-g"
2772 else
2773 if test "$GCC" = yes; then
2774 CFLAGS="-O2"
2775 else
2776 CFLAGS=
2779 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2780 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 ac_cv_prog_cc_stdc=no
2785 ac_save_CC=$CC
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 #include <stdarg.h>
2793 #include <stdio.h>
2794 #include <sys/types.h>
2795 #include <sys/stat.h>
2796 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797 struct buf { int x; };
2798 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799 static char *e (p, i)
2800 char **p;
2801 int i;
2803 return p[i];
2805 static char *f (char * (*g) (char **, int), char **p, ...)
2807 char *s;
2808 va_list v;
2809 va_start (v,p);
2810 s = g (p, va_arg (v,int));
2811 va_end (v);
2812 return s;
2815 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std1 is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std1. */
2822 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2824 int test (int i, double x);
2825 struct s1 {int (*f) (int a);};
2826 struct s2 {int (*f) (double a);};
2827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828 int argc;
2829 char **argv;
2831 main ()
2833 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2835 return 0;
2837 _ACEOF
2838 # Don't try gcc -ansi; that turns off useful extensions and
2839 # breaks some systems' header files.
2840 # AIX -qlanglvl=ansi
2841 # Ultrix and OSF/1 -std1
2842 # HP-UX 10.20 and later -Ae
2843 # HP-UX older versions -Aa -D_HPUX_SOURCE
2844 # SVR4 -Xc -D__EXTENSIONS__
2845 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2847 CC="$ac_save_CC $ac_arg"
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_prog_cc_stdc=$ac_arg
2871 break
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.err conftest.$ac_objext
2878 done
2879 rm -f conftest.$ac_ext conftest.$ac_objext
2880 CC=$ac_save_CC
2884 case "x$ac_cv_prog_cc_stdc" in
2885 x|xno)
2886 echo "$as_me:$LINENO: result: none needed" >&5
2887 echo "${ECHO_T}none needed" >&6 ;;
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2891 CC="$CC $ac_cv_prog_cc_stdc" ;;
2892 esac
2894 # Some people use a C++ compiler to compile C. Since we use `exit',
2895 # in C++ we need to declare it. In case someone uses the same compiler
2896 # for both compiling C and C++ we need to have the C++ compiler decide
2897 # the declaration of exit, since it's the most demanding environment.
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #ifndef __cplusplus
2900 choke me
2901 #endif
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 for ac_declaration in \
2926 '' \
2927 'extern "C" void std::exit (int) throw (); using std::exit;' \
2928 'extern "C" void std::exit (int); using std::exit;' \
2929 'extern "C" void exit (int) throw ();' \
2930 'extern "C" void exit (int);' \
2931 'void exit (int);'
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 $ac_declaration
2940 #include <stdlib.h>
2942 main ()
2944 exit (42);
2946 return 0;
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 continue
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 $ac_declaration
2987 main ()
2989 exit (42);
2991 return 0;
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2997 ac_status=$?
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 break
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 done
3024 rm -f conftest*
3025 if test -n "$ac_declaration"; then
3026 echo '#ifdef __cplusplus' >>confdefs.h
3027 echo $ac_declaration >>confdefs.h
3028 echo '#endif' >>confdefs.h
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_ext=c
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 DEPDIR="${am__leading_dot}deps"
3044 ac_config_commands="$ac_config_commands depfiles"
3047 am_make=${MAKE-make}
3048 cat > confinc << 'END'
3049 am__doit:
3050 @echo done
3051 .PHONY: am__doit
3053 # If we don't find an include directive, just comment out the code.
3054 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3055 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3056 am__include="#"
3057 am__quote=
3058 _am_result=none
3059 # First try GNU make style include.
3060 echo "include confinc" > confmf
3061 # We grep out `Entering directory' and `Leaving directory'
3062 # messages which can occur if `w' ends up in MAKEFLAGS.
3063 # In particular we don't look at `^make:' because GNU make might
3064 # be invoked under some other name (usually "gmake"), in which
3065 # case it prints its new name instead of `make'.
3066 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3067 am__include=include
3068 am__quote=
3069 _am_result=GNU
3071 # Now try BSD make style include.
3072 if test "$am__include" = "#"; then
3073 echo '.include "confinc"' > confmf
3074 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3075 am__include=.include
3076 am__quote="\""
3077 _am_result=BSD
3082 echo "$as_me:$LINENO: result: $_am_result" >&5
3083 echo "${ECHO_T}$_am_result" >&6
3084 rm -f confinc confmf
3086 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3087 if test "${enable_dependency_tracking+set}" = set; then
3088 enableval="$enable_dependency_tracking"
3091 if test "x$enable_dependency_tracking" != xno; then
3092 am_depcomp="$ac_aux_dir/depcomp"
3093 AMDEPBACKSLASH='\'
3097 if test "x$enable_dependency_tracking" != xno; then
3098 AMDEP_TRUE=
3099 AMDEP_FALSE='#'
3100 else
3101 AMDEP_TRUE='#'
3102 AMDEP_FALSE=
3108 depcc="$CC" am_compiler_list=
3110 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3111 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3112 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3116 # We make a subdir and do the tests there. Otherwise we can end up
3117 # making bogus files that we don't know about and never remove. For
3118 # instance it was reported that on HP-UX the gcc test will end up
3119 # making a dummy file named `D' -- because `-MD' means `put the output
3120 # in D'.
3121 mkdir conftest.dir
3122 # Copy depcomp to subdir because otherwise we won't find it if we're
3123 # using a relative directory.
3124 cp "$am_depcomp" conftest.dir
3125 cd conftest.dir
3126 # We will build objects and dependencies in a subdirectory because
3127 # it helps to detect inapplicable dependency modes. For instance
3128 # both Tru64's cc and ICC support -MD to output dependencies as a
3129 # side effect of compilation, but ICC will put the dependencies in
3130 # the current directory while Tru64 will put them in the object
3131 # directory.
3132 mkdir sub
3134 am_cv_CC_dependencies_compiler_type=none
3135 if test "$am_compiler_list" = ""; then
3136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3138 for depmode in $am_compiler_list; do
3139 # Setup a source with many dependencies, because some compilers
3140 # like to wrap large dependency lists on column 80 (with \), and
3141 # we should not choose a depcomp mode which is confused by this.
3143 # We need to recreate these files for each test, as the compiler may
3144 # overwrite some of them when testing with obscure command lines.
3145 # This happens at least with the AIX C compiler.
3146 : > sub/conftest.c
3147 for i in 1 2 3 4 5 6; do
3148 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3149 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3150 # Solaris 8's {/usr,}/bin/sh.
3151 touch sub/conftst$i.h
3152 done
3153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3155 case $depmode in
3156 nosideeffect)
3157 # after this tag, mechanisms are not by side-effect, so they'll
3158 # only be used when explicitly requested
3159 if test "x$enable_dependency_tracking" = xyes; then
3160 continue
3161 else
3162 break
3165 none) break ;;
3166 esac
3167 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3168 # mode. It turns out that the SunPro C++ compiler does not properly
3169 # handle `-M -o', and we need to detect this.
3170 if depmode=$depmode \
3171 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3172 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3173 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3174 >/dev/null 2>conftest.err &&
3175 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3176 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3177 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3178 # icc doesn't choke on unknown options, it will just issue warnings
3179 # or remarks (even with -Werror). So we grep stderr for any message
3180 # that says an option was ignored or not supported.
3181 # When given -MP, icc 7.0 and 7.1 complain thusly:
3182 # icc: Command line warning: ignoring option '-M'; no argument required
3183 # The diagnosis changed in icc 8.0:
3184 # icc: Command line remark: option '-MP' not supported
3185 if (grep 'ignoring option' conftest.err ||
3186 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3187 am_cv_CC_dependencies_compiler_type=$depmode
3188 break
3191 done
3193 cd ..
3194 rm -rf conftest.dir
3195 else
3196 am_cv_CC_dependencies_compiler_type=none
3200 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3201 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3202 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3207 test "x$enable_dependency_tracking" != xno \
3208 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3209 am__fastdepCC_TRUE=
3210 am__fastdepCC_FALSE='#'
3211 else
3212 am__fastdepCC_TRUE='#'
3213 am__fastdepCC_FALSE=
3221 if test "x$GCC" != "xyes"; then
3222 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3223 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3235 CPP=
3237 if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3244 ac_preproc_ok=false
3245 for ac_c_preproc_warn_flag in '' yes
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 #ifdef __STDC__
3260 # include <limits.h>
3261 #else
3262 # include <assert.h>
3263 #endif
3264 Syntax error
3265 _ACEOF
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277 else
3278 ac_cpp_err=
3280 else
3281 ac_cpp_err=yes
3283 if test -z "$ac_cpp_err"; then
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 # Broken: fails on valid input.
3290 continue
3292 rm -f conftest.err conftest.$ac_ext
3294 # OK, works on sane cases. Now check whether non-existent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #include <ac_nonexistent.h>
3303 _ACEOF
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 else
3316 ac_cpp_err=
3318 else
3319 ac_cpp_err=yes
3321 if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3323 continue
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Passes both tests.
3329 ac_preproc_ok=:
3330 break
3332 rm -f conftest.err conftest.$ac_ext
3334 done
3335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336 rm -f conftest.err conftest.$ac_ext
3337 if $ac_preproc_ok; then
3338 break
3341 done
3342 ac_cv_prog_CPP=$CPP
3345 CPP=$ac_cv_prog_CPP
3346 else
3347 ac_cv_prog_CPP=$CPP
3349 echo "$as_me:$LINENO: result: $CPP" >&5
3350 echo "${ECHO_T}$CPP" >&6
3351 ac_preproc_ok=false
3352 for ac_c_preproc_warn_flag in '' yes
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 Syntax error
3372 _ACEOF
3373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 else
3385 ac_cpp_err=
3387 else
3388 ac_cpp_err=yes
3390 if test -z "$ac_cpp_err"; then
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Broken: fails on valid input.
3397 continue
3399 rm -f conftest.err conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether non-existent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 else
3423 ac_cpp_err=
3425 else
3426 ac_cpp_err=yes
3428 if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3430 continue
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3439 rm -f conftest.err conftest.$ac_ext
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3446 else
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3462 # symbol interposition. We disable shared libraries for these.
3463 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3464 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 #define _GNU_SOURCE
3474 #include <dlfcn.h>
3477 main ()
3479 void *foo = dlsym (RTLD_NEXT, "exit");
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3514 enable_shared=no
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519 echo "$as_me:$LINENO: checking for egrep" >&5
3520 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3521 if test "${ac_cv_prog_egrep+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3525 then ac_cv_prog_egrep='grep -E'
3526 else ac_cv_prog_egrep='egrep'
3529 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3530 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3531 EGREP=$ac_cv_prog_egrep
3534 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3536 if test "${ac_cv_header_stdc+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3546 #include <stdarg.h>
3547 #include <string.h>
3548 #include <float.h>
3551 main ()
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_header_stdc=yes
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 ac_cv_header_stdc=no
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <string.h>
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "memchr" >/dev/null 2>&1; then
3603 else
3604 ac_cv_header_stdc=no
3606 rm -f conftest*
3610 if test $ac_cv_header_stdc = yes; then
3611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 #include <stdlib.h>
3620 _ACEOF
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "free" >/dev/null 2>&1; then
3624 else
3625 ac_cv_header_stdc=no
3627 rm -f conftest*
3631 if test $ac_cv_header_stdc = yes; then
3632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633 if test "$cross_compiling" = yes; then
3635 else
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 #include <ctype.h>
3643 #if ((' ' & 0x0FF) == 0x020)
3644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3646 #else
3647 # define ISLOWER(c) \
3648 (('a' <= (c) && (c) <= 'i') \
3649 || ('j' <= (c) && (c) <= 'r') \
3650 || ('s' <= (c) && (c) <= 'z'))
3651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3652 #endif
3654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3656 main ()
3658 int i;
3659 for (i = 0; i < 256; i++)
3660 if (XOR (islower (i), ISLOWER (i))
3661 || toupper (i) != TOUPPER (i))
3662 exit(2);
3663 exit (0);
3665 _ACEOF
3666 rm -f conftest$ac_exeext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3678 else
3679 echo "$as_me: program exited with status $ac_status" >&5
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ( exit $ac_status )
3684 ac_cv_header_stdc=no
3686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3690 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3691 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3692 if test $ac_cv_header_stdc = yes; then
3694 cat >>confdefs.h <<\_ACEOF
3695 #define STDC_HEADERS 1
3696 _ACEOF
3700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3711 inttypes.h stdint.h unistd.h
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h. */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3727 #include <$ac_header>
3728 _ACEOF
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 eval "$as_ac_Header=yes"
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 eval "$as_ac_Header=no"
3758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3763 cat >>confdefs.h <<_ACEOF
3764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3765 _ACEOF
3769 done
3791 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3792 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3793 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo "$as_me:$LINENO: checking for $ac_header" >&5
3798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3804 else
3805 # Is the header compilable?
3806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h. */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3814 $ac_includes_default
3815 #include <$ac_header>
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_header_compiler=yes
3840 else
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 ac_header_compiler=no
3846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3848 echo "${ECHO_T}$ac_header_compiler" >&6
3850 # Is the header present?
3851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <$ac_header>
3860 _ACEOF
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3872 else
3873 ac_cpp_err=
3875 else
3876 ac_cpp_err=yes
3878 if test -z "$ac_cpp_err"; then
3879 ac_header_preproc=yes
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_header_preproc=no
3886 rm -f conftest.err conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3888 echo "${ECHO_T}$ac_header_preproc" >&6
3890 # So? What about this header?
3891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3892 yes:no: )
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3897 ac_header_preproc=yes
3899 no:yes:* )
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3913 cat <<\_ASBOX
3914 ## ------------------------------------- ##
3915 ## Report this to the libmudflap lists. ##
3916 ## ------------------------------------- ##
3917 _ASBOX
3919 sed "s/^/$as_me: WARNING: /" >&2
3921 esac
3922 echo "$as_me:$LINENO: checking for $ac_header" >&5
3923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 eval "$as_ac_Header=\$ac_header_preproc"
3929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3934 cat >>confdefs.h <<_ACEOF
3935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936 _ACEOF
3940 done
3947 for ac_func in backtrace backtrace_symbols gettimeofday signal
3949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3950 echo "$as_me:$LINENO: checking for $ac_func" >&5
3951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3952 if eval "test \"\${$as_ac_var+set}\" = set"; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3963 #define $ac_func innocuous_$ac_func
3965 /* System header to define __stub macros and hopefully few prototypes,
3966 which can conflict with char $ac_func (); below.
3967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 <limits.h> exists even on freestanding compilers. */
3970 #ifdef __STDC__
3971 # include <limits.h>
3972 #else
3973 # include <assert.h>
3974 #endif
3976 #undef $ac_func
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 #ifdef __cplusplus
3980 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char $ac_func ();
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3990 choke me
3991 #else
3992 char (*f) () = $ac_func;
3993 #endif
3994 #ifdef __cplusplus
3996 #endif
3999 main ()
4001 return f != $ac_func;
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext conftest$ac_exeext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_var=yes"
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 eval "$as_ac_var=no"
4035 rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
4038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4040 if test `eval echo '${'$as_ac_var'}'` = yes; then
4041 cat >>confdefs.h <<_ACEOF
4042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4043 _ACEOF
4046 done
4053 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4056 echo "$as_me:$LINENO: checking for $ac_func" >&5
4057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4058 if eval "test \"\${$as_ac_var+set}\" = set"; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4069 #define $ac_func innocuous_$ac_func
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func (); below.
4073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 <limits.h> exists even on freestanding compilers. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4082 #undef $ac_func
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 #ifdef __cplusplus
4086 extern "C"
4088 #endif
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4091 char $ac_func ();
4092 /* The GNU C library defines this for functions which it implements
4093 to always fail with ENOSYS. Some functions are actually named
4094 something starting with __ and the normal name is an alias. */
4095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4096 choke me
4097 #else
4098 char (*f) () = $ac_func;
4099 #endif
4100 #ifdef __cplusplus
4102 #endif
4105 main ()
4107 return f != $ac_func;
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 eval "$as_ac_var=yes"
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 eval "$as_ac_var=no"
4141 rm -f conftest.err conftest.$ac_objext \
4142 conftest$ac_exeext conftest.$ac_ext
4144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4146 if test `eval echo '${'$as_ac_var'}'` = yes; then
4147 cat >>confdefs.h <<_ACEOF
4148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4149 _ACEOF
4152 done
4158 for ac_func in setbuf setbuffer setlinebuf setvbuf
4160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4161 echo "$as_me:$LINENO: checking for $ac_func" >&5
4162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4163 if eval "test \"\${$as_ac_var+set}\" = set"; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4174 #define $ac_func innocuous_$ac_func
4176 /* System header to define __stub macros and hopefully few prototypes,
4177 which can conflict with char $ac_func (); below.
4178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179 <limits.h> exists even on freestanding compilers. */
4181 #ifdef __STDC__
4182 # include <limits.h>
4183 #else
4184 # include <assert.h>
4185 #endif
4187 #undef $ac_func
4189 /* Override any gcc2 internal prototype to avoid an error. */
4190 #ifdef __cplusplus
4191 extern "C"
4193 #endif
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4196 char $ac_func ();
4197 /* The GNU C library defines this for functions which it implements
4198 to always fail with ENOSYS. Some functions are actually named
4199 something starting with __ and the normal name is an alias. */
4200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4201 choke me
4202 #else
4203 char (*f) () = $ac_func;
4204 #endif
4205 #ifdef __cplusplus
4207 #endif
4210 main ()
4212 return f != $ac_func;
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 eval "$as_ac_var=yes"
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 eval "$as_ac_var=no"
4246 rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4251 if test `eval echo '${'$as_ac_var'}'` = yes; then
4252 cat >>confdefs.h <<_ACEOF
4253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4254 _ACEOF
4257 done
4264 for ac_func in strnlen memrchr strncpy memmem sethostname
4266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4267 echo "$as_me:$LINENO: checking for $ac_func" >&5
4268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4269 if eval "test \"\${$as_ac_var+set}\" = set"; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4280 #define $ac_func innocuous_$ac_func
4282 /* System header to define __stub macros and hopefully few prototypes,
4283 which can conflict with char $ac_func (); below.
4284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 <limits.h> exists even on freestanding compilers. */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4293 #undef $ac_func
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 #ifdef __cplusplus
4297 extern "C"
4299 #endif
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4302 char $ac_func ();
4303 /* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4307 choke me
4308 #else
4309 char (*f) () = $ac_func;
4310 #endif
4311 #ifdef __cplusplus
4313 #endif
4316 main ()
4318 return f != $ac_func;
4320 return 0;
4322 _ACEOF
4323 rm -f conftest.$ac_objext conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 eval "$as_ac_var=yes"
4346 else
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 eval "$as_ac_var=no"
4352 rm -f conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4357 if test `eval echo '${'$as_ac_var'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4360 _ACEOF
4363 done
4368 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4371 echo "$as_me:$LINENO: checking for $ac_func" >&5
4372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_var+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4384 #define $ac_func innocuous_$ac_func
4386 /* System header to define __stub macros and hopefully few prototypes,
4387 which can conflict with char $ac_func (); below.
4388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 <limits.h> exists even on freestanding compilers. */
4391 #ifdef __STDC__
4392 # include <limits.h>
4393 #else
4394 # include <assert.h>
4395 #endif
4397 #undef $ac_func
4399 /* Override any gcc2 internal prototype to avoid an error. */
4400 #ifdef __cplusplus
4401 extern "C"
4403 #endif
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406 char $ac_func ();
4407 /* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4411 choke me
4412 #else
4413 char (*f) () = $ac_func;
4414 #endif
4415 #ifdef __cplusplus
4417 #endif
4420 main ()
4422 return f != $ac_func;
4424 return 0;
4426 _ACEOF
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 eval "$as_ac_var=yes"
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 eval "$as_ac_var=no"
4456 rm -f conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4461 if test `eval echo '${'$as_ac_var'}'` = yes; then
4462 cat >>confdefs.h <<_ACEOF
4463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4464 _ACEOF
4467 done
4477 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4480 echo "$as_me:$LINENO: checking for $ac_func" >&5
4481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4482 if eval "test \"\${$as_ac_var+set}\" = set"; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4493 #define $ac_func innocuous_$ac_func
4495 /* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char $ac_func (); below.
4497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498 <limits.h> exists even on freestanding compilers. */
4500 #ifdef __STDC__
4501 # include <limits.h>
4502 #else
4503 # include <assert.h>
4504 #endif
4506 #undef $ac_func
4508 /* Override any gcc2 internal prototype to avoid an error. */
4509 #ifdef __cplusplus
4510 extern "C"
4512 #endif
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515 char $ac_func ();
4516 /* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 choke me
4521 #else
4522 char (*f) () = $ac_func;
4523 #endif
4524 #ifdef __cplusplus
4526 #endif
4529 main ()
4531 return f != $ac_func;
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_var=yes"
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 eval "$as_ac_var=no"
4565 rm -f conftest.err conftest.$ac_objext \
4566 conftest$ac_exeext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4570 if test `eval echo '${'$as_ac_var'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4573 _ACEOF
4576 done
4583 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_var+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4599 #define $ac_func innocuous_$ac_func
4601 /* System header to define __stub macros and hopefully few prototypes,
4602 which can conflict with char $ac_func (); below.
4603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604 <limits.h> exists even on freestanding compilers. */
4606 #ifdef __STDC__
4607 # include <limits.h>
4608 #else
4609 # include <assert.h>
4610 #endif
4612 #undef $ac_func
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 #ifdef __cplusplus
4616 extern "C"
4618 #endif
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621 char $ac_func ();
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 choke me
4627 #else
4628 char (*f) () = $ac_func;
4629 #endif
4630 #ifdef __cplusplus
4632 #endif
4635 main ()
4637 return f != $ac_func;
4639 return 0;
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -z "$ac_c_werror_flag"
4652 || test ! -s conftest.err'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 eval "$as_ac_var=yes"
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 eval "$as_ac_var=no"
4671 rm -f conftest.err conftest.$ac_objext \
4672 conftest$ac_exeext conftest.$ac_ext
4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4676 if test `eval echo '${'$as_ac_var'}'` = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4679 _ACEOF
4682 done
4689 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4692 echo "$as_me:$LINENO: checking for $ac_func" >&5
4693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4694 if eval "test \"\${$as_ac_var+set}\" = set"; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4705 #define $ac_func innocuous_$ac_func
4707 /* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char $ac_func (); below.
4709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 <limits.h> exists even on freestanding compilers. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4718 #undef $ac_func
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 #ifdef __cplusplus
4722 extern "C"
4724 #endif
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4727 char $ac_func ();
4728 /* The GNU C library defines this for functions which it implements
4729 to always fail with ENOSYS. Some functions are actually named
4730 something starting with __ and the normal name is an alias. */
4731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4732 choke me
4733 #else
4734 char (*f) () = $ac_func;
4735 #endif
4736 #ifdef __cplusplus
4738 #endif
4741 main ()
4743 return f != $ac_func;
4745 return 0;
4747 _ACEOF
4748 rm -f conftest.$ac_objext conftest$ac_exeext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750 (eval $ac_link) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag"
4758 || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest$ac_exeext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 eval "$as_ac_var=yes"
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 eval "$as_ac_var=no"
4777 rm -f conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
4780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4782 if test `eval echo '${'$as_ac_var'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4785 _ACEOF
4788 done
4793 for ac_func in getprotoent getprotobyname getprotobynumber
4795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796 echo "$as_me:$LINENO: checking for $ac_func" >&5
4797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_var+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4809 #define $ac_func innocuous_$ac_func
4811 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func (); below.
4813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 <limits.h> exists even on freestanding compilers. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4822 #undef $ac_func
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 #ifdef __cplusplus
4826 extern "C"
4828 #endif
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831 char $ac_func ();
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 char (*f) () = $ac_func;
4839 #endif
4840 #ifdef __cplusplus
4842 #endif
4845 main ()
4847 return f != $ac_func;
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 eval "$as_ac_var=yes"
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 eval "$as_ac_var=no"
4881 rm -f conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4886 if test `eval echo '${'$as_ac_var'}'` = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4889 _ACEOF
4892 done
4897 for ac_func in getmntent setmntent addmntent
4899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4900 echo "$as_me:$LINENO: checking for $ac_func" >&5
4901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_var+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4913 #define $ac_func innocuous_$ac_func
4915 /* System header to define __stub macros and hopefully few prototypes,
4916 which can conflict with char $ac_func (); below.
4917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 <limits.h> exists even on freestanding compilers. */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4926 #undef $ac_func
4928 /* Override any gcc2 internal prototype to avoid an error. */
4929 #ifdef __cplusplus
4930 extern "C"
4932 #endif
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4935 char $ac_func ();
4936 /* The GNU C library defines this for functions which it implements
4937 to always fail with ENOSYS. Some functions are actually named
4938 something starting with __ and the normal name is an alias. */
4939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4940 choke me
4941 #else
4942 char (*f) () = $ac_func;
4943 #endif
4944 #ifdef __cplusplus
4946 #endif
4949 main ()
4951 return f != $ac_func;
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 eval "$as_ac_var=yes"
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 eval "$as_ac_var=no"
4985 rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4990 if test `eval echo '${'$as_ac_var'}'` = yes; then
4991 cat >>confdefs.h <<_ACEOF
4992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4993 _ACEOF
4996 done
5001 for ac_func in inet_ntoa mmap munmap
5003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5004 echo "$as_me:$LINENO: checking for $ac_func" >&5
5005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5006 if eval "test \"\${$as_ac_var+set}\" = set"; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5017 #define $ac_func innocuous_$ac_func
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func (); below.
5021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 <limits.h> exists even on freestanding compilers. */
5024 #ifdef __STDC__
5025 # include <limits.h>
5026 #else
5027 # include <assert.h>
5028 #endif
5030 #undef $ac_func
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 #ifdef __cplusplus
5034 extern "C"
5036 #endif
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039 char $ac_func ();
5040 /* The GNU C library defines this for functions which it implements
5041 to always fail with ENOSYS. Some functions are actually named
5042 something starting with __ and the normal name is an alias. */
5043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5044 choke me
5045 #else
5046 char (*f) () = $ac_func;
5047 #endif
5048 #ifdef __cplusplus
5050 #endif
5053 main ()
5055 return f != $ac_func;
5057 return 0;
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 eval "$as_ac_var=yes"
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 eval "$as_ac_var=no"
5089 rm -f conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5094 if test `eval echo '${'$as_ac_var'}'` = yes; then
5095 cat >>confdefs.h <<_ACEOF
5096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5097 _ACEOF
5100 done
5103 for ac_func in __libc_freeres
5105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5106 echo "$as_me:$LINENO: checking for $ac_func" >&5
5107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5108 if eval "test \"\${$as_ac_var+set}\" = set"; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5119 #define $ac_func innocuous_$ac_func
5121 /* System header to define __stub macros and hopefully few prototypes,
5122 which can conflict with char $ac_func (); below.
5123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 <limits.h> exists even on freestanding compilers. */
5126 #ifdef __STDC__
5127 # include <limits.h>
5128 #else
5129 # include <assert.h>
5130 #endif
5132 #undef $ac_func
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 #ifdef __cplusplus
5136 extern "C"
5138 #endif
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141 char $ac_func ();
5142 /* The GNU C library defines this for functions which it implements
5143 to always fail with ENOSYS. Some functions are actually named
5144 something starting with __ and the normal name is an alias. */
5145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146 choke me
5147 #else
5148 char (*f) () = $ac_func;
5149 #endif
5150 #ifdef __cplusplus
5152 #endif
5155 main ()
5157 return f != $ac_func;
5159 return 0;
5161 _ACEOF
5162 rm -f conftest.$ac_objext conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 eval "$as_ac_var=yes"
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 eval "$as_ac_var=no"
5191 rm -f conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
5194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5196 if test `eval echo '${'$as_ac_var'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5199 _ACEOF
5202 done
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include <sys/types.h>
5212 #include <sys/ipc.h>
5213 #include <sys/sem.h>
5215 main ()
5217 union semun foo;
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 mf_have_semun=1
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 mf_have_semun=0
5251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252 if test $mf_have_semun = 1
5253 then
5255 cat >>confdefs.h <<\_ACEOF
5256 #define HAVE_UNION_SEMUN 1
5257 _ACEOF
5262 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5263 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 #define _POSIX_PII_SOCKET
5271 #include <sys/types.h>
5272 #include <sys/socket.h>
5274 main ()
5276 socklen_t x = 5;
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_SOCKLEN_T 1
5306 _ACEOF
5308 echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319 enable_dlopen=yes
5325 macro_version='2.1a'
5326 macro_revision='1.2435'
5339 ltmain="$ac_aux_dir/ltmain.sh"
5341 # Set options
5344 enable_win32_dll=no
5347 # Check whether --enable-shared or --disable-shared was given.
5348 if test "${enable_shared+set}" = set; then
5349 enableval="$enable_shared"
5350 p=${PACKAGE-default}
5351 case $enableval in
5352 yes) enable_shared=yes ;;
5353 no) enable_shared=no ;;
5355 enable_shared=no
5356 # Look at the argument we got. We use all the common list separators.
5357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5358 for pkg in $enableval; do
5359 IFS="$lt_save_ifs"
5360 if test "X$pkg" = "X$p"; then
5361 enable_shared=yes
5363 done
5364 IFS="$lt_save_ifs"
5366 esac
5367 else
5368 enable_shared=yes
5378 # Check whether --enable-static or --disable-static was given.
5379 if test "${enable_static+set}" = set; then
5380 enableval="$enable_static"
5381 p=${PACKAGE-default}
5382 case $enableval in
5383 yes) enable_static=yes ;;
5384 no) enable_static=no ;;
5386 enable_static=no
5387 # Look at the argument we got. We use all the common list separators.
5388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5389 for pkg in $enableval; do
5390 IFS="$lt_save_ifs"
5391 if test "X$pkg" = "X$p"; then
5392 enable_static=yes
5394 done
5395 IFS="$lt_save_ifs"
5397 esac
5398 else
5399 enable_static=yes
5410 # Check whether --with-pic or --without-pic was given.
5411 if test "${with_pic+set}" = set; then
5412 withval="$with_pic"
5413 pic_mode="$withval"
5414 else
5415 pic_mode=default
5418 test -z "$pic_mode" && pic_mode=default
5426 # Check whether --enable-fast-install or --disable-fast-install was given.
5427 if test "${enable_fast_install+set}" = set; then
5428 enableval="$enable_fast_install"
5429 p=${PACKAGE-default}
5430 case $enableval in
5431 yes) enable_fast_install=yes ;;
5432 no) enable_fast_install=no ;;
5434 enable_fast_install=no
5435 # Look at the argument we got. We use all the common list separators.
5436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5437 for pkg in $enableval; do
5438 IFS="$lt_save_ifs"
5439 if test "X$pkg" = "X$p"; then
5440 enable_fast_install=yes
5442 done
5443 IFS="$lt_save_ifs"
5445 esac
5446 else
5447 enable_fast_install=yes
5457 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5458 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5459 if test "${lt_cv_path_SED+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 # Loop through the user's path and test for sed and gsed.
5463 # Then use that list of sed's as ones to test for truncation.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for lt_ac_prog in sed gsed; do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5472 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5474 done
5475 done
5476 done
5477 IFS=$as_save_IFS
5478 lt_ac_max=0
5479 lt_ac_count=0
5480 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5481 # along with /bin/sed that truncates output.
5482 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5483 test ! -f $lt_ac_sed && continue
5484 cat /dev/null > conftest.in
5485 lt_ac_count=0
5486 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5487 # Check for GNU sed and select it if it is found.
5488 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5489 lt_cv_path_SED=$lt_ac_sed
5490 break
5492 while true; do
5493 cat conftest.in conftest.in >conftest.tmp
5494 mv conftest.tmp conftest.in
5495 cp conftest.in conftest.nl
5496 echo >>conftest.nl
5497 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5498 cmp -s conftest.out conftest.nl || break
5499 # 10000 chars as input seems more than enough
5500 test $lt_ac_count -gt 10 && break
5501 lt_ac_count=`expr $lt_ac_count + 1`
5502 if test $lt_ac_count -gt $lt_ac_max; then
5503 lt_ac_max=$lt_ac_count
5504 lt_cv_path_SED=$lt_ac_sed
5506 done
5507 done
5511 SED=$lt_cv_path_SED
5513 echo "$as_me:$LINENO: result: $SED" >&5
5514 echo "${ECHO_T}$SED" >&6
5516 test -z "$SED" && SED=sed
5517 Xsed="$SED -e 1s/^X//"
5529 echo "$as_me:$LINENO: checking for fgrep" >&5
5530 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5531 if test "${ac_cv_prog_fgrep+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5535 then ac_cv_prog_fgrep='grep -F'
5536 else ac_cv_prog_fgrep='fgrep'
5539 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5540 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5541 FGREP=$ac_cv_prog_fgrep
5544 test -z "$GREP" && GREP=grep
5564 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5565 if test "${with_gnu_ld+set}" = set; then
5566 withval="$with_gnu_ld"
5567 test "$withval" = no || with_gnu_ld=yes
5568 else
5569 with_gnu_ld=no
5571 ac_prog=ld
5572 if test "$GCC" = yes; then
5573 # Check if gcc -print-prog-name=ld gives a path.
5574 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5575 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5576 case $host in
5577 *-*-mingw*)
5578 # gcc leaves a trailing carriage return which upsets mingw
5579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5582 esac
5583 case $ac_prog in
5584 # Accept absolute paths.
5585 [\\/]* | ?:[\\/]*)
5586 re_direlt='/[^/][^/]*/\.\./'
5587 # Canonicalize the pathname of ld
5588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5591 done
5592 test -z "$LD" && LD="$ac_prog"
5595 # If it fails, then pretend we aren't using GCC.
5596 ac_prog=ld
5599 # If it is relative, then search for the first ld in PATH.
5600 with_gnu_ld=unknown
5602 esac
5603 elif test "$with_gnu_ld" = yes; then
5604 echo "$as_me:$LINENO: checking for GNU ld" >&5
5605 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5606 else
5607 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5608 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5610 if test "${lt_cv_path_LD+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 if test -z "$LD"; then
5614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615 for ac_dir in $PATH; do
5616 IFS="$lt_save_ifs"
5617 test -z "$ac_dir" && ac_dir=.
5618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5619 lt_cv_path_LD="$ac_dir/$ac_prog"
5620 # Check to see if the program is GNU ld. I'd rather use --version,
5621 # but apparently some variants of GNU ld only accept -v.
5622 # Break only if it was the GNU/non-GNU ld that we prefer.
5623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5624 *GNU* | *'with BFD'*)
5625 test "$with_gnu_ld" != no && break
5628 test "$with_gnu_ld" != yes && break
5630 esac
5632 done
5633 IFS="$lt_save_ifs"
5634 else
5635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5639 LD="$lt_cv_path_LD"
5640 if test -n "$LD"; then
5641 echo "$as_me:$LINENO: result: $LD" >&5
5642 echo "${ECHO_T}$LD" >&6
5643 else
5644 echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5647 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5648 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5649 { (exit 1); exit 1; }; }
5650 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5651 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5652 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5656 case `$LD -v 2>&1 </dev/null` in
5657 *GNU* | *'with BFD'*)
5658 lt_cv_prog_gnu_ld=yes
5661 lt_cv_prog_gnu_ld=no
5663 esac
5665 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5666 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5667 with_gnu_ld=$lt_cv_prog_gnu_ld
5678 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5679 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5680 if test "${lt_cv_path_NM+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -n "$NM"; then
5684 # Let the user override the test.
5685 lt_cv_path_NM="$NM"
5686 else
5687 lt_nm_to_check="${ac_tool_prefix}nm"
5688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5689 lt_nm_to_check="$lt_nm_to_check nm"
5691 for lt_tmp_nm in $lt_nm_to_check; do
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5694 IFS="$lt_save_ifs"
5695 test -z "$ac_dir" && ac_dir=.
5696 tmp_nm="$ac_dir/$lt_tmp_nm"
5697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5698 # Check to see if the nm accepts a BSD-compat flag.
5699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5700 # nm: unknown option "B" ignored
5701 # Tru64's nm complains that /dev/null is an invalid object file
5702 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5703 */dev/null* | *'Invalid file or object type'*)
5704 lt_cv_path_NM="$tmp_nm -B"
5705 break
5708 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5709 */dev/null*)
5710 lt_cv_path_NM="$tmp_nm -p"
5711 break
5714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5715 continue # so that we can try to find one that supports BSD flags
5717 esac
5719 esac
5721 done
5722 IFS="$lt_save_ifs"
5723 done
5724 : ${lt_cv_path_NM=no}
5727 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5728 echo "${ECHO_T}$lt_cv_path_NM" >&6
5729 if test "$lt_cv_path_NM" != "no"; then
5730 NM="$lt_cv_path_NM"
5731 else
5732 # Didn't find any BSD compatible name lister, look for dumpbin.
5733 if test -n "$ac_tool_prefix"; then
5734 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 if test -n "$DUMPBIN"; then
5744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5757 done
5758 done
5762 DUMPBIN=$ac_cv_prog_DUMPBIN
5763 if test -n "$DUMPBIN"; then
5764 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5765 echo "${ECHO_T}$DUMPBIN" >&6
5766 else
5767 echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5771 test -n "$DUMPBIN" && break
5772 done
5774 if test -z "$DUMPBIN"; then
5775 ac_ct_DUMPBIN=$DUMPBIN
5776 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 if test -n "$ac_ct_DUMPBIN"; then
5786 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5804 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5805 if test -n "$ac_ct_DUMPBIN"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5807 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5813 test -n "$ac_ct_DUMPBIN" && break
5814 done
5815 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5817 DUMPBIN=$ac_ct_DUMPBIN
5821 if test "$DUMPBIN" != ":"; then
5822 NM="$DUMPBIN"
5825 test -z "$NM" && NM=nm
5832 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5833 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5834 if test "${lt_cv_nm_interface+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 lt_cv_nm_interface="BSD nm"
5838 echo "int some_variable = 0;" > conftest.$ac_ext
5839 (eval echo "\"\$as_me:5839: $ac_compile\"" >&5)
5840 (eval "$ac_compile" 2>conftest.err)
5841 cat conftest.err >&5
5842 (eval echo "\"\$as_me:5842: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5843 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5844 cat conftest.err >&5
5845 (eval echo "\"\$as_me:5845: output\"" >&5)
5846 cat conftest.out >&5
5847 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5848 lt_cv_nm_interface="MS dumpbin"
5850 rm -f conftest*
5852 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5853 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5855 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5856 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5857 LN_S=$as_ln_s
5858 if test "$LN_S" = "ln -s"; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860 echo "${ECHO_T}yes" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5863 echo "${ECHO_T}no, using $LN_S" >&6
5866 # find the maximum length of command line arguments
5867 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5868 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5869 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5873 teststring="ABCD"
5875 case $build_os in
5876 msdosdjgpp*)
5877 # On DJGPP, this test can blow up pretty badly due to problems in libc
5878 # (any single argument exceeding 2000 bytes causes a buffer overrun
5879 # during glob expansion). Even if it were fixed, the result of this
5880 # check would be larger than it should be.
5881 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5884 gnu*)
5885 # Under GNU Hurd, this test is not required because there is
5886 # no limit to the length of command line arguments.
5887 # Libtool will interpret -1 as no limit whatsoever
5888 lt_cv_sys_max_cmd_len=-1;
5891 cygwin* | mingw*)
5892 # On Win9x/ME, this test blows up -- it succeeds, but takes
5893 # about 5 minutes as the teststring grows exponentially.
5894 # Worse, since 9x/ME are not pre-emptively multitasking,
5895 # you end up with a "frozen" computer, even though with patience
5896 # the test eventually succeeds (with a max line length of 256k).
5897 # Instead, let's just punt: use the minimum linelength reported by
5898 # all of the supported platforms: 8192 (on NT/2K/XP).
5899 lt_cv_sys_max_cmd_len=8192;
5902 amigaos*)
5903 # On AmigaOS with pdksh, this test takes hours, literally.
5904 # So we just punt and use a minimum line length of 8192.
5905 lt_cv_sys_max_cmd_len=8192;
5908 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5909 # This has been around since 386BSD, at least. Likely further.
5910 if test -x /sbin/sysctl; then
5911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5912 elif test -x /usr/sbin/sysctl; then
5913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5914 else
5915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5917 # And add a safety zone
5918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5922 interix*)
5923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5924 lt_cv_sys_max_cmd_len=196608
5927 osf*)
5928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5930 # nice to cause kernel panics so lets avoid the loop below.
5931 # First set a reasonable default.
5932 lt_cv_sys_max_cmd_len=16384
5934 if test -x /sbin/sysconfig; then
5935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5936 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5937 esac
5940 sco3.2v5*)
5941 lt_cv_sys_max_cmd_len=102400
5943 sysv5* | sco5v6* | sysv4.2uw2*)
5944 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5945 if test -n "$kargmax"; then
5946 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5947 else
5948 lt_cv_sys_max_cmd_len=32768
5952 # Make teststring a little bigger before we do anything with it.
5953 # a 1K string should be a reasonable start.
5954 for i in 1 2 3 4 5 6 7 8 ; do
5955 teststring=$teststring$teststring
5956 done
5957 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5958 # If test is not a shell built-in, we'll probably end up computing a
5959 # maximum length that is only half of the actual maximum length, but
5960 # we can't tell.
5961 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5962 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5963 test $i != 17 # 1/2 MB should be enough
5965 i=`expr $i + 1`
5966 teststring=$teststring$teststring
5967 done
5968 # Only check the string length outside the loop.
5969 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5970 teststring=
5971 # Add a significant safety factor because C++ compilers can tack on massive
5972 # amounts of additional arguments before passing them to the linker.
5973 # It appears as though 1/2 is a usable value.
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5976 esac
5980 if test -n $lt_cv_sys_max_cmd_len ; then
5981 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5982 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5983 else
5984 echo "$as_me:$LINENO: result: none" >&5
5985 echo "${ECHO_T}none" >&6
5987 max_cmd_len=$lt_cv_sys_max_cmd_len
5994 : ${CP="cp -f"}
5995 : ${MV="mv -f"}
5996 : ${RM="rm -f"}
5998 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5999 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6000 # Try some XSI features
6001 xsi_shell=no
6002 ( _lt_dummy="a/b/c"
6003 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6004 = c,a/b,, ) >/dev/null 2>&1 \
6005 && xsi_shell=yes
6006 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6007 echo "${ECHO_T}$xsi_shell" >&6
6010 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6011 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6012 lt_shell_append=no
6013 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6014 >/dev/null 2>&1 \
6015 && lt_shell_append=yes
6016 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6017 echo "${ECHO_T}$lt_shell_append" >&6
6020 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6021 lt_unset=unset
6022 else
6023 lt_unset=false
6030 # test EBCDIC or ASCII
6031 case `echo X|tr X '\101'` in
6032 A) # ASCII based system
6033 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6034 lt_SP2NL='tr \040 \012'
6035 lt_NL2SP='tr \015\012 \040\040'
6037 *) # EBCDIC based system
6038 lt_SP2NL='tr \100 \n'
6039 lt_NL2SP='tr \r\n \100\100'
6041 esac
6051 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6052 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6053 if test "${lt_cv_ld_reload_flag+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 lt_cv_ld_reload_flag='-r'
6058 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6059 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6060 reload_flag=$lt_cv_ld_reload_flag
6061 case $reload_flag in
6062 "" | " "*) ;;
6063 *) reload_flag=" $reload_flag" ;;
6064 esac
6065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6066 case $host_os in
6067 darwin*)
6068 if test "$GCC" = yes; then
6069 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6070 else
6071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6074 esac
6085 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6086 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6087 if test "${lt_cv_deplibs_check_method+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 lt_cv_file_magic_cmd='$MAGIC_CMD'
6091 lt_cv_file_magic_test_file=
6092 lt_cv_deplibs_check_method='unknown'
6093 # Need to set the preceding variable on all platforms that support
6094 # interlibrary dependencies.
6095 # 'none' -- dependencies not supported.
6096 # `unknown' -- same as none, but documents that we really don't know.
6097 # 'pass_all' -- all dependencies passed with no checks.
6098 # 'test_compile' -- check by making test program.
6099 # 'file_magic [[regex]]' -- check by looking for files in library path
6100 # which responds to the $file_magic_cmd with a given extended regex.
6101 # If you have `file' or equivalent on your system and you're not sure
6102 # whether `pass_all' will *always* work, you probably want this one.
6104 case $host_os in
6105 aix4* | aix5*)
6106 lt_cv_deplibs_check_method=pass_all
6109 beos*)
6110 lt_cv_deplibs_check_method=pass_all
6113 bsdi[45]*)
6114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6115 lt_cv_file_magic_cmd='/usr/bin/file -L'
6116 lt_cv_file_magic_test_file=/shlib/libc.so
6119 cygwin*)
6120 # func_win32_libid is a shell function defined in ltmain.sh
6121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6122 lt_cv_file_magic_cmd='func_win32_libid'
6125 mingw* | pw32*)
6126 # Base MSYS/MinGW do not provide the 'file' command needed by
6127 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6128 # unless we find 'file', for example because we are cross-compiling.
6129 if ( file / ) >/dev/null 2>&1; then
6130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6131 lt_cv_file_magic_cmd='func_win32_libid'
6132 else
6133 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6134 lt_cv_file_magic_cmd='$OBJDUMP -f'
6138 darwin* | rhapsody*)
6139 lt_cv_deplibs_check_method=pass_all
6142 freebsd* | dragonfly*)
6143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6144 case $host_cpu in
6145 i*86 )
6146 # Not sure whether the presence of OpenBSD here was a mistake.
6147 # Let's accept both of them until this is cleared up.
6148 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6149 lt_cv_file_magic_cmd=/usr/bin/file
6150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6152 esac
6153 else
6154 lt_cv_deplibs_check_method=pass_all
6158 gnu*)
6159 lt_cv_deplibs_check_method=pass_all
6162 hpux10.20* | hpux11*)
6163 lt_cv_file_magic_cmd=/usr/bin/file
6164 case $host_cpu in
6165 ia64*)
6166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6167 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6169 hppa*64*)
6170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6171 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6177 esac
6180 interix[3-9]*)
6181 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6185 irix5* | irix6* | nonstopux*)
6186 case $LD in
6187 *-32|*"-32 ") libmagic=32-bit;;
6188 *-n32|*"-n32 ") libmagic=N32;;
6189 *-64|*"-64 ") libmagic=64-bit;;
6190 *) libmagic=never-match;;
6191 esac
6192 lt_cv_deplibs_check_method=pass_all
6195 # This must be Linux ELF.
6196 linux* | k*bsd*-gnu)
6197 lt_cv_deplibs_check_method=pass_all
6200 netbsd*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6203 else
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6208 newos6*)
6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6210 lt_cv_file_magic_cmd=/usr/bin/file
6211 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6214 *nto* | *qnx*)
6215 lt_cv_deplibs_check_method=pass_all
6218 openbsd*)
6219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6221 else
6222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226 osf3* | osf4* | osf5*)
6227 lt_cv_deplibs_check_method=pass_all
6230 rdos*)
6231 lt_cv_deplibs_check_method=pass_all
6234 solaris*)
6235 lt_cv_deplibs_check_method=pass_all
6238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6239 lt_cv_deplibs_check_method=pass_all
6242 sysv4 | sysv4.3*)
6243 case $host_vendor in
6244 motorola)
6245 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]'
6246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6248 ncr)
6249 lt_cv_deplibs_check_method=pass_all
6251 sequent)
6252 lt_cv_file_magic_cmd='/bin/file'
6253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6255 sni)
6256 lt_cv_file_magic_cmd='/bin/file'
6257 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6258 lt_cv_file_magic_test_file=/lib/libc.so
6260 siemens)
6261 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method=pass_all
6266 esac
6269 tpf*)
6270 lt_cv_deplibs_check_method=pass_all
6272 esac
6275 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6276 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6277 file_magic_cmd=$lt_cv_file_magic_cmd
6278 deplibs_check_method=$lt_cv_deplibs_check_method
6279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}ar; ac_word=$2
6295 echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297 if test "${ac_cv_prog_AR+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_AR="${ac_tool_prefix}ar"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6319 AR=$ac_cv_prog_AR
6320 if test -n "$AR"; then
6321 echo "$as_me:$LINENO: result: $AR" >&5
6322 echo "${ECHO_T}$AR" >&6
6323 else
6324 echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6
6329 if test -z "$ac_cv_prog_AR"; then
6330 ac_ct_AR=$AR
6331 # Extract the first word of "ar", so it can be a program name with args.
6332 set dummy ar; ac_word=$2
6333 echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 if test -n "$ac_ct_AR"; then
6339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_ac_ct_AR="ar"
6349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6355 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359 if test -n "$ac_ct_AR"; then
6360 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6361 echo "${ECHO_T}$ac_ct_AR" >&6
6362 else
6363 echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6
6367 AR=$ac_ct_AR
6368 else
6369 AR="$ac_cv_prog_AR"
6372 test -z "$AR" && AR=ar
6373 test -z "$AR_FLAGS" && AR_FLAGS=cru
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}strip; ac_word=$2
6388 echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6390 if test "${ac_cv_prog_STRIP+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6407 done
6408 done
6412 STRIP=$ac_cv_prog_STRIP
6413 if test -n "$STRIP"; then
6414 echo "$as_me:$LINENO: result: $STRIP" >&5
6415 echo "${ECHO_T}$STRIP" >&6
6416 else
6417 echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6
6422 if test -z "$ac_cv_prog_STRIP"; then
6423 ac_ct_STRIP=$STRIP
6424 # Extract the first word of "strip", so it can be a program name with args.
6425 set dummy strip; ac_word=$2
6426 echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 if test -n "$ac_ct_STRIP"; then
6432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_STRIP="strip"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6445 done
6446 done
6448 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6452 if test -n "$ac_ct_STRIP"; then
6453 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6454 echo "${ECHO_T}$ac_ct_STRIP" >&6
6455 else
6456 echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6
6460 STRIP=$ac_ct_STRIP
6461 else
6462 STRIP="$ac_cv_prog_STRIP"
6465 test -z "$STRIP" && STRIP=:
6472 if test -n "$ac_tool_prefix"; then
6473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6475 echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477 if test "${ac_cv_prog_RANLIB+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 if test -n "$RANLIB"; then
6481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6494 done
6495 done
6499 RANLIB=$ac_cv_prog_RANLIB
6500 if test -n "$RANLIB"; then
6501 echo "$as_me:$LINENO: result: $RANLIB" >&5
6502 echo "${ECHO_T}$RANLIB" >&6
6503 else
6504 echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6
6509 if test -z "$ac_cv_prog_RANLIB"; then
6510 ac_ct_RANLIB=$RANLIB
6511 # Extract the first word of "ranlib", so it can be a program name with args.
6512 set dummy ranlib; ac_word=$2
6513 echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6515 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 if test -n "$ac_ct_RANLIB"; then
6519 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_RANLIB="ranlib"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6535 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6538 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6539 if test -n "$ac_ct_RANLIB"; then
6540 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6541 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6
6547 RANLIB=$ac_ct_RANLIB
6548 else
6549 RANLIB="$ac_cv_prog_RANLIB"
6552 test -z "$RANLIB" && RANLIB=:
6559 # Determine commands to create old-style static archives.
6560 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6561 old_postinstall_cmds='chmod 644 $oldlib'
6562 old_postuninstall_cmds=
6564 if test -n "$RANLIB"; then
6565 case $host_os in
6566 openbsd*)
6567 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6572 esac
6573 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6609 # If no C compiler was specified, use CC.
6610 LTCC=${LTCC-"$CC"}
6612 # If no C compiler flags were specified, use CFLAGS.
6613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6615 # Allow CC to be a program name with arguments.
6616 compiler=$CC
6619 # Check for command to grab the raw symbol name followed by C symbol from nm.
6620 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6621 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6622 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6626 # These are sane defaults that work on at least a few old systems.
6627 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6629 # Character class describing NM global symbol codes.
6630 symcode='[BCDEGRST]'
6632 # Regexp to match symbols that can be accessed directly from C.
6633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6635 # Define system-specific variables.
6636 case $host_os in
6637 aix*)
6638 symcode='[BCDT]'
6640 cygwin* | mingw* | pw32*)
6641 symcode='[ABCDGISTW]'
6643 hpux*)
6644 if test "$host_cpu" = ia64; then
6645 symcode='[ABCDEGRST]'
6648 irix* | nonstopux*)
6649 symcode='[BCDEGRST]'
6651 osf*)
6652 symcode='[BCDEGQRST]'
6654 solaris*)
6655 symcode='[BDRT]'
6657 sco3.2v5*)
6658 symcode='[DT]'
6660 sysv4.2uw2*)
6661 symcode='[DT]'
6663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6664 symcode='[ABDT]'
6666 sysv4)
6667 symcode='[DFNSTU]'
6669 esac
6671 # If we're using GNU nm, then use its standard symbol codes.
6672 case `$NM -V 2>&1` in
6673 *GNU* | *'with BFD'*)
6674 symcode='[ABCDGIRSTW]' ;;
6675 esac
6677 # Transform an extracted symbol line into a proper C declaration.
6678 # Some systems (esp. on ia64) link data and code symbols differently,
6679 # so use this general approach.
6680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6682 # Transform an extracted symbol line into symbol name and symbol address
6683 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6685 # Handle CRLF in mingw tool chain
6686 opt_cr=
6687 case $build_os in
6688 mingw*)
6689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691 esac
6693 # Try without a prefix underscore, then with it.
6694 for ac_symprfx in "" "_"; do
6696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6697 symxfrm="\\1 $ac_symprfx\\2 \\2"
6699 # Write the raw and C identifiers.
6700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6701 # Fake it for dumpbin and say T for any non-static function
6702 # and D for any global variable.
6703 # Also find C++ and __fastcall symbols from MSVC++,
6704 # which start with @ or ?.
6705 lt_cv_sys_global_symbol_pipe="$AWK '"\
6706 " {last_section=section; section=\$ 3};"\
6707 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6708 " \$ 0!~/External *\|/{next};"\
6709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6710 " {if(hide[section]) next};"\
6711 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6712 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6713 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6714 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6715 " ' prfx=^$ac_symprfx"
6716 else
6717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6720 # Check to see that the pipe works correctly.
6721 pipe_works=no
6723 rm -f conftest*
6724 cat > conftest.$ac_ext <<_LT_EOF
6725 #ifdef __cplusplus
6726 extern "C" {
6727 #endif
6728 char nm_test_var;
6729 void nm_test_func(void);
6730 void nm_test_func(void){}
6731 #ifdef __cplusplus
6733 #endif
6734 int main(){nm_test_var='a';nm_test_func();return(0);}
6735 _LT_EOF
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; then
6742 # Now try to grab the symbols.
6743 nlist=conftest.nm
6744 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6745 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && test -s "$nlist"; then
6749 # Try sorting and uniquifying the output.
6750 if sort "$nlist" | uniq > "$nlist"T; then
6751 mv -f "$nlist"T "$nlist"
6752 else
6753 rm -f "$nlist"T
6756 # Make sure that we snagged all the symbols we need.
6757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759 cat <<_LT_EOF > conftest.$ac_ext
6760 #ifdef __cplusplus
6761 extern "C" {
6762 #endif
6764 _LT_EOF
6765 # Now generate the symbol file.
6766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6768 cat <<_LT_EOF >> conftest.$ac_ext
6770 /* The mapping between symbol names and symbols. */
6771 const struct {
6772 const char *name;
6773 void *address;
6775 lt__PROGRAM__LTX_preloaded_symbols[] =
6777 { "@PROGRAM@", (void *) 0 },
6778 _LT_EOF
6779 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6780 cat <<\_LT_EOF >> conftest.$ac_ext
6781 {0, (void *) 0}
6784 /* This works around a problem in FreeBSD linker */
6785 #ifdef FREEBSD_WORKAROUND
6786 static const void *lt_preloaded_setup() {
6787 return lt__PROGRAM__LTX_preloaded_symbols;
6789 #endif
6791 #ifdef __cplusplus
6793 #endif
6794 _LT_EOF
6795 # Now try linking the two files.
6796 mv conftest.$ac_objext conftstm.$ac_objext
6797 lt_save_LIBS="$LIBS"
6798 lt_save_CFLAGS="$CFLAGS"
6799 LIBS="conftstm.$ac_objext"
6800 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6806 pipe_works=yes
6808 LIBS="$lt_save_LIBS"
6809 CFLAGS="$lt_save_CFLAGS"
6810 else
6811 echo "cannot find nm_test_func in $nlist" >&5
6813 else
6814 echo "cannot find nm_test_var in $nlist" >&5
6816 else
6817 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6819 else
6820 echo "$progname: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 rm -f conftest* conftst*
6825 # Do not use the global_symbol_pipe unless it works.
6826 if test "$pipe_works" = yes; then
6827 break
6828 else
6829 lt_cv_sys_global_symbol_pipe=
6831 done
6835 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6836 lt_cv_sys_global_symbol_to_cdecl=
6838 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6839 echo "$as_me:$LINENO: result: failed" >&5
6840 echo "${ECHO_T}failed" >&6
6841 else
6842 echo "$as_me:$LINENO: result: ok" >&5
6843 echo "${ECHO_T}ok" >&6
6862 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6863 if test "${enable_libtool_lock+set}" = set; then
6864 enableval="$enable_libtool_lock"
6867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6869 # Some flags need to be propagated to the compiler or linker for good
6870 # libtool support.
6871 case $host in
6872 ia64-*-hpux*)
6873 # Find out which ABI we are using.
6874 echo 'int i;' > conftest.$ac_ext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; then
6880 case `/usr/bin/file conftest.$ac_objext` in
6881 *ELF-32*)
6882 HPUX_IA64_MODE="32"
6884 *ELF-64*)
6885 HPUX_IA64_MODE="64"
6887 esac
6889 rm -rf conftest*
6891 *-*-irix6*)
6892 # Find out which ABI we are using.
6893 echo '#line 6893 "configure"' > conftest.$ac_ext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; then
6899 if test "$lt_cv_prog_gnu_ld" = yes; then
6900 case `/usr/bin/file conftest.$ac_objext` in
6901 *32-bit*)
6902 LD="${LD-ld} -melf32bsmip"
6904 *N32*)
6905 LD="${LD-ld} -melf32bmipn32"
6907 *64-bit*)
6908 LD="${LD-ld} -melf64bmip"
6910 esac
6911 else
6912 case `/usr/bin/file conftest.$ac_objext` in
6913 *32-bit*)
6914 LD="${LD-ld} -32"
6916 *N32*)
6917 LD="${LD-ld} -n32"
6919 *64-bit*)
6920 LD="${LD-ld} -64"
6922 esac
6925 rm -rf conftest*
6928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6930 # Find out which ABI we are using.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; then
6937 case `/usr/bin/file conftest.o` in
6938 *32-bit*)
6939 case $host in
6940 x86_64-*kfreebsd*-gnu)
6941 LD="${LD-ld} -m elf_i386_fbsd"
6943 x86_64-*linux*)
6944 LD="${LD-ld} -m elf_i386"
6946 ppc64-*linux*|powerpc64-*linux*)
6947 LD="${LD-ld} -m elf32ppclinux"
6949 s390x-*linux*)
6950 LD="${LD-ld} -m elf_s390"
6952 sparc64-*linux*)
6953 LD="${LD-ld} -m elf32_sparc"
6955 esac
6957 *64-bit*)
6958 case $host in
6959 x86_64-*kfreebsd*-gnu)
6960 LD="${LD-ld} -m elf_x86_64_fbsd"
6962 x86_64-*linux*)
6963 LD="${LD-ld} -m elf_x86_64"
6965 ppc*-*linux*|powerpc*-*linux*)
6966 LD="${LD-ld} -m elf64ppc"
6968 s390*-*linux*|s390*-*tpf*)
6969 LD="${LD-ld} -m elf64_s390"
6971 sparc*-*linux*)
6972 LD="${LD-ld} -m elf64_sparc"
6974 esac
6976 esac
6978 rm -rf conftest*
6981 *-*-sco3.2v5*)
6982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6983 SAVE_CFLAGS="$CFLAGS"
6984 CFLAGS="$CFLAGS -belf"
6985 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6986 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6987 if test "${lt_cv_cc_needs_belf+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 ac_ext=c
6991 ac_cpp='$CPP $CPPFLAGS'
6992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7004 main ()
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 lt_cv_cc_needs_belf=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 lt_cv_cc_needs_belf=no
7040 rm -f conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7050 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7051 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7052 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7053 CFLAGS="$SAVE_CFLAGS"
7056 sparc*-*solaris*)
7057 # Find out which ABI we are using.
7058 echo 'int i;' > conftest.$ac_ext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; then
7064 case `/usr/bin/file conftest.o` in
7065 *64-bit*)
7066 case $lt_cv_prog_gnu_ld in
7067 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7068 *) LD="${LD-ld} -64" ;;
7069 esac
7071 esac
7073 rm -rf conftest*
7075 esac
7077 need_locks="$enable_libtool_lock"
7080 for ac_header in dlfcn.h
7082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083 echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7096 #include <$ac_header>
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag"
7108 || test ! -s conftest.err'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest.$ac_objext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 eval "$as_ac_Header=yes"
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 eval "$as_ac_Header=no"
7127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7134 _ACEOF
7138 done
7142 # This can be used to rebuild libtool when needed
7143 LIBTOOL_DEPS="$ltmain"
7145 # Always use our own libtool.
7146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7172 test -z "$LN_S" && LN_S="ln -s"
7187 if test -n "${ZSH_VERSION+set}" ; then
7188 setopt NO_GLOB_SUBST
7191 echo "$as_me:$LINENO: checking for objdir" >&5
7192 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7193 if test "${lt_cv_objdir+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 rm -f .libs 2>/dev/null
7197 mkdir .libs 2>/dev/null
7198 if test -d .libs; then
7199 lt_cv_objdir=.libs
7200 else
7201 # MS-DOS does not allow filenames that begin with a dot.
7202 lt_cv_objdir=_libs
7204 rmdir .libs 2>/dev/null
7206 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7207 echo "${ECHO_T}$lt_cv_objdir" >&6
7208 objdir=$lt_cv_objdir
7214 cat >>confdefs.h <<_ACEOF
7215 #define LT_OBJDIR "$lt_cv_objdir/"
7216 _ACEOF
7234 case $host_os in
7235 aix3*)
7236 # AIX sometimes has problems with the GCC collect2 program. For some
7237 # reason, if we set the COLLECT_NAMES environment variable, the problems
7238 # vanish in a puff of smoke.
7239 if test "X${COLLECT_NAMES+set}" != Xset; then
7240 COLLECT_NAMES=
7241 export COLLECT_NAMES
7244 esac
7246 # Sed substitution that helps us do robust quoting. It backslashifies
7247 # metacharacters that are still active within double-quoted strings.
7248 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7250 # Same as above, but do not quote variable references.
7251 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7253 # Sed substitution to delay expansion of an escaped shell variable in a
7254 # double_quote_subst'ed string.
7255 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7257 # Sed substitution to delay expansion of an escaped single quote.
7258 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7260 # Sed substitution to avoid accidental globbing in evaled expressions
7261 no_glob_subst='s/\*/\\\*/g'
7263 # Global variables:
7264 ofile=libtool
7265 can_build_shared=yes
7267 # All known linkers require a `.a' archive for static linking (except MSVC,
7268 # which needs '.lib').
7269 libext=a
7271 with_gnu_ld="$lt_cv_prog_gnu_ld"
7273 old_CC="$CC"
7274 old_CFLAGS="$CFLAGS"
7276 # Set sane defaults for various variables
7277 test -z "$CC" && CC=cc
7278 test -z "$LTCC" && LTCC=$CC
7279 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7280 test -z "$LD" && LD=ld
7281 test -z "$ac_objext" && ac_objext=o
7283 for cc_temp in $compiler""; do
7284 case $cc_temp in
7285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7287 \-*) ;;
7288 *) break;;
7289 esac
7290 done
7291 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7294 # Only perform the check for file, if the check method requires it
7295 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7296 case $deplibs_check_method in
7297 file_magic*)
7298 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7299 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7300 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7301 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 case $MAGIC_CMD in
7305 [\\/*] | ?:[\\/]*)
7306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7309 lt_save_MAGIC_CMD="$MAGIC_CMD"
7310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7312 for ac_dir in $ac_dummy; do
7313 IFS="$lt_save_ifs"
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f $ac_dir/${ac_tool_prefix}file; then
7316 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7317 if test -n "$file_magic_test_file"; then
7318 case $deplibs_check_method in
7319 "file_magic "*)
7320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7323 $EGREP "$file_magic_regex" > /dev/null; then
7325 else
7326 cat <<_LT_EOF 1>&2
7328 *** Warning: the command libtool uses to detect shared libraries,
7329 *** $file_magic_cmd, produces output that libtool cannot recognize.
7330 *** The result is that libtool may fail to recognize shared libraries
7331 *** as such. This will affect the creation of libtool libraries that
7332 *** depend on shared libraries, but programs linked with such libtool
7333 *** libraries will work regardless of this problem. Nevertheless, you
7334 *** may want to report the problem to your system manager and/or to
7335 *** bug-libtool@gnu.org
7337 _LT_EOF
7338 fi ;;
7339 esac
7341 break
7343 done
7344 IFS="$lt_save_ifs"
7345 MAGIC_CMD="$lt_save_MAGIC_CMD"
7347 esac
7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351 if test -n "$MAGIC_CMD"; then
7352 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7353 echo "${ECHO_T}$MAGIC_CMD" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6
7363 if test -z "$lt_cv_path_MAGIC_CMD"; then
7364 if test -n "$ac_tool_prefix"; then
7365 echo "$as_me:$LINENO: checking for file" >&5
7366 echo $ECHO_N "checking for file... $ECHO_C" >&6
7367 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 case $MAGIC_CMD in
7371 [\\/*] | ?:[\\/]*)
7372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7375 lt_save_MAGIC_CMD="$MAGIC_CMD"
7376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7378 for ac_dir in $ac_dummy; do
7379 IFS="$lt_save_ifs"
7380 test -z "$ac_dir" && ac_dir=.
7381 if test -f $ac_dir/file; then
7382 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7383 if test -n "$file_magic_test_file"; then
7384 case $deplibs_check_method in
7385 "file_magic "*)
7386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7389 $EGREP "$file_magic_regex" > /dev/null; then
7391 else
7392 cat <<_LT_EOF 1>&2
7394 *** Warning: the command libtool uses to detect shared libraries,
7395 *** $file_magic_cmd, produces output that libtool cannot recognize.
7396 *** The result is that libtool may fail to recognize shared libraries
7397 *** as such. This will affect the creation of libtool libraries that
7398 *** depend on shared libraries, but programs linked with such libtool
7399 *** libraries will work regardless of this problem. Nevertheless, you
7400 *** may want to report the problem to your system manager and/or to
7401 *** bug-libtool@gnu.org
7403 _LT_EOF
7404 fi ;;
7405 esac
7407 break
7409 done
7410 IFS="$lt_save_ifs"
7411 MAGIC_CMD="$lt_save_MAGIC_CMD"
7413 esac
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if test -n "$MAGIC_CMD"; then
7418 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7419 echo "${ECHO_T}$MAGIC_CMD" >&6
7420 else
7421 echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7426 else
7427 MAGIC_CMD=:
7433 esac
7435 # Use C for the default configuration in the libtool script
7437 lt_save_CC="$CC"
7438 ac_ext=c
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445 # Source file extension for C test sources.
7446 ac_ext=c
7448 # Object file extension for compiled C test sources.
7449 objext=o
7450 objext=$objext
7452 # Code to be used in simple compile tests
7453 lt_simple_compile_test_code="int some_variable = 0;"
7455 # Code to be used in simple link tests
7456 lt_simple_link_test_code='int main(){return(0);}'
7464 # If no C compiler was specified, use CC.
7465 LTCC=${LTCC-"$CC"}
7467 # If no C compiler flags were specified, use CFLAGS.
7468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7470 # Allow CC to be a program name with arguments.
7471 compiler=$CC
7473 # Save the default compiler, since it gets overwritten when the other
7474 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7475 compiler_DEFAULT=$CC
7477 # save warnings/boilerplate of simple test code
7478 ac_outfile=conftest.$ac_objext
7479 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7481 _lt_compiler_boilerplate=`cat conftest.err`
7482 $RM conftest*
7484 ac_outfile=conftest.$ac_objext
7485 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487 _lt_linker_boilerplate=`cat conftest.err`
7488 $RM conftest*
7491 ## CAVEAT EMPTOR:
7492 ## There is no encapsulation within the following macros, do not change
7493 ## the running order or otherwise move them around unless you know exactly
7494 ## what you are doing...
7495 if test -n "$compiler"; then
7497 lt_prog_compiler_no_builtin_flag=
7499 if test "$GCC" = yes; then
7500 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7502 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7503 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 lt_cv_prog_compiler_rtti_exceptions=no
7508 ac_outfile=conftest.$ac_objext
7509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7510 lt_compiler_flag="-fno-rtti -fno-exceptions"
7511 # Insert the option either (1) after the last *FLAGS variable, or
7512 # (2) before a word containing "conftest.", or (3) at the end.
7513 # Note that $ac_compile itself does not contain backslashes and begins
7514 # with a dollar sign (not a hyphen), so the echo should work correctly.
7515 # The option is referenced via a variable to avoid confusing sed.
7516 lt_compile=`echo "$ac_compile" | $SED \
7517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7519 -e 's:$: $lt_compiler_flag:'`
7520 (eval echo "\"\$as_me:7520: $lt_compile\"" >&5)
7521 (eval "$lt_compile" 2>conftest.err)
7522 ac_status=$?
7523 cat conftest.err >&5
7524 echo "$as_me:7524: \$? = $ac_status" >&5
7525 if (exit $ac_status) && test -s "$ac_outfile"; then
7526 # The compiler can only warn and ignore the option if not recognized
7527 # So say no if there are warnings other than the usual output.
7528 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7531 lt_cv_prog_compiler_rtti_exceptions=yes
7534 $RM conftest*
7537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7538 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7541 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7542 else
7553 lt_prog_compiler_wl=
7554 lt_prog_compiler_pic=
7555 lt_prog_compiler_static=
7557 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7558 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7560 if test "$GCC" = yes; then
7561 lt_prog_compiler_wl='-Wl,'
7562 lt_prog_compiler_static='-static'
7564 case $host_os in
7565 aix*)
7566 # All AIX code is PIC.
7567 if test "$host_cpu" = ia64; then
7568 # AIX 5 now supports IA64 processor
7569 lt_prog_compiler_static='-Bstatic'
7573 amigaos*)
7574 if test "$host_cpu" = m68k; then
7575 # FIXME: we need at least 68020 code to build shared libraries, but
7576 # adding the `-m68020' flag to GCC prevents building anything better,
7577 # like `-m68040'.
7578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7583 # PIC is the default for these OSes.
7586 mingw* | cygwin* | pw32* | os2*)
7587 # This hack is so that the source file can tell whether it is being
7588 # built for inclusion in a dll (and should export symbols for example).
7589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7590 # (--disable-auto-import) libraries
7591 lt_prog_compiler_pic='-DDLL_EXPORT'
7594 darwin* | rhapsody*)
7595 # PIC is the default on this platform
7596 # Common symbols not allowed in MH_DYLIB files
7597 lt_prog_compiler_pic='-fno-common'
7600 hpux*)
7601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7602 # not for PA HP-UX.
7603 case $host_cpu in
7604 hppa*64*|ia64*)
7605 # +Z the default
7608 lt_prog_compiler_pic='-fPIC'
7610 esac
7613 interix[3-9]*)
7614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7615 # Instead, we relocate shared libraries at runtime.
7618 msdosdjgpp*)
7619 # Just because we use GCC doesn't mean we suddenly get shared libraries
7620 # on systems that don't support them.
7621 lt_prog_compiler_can_build_shared=no
7622 enable_shared=no
7625 *nto* | *qnx*)
7626 # QNX uses GNU C++, but need to define -shared option too, otherwise
7627 # it will coredump.
7628 lt_prog_compiler_pic='-fPIC -shared'
7631 sysv4*MP*)
7632 if test -d /usr/nec; then
7633 lt_prog_compiler_pic=-Kconform_pic
7638 lt_prog_compiler_pic='-fPIC'
7640 esac
7641 else
7642 # PORTME Check for flag to pass linker flags through the system compiler.
7643 case $host_os in
7644 aix*)
7645 lt_prog_compiler_wl='-Wl,'
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 else
7650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7653 darwin*)
7654 # PIC is the default on this platform
7655 # Common symbols not allowed in MH_DYLIB files
7656 case $cc_basename in
7657 xlc*)
7658 lt_prog_compiler_pic='-qnocommon'
7659 lt_prog_compiler_wl='-Wl,'
7661 esac
7664 mingw* | cygwin* | pw32* | os2*)
7665 # This hack is so that the source file can tell whether it is being
7666 # built for inclusion in a dll (and should export symbols for example).
7667 lt_prog_compiler_pic='-DDLL_EXPORT'
7670 hpux9* | hpux10* | hpux11*)
7671 lt_prog_compiler_wl='-Wl,'
7672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7673 # not for PA HP-UX.
7674 case $host_cpu in
7675 hppa*64*|ia64*)
7676 # +Z the default
7679 lt_prog_compiler_pic='+Z'
7681 esac
7682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7683 lt_prog_compiler_static='${wl}-a ${wl}archive'
7686 irix5* | irix6* | nonstopux*)
7687 lt_prog_compiler_wl='-Wl,'
7688 # PIC (with -KPIC) is the default.
7689 lt_prog_compiler_static='-non_shared'
7692 linux* | k*bsd*-gnu)
7693 case $cc_basename in
7694 icc* | ecc*)
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_pic='-KPIC'
7697 lt_prog_compiler_static='-static'
7699 pgcc* | pgf77* | pgf90* | pgf95*)
7700 # Portland Group compilers (*not* the Pentium gcc compiler,
7701 # which looks to be a dead project)
7702 lt_prog_compiler_wl='-Wl,'
7703 lt_prog_compiler_pic='-fpic'
7704 lt_prog_compiler_static='-Bstatic'
7706 ccc*)
7707 lt_prog_compiler_wl='-Wl,'
7708 # All Alpha code is PIC.
7709 lt_prog_compiler_static='-non_shared'
7712 case `$CC -V 2>&1 | sed 5q` in
7713 *Sun\ C*)
7714 # Sun C 5.9
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7717 lt_prog_compiler_wl='-Wl,'
7719 *Sun\ F*)
7720 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl=''
7725 esac
7727 esac
7730 newsos6)
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7735 *nto* | *qnx*)
7736 # QNX uses GNU C++, but need to define -shared option too, otherwise
7737 # it will coredump.
7738 lt_prog_compiler_pic='-fPIC -shared'
7741 osf3* | osf4* | osf5*)
7742 lt_prog_compiler_wl='-Wl,'
7743 # All OSF/1 code is PIC.
7744 lt_prog_compiler_static='-non_shared'
7747 rdos*)
7748 lt_prog_compiler_static='-non_shared'
7751 solaris*)
7752 lt_prog_compiler_pic='-KPIC'
7753 lt_prog_compiler_static='-Bstatic'
7754 case $cc_basename in
7755 f77* | f90* | f95*)
7756 lt_prog_compiler_wl='-Qoption ld ';;
7758 lt_prog_compiler_wl='-Wl,';;
7759 esac
7762 sunos4*)
7763 lt_prog_compiler_wl='-Qoption ld '
7764 lt_prog_compiler_pic='-PIC'
7765 lt_prog_compiler_static='-Bstatic'
7768 sysv4 | sysv4.2uw2* | sysv4.3*)
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7774 sysv4*MP*)
7775 if test -d /usr/nec ;then
7776 lt_prog_compiler_pic='-Kconform_pic'
7777 lt_prog_compiler_static='-Bstatic'
7781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 unicos*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_can_build_shared=no
7792 uts4*)
7793 lt_prog_compiler_pic='-pic'
7794 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_can_build_shared=no
7800 esac
7803 case $host_os in
7804 # For platforms which do not support PIC, -DPIC is meaningless:
7805 *djgpp*)
7806 lt_prog_compiler_pic=
7809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7811 esac
7812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7813 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7821 # Check to make sure the PIC flag actually works.
7823 if test -n "$lt_prog_compiler_pic"; then
7824 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7826 if test "${lt_prog_compiler_pic_works+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 lt_prog_compiler_pic_works=no
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 # The option is referenced via a variable to avoid confusing sed.
7838 lt_compile=`echo "$ac_compile" | $SED \
7839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841 -e 's:$: $lt_compiler_flag:'`
7842 (eval echo "\"\$as_me:7842: $lt_compile\"" >&5)
7843 (eval "$lt_compile" 2>conftest.err)
7844 ac_status=$?
7845 cat conftest.err >&5
7846 echo "$as_me:7846: \$? = $ac_status" >&5
7847 if (exit $ac_status) && test -s "$ac_outfile"; then
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings other than the usual output.
7850 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853 lt_prog_compiler_pic_works=yes
7856 $RM conftest*
7859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7860 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7862 if test x"$lt_prog_compiler_pic_works" = xyes; then
7863 case $lt_prog_compiler_pic in
7864 "" | " "*) ;;
7865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7866 esac
7867 else
7868 lt_prog_compiler_pic=
7869 lt_prog_compiler_can_build_shared=no
7880 # Check to make sure the static flag actually works.
7882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7883 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7884 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7885 if test "${lt_prog_compiler_static_works+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 lt_prog_compiler_static_works=no
7889 save_LDFLAGS="$LDFLAGS"
7890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7893 # The linker can only warn and ignore the option if not recognized
7894 # So say no if there are warnings
7895 if test -s conftest.err; then
7896 # Append any errors to the config.log.
7897 cat conftest.err 1>&5
7898 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7900 if diff conftest.exp conftest.er2 >/dev/null; then
7901 lt_prog_compiler_static_works=yes
7903 else
7904 lt_prog_compiler_static_works=yes
7907 $RM conftest*
7908 LDFLAGS="$save_LDFLAGS"
7911 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7912 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7914 if test x"$lt_prog_compiler_static_works" = xyes; then
7916 else
7917 lt_prog_compiler_static=
7926 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7928 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 lt_cv_prog_compiler_c_o=no
7932 $RM -r conftest 2>/dev/null
7933 mkdir conftest
7934 cd conftest
7935 mkdir out
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7938 lt_compiler_flag="-o out/conftest2.$ac_objext"
7939 # Insert the option either (1) after the last *FLAGS variable, or
7940 # (2) before a word containing "conftest.", or (3) at the end.
7941 # Note that $ac_compile itself does not contain backslashes and begins
7942 # with a dollar sign (not a hyphen), so the echo should work correctly.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>out/conftest.err)
7949 ac_status=$?
7950 cat out/conftest.err >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7953 then
7954 # The compiler can only warn and ignore the option if not recognized
7955 # So say no if there are warnings
7956 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7959 lt_cv_prog_compiler_c_o=yes
7962 chmod u+w . 2>&5
7963 $RM conftest*
7964 # SGI C++ compiler will create directory out/ii_files/ for
7965 # template instantiation
7966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7967 $RM out/* && rmdir out
7968 cd ..
7969 $RM -r conftest
7970 $RM conftest*
7973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7981 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 lt_cv_prog_compiler_c_o=no
7987 $RM -r conftest 2>/dev/null
7988 mkdir conftest
7989 cd conftest
7990 mkdir out
7991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993 lt_compiler_flag="-o out/conftest2.$ac_objext"
7994 # Insert the option either (1) after the last *FLAGS variable, or
7995 # (2) before a word containing "conftest.", or (3) at the end.
7996 # Note that $ac_compile itself does not contain backslashes and begins
7997 # with a dollar sign (not a hyphen), so the echo should work correctly.
7998 lt_compile=`echo "$ac_compile" | $SED \
7999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001 -e 's:$: $lt_compiler_flag:'`
8002 (eval echo "\"\$as_me:8002: $lt_compile\"" >&5)
8003 (eval "$lt_compile" 2>out/conftest.err)
8004 ac_status=$?
8005 cat out/conftest.err >&5
8006 echo "$as_me:8006: \$? = $ac_status" >&5
8007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8008 then
8009 # The compiler can only warn and ignore the option if not recognized
8010 # So say no if there are warnings
8011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8014 lt_cv_prog_compiler_c_o=yes
8017 chmod u+w . 2>&5
8018 $RM conftest*
8019 # SGI C++ compiler will create directory out/ii_files/ for
8020 # template instantiation
8021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8022 $RM out/* && rmdir out
8023 cd ..
8024 $RM -r conftest
8025 $RM conftest*
8028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8034 hard_links="nottested"
8035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036 # do not overwrite the value of need_locks provided by the user
8037 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8039 hard_links=yes
8040 $RM conftest*
8041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8042 touch conftest.a
8043 ln conftest.a conftest.b 2>&5 || hard_links=no
8044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045 echo "$as_me:$LINENO: result: $hard_links" >&5
8046 echo "${ECHO_T}$hard_links" >&6
8047 if test "$hard_links" = no; then
8048 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8050 need_locks=warn
8052 else
8053 need_locks=no
8061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8064 runpath_var=
8065 allow_undefined_flag=
8066 always_export_symbols=no
8067 archive_cmds=
8068 archive_expsym_cmds=
8069 compiler_needs_object=no
8070 enable_shared_with_static_runtimes=no
8071 export_dynamic_flag_spec=
8072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8073 hardcode_automatic=no
8074 hardcode_direct=no
8075 hardcode_direct_absolute=no
8076 hardcode_libdir_flag_spec=
8077 hardcode_libdir_flag_spec_ld=
8078 hardcode_libdir_separator=
8079 hardcode_minus_L=no
8080 hardcode_shlibpath_var=unsupported
8081 inherit_rpath=no
8082 link_all_deplibs=unknown
8083 module_cmds=
8084 module_expsym_cmds=
8085 old_archive_from_new_cmds=
8086 old_archive_from_expsyms_cmds=
8087 thread_safe_flag_spec=
8088 whole_archive_flag_spec=
8089 # include_expsyms should be a list of space-separated symbols to be *always*
8090 # included in the symbol list
8091 include_expsyms=
8092 # exclude_expsyms can be an extended regexp of symbols to exclude
8093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8095 # as well as any symbol that contains `d'.
8096 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8098 # platforms (ab)use it in PIC code, but their linkers get confused if
8099 # the symbol is explicitly referenced. Since portable code cannot
8100 # rely on this symbol name, it's probably fine to never include it in
8101 # preloaded symbol tables.
8102 extract_expsyms_cmds=
8104 case $host_os in
8105 cygwin* | mingw* | pw32*)
8106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8107 # When not using gcc, we currently assume that we are using
8108 # Microsoft Visual C++.
8109 if test "$GCC" != yes; then
8110 with_gnu_ld=no
8113 interix*)
8114 # we just hope/assume this is gcc and not c89 (= MSVC++)
8115 with_gnu_ld=yes
8117 openbsd*)
8118 with_gnu_ld=no
8120 esac
8122 ld_shlibs=yes
8123 if test "$with_gnu_ld" = yes; then
8124 # If archive_cmds runs LD, not CC, wlarc should be empty
8125 wlarc='${wl}'
8127 # Set some defaults for GNU ld with shared library support. These
8128 # are reset later if shared libraries are not supported. Putting them
8129 # here allows them to be overridden if necessary.
8130 runpath_var=LD_RUN_PATH
8131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8132 export_dynamic_flag_spec='${wl}--export-dynamic'
8133 # ancient GNU ld didn't support --whole-archive et. al.
8134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8136 else
8137 whole_archive_flag_spec=
8139 supports_anon_versioning=no
8140 case `$LD -v 2>&1` in
8141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8144 *\ 2.11.*) ;; # other 2.11 versions
8145 *) supports_anon_versioning=yes ;;
8146 esac
8148 # See if GNU ld supports shared libraries.
8149 case $host_os in
8150 aix3* | aix4* | aix5*)
8151 # On AIX/PPC, the GNU linker is very broken
8152 if test "$host_cpu" != ia64; then
8153 ld_shlibs=no
8154 cat <<_LT_EOF 1>&2
8156 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8157 *** to be unable to reliably create shared libraries on AIX.
8158 *** Therefore, libtool is disabling shared libraries support. If you
8159 *** really care for shared libraries, you may want to modify your PATH
8160 *** so that a non-GNU linker is found, and then restart.
8162 _LT_EOF
8166 amigaos*)
8167 if test "$host_cpu" = m68k; then
8168 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)'
8169 hardcode_libdir_flag_spec='-L$libdir'
8170 hardcode_minus_L=yes
8173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174 # that the semantics of dynamic libraries on AmigaOS, at least up
8175 # to version 4, is to share data among multiple programs linked
8176 # with the same dynamic library. Since this doesn't match the
8177 # behavior of shared libraries on other platforms, we can't use
8178 # them.
8179 ld_shlibs=no
8182 beos*)
8183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8184 allow_undefined_flag=unsupported
8185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186 # support --undefined. This deserves some investigation. FIXME
8187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 else
8189 ld_shlibs=no
8193 cygwin* | mingw* | pw32*)
8194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195 # as there is no search path for DLLs.
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 allow_undefined_flag=unsupported
8198 always_export_symbols=no
8199 enable_shared_with_static_runtimes=yes
8200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8202 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8204 # If the export-symbols file already is a .def file (1st line
8205 # is EXPORTS), use it as is; otherwise, prepend...
8206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207 cp $export_symbols $output_objdir/$soname.def;
8208 else
8209 echo EXPORTS > $output_objdir/$soname.def;
8210 cat $export_symbols >> $output_objdir/$soname.def;
8212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8213 else
8214 ld_shlibs=no
8218 interix[3-9]*)
8219 hardcode_direct=no
8220 hardcode_shlibpath_var=no
8221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8222 export_dynamic_flag_spec='${wl}-E'
8223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8224 # Instead, shared libraries are loaded at an image base (0x10000000 by
8225 # default) and relocated if they conflict, which is a slow very memory
8226 # consuming and fragmenting process. To avoid this, we pick a random,
8227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8230 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8233 gnu* | linux* | tpf* | k*bsd*-gnu)
8234 tmp_diet=no
8235 if test "$host_os" = linux-dietlibc; then
8236 case $cc_basename in
8237 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8238 esac
8240 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8241 && test "$tmp_diet" = no
8242 then
8243 tmp_addflag=
8244 case $cc_basename,$host_cpu in
8245 pgcc*) # Portland Group C compiler
8246 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8247 tmp_addflag=' $pic_flag'
8249 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8250 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8251 tmp_addflag=' $pic_flag -Mnomain' ;;
8252 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8253 tmp_addflag=' -i_dynamic' ;;
8254 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8255 tmp_addflag=' -i_dynamic -nofor_main' ;;
8256 ifc* | ifort*) # Intel Fortran compiler
8257 tmp_addflag=' -nofor_main' ;;
8258 esac
8259 case `$CC -V 2>&1 | sed 5q` in
8260 *Sun\ C*) # Sun C 5.9
8261 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8262 compiler_needs_object=yes
8263 tmp_sharedflag='-G' ;;
8264 *Sun\ F*) # Sun Fortran 8.3
8265 tmp_sharedflag='-G' ;;
8267 tmp_sharedflag='-shared' ;;
8268 esac
8269 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 if test "x$supports_anon_versioning" = xyes; then
8272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8274 echo "local: *; };" >> $output_objdir/$libname.ver~
8275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8277 else
8278 ld_shlibs=no
8282 netbsd*)
8283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8285 wlarc=
8286 else
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292 solaris*)
8293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8294 ld_shlibs=no
8295 cat <<_LT_EOF 1>&2
8297 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8298 *** create shared libraries on Solaris systems. Therefore, libtool
8299 *** is disabling shared libraries support. We urge you to upgrade GNU
8300 *** binutils to release 2.9.1 or newer. Another option is to modify
8301 *** your PATH or compiler configuration so that the native linker is
8302 *** used, and then restart.
8304 _LT_EOF
8305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308 else
8309 ld_shlibs=no
8313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8314 case `$LD -v 2>&1` in
8315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8316 ld_shlibs=no
8317 cat <<_LT_EOF 1>&2
8319 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8320 *** reliably create shared libraries on SCO systems. Therefore, libtool
8321 *** is disabling shared libraries support. We urge you to upgrade GNU
8322 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8323 *** your PATH or compiler configuration so that the native linker is
8324 *** used, and then restart.
8326 _LT_EOF
8329 # For security reasons, it is highly recommended that you always
8330 # use absolute paths for naming shared libraries, and exclude the
8331 # DT_RUNPATH tag from executables and libraries. But doing so
8332 # requires that you compile everything twice, which is a pain.
8333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8337 else
8338 ld_shlibs=no
8341 esac
8344 sunos4*)
8345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8346 wlarc=
8347 hardcode_direct=yes
8348 hardcode_shlibpath_var=no
8352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8355 else
8356 ld_shlibs=no
8359 esac
8361 if test "$ld_shlibs" = no; then
8362 runpath_var=
8363 hardcode_libdir_flag_spec=
8364 export_dynamic_flag_spec=
8365 whole_archive_flag_spec=
8367 else
8368 # PORTME fill in a description of your system's linker (not GNU ld)
8369 case $host_os in
8370 aix3*)
8371 allow_undefined_flag=unsupported
8372 always_export_symbols=yes
8373 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'
8374 # Note: this linker hardcodes the directories in LIBPATH if there
8375 # are no directories specified by -L.
8376 hardcode_minus_L=yes
8377 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8378 # Neither direct hardcoding nor static linking is supported with a
8379 # broken collect2.
8380 hardcode_direct=unsupported
8384 aix4* | aix5*)
8385 if test "$host_cpu" = ia64; then
8386 # On IA64, the linker does run time linking by default, so we don't
8387 # have to do anything special.
8388 aix_use_runtimelinking=no
8389 exp_sym_flag='-Bexport'
8390 no_entry_flag=""
8391 else
8392 # If we're using GNU nm, then we don't want the "-C" option.
8393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8395 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8396 else
8397 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8399 aix_use_runtimelinking=no
8401 # Test if we are trying to use run time linking or normal
8402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8403 # need to do runtime linking.
8404 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8405 for ld_flag in $LDFLAGS; do
8406 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8407 aix_use_runtimelinking=yes
8408 break
8410 done
8412 esac
8414 exp_sym_flag='-bexport'
8415 no_entry_flag='-bnoentry'
8418 # When large executables or shared objects are built, AIX ld can
8419 # have problems creating the table of contents. If linking a library
8420 # or program results in "error TOC overflow" add -mminimal-toc to
8421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8424 archive_cmds=''
8425 hardcode_direct=yes
8426 hardcode_direct_absolute=yes
8427 hardcode_libdir_separator=':'
8428 link_all_deplibs=yes
8429 file_list_spec='${wl}-f,'
8431 if test "$GCC" = yes; then
8432 case $host_os in aix4.[012]|aix4.[012].*)
8433 # We only want to do this on AIX 4.2 and lower, the check
8434 # below for broken collect2 doesn't work under 4.3+
8435 collect2name=`${CC} -print-prog-name=collect2`
8436 if test -f "$collect2name" &&
8437 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8438 then
8439 # We have reworked collect2
8441 else
8442 # We have old collect2
8443 hardcode_direct=unsupported
8444 # It fails to find uninstalled libraries when the uninstalled
8445 # path is not listed in the libpath. Setting hardcode_minus_L
8446 # to unsupported forces relinking
8447 hardcode_minus_L=yes
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_libdir_separator=
8452 esac
8453 shared_flag='-shared'
8454 if test "$aix_use_runtimelinking" = yes; then
8455 shared_flag="$shared_flag "'${wl}-G'
8457 else
8458 # not using gcc
8459 if test "$host_cpu" = ia64; then
8460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461 # chokes on -Wl,-G. The following line is correct:
8462 shared_flag='-G'
8463 else
8464 if test "$aix_use_runtimelinking" = yes; then
8465 shared_flag='${wl}-G'
8466 else
8467 shared_flag='${wl}-bM:SRE'
8472 # It seems that -bexpall does not export symbols beginning with
8473 # underscore (_), so it is better to generate a list of symbols to export.
8474 always_export_symbols=yes
8475 if test "$aix_use_runtimelinking" = yes; then
8476 # Warning - without using the other runtime loading flags (-brtl),
8477 # -berok will link without error, but may produce a broken library.
8478 allow_undefined_flag='-berok'
8479 # Determine the default libpath from the value encoded in an
8480 # empty executable.
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8489 main ()
8493 return 0;
8495 _ACEOF
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498 (eval $ac_link) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -z "$ac_c_werror_flag"
8506 || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8519 lt_aix_libpath_sed='
8520 /Import File Strings/,/^$/ {
8521 /^0/ {
8522 s/^0 *\(.*\)$/\1/
8526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8527 # Check for a 64-bit object if we didn't find anything.
8528 if test -z "$aix_libpath"; then
8529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8540 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8541 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8542 else
8543 if test "$host_cpu" = ia64; then
8544 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8545 allow_undefined_flag="-z nodefs"
8546 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8547 else
8548 # Determine the default libpath from the value encoded in an
8549 # empty executable.
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8558 main ()
8562 return 0;
8564 _ACEOF
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8567 (eval $ac_link) 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8588 lt_aix_libpath_sed='
8589 /Import File Strings/,/^$/ {
8590 /^0/ {
8591 s/^0 *\(.*\)$/\1/
8595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8596 # Check for a 64-bit object if we didn't find anything.
8597 if test -z "$aix_libpath"; then
8598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8605 rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8610 # Warning - without using the other run time loading flags,
8611 # -berok will link without error, but may produce a broken library.
8612 no_undefined_flag=' ${wl}-bernotok'
8613 allow_undefined_flag=' ${wl}-berok'
8614 # Exported symbols can be pulled into shared objects from archives
8615 whole_archive_flag_spec='$convenience'
8616 archive_cmds_need_lc=yes
8617 # This is similar to how AIX traditionally builds its shared libraries.
8618 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8623 amigaos*)
8624 if test "$host_cpu" = m68k; then
8625 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)'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_minus_L=yes
8629 # see comment about different semantics on the GNU ld section
8630 ld_shlibs=no
8633 bsdi[45]*)
8634 export_dynamic_flag_spec=-rdynamic
8637 cygwin* | mingw* | pw32*)
8638 # When not using gcc, we currently assume that we are using
8639 # Microsoft Visual C++.
8640 # hardcode_libdir_flag_spec is actually meaningless, as there is
8641 # no search path for DLLs.
8642 hardcode_libdir_flag_spec=' '
8643 allow_undefined_flag=unsupported
8644 # Tell ltmain to make .lib files, not .a files.
8645 libext=lib
8646 # Tell ltmain to make .dll files, not .so files.
8647 shrext_cmds=".dll"
8648 # FIXME: Setting linknames here is a bad hack.
8649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8650 # The linker will automatically build a .lib file if we build a DLL.
8651 old_archive_from_new_cmds='true'
8652 # FIXME: Should let the user specify the lib program.
8653 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8654 fix_srcfile_path='`cygpath -w "$srcfile"`'
8655 enable_shared_with_static_runtimes=yes
8658 darwin* | rhapsody*)
8659 case $host_os in
8660 rhapsody* | darwin1.[012])
8661 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8663 *) # Darwin 1.3 on
8664 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8665 10.[012])
8666 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8668 10.*)
8669 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8671 esac
8673 esac
8674 archive_cmds_need_lc=no
8675 hardcode_direct=no
8676 hardcode_automatic=yes
8677 hardcode_shlibpath_var=unsupported
8678 whole_archive_flag_spec=''
8679 link_all_deplibs=yes
8680 if test "$GCC" = yes ; then
8681 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 lt_cv_apple_cc_single_mod=no
8685 if test -z "${LT_MULTI_MODULE}"; then
8686 # By default we will add the -single_module flag. You can override
8687 # by either setting the environment variable LT_MULTI_MODULE
8688 # non-empty at configure time, or by adding -multi-module to the
8689 # link flags.
8690 echo "int foo(void){return 1;}" > conftest.c
8691 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8692 -dynamiclib ${wl}-single_module conftest.c
8693 if test -f libconftest.dylib; then
8694 lt_cv_apple_cc_single_mod=yes
8695 rm libconftest.dylib
8697 rm conftest.$ac_ext
8701 output_verbose_link_cmd=echo
8702 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8703 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8704 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8705 else
8706 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8707 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8709 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8710 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8711 else
8712 case $cc_basename in
8713 xlc*)
8714 output_verbose_link_cmd=echo
8715 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8716 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8718 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8719 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8722 ld_shlibs=no
8724 esac
8728 dgux*)
8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 hardcode_shlibpath_var=no
8734 freebsd1*)
8735 ld_shlibs=no
8738 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8739 # support. Future versions do this automatically, but an explicit c++rt0.o
8740 # does not break anything, and helps significantly (at the cost of a little
8741 # extra space).
8742 freebsd2.2*)
8743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8744 hardcode_libdir_flag_spec='-R$libdir'
8745 hardcode_direct=yes
8746 hardcode_shlibpath_var=no
8749 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8750 freebsd2*)
8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_direct=yes
8753 hardcode_minus_L=yes
8754 hardcode_shlibpath_var=no
8757 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8758 freebsd* | dragonfly*)
8759 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8760 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_direct=yes
8762 hardcode_shlibpath_var=no
8765 hpux9*)
8766 if test "$GCC" = yes; then
8767 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8768 else
8769 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'
8771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8772 hardcode_libdir_separator=:
8773 hardcode_direct=yes
8775 # hardcode_minus_L: Not really in the search PATH,
8776 # but as the default location of the library.
8777 hardcode_minus_L=yes
8778 export_dynamic_flag_spec='${wl}-E'
8781 hpux10*)
8782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8784 else
8785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8787 if test "$with_gnu_ld" = no; then
8788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789 hardcode_libdir_flag_spec_ld='+b $libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_direct=yes
8792 hardcode_direct_absolute=yes
8793 export_dynamic_flag_spec='${wl}-E'
8794 # hardcode_minus_L: Not really in the search PATH,
8795 # but as the default location of the library.
8796 hardcode_minus_L=yes
8800 hpux11*)
8801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802 case $host_cpu in
8803 hppa*64*)
8804 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 ia64*)
8807 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812 esac
8813 else
8814 case $host_cpu in
8815 hppa*64*)
8816 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 ia64*)
8819 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8824 esac
8826 if test "$with_gnu_ld" = no; then
8827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8828 hardcode_libdir_separator=:
8830 case $host_cpu in
8831 hppa*64*|ia64*)
8832 hardcode_direct=no
8833 hardcode_shlibpath_var=no
8836 hardcode_direct=yes
8837 hardcode_direct_absolute=yes
8838 export_dynamic_flag_spec='${wl}-E'
8840 # hardcode_minus_L: Not really in the search PATH,
8841 # but as the default location of the library.
8842 hardcode_minus_L=yes
8844 esac
8848 irix5* | irix6* | nonstopux*)
8849 if test "$GCC" = yes; then
8850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8851 # Try to use the -exported_symbol ld option, if it does not
8852 # work, assume that -exports_file does not work either and
8853 # implicitly export all symbols.
8854 save_LDFLAGS="$LDFLAGS"
8855 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8856 cat >conftest.$ac_ext <<_ACEOF
8857 int foo(void) {}
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8883 else
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8888 rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LDFLAGS="$save_LDFLAGS"
8891 else
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8895 archive_cmds_need_lc='no'
8896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8897 hardcode_libdir_separator=:
8898 inherit_rpath=yes
8899 link_all_deplibs=yes
8902 netbsd*)
8903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8905 else
8906 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8908 hardcode_libdir_flag_spec='-R$libdir'
8909 hardcode_direct=yes
8910 hardcode_shlibpath_var=no
8913 newsos6)
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_direct=yes
8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917 hardcode_libdir_separator=:
8918 hardcode_shlibpath_var=no
8921 *nto* | *qnx*)
8924 openbsd*)
8925 hardcode_direct=yes
8926 hardcode_shlibpath_var=no
8927 hardcode_direct_absolute=yes
8928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8932 export_dynamic_flag_spec='${wl}-E'
8933 else
8934 case $host_os in
8935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_libdir_flag_spec='-R$libdir'
8940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8943 esac
8947 os2*)
8948 hardcode_libdir_flag_spec='-L$libdir'
8949 hardcode_minus_L=yes
8950 allow_undefined_flag=unsupported
8951 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'
8952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8955 osf3*)
8956 if test "$GCC" = yes; then
8957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8959 else
8960 allow_undefined_flag=' -expect_unresolved \*'
8961 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8963 archive_cmds_need_lc='no'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8968 osf4* | osf5*) # as osf3* with the addition of -msym flag
8969 if test "$GCC" = yes; then
8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 else
8974 allow_undefined_flag=' -expect_unresolved \*'
8975 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8976 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8977 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8982 archive_cmds_need_lc='no'
8983 hardcode_libdir_separator=:
8986 solaris*)
8987 no_undefined_flag=' -z defs'
8988 if test "$GCC" = yes; then
8989 wlarc='${wl}'
8990 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8992 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8993 else
8994 case `$CC -V 2>&1` in
8995 *"Compilers 5.0"*)
8996 wlarc=''
8997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9002 wlarc='${wl}'
9003 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9007 esac
9009 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_shlibpath_var=no
9011 case $host_os in
9012 solaris2.[0-5] | solaris2.[0-5].*) ;;
9014 # The compiler driver will combine and reorder linker options,
9015 # but understands `-z linker_flag'. GCC discards it without `$wl',
9016 # but is careful enough not to reorder.
9017 # Supported since Solaris 2.6 (maybe 2.5.1?)
9018 if test "$GCC" = yes; then
9019 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9020 else
9021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9024 esac
9025 link_all_deplibs=yes
9028 sunos4*)
9029 if test "x$host_vendor" = xsequent; then
9030 # Use $CC to link under sequent, because it throws in some extra .o
9031 # files that make .init and .fini sections work.
9032 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033 else
9034 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_direct=yes
9038 hardcode_minus_L=yes
9039 hardcode_shlibpath_var=no
9042 sysv4)
9043 case $host_vendor in
9044 sni)
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_direct=yes # is this really true???
9048 siemens)
9049 ## LD is ld it makes a PLAMLIB
9050 ## CC just makes a GrossModule.
9051 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9052 reload_cmds='$CC -r -o $output$reload_objs'
9053 hardcode_direct=no
9055 motorola)
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9059 esac
9060 runpath_var='LD_RUN_PATH'
9061 hardcode_shlibpath_var=no
9064 sysv4.3*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_shlibpath_var=no
9067 export_dynamic_flag_spec='-Bexport'
9070 sysv4*MP*)
9071 if test -d /usr/nec; then
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_shlibpath_var=no
9074 runpath_var=LD_RUN_PATH
9075 hardcode_runpath_var=yes
9076 ld_shlibs=yes
9080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9081 no_undefined_flag='${wl}-z,text'
9082 archive_cmds_need_lc=no
9083 hardcode_shlibpath_var=no
9084 runpath_var='LD_RUN_PATH'
9086 if test "$GCC" = yes; then
9087 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 else
9090 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 sysv5* | sco3.2v5* | sco5v6*)
9096 # Note: We can NOT use -z defs as we might desire, because we do not
9097 # link with -lc, and that would cause any symbols used from libc to
9098 # always be unresolved, which means just about no library would
9099 # ever link correctly. If we're not using GNU ld we use -z text
9100 # though, which does catch some bad symbols but isn't as heavy-handed
9101 # as -z defs.
9102 no_undefined_flag='${wl}-z,text'
9103 allow_undefined_flag='${wl}-z,nodefs'
9104 archive_cmds_need_lc=no
9105 hardcode_shlibpath_var=no
9106 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 export_dynamic_flag_spec='${wl}-Bexport'
9110 runpath_var='LD_RUN_PATH'
9112 if test "$GCC" = yes; then
9113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 else
9116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 uts4*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_shlibpath_var=no
9128 ld_shlibs=no
9130 esac
9132 if test x$host_vendor = xsni; then
9133 case $host in
9134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9135 export_dynamic_flag_spec='${wl}-Blargedynsym'
9137 esac
9141 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9142 echo "${ECHO_T}$ld_shlibs" >&6
9143 test "$ld_shlibs" = no && can_build_shared=no
9145 with_gnu_ld=$with_gnu_ld
9162 # Do we need to explicitly link libc?
9164 case "x$archive_cmds_need_lc" in
9165 x|xyes)
9166 # Assume -lc should be added
9167 archive_cmds_need_lc=yes
9169 if test "$enable_shared" = yes && test "$GCC" = yes; then
9170 case $archive_cmds in
9171 *'~'*)
9172 # FIXME: we may have to deal with multi-command sequences.
9174 '$CC '*)
9175 # Test whether the compiler implicitly links with -lc since on some
9176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9177 # to ld, don't add -lc before -lgcc.
9178 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9180 $RM conftest*
9181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } 2>conftest.err; then
9188 soname=conftest
9189 lib=conftest
9190 libobjs=conftest.$ac_objext
9191 deplibs=
9192 wl=$lt_prog_compiler_wl
9193 pic_flag=$lt_prog_compiler_pic
9194 compiler_flags=-v
9195 linker_flags=-v
9196 verstring=
9197 output_objdir=.
9198 libname=conftest
9199 lt_save_allow_undefined_flag=$allow_undefined_flag
9200 allow_undefined_flag=
9201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9202 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }
9206 then
9207 archive_cmds_need_lc=no
9208 else
9209 archive_cmds_need_lc=yes
9211 allow_undefined_flag=$lt_save_allow_undefined_flag
9212 else
9213 cat conftest.err 1>&5
9215 $RM conftest*
9216 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9217 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9219 esac
9222 esac
9380 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9381 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9382 withGCC=$GCC
9383 if test "$withGCC" = yes; then
9384 case $host_os in
9385 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9386 *) lt_awk_arg="/^libraries:/" ;;
9387 esac
9388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9390 # if the path contains ";" then we assume it to be the separator
9391 # otherwise default to the standard path separator (i.e. ":") - it is
9392 # assumed that no part of a normal pathname contains ";" but that should
9393 # okay in the real world where ";" in dirpaths is itself problematic.
9394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9395 else
9396 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9398 # Ok, now we have the path, separated by spaces, we can step through it
9399 # and add multilib dir if necessary.
9400 lt_tmp_lt_search_path_spec=
9401 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9402 for lt_sys_path in $lt_search_path_spec; do
9403 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9404 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9405 else
9406 test -d "$lt_sys_path" && \
9407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9409 done
9410 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9411 BEGIN {RS=" "; FS="/|\n";} {
9412 lt_foo="";
9413 lt_count=0;
9414 for (lt_i = NF; lt_i > 0; lt_i--) {
9415 if ($lt_i != "" && $lt_i != ".") {
9416 if ($lt_i == "..") {
9417 lt_count++;
9418 } else {
9419 if (lt_count == 0) {
9420 lt_foo="/" $lt_i lt_foo;
9421 } else {
9422 lt_count--;
9427 if (lt_foo != "") { lt_freq[lt_foo]++; }
9428 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9430 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9431 else
9432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9434 library_names_spec=
9435 libname_spec='lib$name'
9436 soname_spec=
9437 shrext_cmds=".so"
9438 postinstall_cmds=
9439 postuninstall_cmds=
9440 finish_cmds=
9441 finish_eval=
9442 shlibpath_var=
9443 shlibpath_overrides_runpath=unknown
9444 version_type=none
9445 dynamic_linker="$host_os ld.so"
9446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9447 need_lib_prefix=unknown
9448 hardcode_into_libs=no
9450 # when you set need_version to no, make sure it does not cause -set_version
9451 # flags to be left without arguments
9452 need_version=unknown
9454 case $host_os in
9455 aix3*)
9456 version_type=linux
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9458 shlibpath_var=LIBPATH
9460 # AIX 3 has no versioning support, so we append a major version to the name.
9461 soname_spec='${libname}${release}${shared_ext}$major'
9464 aix4* | aix5*)
9465 version_type=linux
9466 need_lib_prefix=no
9467 need_version=no
9468 hardcode_into_libs=yes
9469 if test "$host_cpu" = ia64; then
9470 # AIX 5 supports IA64
9471 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 else
9474 # With GCC up to 2.95.x, collect2 would create an import file
9475 # for dependence libraries. The import file would start with
9476 # the line `#! .'. This would cause the generated library to
9477 # depend on `.', always an invalid library. This was fixed in
9478 # development snapshots of GCC prior to 3.0.
9479 case $host_os in
9480 aix4 | aix4.[01] | aix4.[01].*)
9481 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9482 echo ' yes '
9483 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9485 else
9486 can_build_shared=no
9489 esac
9490 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9491 # soname into executable. Probably we can add versioning support to
9492 # collect2, so additional links can be useful in future.
9493 if test "$aix_use_runtimelinking" = yes; then
9494 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9495 # instead of lib<name>.a to let people know that these are not
9496 # typical AIX shared libraries.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 else
9499 # We preserve .a as extension for shared libraries through AIX4.2
9500 # and later when we are not doing run time linking.
9501 library_names_spec='${libname}${release}.a $libname.a'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LIBPATH
9508 amigaos*)
9509 if test "$host_cpu" = m68k; then
9510 library_names_spec='$libname.ixlibrary $libname.a'
9511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9512 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'
9513 else
9514 dynamic_linker=no
9518 beos*)
9519 library_names_spec='${libname}${shared_ext}'
9520 dynamic_linker="$host_os ld.so"
9521 shlibpath_var=LIBRARY_PATH
9524 bsdi[45]*)
9525 version_type=linux
9526 need_version=no
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9533 # the default ld.so.conf also contains /usr/contrib/lib and
9534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9535 # libtool to hard-code these into programs
9538 cygwin* | mingw* | pw32*)
9539 version_type=windows
9540 shrext_cmds=".dll"
9541 need_version=no
9542 need_lib_prefix=no
9544 case $withGCC,$host_os in
9545 yes,cygwin* | yes,mingw* | yes,pw32*)
9546 library_names_spec='$libname.dll.a'
9547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9548 postinstall_cmds='base_file=`basename \${file}`~
9549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9550 dldir=$destdir/`dirname \$dlpath`~
9551 test -d \$dldir || mkdir -p \$dldir~
9552 $install_prog $dir/$dlname \$dldir/$dlname~
9553 chmod a+x \$dldir/$dlname~
9554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9558 dlpath=$dir/\$dldll~
9559 $RM \$dlpath'
9560 shlibpath_overrides_runpath=yes
9562 case $host_os in
9563 cygwin*)
9564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9568 mingw*)
9569 # MinGW DLLs use traditional 'lib' prefix
9570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9571 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9572 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9573 # It is most probably a Windows format PATH printed by
9574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9575 # path with ; separators, and with drive letters. We can handle the
9576 # drive letters (cygwin fileutils understands them), so leave them,
9577 # especially as we might pass files found there to a mingw objdump,
9578 # which wouldn't understand a cygwinified path. Ahh.
9579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9580 else
9581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9584 pw32*)
9585 # pw32 DLLs use 'pw' prefix rather than 'lib'
9586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9588 esac
9592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9594 esac
9595 dynamic_linker='Win32 ld.exe'
9596 # FIXME: first we should search . and the directory the executable is in
9597 shlibpath_var=PATH
9600 darwin* | rhapsody*)
9601 dynamic_linker="$host_os dyld"
9602 version_type=darwin
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9606 soname_spec='${libname}${release}${major}$shared_ext'
9607 shlibpath_overrides_runpath=yes
9608 shlibpath_var=DYLD_LIBRARY_PATH
9609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9611 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9615 dgux*)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9624 freebsd1*)
9625 dynamic_linker=no
9628 freebsd* | dragonfly*)
9629 # DragonFly does not have aout. When/if they implement a new
9630 # versioning mechanism, adjust this.
9631 if test -x /usr/bin/objformat; then
9632 objformat=`/usr/bin/objformat`
9633 else
9634 case $host_os in
9635 freebsd[123]*) objformat=aout ;;
9636 *) objformat=elf ;;
9637 esac
9639 version_type=freebsd-$objformat
9640 case $version_type in
9641 freebsd-elf*)
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9643 need_version=no
9644 need_lib_prefix=no
9646 freebsd-*)
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9648 need_version=yes
9650 esac
9651 shlibpath_var=LD_LIBRARY_PATH
9652 case $host_os in
9653 freebsd2*)
9654 shlibpath_overrides_runpath=yes
9656 freebsd3.[01]* | freebsdelf3.[01]*)
9657 shlibpath_overrides_runpath=yes
9658 hardcode_into_libs=yes
9660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9662 shlibpath_overrides_runpath=no
9663 hardcode_into_libs=yes
9665 *) # from 4.6 on, and DragonFly
9666 shlibpath_overrides_runpath=yes
9667 hardcode_into_libs=yes
9669 esac
9672 gnu*)
9673 version_type=linux
9674 need_lib_prefix=no
9675 need_version=no
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 hardcode_into_libs=yes
9682 hpux9* | hpux10* | hpux11*)
9683 # Give a soname corresponding to the major version so that dld.sl refuses to
9684 # link against other versions.
9685 version_type=sunos
9686 need_lib_prefix=no
9687 need_version=no
9688 case $host_cpu in
9689 ia64*)
9690 shrext_cmds='.so'
9691 hardcode_into_libs=yes
9692 dynamic_linker="$host_os dld.so"
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 if test "X$HPUX_IA64_MODE" = X32; then
9698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9699 else
9700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9704 hppa*64*)
9705 shrext_cmds='.sl'
9706 hardcode_into_libs=yes
9707 dynamic_linker="$host_os dld.sl"
9708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9716 shrext_cmds='.sl'
9717 dynamic_linker="$host_os dld.sl"
9718 shlibpath_var=SHLIB_PATH
9719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 soname_spec='${libname}${release}${shared_ext}$major'
9723 esac
9724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9725 postinstall_cmds='chmod 555 $lib'
9728 interix[3-9]*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=no
9737 hardcode_into_libs=yes
9740 irix5* | irix6* | nonstopux*)
9741 case $host_os in
9742 nonstopux*) version_type=nonstopux ;;
9744 if test "$lt_cv_prog_gnu_ld" = yes; then
9745 version_type=linux
9746 else
9747 version_type=irix
9748 fi ;;
9749 esac
9750 need_lib_prefix=no
9751 need_version=no
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9754 case $host_os in
9755 irix5* | nonstopux*)
9756 libsuff= shlibsuff=
9759 case $LD in # libtool.m4 will add one of these switches to LD
9760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9761 libsuff= shlibsuff= libmagic=32-bit;;
9762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9763 libsuff=32 shlibsuff=N32 libmagic=N32;;
9764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9766 *) libsuff= shlibsuff= libmagic=never-match;;
9767 esac
9769 esac
9770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9771 shlibpath_overrides_runpath=no
9772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9774 hardcode_into_libs=yes
9777 # No shared lib support for Linux oldld, aout, or coff.
9778 linux*oldld* | linux*aout* | linux*coff*)
9779 dynamic_linker=no
9782 # This must be Linux ELF.
9783 linux* | k*bsd*-gnu)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=no
9792 # Some binutils ld are patched to set DT_RUNPATH
9793 save_LDFLAGS=$LDFLAGS
9794 save_libdir=$libdir
9795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9805 main ()
9809 return 0;
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag"
9822 || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9835 shlibpath_overrides_runpath=yes
9838 else
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9843 rm -f conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LDFLAGS=$save_LDFLAGS
9846 libdir=$save_libdir
9848 # This implies no fast_install, which is unacceptable.
9849 # Some rework will be needed to allow for fast_install
9850 # before this can be enabled.
9851 hardcode_into_libs=yes
9853 # Append ld.so.conf contents to the search path
9854 if test -f /etc/ld.so.conf; then
9855 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9859 # We used to test for /lib/ld.so.1 and disable shared libraries on
9860 # powerpc, because MkLinux only supported shared libraries with the
9861 # GNU dynamic linker. Since this was broken with cross compilers,
9862 # most powerpc-linux boxes support dynamic linking these days and
9863 # people can always --disable-shared, the test was removed, and we
9864 # assume the GNU/Linux dynamic linker is in use.
9865 dynamic_linker='GNU/Linux ld.so'
9868 netbsd*)
9869 version_type=sunos
9870 need_lib_prefix=no
9871 need_version=no
9872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9875 dynamic_linker='NetBSD (a.out) ld.so'
9876 else
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 dynamic_linker='NetBSD ld.elf_so'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 shlibpath_overrides_runpath=yes
9883 hardcode_into_libs=yes
9886 newsos6)
9887 version_type=linux
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 shlibpath_overrides_runpath=yes
9893 *nto* | *qnx*)
9894 version_type=qnx
9895 need_lib_prefix=no
9896 need_version=no
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 shlibpath_overrides_runpath=no
9901 hardcode_into_libs=yes
9902 dynamic_linker='ldqnx.so'
9905 openbsd*)
9906 version_type=sunos
9907 sys_lib_dlsearch_path_spec="/usr/lib"
9908 need_lib_prefix=no
9909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9910 case $host_os in
9911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9912 *) need_version=no ;;
9913 esac
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9918 case $host_os in
9919 openbsd2.[89] | openbsd2.[89].*)
9920 shlibpath_overrides_runpath=no
9923 shlibpath_overrides_runpath=yes
9925 esac
9926 else
9927 shlibpath_overrides_runpath=yes
9931 os2*)
9932 libname_spec='$name'
9933 shrext_cmds=".dll"
9934 need_lib_prefix=no
9935 library_names_spec='$libname${shared_ext} $libname.a'
9936 dynamic_linker='OS/2 ld.exe'
9937 shlibpath_var=LIBPATH
9940 osf3* | osf4* | osf5*)
9941 version_type=osf
9942 need_lib_prefix=no
9943 need_version=no
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9951 rdos*)
9952 dynamic_linker=no
9955 solaris*)
9956 version_type=linux
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 shlibpath_overrides_runpath=yes
9963 hardcode_into_libs=yes
9964 # ldd complains unless libraries are executable
9965 postinstall_cmds='chmod +x $lib'
9968 sunos4*)
9969 version_type=sunos
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 shlibpath_overrides_runpath=yes
9974 if test "$with_gnu_ld" = yes; then
9975 need_lib_prefix=no
9977 need_version=yes
9980 sysv4 | sysv4.3*)
9981 version_type=linux
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 case $host_vendor in
9986 sni)
9987 shlibpath_overrides_runpath=no
9988 need_lib_prefix=no
9989 runpath_var=LD_RUN_PATH
9991 siemens)
9992 need_lib_prefix=no
9994 motorola)
9995 need_lib_prefix=no
9996 need_version=no
9997 shlibpath_overrides_runpath=no
9998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10000 esac
10003 sysv4*MP*)
10004 if test -d /usr/nec ;then
10005 version_type=linux
10006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10007 soname_spec='$libname${shared_ext}.$major'
10008 shlibpath_var=LD_LIBRARY_PATH
10012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10013 version_type=freebsd-elf
10014 need_lib_prefix=no
10015 need_version=no
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 hardcode_into_libs=yes
10021 if test "$with_gnu_ld" = yes; then
10022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10023 else
10024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10025 case $host_os in
10026 sco3.2v5*)
10027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10029 esac
10031 sys_lib_dlsearch_path_spec='/usr/lib'
10034 tpf*)
10035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=no
10042 hardcode_into_libs=yes
10045 uts4*)
10046 version_type=linux
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 shlibpath_var=LD_LIBRARY_PATH
10053 dynamic_linker=no
10055 esac
10056 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10057 echo "${ECHO_T}$dynamic_linker" >&6
10058 test "$dynamic_linker" = no && can_build_shared=no
10060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10061 if test "$GCC" = yes; then
10062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10151 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10152 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10153 hardcode_action=
10154 if test -n "$hardcode_libdir_flag_spec" ||
10155 test -n "$runpath_var" ||
10156 test "X$hardcode_automatic" = "Xyes" ; then
10158 # We can hardcode non-existent directories.
10159 if test "$hardcode_direct" != no &&
10160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10161 # have to relink, otherwise we might link with an installed library
10162 # when we should be linking with a yet-to-be-installed one
10163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10164 test "$hardcode_minus_L" != no; then
10165 # Linking always hardcodes the temporary library directory.
10166 hardcode_action=relink
10167 else
10168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10169 hardcode_action=immediate
10171 else
10172 # We cannot hardcode anything, or else we can only hardcode existing
10173 # directories.
10174 hardcode_action=unsupported
10176 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10177 echo "${ECHO_T}$hardcode_action" >&6
10179 if test "$hardcode_action" = relink ||
10180 test "$inherit_rpath" = yes; then
10181 # Fast installation is not supported
10182 enable_fast_install=no
10183 elif test "$shlibpath_overrides_runpath" = yes ||
10184 test "$enable_shared" = no; then
10185 # Fast installation is not necessary
10186 enable_fast_install=needless
10194 if test "x$enable_dlopen" != xyes; then
10195 enable_dlopen=unknown
10196 enable_dlopen_self=unknown
10197 enable_dlopen_self_static=unknown
10198 else
10199 lt_cv_dlopen=no
10200 lt_cv_dlopen_libs=
10202 case $host_os in
10203 beos*)
10204 lt_cv_dlopen="load_add_on"
10205 lt_cv_dlopen_libs=
10206 lt_cv_dlopen_self=yes
10209 mingw* | pw32*)
10210 lt_cv_dlopen="LoadLibrary"
10211 lt_cv_dlopen_libs=
10214 cygwin*)
10215 lt_cv_dlopen="dlopen"
10216 lt_cv_dlopen_libs=
10219 darwin*)
10220 # if libdl is installed we need to link against it
10221 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10222 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10223 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226 ac_check_lib_save_LIBS=$LIBS
10227 LIBS="-ldl $LIBS"
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h. */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10235 /* Override any gcc2 internal prototype to avoid an error. */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 /* We use char because int might match the return type of a gcc2
10240 builtin and then its argument prototype would still apply. */
10241 char dlopen ();
10243 main ()
10245 dlopen ();
10247 return 0;
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_c_werror_flag"
10260 || test ! -s conftest.err'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_lib_dl_dlopen=yes
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_lib_dl_dlopen=no
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10283 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10285 if test $ac_cv_lib_dl_dlopen = yes; then
10286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10287 else
10289 lt_cv_dlopen="dyld"
10290 lt_cv_dlopen_libs=
10291 lt_cv_dlopen_self=yes
10298 echo "$as_me:$LINENO: checking for shl_load" >&5
10299 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10300 if test "${ac_cv_func_shl_load+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h. */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10311 #define shl_load innocuous_shl_load
10313 /* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char shl_load (); below.
10315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10316 <limits.h> exists even on freestanding compilers. */
10318 #ifdef __STDC__
10319 # include <limits.h>
10320 #else
10321 # include <assert.h>
10322 #endif
10324 #undef shl_load
10326 /* Override any gcc2 internal prototype to avoid an error. */
10327 #ifdef __cplusplus
10328 extern "C"
10330 #endif
10331 /* We use char because int might match the return type of a gcc2
10332 builtin and then its argument prototype would still apply. */
10333 char shl_load ();
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10338 choke me
10339 #else
10340 char (*f) () = shl_load;
10341 #endif
10342 #ifdef __cplusplus
10344 #endif
10347 main ()
10349 return f != shl_load;
10351 return 0;
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356 (eval $ac_link) 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag"
10364 || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest$ac_exeext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10376 ac_cv_func_shl_load=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_cv_func_shl_load=no
10383 rm -f conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10387 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10388 if test $ac_cv_func_shl_load = yes; then
10389 lt_cv_dlopen="shl_load"
10390 else
10391 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10392 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-ldld $LIBS"
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char shl_load ();
10413 main ()
10415 shl_load ();
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -z "$ac_c_werror_flag"
10430 || test ! -s conftest.err'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; } &&
10436 { ac_try='test -s conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_lib_dld_shl_load=yes
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ac_cv_lib_dld_shl_load=no
10449 rm -f conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10453 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10454 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10455 if test $ac_cv_lib_dld_shl_load = yes; then
10456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10457 else
10458 echo "$as_me:$LINENO: checking for dlopen" >&5
10459 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10460 if test "${ac_cv_func_dlopen+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10471 #define dlopen innocuous_dlopen
10473 /* System header to define __stub macros and hopefully few prototypes,
10474 which can conflict with char dlopen (); below.
10475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10476 <limits.h> exists even on freestanding compilers. */
10478 #ifdef __STDC__
10479 # include <limits.h>
10480 #else
10481 # include <assert.h>
10482 #endif
10484 #undef dlopen
10486 /* Override any gcc2 internal prototype to avoid an error. */
10487 #ifdef __cplusplus
10488 extern "C"
10490 #endif
10491 /* We use char because int might match the return type of a gcc2
10492 builtin and then its argument prototype would still apply. */
10493 char dlopen ();
10494 /* The GNU C library defines this for functions which it implements
10495 to always fail with ENOSYS. Some functions are actually named
10496 something starting with __ and the normal name is an alias. */
10497 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10498 choke me
10499 #else
10500 char (*f) () = dlopen;
10501 #endif
10502 #ifdef __cplusplus
10504 #endif
10507 main ()
10509 return f != dlopen;
10511 return 0;
10513 _ACEOF
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag"
10524 || test ! -s conftest.err'
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; } &&
10530 { ac_try='test -s conftest$ac_exeext'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_cv_func_dlopen=yes
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_cv_func_dlopen=no
10543 rm -f conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10548 if test $ac_cv_func_dlopen = yes; then
10549 lt_cv_dlopen="dlopen"
10550 else
10551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 ac_check_lib_save_LIBS=$LIBS
10557 LIBS="-ldl $LIBS"
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 /* Override any gcc2 internal prototype to avoid an error. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 /* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10571 char dlopen ();
10573 main ()
10575 dlopen ();
10577 return 0;
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_cv_lib_dl_dlopen=yes
10603 else
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_cv_lib_dl_dlopen=no
10609 rm -f conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10615 if test $ac_cv_lib_dl_dlopen = yes; then
10616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10617 else
10618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lsvld $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 /* Override any gcc2 internal prototype to avoid an error. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 /* We use char because int might match the return type of a gcc2
10637 builtin and then its argument prototype would still apply. */
10638 char dlopen ();
10640 main ()
10642 dlopen ();
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_lib_svld_dlopen=yes
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_lib_svld_dlopen=no
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10682 if test $ac_cv_lib_svld_dlopen = yes; then
10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10684 else
10685 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-ldld $LIBS"
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10699 /* Override any gcc2 internal prototype to avoid an error. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 /* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705 char dld_link ();
10707 main ()
10709 dld_link ();
10711 return 0;
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_lib_dld_dld_link=yes
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_lib_dld_dld_link=no
10743 rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10748 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10749 if test $ac_cv_lib_dld_dld_link = yes; then
10750 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10769 esac
10771 if test "x$lt_cv_dlopen" != xno; then
10772 enable_dlopen=yes
10773 else
10774 enable_dlopen=no
10777 case $lt_cv_dlopen in
10778 dlopen)
10779 save_CPPFLAGS="$CPPFLAGS"
10780 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10782 save_LDFLAGS="$LDFLAGS"
10783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10785 save_LIBS="$LIBS"
10786 LIBS="$lt_cv_dlopen_libs $LIBS"
10788 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10789 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10790 if test "${lt_cv_dlopen_self+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 if test "$cross_compiling" = yes; then :
10794 lt_cv_dlopen_self=cross
10795 else
10796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10797 lt_status=$lt_dlunknown
10798 cat > conftest.$ac_ext <<_LT_EOF
10799 #line 10799 "configure"
10800 #include "confdefs.h"
10802 #if HAVE_DLFCN_H
10803 #include <dlfcn.h>
10804 #endif
10806 #include <stdio.h>
10808 #ifdef RTLD_GLOBAL
10809 # define LT_DLGLOBAL RTLD_GLOBAL
10810 #else
10811 # ifdef DL_GLOBAL
10812 # define LT_DLGLOBAL DL_GLOBAL
10813 # else
10814 # define LT_DLGLOBAL 0
10815 # endif
10816 #endif
10818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10819 find out it does not work in some platform. */
10820 #ifndef LT_DLLAZY_OR_NOW
10821 # ifdef RTLD_LAZY
10822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10823 # else
10824 # ifdef DL_LAZY
10825 # define LT_DLLAZY_OR_NOW DL_LAZY
10826 # else
10827 # ifdef RTLD_NOW
10828 # define LT_DLLAZY_OR_NOW RTLD_NOW
10829 # else
10830 # ifdef DL_NOW
10831 # define LT_DLLAZY_OR_NOW DL_NOW
10832 # else
10833 # define LT_DLLAZY_OR_NOW 0
10834 # endif
10835 # endif
10836 # endif
10837 # endif
10838 #endif
10840 #ifdef __cplusplus
10841 extern "C" void exit (int);
10842 #endif
10844 void fnord() { int i=42;}
10845 int main ()
10847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10848 int status = $lt_dlunknown;
10850 if (self)
10852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10853 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10854 /* dlclose (self); */
10856 else
10857 puts (dlerror ());
10859 exit (status);
10861 _LT_EOF
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863 (eval $ac_link) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10867 (./conftest; exit; ) >&5 2>/dev/null
10868 lt_status=$?
10869 case x$lt_status in
10870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10872 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10873 esac
10874 else :
10875 # compilation failed
10876 lt_cv_dlopen_self=no
10879 rm -fr conftest*
10883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10886 if test "x$lt_cv_dlopen_self" = xyes; then
10887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10888 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10890 if test "${lt_cv_dlopen_self_static+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893 if test "$cross_compiling" = yes; then :
10894 lt_cv_dlopen_self_static=cross
10895 else
10896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10897 lt_status=$lt_dlunknown
10898 cat > conftest.$ac_ext <<_LT_EOF
10899 #line 10899 "configure"
10900 #include "confdefs.h"
10902 #if HAVE_DLFCN_H
10903 #include <dlfcn.h>
10904 #endif
10906 #include <stdio.h>
10908 #ifdef RTLD_GLOBAL
10909 # define LT_DLGLOBAL RTLD_GLOBAL
10910 #else
10911 # ifdef DL_GLOBAL
10912 # define LT_DLGLOBAL DL_GLOBAL
10913 # else
10914 # define LT_DLGLOBAL 0
10915 # endif
10916 #endif
10918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10919 find out it does not work in some platform. */
10920 #ifndef LT_DLLAZY_OR_NOW
10921 # ifdef RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10923 # else
10924 # ifdef DL_LAZY
10925 # define LT_DLLAZY_OR_NOW DL_LAZY
10926 # else
10927 # ifdef RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW RTLD_NOW
10929 # else
10930 # ifdef DL_NOW
10931 # define LT_DLLAZY_OR_NOW DL_NOW
10932 # else
10933 # define LT_DLLAZY_OR_NOW 0
10934 # endif
10935 # endif
10936 # endif
10937 # endif
10938 #endif
10940 #ifdef __cplusplus
10941 extern "C" void exit (int);
10942 #endif
10944 void fnord() { int i=42;}
10945 int main ()
10947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10948 int status = $lt_dlunknown;
10950 if (self)
10952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10954 /* dlclose (self); */
10956 else
10957 puts (dlerror ());
10959 exit (status);
10961 _LT_EOF
10962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10967 (./conftest; exit; ) >&5 2>/dev/null
10968 lt_status=$?
10969 case x$lt_status in
10970 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10971 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10972 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10973 esac
10974 else :
10975 # compilation failed
10976 lt_cv_dlopen_self_static=no
10979 rm -fr conftest*
10983 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10984 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10987 CPPFLAGS="$save_CPPFLAGS"
10988 LDFLAGS="$save_LDFLAGS"
10989 LIBS="$save_LIBS"
10991 esac
10993 case $lt_cv_dlopen_self in
10994 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10995 *) enable_dlopen_self=unknown ;;
10996 esac
10998 case $lt_cv_dlopen_self_static in
10999 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11000 *) enable_dlopen_self_static=unknown ;;
11001 esac
11020 striplib=
11021 old_striplib=
11022 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11023 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11024 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11025 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11026 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11027 echo "$as_me:$LINENO: result: yes" >&5
11028 echo "${ECHO_T}yes" >&6
11029 else
11030 # FIXME - insert some real tests, host_os isn't really good enough
11031 case $host_os in
11032 darwin*)
11033 if test -n "$STRIP" ; then
11034 striplib="$STRIP -x"
11035 old_striplib="$STRIP -S"
11036 echo "$as_me:$LINENO: result: yes" >&5
11037 echo "${ECHO_T}yes" >&6
11038 else
11039 echo "$as_me:$LINENO: result: no" >&5
11040 echo "${ECHO_T}no" >&6
11044 echo "$as_me:$LINENO: result: no" >&5
11045 echo "${ECHO_T}no" >&6
11047 esac
11061 # Report which library types will actually be built
11062 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11063 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11064 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11065 echo "${ECHO_T}$can_build_shared" >&6
11067 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11068 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11069 test "$can_build_shared" = "no" && enable_shared=no
11071 # On AIX, shared libraries and static libraries use the same namespace, and
11072 # are all built from PIC.
11073 case $host_os in
11074 aix3*)
11075 test "$enable_shared" = yes && enable_static=no
11076 if test -n "$RANLIB"; then
11077 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11078 postinstall_cmds='$RANLIB $lib'
11082 aix4* | aix5*)
11083 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11084 test "$enable_shared" = yes && enable_static=no
11087 esac
11088 echo "$as_me:$LINENO: result: $enable_shared" >&5
11089 echo "${ECHO_T}$enable_shared" >&6
11091 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11092 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11093 # Make sure either enable_shared or enable_static is yes.
11094 test "$enable_shared" = yes || enable_static=yes
11095 echo "$as_me:$LINENO: result: $enable_static" >&5
11096 echo "${ECHO_T}$enable_static" >&6
11102 ac_ext=c
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108 CC="$lt_save_CC"
11122 ac_config_commands="$ac_config_commands libtool"
11127 # Only expand once:
11133 if test "${ac_cv_header_stdint_h+set}" = set; then
11134 echo "$as_me:$LINENO: checking for stdint.h" >&5
11135 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11136 if test "${ac_cv_header_stdint_h+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11140 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11141 else
11142 # Is the header compilable?
11143 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11144 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 #include <stdint.h>
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest.$ac_objext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_header_compiler=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ac_header_compiler=no
11183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11185 echo "${ECHO_T}$ac_header_compiler" >&6
11187 # Is the header present?
11188 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11189 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #include <stdint.h>
11197 _ACEOF
11198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } >/dev/null; then
11206 if test -s conftest.err; then
11207 ac_cpp_err=$ac_c_preproc_warn_flag
11208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11209 else
11210 ac_cpp_err=
11212 else
11213 ac_cpp_err=yes
11215 if test -z "$ac_cpp_err"; then
11216 ac_header_preproc=yes
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 ac_header_preproc=no
11223 rm -f conftest.err conftest.$ac_ext
11224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11225 echo "${ECHO_T}$ac_header_preproc" >&6
11227 # So? What about this header?
11228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 yes:no: )
11230 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11231 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11233 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11234 ac_header_preproc=yes
11236 no:yes:* )
11237 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11238 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11240 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11242 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11244 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11246 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11248 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11250 cat <<\_ASBOX
11251 ## ------------------------------------- ##
11252 ## Report this to the libmudflap lists. ##
11253 ## ------------------------------------- ##
11254 _ASBOX
11256 sed "s/^/$as_me: WARNING: /" >&2
11258 esac
11259 echo "$as_me:$LINENO: checking for stdint.h" >&5
11260 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11261 if test "${ac_cv_header_stdint_h+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264 ac_cv_header_stdint_h=$ac_header_preproc
11266 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11267 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11270 if test $ac_cv_header_stdint_h = yes; then
11271 MF_HAVE_STDINT_H=1
11272 else
11273 MF_HAVE_STDINT_H=0
11278 if test $MF_HAVE_STDINT_H = 1
11279 then
11280 MF_HAVE_UINTPTR_T=1
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #include <sys/types.h>
11290 main ()
11292 uintptr_t k = 0;
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag"
11307 || test ! -s conftest.err'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 MF_HAVE_UINTPTR_T=1
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 MF_HAVE_UINTPTR_T=0
11326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330 if test ! -d pth
11331 then
11332 # libmudflapth objects are built in this subdirectory
11333 mkdir pth
11337 for ac_header in pthread.h
11339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11341 echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11348 else
11349 # Is the header compilable?
11350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_header_compiler=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_header_compiler=no
11390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11392 echo "${ECHO_T}$ac_header_compiler" >&6
11394 # Is the header present?
11395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h. */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 #include <$ac_header>
11404 _ACEOF
11405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } >/dev/null; then
11413 if test -s conftest.err; then
11414 ac_cpp_err=$ac_c_preproc_warn_flag
11415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416 else
11417 ac_cpp_err=
11419 else
11420 ac_cpp_err=yes
11422 if test -z "$ac_cpp_err"; then
11423 ac_header_preproc=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_header_preproc=no
11430 rm -f conftest.err conftest.$ac_ext
11431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11432 echo "${ECHO_T}$ac_header_preproc" >&6
11434 # So? What about this header?
11435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11436 yes:no: )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11441 ac_header_preproc=yes
11443 no:yes:* )
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457 cat <<\_ASBOX
11458 ## ------------------------------------- ##
11459 ## Report this to the libmudflap lists. ##
11460 ## ------------------------------------- ##
11461 _ASBOX
11463 sed "s/^/$as_me: WARNING: /" >&2
11465 esac
11466 echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 eval "$as_ac_Header=\$ac_header_preproc"
11473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 _ACEOF
11484 done
11487 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11488 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11489 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11490 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11491 echo "${ECHO_T}$target_thread_file" >&6
11493 # We only support posix threads, or no threads at all.
11494 posix_threads=
11495 case ${target_thread_file} in
11496 posix)
11497 posix_threads=yes
11499 single)
11502 echo "${target_thread_file} is an unsupported thread package" 1>&2
11503 exit 1
11505 esac
11509 if test "x$posix_threads" != "x"; then
11510 LIBMUDFLAPTH_TRUE=
11511 LIBMUDFLAPTH_FALSE='#'
11512 else
11513 LIBMUDFLAPTH_TRUE='#'
11514 LIBMUDFLAPTH_FALSE=
11517 if test "x$posix_threads" != "x"
11518 then
11519 build_libmudflapth=1
11520 else
11521 build_libmudflapth=0
11526 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11527 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11528 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-ldl $LIBS"
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11540 /* Override any gcc2 internal prototype to avoid an error. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 /* We use char because int might match the return type of a gcc2
11545 builtin and then its argument prototype would still apply. */
11546 char dlsym ();
11548 main ()
11550 dlsym ();
11552 return 0;
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11557 (eval $ac_link) 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag"
11565 || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try='test -s conftest$ac_exeext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_cv_lib_dl_dlsym=yes
11578 else
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_cv_lib_dl_dlsym=no
11584 rm -f conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11588 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11589 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11590 if test $ac_cv_lib_dl_dlsym = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define HAVE_LIBDL 1
11593 _ACEOF
11595 LIBS="-ldl $LIBS"
11600 # Calculate toolexeclibdir
11601 # Also toolexecdir, though it's only used in toolexeclibdir
11602 case ${version_specific_libs} in
11603 yes)
11604 # Need the gcc compiler version to know where to install libraries
11605 # and header files if --enable-version-specific-runtime-libs option
11606 # is selected.
11607 toolexecdir='$(libdir)/gcc/$(target_alias)'
11608 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11611 if test -n "$with_cross_host" &&
11612 test x"$with_cross_host" != x"no"; then
11613 # Install a library built with a cross compiler in tooldir, not libdir.
11614 toolexecdir='$(exec_prefix)/$(target_alias)'
11615 toolexeclibdir='$(toolexecdir)/lib'
11616 else
11617 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11618 toolexeclibdir='$(libdir)'
11620 multi_os_directory=`$CC -print-multi-os-directory`
11621 case $multi_os_directory in
11622 .) ;; # Avoid trailing /.
11623 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11624 esac
11626 esac
11630 includedir=${toolexecdir}/include
11633 pthread_create_version='""'
11634 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11635 # NB: don't check for -lpthread here, because then it would be
11636 # added to LIBS. For the thread-unaware libmudflap.la, we don't
11637 # want it there.
11639 # glibc-related hacks. dlsym() may pick the wrong version of
11640 # interposed functions like pthread_create on modern glibc.
11641 # We need to find the proper symbol version string, and use
11642 # the nonstandard dlvsym().
11644 for ac_func in dlvsym
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11649 if eval "test \"\${$as_ac_var+set}\" = set"; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11660 #define $ac_func innocuous_$ac_func
11662 /* System header to define __stub macros and hopefully few prototypes,
11663 which can conflict with char $ac_func (); below.
11664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665 <limits.h> exists even on freestanding compilers. */
11667 #ifdef __STDC__
11668 # include <limits.h>
11669 #else
11670 # include <assert.h>
11671 #endif
11673 #undef $ac_func
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 #ifdef __cplusplus
11677 extern "C"
11679 #endif
11680 /* We use char because int might match the return type of a gcc2
11681 builtin and then its argument prototype would still apply. */
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11687 choke me
11688 #else
11689 char (*f) () = $ac_func;
11690 #endif
11691 #ifdef __cplusplus
11693 #endif
11696 main ()
11698 return f != $ac_func;
11700 return 0;
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705 (eval $ac_link) 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag"
11713 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 eval "$as_ac_var=yes"
11726 else
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11732 rm -f conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740 _ACEOF
11743 done
11745 if test -n "$ac_tool_prefix"; then
11746 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11747 set dummy ${ac_tool_prefix}nm; ac_word=$2
11748 echo "$as_me:$LINENO: checking for $ac_word" >&5
11749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11750 if test "${ac_cv_prog_NM+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 if test -n "$NM"; then
11754 ac_cv_prog_NM="$NM" # Let the user override the test.
11755 else
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 for as_dir in $PATH
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11763 ac_cv_prog_NM="${ac_tool_prefix}nm"
11764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11767 done
11768 done
11772 NM=$ac_cv_prog_NM
11773 if test -n "$NM"; then
11774 echo "$as_me:$LINENO: result: $NM" >&5
11775 echo "${ECHO_T}$NM" >&6
11776 else
11777 echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6
11782 if test -z "$ac_cv_prog_NM"; then
11783 ac_ct_NM=$NM
11784 # Extract the first word of "nm", so it can be a program name with args.
11785 set dummy nm; ac_word=$2
11786 echo "$as_me:$LINENO: checking for $ac_word" >&5
11787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11788 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 if test -n "$ac_ct_NM"; then
11792 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11793 else
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801 ac_cv_prog_ac_ct_NM="nm"
11802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11805 done
11806 done
11810 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11811 if test -n "$ac_ct_NM"; then
11812 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11813 echo "${ECHO_T}$ac_ct_NM" >&6
11814 else
11815 echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6
11819 NM=$ac_ct_NM
11820 else
11821 NM="$ac_cv_prog_NM"
11824 if test "x$ac_cv_have_dlvsym" != "x"; then
11825 # Try compiling a simple pthreads program. Find the shared libraries it
11826 # ends up with. Then use "nm" on those libraries to extract the
11827 # default symbol versioning suffix ("@@"), if any. But that's tricky.
11828 # Rather, run nm on the resulting executable. Unfortunately, autoconf
11829 # doesn't appear to have a macro that builds a test executable for
11830 # subsequent analysis ... so we do it by hand here.
11831 cat >> conftest.c << EOF
11832 #include <pthread.h>
11833 int main () { void *p = (void *) & pthread_create; return (int) p; }
11835 oldLIBS="$LIBS"
11836 LIBS="$LIBS -lpthread"
11837 pthread_create_version="\"\""
11838 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11839 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11840 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11841 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11842 if test "x$version" != "x"; then
11843 pthread_create_version="\"$version\""
11846 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11847 echo "${ECHO_T}$pthread_create_version" >&6
11848 LIBS="$oldLIBS"
11852 cat >>confdefs.h <<_ACEOF
11853 #define PTHREAD_CREATE_VERSION $pthread_create_version
11854 _ACEOF
11858 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11859 # similarly to how libstdc++ does it
11860 ac_test_CFLAGS="${CFLAGS+set}"
11861 ac_save_CFLAGS="$CFLAGS"
11863 # Check for -ffunction-sections -fdata-sections
11864 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11865 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11866 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11875 main ()
11877 int foo;
11879 return 0;
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag"
11892 || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_fdsections=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_fdsections=no
11911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 if test "$ac_test_CFLAGS" = set; then
11913 CFLAGS="$ac_save_CFLAGS"
11914 else
11915 # this is the suspicious part
11916 CFLAGS=""
11918 if test x"$ac_fdsections" = x"yes"; then
11919 SECTION_FLAGS='-ffunction-sections -fdata-sections'
11921 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11922 echo "${ECHO_T}$ac_fdsections" >&6
11926 # Check for the name of the symbol used for the entry point.
11927 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11928 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11929 if test "${mudflap_cv_entry_point+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11933 for name in _start __start unknown; do
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 extern char $name[];
11942 main ()
11944 $name[0] = 0;
11946 return 0;
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag"
11959 || test ! -s conftest.err'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 break
11972 else
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 done
11980 mudflap_cv_entry_point="$name"
11982 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
11983 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
11984 if test "$mudflap_cv_entry_point" = unknown; then
11985 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
11986 echo "$as_me: error: none of the known symbol names works" >&2;}
11987 { (exit 1); exit 1; }; }
11990 cat >>confdefs.h <<_ACEOF
11991 #define ENTRY_POINT $mudflap_cv_entry_point
11992 _ACEOF
11996 if test ${multilib} = yes; then
11997 multilib_arg="--enable-multilib"
11998 else
11999 multilib_arg=
12002 # See if we support thread-local storage.
12004 # Check whether --enable-tls or --disable-tls was given.
12005 if test "${enable_tls+set}" = set; then
12006 enableval="$enable_tls"
12008 case "$enableval" in
12009 yes|no) ;;
12010 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12011 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12012 { (exit 1); exit 1; }; } ;;
12013 esac
12015 else
12016 enable_tls=yes
12019 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12020 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12021 if test "${have_tls+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12025 if test "$cross_compiling" = yes; then
12026 cat >conftest.$ac_ext <<_ACEOF
12027 __thread int a; int b; int main() { return a = b; }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 have_tls=yes
12052 else
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 have_tls=no
12058 rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12062 else
12063 cat >conftest.$ac_ext <<_ACEOF
12064 __thread int a; int b; int main() { return a = b; }
12065 _ACEOF
12066 rm -f conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 chktls_save_LDFLAGS="$LDFLAGS"
12078 LDFLAGS="-static $LDFLAGS"
12079 cat >conftest.$ac_ext <<_ACEOF
12080 int main() { return 0; }
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084 (eval $ac_link) 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag"
12092 || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 if test "$cross_compiling" = yes; then
12105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12106 See \`config.log' for more details." >&5
12107 echo "$as_me: error: cannot run test program while cross compiling
12108 See \`config.log' for more details." >&2;}
12109 { (exit 1); exit 1; }; }
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 __thread int a; int b; int main() { return a = b; }
12113 _ACEOF
12114 rm -f conftest$ac_exeext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12116 (eval $ac_link) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 have_tls=yes
12126 else
12127 echo "$as_me: program exited with status $ac_status" >&5
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ( exit $ac_status )
12132 have_tls=no
12134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 have_tls=yes
12142 rm -f conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144 LDFLAGS="$chktls_save_LDFLAGS"
12145 if test $have_tls = yes; then
12146 chktls_save_CFLAGS="$CFLAGS"
12147 thread_CFLAGS=failed
12148 for flag in '' '-pthread' '-lpthread'; do
12149 CFLAGS="$flag $chktls_save_CFLAGS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 #include <pthread.h>
12157 void *g(void *d) { return NULL; }
12159 main ()
12161 pthread_t t; pthread_create(&t,NULL,g,NULL);
12163 return 0;
12165 _ACEOF
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag"
12176 || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 thread_CFLAGS="$flag"
12189 else
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12194 rm -f conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 if test "X$thread_CFLAGS" != Xfailed; then
12197 break
12199 done
12200 CFLAGS="$chktls_save_CFLAGS"
12201 if test "X$thread_CFLAGS" != Xfailed; then
12202 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12203 if test "$cross_compiling" = yes; then
12204 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12205 See \`config.log' for more details." >&5
12206 echo "$as_me: error: cannot run test program while cross compiling
12207 See \`config.log' for more details." >&2;}
12208 { (exit 1); exit 1; }; }
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <pthread.h>
12217 __thread int a;
12218 static int *a_in_other_thread;
12219 static void *
12220 thread_func (void *arg)
12222 a_in_other_thread = &a;
12223 return (void *)0;
12226 main ()
12228 pthread_t thread;
12229 void *thread_retval;
12230 int *a_in_main_thread;
12231 if (pthread_create (&thread, (pthread_attr_t *)0,
12232 thread_func, (void *)0))
12233 return 0;
12234 a_in_main_thread = &a;
12235 if (pthread_join (thread, &thread_retval))
12236 return 0;
12237 return (a_in_other_thread == a_in_main_thread);
12239 return 0;
12241 _ACEOF
12242 rm -f conftest$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 have_tls=yes
12254 else
12255 echo "$as_me: program exited with status $ac_status" >&5
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ( exit $ac_status )
12260 have_tls=no
12262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12264 CFLAGS="$chktls_save_CFLAGS"
12267 else
12268 echo "$as_me: program exited with status $ac_status" >&5
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ( exit $ac_status )
12273 have_tls=no
12275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12278 echo "$as_me:$LINENO: result: $have_tls" >&5
12279 echo "${ECHO_T}$have_tls" >&6
12280 if test "$enable_tls $have_tls" = "yes yes"; then
12282 cat >>confdefs.h <<\_ACEOF
12283 #define HAVE_TLS 1
12284 _ACEOF
12288 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12290 cat >confcache <<\_ACEOF
12291 # This file is a shell script that caches the results of configure
12292 # tests run on this system so they can be shared between configure
12293 # scripts and configure runs, see configure's option --config-cache.
12294 # It is not useful on other systems. If it contains results you don't
12295 # want to keep, you may remove or edit it.
12297 # config.status only pays attention to the cache file if you give it
12298 # the --recheck option to rerun configure.
12300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12302 # following values.
12304 _ACEOF
12306 # The following way of writing the cache mishandles newlines in values,
12307 # but we know of no workaround that is simple, portable, and efficient.
12308 # So, don't put newlines in cache variables' values.
12309 # Ultrix sh set writes to stderr and can't be redirected directly,
12310 # and sets the high bit in the cache file unless we assign to the vars.
12312 (set) 2>&1 |
12313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12314 *ac_space=\ *)
12315 # `set' does not quote correctly, so add quotes (double-quote
12316 # substitution turns \\\\ into \\, and sed turns \\ into \).
12317 sed -n \
12318 "s/'/'\\\\''/g;
12319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12322 # `set' quotes correctly as required by POSIX, so do not add quotes.
12323 sed -n \
12324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12326 esac;
12328 sed '
12329 t clear
12330 : clear
12331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12332 t end
12333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12334 : end' >>confcache
12335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12336 if test -w $cache_file; then
12337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12338 cat confcache >$cache_file
12339 else
12340 echo "not updating unwritable cache $cache_file"
12343 rm -f confcache
12345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12346 # Let make expand exec_prefix.
12347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12351 # trailing colons and then remove the whole line if VPATH becomes empty
12352 # (actually we leave an empty line to preserve line numbers).
12353 if test "x$srcdir" = x.; then
12354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12355 s/:*\$(srcdir):*/:/;
12356 s/:*\${srcdir}:*/:/;
12357 s/:*@srcdir@:*/:/;
12358 s/^\([^=]*=[ ]*\):*/\1/;
12359 s/:*$//;
12360 s/^[^=]*=[ ]*$//;
12364 DEFS=-DHAVE_CONFIG_H
12366 ac_libobjs=
12367 ac_ltlibobjs=
12368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12369 # 1. Remove the extension, and $U if already installed.
12370 ac_i=`echo "$ac_i" |
12371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12372 # 2. Add them.
12373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12375 done
12376 LIBOBJS=$ac_libobjs
12378 LTLIBOBJS=$ac_ltlibobjs
12381 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12382 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12383 Usually this means the macro was only invoked conditionally." >&5
12384 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12385 Usually this means the macro was only invoked conditionally." >&2;}
12386 { (exit 1); exit 1; }; }
12388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12389 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12390 Usually this means the macro was only invoked conditionally." >&5
12391 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12392 Usually this means the macro was only invoked conditionally." >&2;}
12393 { (exit 1); exit 1; }; }
12395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12397 Usually this means the macro was only invoked conditionally." >&5
12398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12399 Usually this means the macro was only invoked conditionally." >&2;}
12400 { (exit 1); exit 1; }; }
12402 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12403 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12404 Usually this means the macro was only invoked conditionally." >&5
12405 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12406 Usually this means the macro was only invoked conditionally." >&2;}
12407 { (exit 1); exit 1; }; }
12410 : ${CONFIG_STATUS=./config.status}
12411 ac_clean_files_save=$ac_clean_files
12412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12415 cat >$CONFIG_STATUS <<_ACEOF
12416 #! $SHELL
12417 # Generated by $as_me.
12418 # Run this file to recreate the current configuration.
12419 # Compiler output produced by configure, useful for debugging
12420 # configure, is in config.log if it exists.
12422 debug=false
12423 ac_cs_recheck=false
12424 ac_cs_silent=false
12425 SHELL=\${CONFIG_SHELL-$SHELL}
12426 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF
12429 ## --------------------- ##
12430 ## M4sh Initialization. ##
12431 ## --------------------- ##
12433 # Be Bourne compatible
12434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12435 emulate sh
12436 NULLCMD=:
12437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12438 # is contrary to our usage. Disable this feature.
12439 alias -g '${1+"$@"}'='"$@"'
12440 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12441 set -o posix
12443 DUALCASE=1; export DUALCASE # for MKS sh
12445 # Support unset when possible.
12446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12447 as_unset=unset
12448 else
12449 as_unset=false
12453 # Work around bugs in pre-3.0 UWIN ksh.
12454 $as_unset ENV MAIL MAILPATH
12455 PS1='$ '
12456 PS2='> '
12457 PS4='+ '
12459 # NLS nuisances.
12460 for as_var in \
12461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12463 LC_TELEPHONE LC_TIME
12465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12466 eval $as_var=C; export $as_var
12467 else
12468 $as_unset $as_var
12470 done
12472 # Required to use basename.
12473 if expr a : '\(a\)' >/dev/null 2>&1; then
12474 as_expr=expr
12475 else
12476 as_expr=false
12479 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12480 as_basename=basename
12481 else
12482 as_basename=false
12486 # Name of the executable.
12487 as_me=`$as_basename "$0" ||
12488 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12489 X"$0" : 'X\(//\)$' \| \
12490 X"$0" : 'X\(/\)$' \| \
12491 . : '\(.\)' 2>/dev/null ||
12492 echo X/"$0" |
12493 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12494 /^X\/\(\/\/\)$/{ s//\1/; q; }
12495 /^X\/\(\/\).*/{ s//\1/; q; }
12496 s/.*/./; q'`
12499 # PATH needs CR, and LINENO needs CR and PATH.
12500 # Avoid depending upon Character Ranges.
12501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12504 as_cr_digits='0123456789'
12505 as_cr_alnum=$as_cr_Letters$as_cr_digits
12507 # The user is always right.
12508 if test "${PATH_SEPARATOR+set}" != set; then
12509 echo "#! /bin/sh" >conf$$.sh
12510 echo "exit 0" >>conf$$.sh
12511 chmod +x conf$$.sh
12512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12513 PATH_SEPARATOR=';'
12514 else
12515 PATH_SEPARATOR=:
12517 rm -f conf$$.sh
12521 as_lineno_1=$LINENO
12522 as_lineno_2=$LINENO
12523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12524 test "x$as_lineno_1" != "x$as_lineno_2" &&
12525 test "x$as_lineno_3" = "x$as_lineno_2" || {
12526 # Find who we are. Look in the path if we contain no path at all
12527 # relative or not.
12528 case $0 in
12529 *[\\/]* ) as_myself=$0 ;;
12530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12536 done
12539 esac
12540 # We did not find ourselves, most probably we were run as `sh COMMAND'
12541 # in which case we are not to be found in the path.
12542 if test "x$as_myself" = x; then
12543 as_myself=$0
12545 if test ! -f "$as_myself"; then
12546 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12547 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12548 { (exit 1); exit 1; }; }
12550 case $CONFIG_SHELL in
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for as_base in sh bash ksh sh5; do
12558 case $as_dir in
12560 if ("$as_dir/$as_base" -c '
12561 as_lineno_1=$LINENO
12562 as_lineno_2=$LINENO
12563 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12564 test "x$as_lineno_1" != "x$as_lineno_2" &&
12565 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12566 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12567 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12568 CONFIG_SHELL=$as_dir/$as_base
12569 export CONFIG_SHELL
12570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12571 fi;;
12572 esac
12573 done
12574 done
12576 esac
12578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12579 # uniformly replaced by the line number. The first 'sed' inserts a
12580 # line-number line before each line; the second 'sed' does the real
12581 # work. The second script uses 'N' to pair each line-number line
12582 # with the numbered line, and appends trailing '-' during
12583 # substitution so that $LINENO is not a special case at line end.
12584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12586 sed '=' <$as_myself |
12587 sed '
12589 s,$,-,
12590 : loop
12591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12592 t loop
12593 s,-$,,
12594 s,^['$as_cr_digits']*\n,,
12595 ' >$as_me.lineno &&
12596 chmod +x $as_me.lineno ||
12597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12598 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12599 { (exit 1); exit 1; }; }
12601 # Don't try to exec as it changes $[0], causing all sort of problems
12602 # (the dirname of $[0] is not the place where we might find the
12603 # original and so on. Autoconf is especially sensible to this).
12604 . ./$as_me.lineno
12605 # Exit status is that of the last command.
12606 exit
12610 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12611 *c*,-n*) ECHO_N= ECHO_C='
12612 ' ECHO_T=' ' ;;
12613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12615 esac
12617 if expr a : '\(a\)' >/dev/null 2>&1; then
12618 as_expr=expr
12619 else
12620 as_expr=false
12623 rm -f conf$$ conf$$.exe conf$$.file
12624 echo >conf$$.file
12625 if ln -s conf$$.file conf$$ 2>/dev/null; then
12626 # We could just check for DJGPP; but this test a) works b) is more generic
12627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12628 if test -f conf$$.exe; then
12629 # Don't use ln at all; we don't have any links
12630 as_ln_s='cp -p'
12631 else
12632 as_ln_s='ln -s'
12634 elif ln conf$$.file conf$$ 2>/dev/null; then
12635 as_ln_s=ln
12636 else
12637 as_ln_s='cp -p'
12639 rm -f conf$$ conf$$.exe conf$$.file
12641 if mkdir -p . 2>/dev/null; then
12642 as_mkdir_p=:
12643 else
12644 test -d ./-p && rmdir ./-p
12645 as_mkdir_p=false
12648 as_executable_p="test -f"
12650 # Sed expression to map a string onto a valid CPP name.
12651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12653 # Sed expression to map a string onto a valid variable name.
12654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12657 # IFS
12658 # We need space, tab and new line, in precisely that order.
12659 as_nl='
12661 IFS=" $as_nl"
12663 # CDPATH.
12664 $as_unset CDPATH
12666 exec 6>&1
12668 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12669 # report actual input values of CONFIG_FILES etc. instead of their
12670 # values after options handling. Logging --version etc. is OK.
12671 exec 5>>config.log
12673 echo
12674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12675 ## Running $as_me. ##
12676 _ASBOX
12677 } >&5
12678 cat >&5 <<_CSEOF
12680 This file was extended by libmudflap $as_me 1.0, which was
12681 generated by GNU Autoconf 2.59. Invocation command line was
12683 CONFIG_FILES = $CONFIG_FILES
12684 CONFIG_HEADERS = $CONFIG_HEADERS
12685 CONFIG_LINKS = $CONFIG_LINKS
12686 CONFIG_COMMANDS = $CONFIG_COMMANDS
12687 $ $0 $@
12689 _CSEOF
12690 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12691 echo >&5
12692 _ACEOF
12694 # Files that config.status was made for.
12695 if test -n "$ac_config_files"; then
12696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12699 if test -n "$ac_config_headers"; then
12700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12703 if test -n "$ac_config_links"; then
12704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12707 if test -n "$ac_config_commands"; then
12708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12711 cat >>$CONFIG_STATUS <<\_ACEOF
12713 ac_cs_usage="\
12714 \`$as_me' instantiates files from templates according to the
12715 current configuration.
12717 Usage: $0 [OPTIONS] [FILE]...
12719 -h, --help print this help, then exit
12720 -V, --version print version number, then exit
12721 -q, --quiet do not print progress messages
12722 -d, --debug don't remove temporary files
12723 --recheck update $as_me by reconfiguring in the same conditions
12724 --file=FILE[:TEMPLATE]
12725 instantiate the configuration file FILE
12726 --header=FILE[:TEMPLATE]
12727 instantiate the configuration header FILE
12729 Configuration files:
12730 $config_files
12732 Configuration headers:
12733 $config_headers
12735 Configuration commands:
12736 $config_commands
12738 Report bugs to <bug-autoconf@gnu.org>."
12739 _ACEOF
12741 cat >>$CONFIG_STATUS <<_ACEOF
12742 ac_cs_version="\\
12743 libmudflap config.status 1.0
12744 configured by $0, generated by GNU Autoconf 2.59,
12745 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12747 Copyright (C) 2003 Free Software Foundation, Inc.
12748 This config.status script is free software; the Free Software Foundation
12749 gives unlimited permission to copy, distribute and modify it."
12750 srcdir=$srcdir
12751 INSTALL="$INSTALL"
12752 _ACEOF
12754 cat >>$CONFIG_STATUS <<\_ACEOF
12755 # If no file are specified by the user, then we need to provide default
12756 # value. By we need to know if files were specified by the user.
12757 ac_need_defaults=:
12758 while test $# != 0
12760 case $1 in
12761 --*=*)
12762 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12763 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12764 ac_shift=:
12767 ac_option=$1
12768 ac_optarg=$2
12769 ac_shift=shift
12771 *) # This is not an option, so the user has probably given explicit
12772 # arguments.
12773 ac_option=$1
12774 ac_need_defaults=false;;
12775 esac
12777 case $ac_option in
12778 # Handling of the options.
12779 _ACEOF
12780 cat >>$CONFIG_STATUS <<\_ACEOF
12781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12782 ac_cs_recheck=: ;;
12783 --version | --vers* | -V )
12784 echo "$ac_cs_version"; exit 0 ;;
12785 --he | --h)
12786 # Conflict between --help and --header
12787 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12788 Try \`$0 --help' for more information." >&5
12789 echo "$as_me: error: ambiguous option: $1
12790 Try \`$0 --help' for more information." >&2;}
12791 { (exit 1); exit 1; }; };;
12792 --help | --hel | -h )
12793 echo "$ac_cs_usage"; exit 0 ;;
12794 --debug | --d* | -d )
12795 debug=: ;;
12796 --file | --fil | --fi | --f )
12797 $ac_shift
12798 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12799 ac_need_defaults=false;;
12800 --header | --heade | --head | --hea )
12801 $ac_shift
12802 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12803 ac_need_defaults=false;;
12804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12806 ac_cs_silent=: ;;
12808 # This is an error.
12809 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12810 Try \`$0 --help' for more information." >&5
12811 echo "$as_me: error: unrecognized option: $1
12812 Try \`$0 --help' for more information." >&2;}
12813 { (exit 1); exit 1; }; } ;;
12815 *) ac_config_targets="$ac_config_targets $1" ;;
12817 esac
12818 shift
12819 done
12821 ac_configure_extra_args=
12823 if $ac_cs_silent; then
12824 exec 6>/dev/null
12825 ac_configure_extra_args="$ac_configure_extra_args --silent"
12828 _ACEOF
12829 cat >>$CONFIG_STATUS <<_ACEOF
12830 if \$ac_cs_recheck; then
12831 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12832 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12835 _ACEOF
12837 cat >>$CONFIG_STATUS <<_ACEOF
12839 # INIT-COMMANDS section.
12843 srcdir="$srcdir"
12844 host="$host"
12845 target="$target"
12846 with_multisubdir="$with_multisubdir"
12847 with_multisrctop="$with_multisrctop"
12848 with_target_subdir="$with_target_subdir"
12849 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12850 multi_basedir="$multi_basedir"
12851 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12852 CC="$CC"
12853 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12856 # The HP-UX ksh and POSIX shell print the target directory to stdout
12857 # if CDPATH is set.
12858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12860 sed_quote_subst='$sed_quote_subst'
12861 double_quote_subst='$double_quote_subst'
12862 delay_variable_subst='$delay_variable_subst'
12863 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12864 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12865 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12866 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12867 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12868 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12869 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12870 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12871 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12872 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12873 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12874 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12875 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12876 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12877 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12878 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12879 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12880 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12881 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12882 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12883 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12884 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12885 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12886 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12887 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12888 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12889 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12890 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12891 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12892 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12893 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12894 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12895 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12896 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12897 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12898 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12899 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12900 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12901 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12902 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12903 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12904 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12905 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12906 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12907 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12908 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12909 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12910 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12911 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12912 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12913 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12914 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12915 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12916 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12917 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12918 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12919 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12920 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12921 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12922 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12923 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12924 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12925 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12926 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12927 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12928 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12929 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12930 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12931 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12932 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12933 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12934 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12935 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12936 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12937 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12938 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12939 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12940 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12941 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12942 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12943 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12944 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12945 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12946 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12948 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12949 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12950 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12951 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12952 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12953 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12954 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12955 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12956 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12957 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12958 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12959 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12960 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12961 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12962 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12963 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12964 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12965 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12966 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12967 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12968 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12969 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12970 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12971 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12972 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12973 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12975 LTCC='$LTCC'
12976 LTCFLAGS='$LTCFLAGS'
12977 compiler='$compiler_DEFAULT'
12979 # Quote evaled strings.
12980 for var in SED \
12981 GREP \
12982 EGREP \
12983 FGREP \
12984 LD \
12985 NM \
12986 LN_S \
12987 lt_SP2NL \
12988 lt_NL2SP \
12989 reload_flag \
12990 deplibs_check_method \
12991 file_magic_cmd \
12992 AR \
12993 AR_FLAGS \
12994 STRIP \
12995 RANLIB \
12996 CC \
12997 CFLAGS \
12998 compiler \
12999 lt_cv_sys_global_symbol_pipe \
13000 lt_cv_sys_global_symbol_to_cdecl \
13001 lt_cv_sys_global_symbol_to_c_name_address \
13002 SHELL \
13003 ECHO \
13004 lt_prog_compiler_no_builtin_flag \
13005 lt_prog_compiler_wl \
13006 lt_prog_compiler_pic \
13007 lt_prog_compiler_static \
13008 lt_cv_prog_compiler_c_o \
13009 need_locks \
13010 shrext_cmds \
13011 export_dynamic_flag_spec \
13012 whole_archive_flag_spec \
13013 compiler_needs_object \
13014 with_gnu_ld \
13015 allow_undefined_flag \
13016 no_undefined_flag \
13017 hardcode_libdir_flag_spec \
13018 hardcode_libdir_flag_spec_ld \
13019 hardcode_libdir_separator \
13020 fix_srcfile_path \
13021 exclude_expsyms \
13022 include_expsyms \
13023 file_list_spec \
13024 variables_saved_for_relink \
13025 libname_spec \
13026 library_names_spec \
13027 soname_spec \
13028 finish_eval \
13029 old_striplib \
13030 striplib; do
13031 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13032 *[\\\\\\\`\\"\\\$]*)
13033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13038 esac
13039 done
13041 # Double-quote double-evaled strings.
13042 for var in reload_cmds \
13043 old_postinstall_cmds \
13044 old_postuninstall_cmds \
13045 old_archive_cmds \
13046 extract_expsyms_cmds \
13047 old_archive_from_new_cmds \
13048 old_archive_from_expsyms_cmds \
13049 archive_cmds \
13050 archive_expsym_cmds \
13051 module_cmds \
13052 module_expsym_cmds \
13053 export_symbols_cmds \
13054 prelink_cmds \
13055 postinstall_cmds \
13056 postuninstall_cmds \
13057 finish_cmds \
13058 sys_lib_search_path_spec \
13059 sys_lib_dlsearch_path_spec; do
13060 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13061 *[\\\\\\\`\\"\\\$]*)
13062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13067 esac
13068 done
13070 # Fix-up fallback echo if it was mangled by the above quoting rules.
13071 case \$lt_ECHO in
13072 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13074 esac
13076 ac_aux_dir='$ac_aux_dir'
13077 xsi_shell='$xsi_shell'
13078 lt_shell_append='$lt_shell_append'
13080 # See if we are running on zsh, and set the options which allow our
13081 # commands through without removal of \ escapes INIT.
13082 if test -n "\${ZSH_VERSION+set}" ; then
13083 setopt NO_GLOB_SUBST
13087 PACKAGE='$PACKAGE'
13088 VERSION='$VERSION'
13089 TIMESTAMP='$TIMESTAMP'
13090 RM='$RM'
13091 ofile='$ofile'
13096 _ACEOF
13100 cat >>$CONFIG_STATUS <<\_ACEOF
13101 for ac_config_target in $ac_config_targets
13103 case "$ac_config_target" in
13104 # Handling of arguments.
13105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13106 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13107 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13108 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13109 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13110 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13111 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13112 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13113 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13114 { (exit 1); exit 1; }; };;
13115 esac
13116 done
13118 # If the user did not use the arguments to specify the items to instantiate,
13119 # then the envvar interface is used. Set only those that are not.
13120 # We use the long form for the default assignment because of an extremely
13121 # bizarre bug on SunOS 4.1.3.
13122 if $ac_need_defaults; then
13123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13128 # Have a temporary directory for convenience. Make it in the build tree
13129 # simply because there is no reason to put it here, and in addition,
13130 # creating and moving files from /tmp can sometimes cause problems.
13131 # Create a temporary directory, and hook for its removal unless debugging.
13132 $debug ||
13134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13135 trap '{ (exit 1); exit 1; }' 1 2 13 15
13138 # Create a (secure) tmp directory for tmp files.
13141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13142 test -n "$tmp" && test -d "$tmp"
13143 } ||
13145 tmp=./confstat$$-$RANDOM
13146 (umask 077 && mkdir $tmp)
13147 } ||
13149 echo "$me: cannot create a temporary directory in ." >&2
13150 { (exit 1); exit 1; }
13153 _ACEOF
13155 cat >>$CONFIG_STATUS <<_ACEOF
13158 # CONFIG_FILES section.
13161 # No need to generate the scripts if there are no CONFIG_FILES.
13162 # This happens for instance when ./config.status config.h
13163 if test -n "\$CONFIG_FILES"; then
13164 # Protect against being on the right side of a sed subst in config.status.
13165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13167 s,@SHELL@,$SHELL,;t t
13168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13174 s,@exec_prefix@,$exec_prefix,;t t
13175 s,@prefix@,$prefix,;t t
13176 s,@program_transform_name@,$program_transform_name,;t t
13177 s,@bindir@,$bindir,;t t
13178 s,@sbindir@,$sbindir,;t t
13179 s,@libexecdir@,$libexecdir,;t t
13180 s,@datadir@,$datadir,;t t
13181 s,@sysconfdir@,$sysconfdir,;t t
13182 s,@sharedstatedir@,$sharedstatedir,;t t
13183 s,@localstatedir@,$localstatedir,;t t
13184 s,@libdir@,$libdir,;t t
13185 s,@includedir@,$includedir,;t t
13186 s,@oldincludedir@,$oldincludedir,;t t
13187 s,@infodir@,$infodir,;t t
13188 s,@mandir@,$mandir,;t t
13189 s,@build_alias@,$build_alias,;t t
13190 s,@host_alias@,$host_alias,;t t
13191 s,@target_alias@,$target_alias,;t t
13192 s,@DEFS@,$DEFS,;t t
13193 s,@ECHO_C@,$ECHO_C,;t t
13194 s,@ECHO_N@,$ECHO_N,;t t
13195 s,@ECHO_T@,$ECHO_T,;t t
13196 s,@LIBS@,$LIBS,;t t
13197 s,@build@,$build,;t t
13198 s,@build_cpu@,$build_cpu,;t t
13199 s,@build_vendor@,$build_vendor,;t t
13200 s,@build_os@,$build_os,;t t
13201 s,@host@,$host,;t t
13202 s,@host_cpu@,$host_cpu,;t t
13203 s,@host_vendor@,$host_vendor,;t t
13204 s,@host_os@,$host_os,;t t
13205 s,@target@,$target,;t t
13206 s,@target_cpu@,$target_cpu,;t t
13207 s,@target_vendor@,$target_vendor,;t t
13208 s,@target_os@,$target_os,;t t
13209 s,@target_noncanonical@,$target_noncanonical,;t t
13210 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13211 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13212 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13213 s,@CYGPATH_W@,$CYGPATH_W,;t t
13214 s,@PACKAGE@,$PACKAGE,;t t
13215 s,@VERSION@,$VERSION,;t t
13216 s,@ACLOCAL@,$ACLOCAL,;t t
13217 s,@AUTOCONF@,$AUTOCONF,;t t
13218 s,@AUTOMAKE@,$AUTOMAKE,;t t
13219 s,@AUTOHEADER@,$AUTOHEADER,;t t
13220 s,@MAKEINFO@,$MAKEINFO,;t t
13221 s,@install_sh@,$install_sh,;t t
13222 s,@STRIP@,$STRIP,;t t
13223 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13224 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13225 s,@mkdir_p@,$mkdir_p,;t t
13226 s,@AWK@,$AWK,;t t
13227 s,@SET_MAKE@,$SET_MAKE,;t t
13228 s,@am__leading_dot@,$am__leading_dot,;t t
13229 s,@AMTAR@,$AMTAR,;t t
13230 s,@am__tar@,$am__tar,;t t
13231 s,@am__untar@,$am__untar,;t t
13232 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13233 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13234 s,@MAINT@,$MAINT,;t t
13235 s,@multi_basedir@,$multi_basedir,;t t
13236 s,@CC@,$CC,;t t
13237 s,@ac_ct_CC@,$ac_ct_CC,;t t
13238 s,@EXEEXT@,$EXEEXT,;t t
13239 s,@OBJEXT@,$OBJEXT,;t t
13240 s,@DEPDIR@,$DEPDIR,;t t
13241 s,@am__include@,$am__include,;t t
13242 s,@am__quote@,$am__quote,;t t
13243 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13244 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13245 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13246 s,@CCDEPMODE@,$CCDEPMODE,;t t
13247 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13248 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13249 s,@CFLAGS@,$CFLAGS,;t t
13250 s,@CPP@,$CPP,;t t
13251 s,@CPPFLAGS@,$CPPFLAGS,;t t
13252 s,@EGREP@,$EGREP,;t t
13253 s,@LIBTOOL@,$LIBTOOL,;t t
13254 s,@SED@,$SED,;t t
13255 s,@FGREP@,$FGREP,;t t
13256 s,@GREP@,$GREP,;t t
13257 s,@LD@,$LD,;t t
13258 s,@DUMPBIN@,$DUMPBIN,;t t
13259 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13260 s,@NM@,$NM,;t t
13261 s,@LN_S@,$LN_S,;t t
13262 s,@AR@,$AR,;t t
13263 s,@ac_ct_AR@,$ac_ct_AR,;t t
13264 s,@RANLIB@,$RANLIB,;t t
13265 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13266 s,@lt_ECHO@,$lt_ECHO,;t t
13267 s,@enable_shared@,$enable_shared,;t t
13268 s,@enable_static@,$enable_static,;t t
13269 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13270 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13271 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13272 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13273 s,@build_libmudflapth@,$build_libmudflapth,;t t
13274 s,@toolexecdir@,$toolexecdir,;t t
13275 s,@toolexeclibdir@,$toolexeclibdir,;t t
13276 s,@ac_ct_NM@,$ac_ct_NM,;t t
13277 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13278 s,@LIBOBJS@,$LIBOBJS,;t t
13279 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13280 CEOF
13282 _ACEOF
13284 cat >>$CONFIG_STATUS <<\_ACEOF
13285 # Split the substitutions into bite-sized pieces for seds with
13286 # small command number limits, like on Digital OSF/1 and HP-UX.
13287 ac_max_sed_lines=48
13288 ac_sed_frag=1 # Number of current file.
13289 ac_beg=1 # First line for current file.
13290 ac_end=$ac_max_sed_lines # Line after last line for current file.
13291 ac_more_lines=:
13292 ac_sed_cmds=
13293 while $ac_more_lines; do
13294 if test $ac_beg -gt 1; then
13295 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13296 else
13297 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13299 if test ! -s $tmp/subs.frag; then
13300 ac_more_lines=false
13301 else
13302 # The purpose of the label and of the branching condition is to
13303 # speed up the sed processing (if there are no `@' at all, there
13304 # is no need to browse any of the substitutions).
13305 # These are the two extra sed commands mentioned above.
13306 (echo ':t
13307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13308 if test -z "$ac_sed_cmds"; then
13309 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13310 else
13311 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13313 ac_sed_frag=`expr $ac_sed_frag + 1`
13314 ac_beg=$ac_end
13315 ac_end=`expr $ac_end + $ac_max_sed_lines`
13317 done
13318 if test -z "$ac_sed_cmds"; then
13319 ac_sed_cmds=cat
13321 fi # test -n "$CONFIG_FILES"
13323 _ACEOF
13324 cat >>$CONFIG_STATUS <<\_ACEOF
13325 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13327 case $ac_file in
13328 - | *:- | *:-:* ) # input from stdin
13329 cat >$tmp/stdin
13330 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13332 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13334 * ) ac_file_in=$ac_file.in ;;
13335 esac
13337 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13338 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13340 X"$ac_file" : 'X\(//\)[^/]' \| \
13341 X"$ac_file" : 'X\(//\)$' \| \
13342 X"$ac_file" : 'X\(/\)' \| \
13343 . : '\(.\)' 2>/dev/null ||
13344 echo X"$ac_file" |
13345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13347 /^X\(\/\/\)$/{ s//\1/; q; }
13348 /^X\(\/\).*/{ s//\1/; q; }
13349 s/.*/./; q'`
13350 { if $as_mkdir_p; then
13351 mkdir -p "$ac_dir"
13352 else
13353 as_dir="$ac_dir"
13354 as_dirs=
13355 while test ! -d "$as_dir"; do
13356 as_dirs="$as_dir $as_dirs"
13357 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13359 X"$as_dir" : 'X\(//\)[^/]' \| \
13360 X"$as_dir" : 'X\(//\)$' \| \
13361 X"$as_dir" : 'X\(/\)' \| \
13362 . : '\(.\)' 2>/dev/null ||
13363 echo X"$as_dir" |
13364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13366 /^X\(\/\/\)$/{ s//\1/; q; }
13367 /^X\(\/\).*/{ s//\1/; q; }
13368 s/.*/./; q'`
13369 done
13370 test ! -n "$as_dirs" || mkdir $as_dirs
13371 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13372 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13373 { (exit 1); exit 1; }; }; }
13375 ac_builddir=.
13377 if test "$ac_dir" != .; then
13378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13379 # A "../" for each directory in $ac_dir_suffix.
13380 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13381 else
13382 ac_dir_suffix= ac_top_builddir=
13385 case $srcdir in
13386 .) # No --srcdir option. We are building in place.
13387 ac_srcdir=.
13388 if test -z "$ac_top_builddir"; then
13389 ac_top_srcdir=.
13390 else
13391 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13392 fi ;;
13393 [\\/]* | ?:[\\/]* ) # Absolute path.
13394 ac_srcdir=$srcdir$ac_dir_suffix;
13395 ac_top_srcdir=$srcdir ;;
13396 *) # Relative path.
13397 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13398 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13399 esac
13401 # Do not use `cd foo && pwd` to compute absolute paths, because
13402 # the directories may not exist.
13403 case `pwd` in
13404 .) ac_abs_builddir="$ac_dir";;
13406 case "$ac_dir" in
13407 .) ac_abs_builddir=`pwd`;;
13408 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13409 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13410 esac;;
13411 esac
13412 case $ac_abs_builddir in
13413 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13415 case ${ac_top_builddir}. in
13416 .) ac_abs_top_builddir=$ac_abs_builddir;;
13417 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13418 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13419 esac;;
13420 esac
13421 case $ac_abs_builddir in
13422 .) ac_abs_srcdir=$ac_srcdir;;
13424 case $ac_srcdir in
13425 .) ac_abs_srcdir=$ac_abs_builddir;;
13426 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13427 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13428 esac;;
13429 esac
13430 case $ac_abs_builddir in
13431 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13433 case $ac_top_srcdir in
13434 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13435 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13436 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13437 esac;;
13438 esac
13441 case $INSTALL in
13442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13443 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13444 esac
13446 if test x"$ac_file" != x-; then
13447 { echo "$as_me:$LINENO: creating $ac_file" >&5
13448 echo "$as_me: creating $ac_file" >&6;}
13449 rm -f "$ac_file"
13451 # Let's still pretend it is `configure' which instantiates (i.e., don't
13452 # use $as_me), people would be surprised to read:
13453 # /* config.h. Generated by config.status. */
13454 if test x"$ac_file" = x-; then
13455 configure_input=
13456 else
13457 configure_input="$ac_file. "
13459 configure_input=$configure_input"Generated from `echo $ac_file_in |
13460 sed 's,.*/,,'` by configure."
13462 # First look for the input files in the build tree, otherwise in the
13463 # src tree.
13464 ac_file_inputs=`IFS=:
13465 for f in $ac_file_in; do
13466 case $f in
13467 -) echo $tmp/stdin ;;
13468 [\\/$]*)
13469 # Absolute (can't be DOS-style, as IFS=:)
13470 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13471 echo "$as_me: error: cannot find input file: $f" >&2;}
13472 { (exit 1); exit 1; }; }
13473 echo "$f";;
13474 *) # Relative
13475 if test -f "$f"; then
13476 # Build tree
13477 echo "$f"
13478 elif test -f "$srcdir/$f"; then
13479 # Source tree
13480 echo "$srcdir/$f"
13481 else
13482 # /dev/null tree
13483 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13484 echo "$as_me: error: cannot find input file: $f" >&2;}
13485 { (exit 1); exit 1; }; }
13486 fi;;
13487 esac
13488 done` || { (exit 1); exit 1; }
13489 _ACEOF
13490 cat >>$CONFIG_STATUS <<_ACEOF
13491 sed "$ac_vpsub
13492 $extrasub
13493 _ACEOF
13494 cat >>$CONFIG_STATUS <<\_ACEOF
13496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13497 s,@configure_input@,$configure_input,;t t
13498 s,@srcdir@,$ac_srcdir,;t t
13499 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13500 s,@top_srcdir@,$ac_top_srcdir,;t t
13501 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13502 s,@builddir@,$ac_builddir,;t t
13503 s,@abs_builddir@,$ac_abs_builddir,;t t
13504 s,@top_builddir@,$ac_top_builddir,;t t
13505 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13506 s,@INSTALL@,$ac_INSTALL,;t t
13507 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13508 rm -f $tmp/stdin
13509 if test x"$ac_file" != x-; then
13510 mv $tmp/out $ac_file
13511 else
13512 cat $tmp/out
13513 rm -f $tmp/out
13516 done
13517 _ACEOF
13518 cat >>$CONFIG_STATUS <<\_ACEOF
13521 # CONFIG_HEADER section.
13524 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13525 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13527 # ac_d sets the value in "#define NAME VALUE" lines.
13528 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13529 ac_dB='[ ].*$,\1#\2'
13530 ac_dC=' '
13531 ac_dD=',;t'
13532 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13533 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13534 ac_uB='$,\1#\2define\3'
13535 ac_uC=' '
13536 ac_uD=',;t'
13538 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13540 case $ac_file in
13541 - | *:- | *:-:* ) # input from stdin
13542 cat >$tmp/stdin
13543 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13545 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13547 * ) ac_file_in=$ac_file.in ;;
13548 esac
13550 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13551 echo "$as_me: creating $ac_file" >&6;}
13553 # First look for the input files in the build tree, otherwise in the
13554 # src tree.
13555 ac_file_inputs=`IFS=:
13556 for f in $ac_file_in; do
13557 case $f in
13558 -) echo $tmp/stdin ;;
13559 [\\/$]*)
13560 # Absolute (can't be DOS-style, as IFS=:)
13561 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13562 echo "$as_me: error: cannot find input file: $f" >&2;}
13563 { (exit 1); exit 1; }; }
13564 # Do quote $f, to prevent DOS paths from being IFS'd.
13565 echo "$f";;
13566 *) # Relative
13567 if test -f "$f"; then
13568 # Build tree
13569 echo "$f"
13570 elif test -f "$srcdir/$f"; then
13571 # Source tree
13572 echo "$srcdir/$f"
13573 else
13574 # /dev/null tree
13575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13576 echo "$as_me: error: cannot find input file: $f" >&2;}
13577 { (exit 1); exit 1; }; }
13578 fi;;
13579 esac
13580 done` || { (exit 1); exit 1; }
13581 # Remove the trailing spaces.
13582 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13584 _ACEOF
13586 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13587 # `conftest.undefs', that substitutes the proper values into
13588 # config.h.in to produce config.h. The first handles `#define'
13589 # templates, and the second `#undef' templates.
13590 # And first: Protect against being on the right side of a sed subst in
13591 # config.status. Protect against being in an unquoted here document
13592 # in config.status.
13593 rm -f conftest.defines conftest.undefs
13594 # Using a here document instead of a string reduces the quoting nightmare.
13595 # Putting comments in sed scripts is not portable.
13597 # `end' is used to avoid that the second main sed command (meant for
13598 # 0-ary CPP macros) applies to n-ary macro definitions.
13599 # See the Autoconf documentation for `clear'.
13600 cat >confdef2sed.sed <<\_ACEOF
13601 s/[\\&,]/\\&/g
13602 s,[\\$`],\\&,g
13603 t clear
13604 : clear
13605 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13606 t end
13607 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13608 : end
13609 _ACEOF
13610 # If some macros were called several times there might be several times
13611 # the same #defines, which is useless. Nevertheless, we may not want to
13612 # sort them, since we want the *last* AC-DEFINE to be honored.
13613 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13614 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13615 rm -f confdef2sed.sed
13617 # This sed command replaces #undef with comments. This is necessary, for
13618 # example, in the case of _POSIX_SOURCE, which is predefined and required
13619 # on some systems where configure will not decide to define it.
13620 cat >>conftest.undefs <<\_ACEOF
13621 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13622 _ACEOF
13624 # Break up conftest.defines because some shells have a limit on the size
13625 # of here documents, and old seds have small limits too (100 cmds).
13626 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13627 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13628 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13629 echo ' :' >>$CONFIG_STATUS
13630 rm -f conftest.tail
13631 while grep . conftest.defines >/dev/null
13633 # Write a limited-size here document to $tmp/defines.sed.
13634 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13635 # Speed up: don't consider the non `#define' lines.
13636 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13637 # Work around the forget-to-reset-the-flag bug.
13638 echo 't clr' >>$CONFIG_STATUS
13639 echo ': clr' >>$CONFIG_STATUS
13640 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13641 echo 'CEOF
13642 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13643 rm -f $tmp/in
13644 mv $tmp/out $tmp/in
13645 ' >>$CONFIG_STATUS
13646 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13647 rm -f conftest.defines
13648 mv conftest.tail conftest.defines
13649 done
13650 rm -f conftest.defines
13651 echo ' fi # grep' >>$CONFIG_STATUS
13652 echo >>$CONFIG_STATUS
13654 # Break up conftest.undefs because some shells have a limit on the size
13655 # of here documents, and old seds have small limits too (100 cmds).
13656 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13657 rm -f conftest.tail
13658 while grep . conftest.undefs >/dev/null
13660 # Write a limited-size here document to $tmp/undefs.sed.
13661 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13662 # Speed up: don't consider the non `#undef'
13663 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13664 # Work around the forget-to-reset-the-flag bug.
13665 echo 't clr' >>$CONFIG_STATUS
13666 echo ': clr' >>$CONFIG_STATUS
13667 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13668 echo 'CEOF
13669 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13670 rm -f $tmp/in
13671 mv $tmp/out $tmp/in
13672 ' >>$CONFIG_STATUS
13673 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13674 rm -f conftest.undefs
13675 mv conftest.tail conftest.undefs
13676 done
13677 rm -f conftest.undefs
13679 cat >>$CONFIG_STATUS <<\_ACEOF
13680 # Let's still pretend it is `configure' which instantiates (i.e., don't
13681 # use $as_me), people would be surprised to read:
13682 # /* config.h. Generated by config.status. */
13683 if test x"$ac_file" = x-; then
13684 echo "/* Generated by configure. */" >$tmp/config.h
13685 else
13686 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13688 cat $tmp/in >>$tmp/config.h
13689 rm -f $tmp/in
13690 if test x"$ac_file" != x-; then
13691 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13692 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13693 echo "$as_me: $ac_file is unchanged" >&6;}
13694 else
13695 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13697 X"$ac_file" : 'X\(//\)[^/]' \| \
13698 X"$ac_file" : 'X\(//\)$' \| \
13699 X"$ac_file" : 'X\(/\)' \| \
13700 . : '\(.\)' 2>/dev/null ||
13701 echo X"$ac_file" |
13702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13704 /^X\(\/\/\)$/{ s//\1/; q; }
13705 /^X\(\/\).*/{ s//\1/; q; }
13706 s/.*/./; q'`
13707 { if $as_mkdir_p; then
13708 mkdir -p "$ac_dir"
13709 else
13710 as_dir="$ac_dir"
13711 as_dirs=
13712 while test ! -d "$as_dir"; do
13713 as_dirs="$as_dir $as_dirs"
13714 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13716 X"$as_dir" : 'X\(//\)[^/]' \| \
13717 X"$as_dir" : 'X\(//\)$' \| \
13718 X"$as_dir" : 'X\(/\)' \| \
13719 . : '\(.\)' 2>/dev/null ||
13720 echo X"$as_dir" |
13721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13723 /^X\(\/\/\)$/{ s//\1/; q; }
13724 /^X\(\/\).*/{ s//\1/; q; }
13725 s/.*/./; q'`
13726 done
13727 test ! -n "$as_dirs" || mkdir $as_dirs
13728 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13729 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13730 { (exit 1); exit 1; }; }; }
13732 rm -f $ac_file
13733 mv $tmp/config.h $ac_file
13735 else
13736 cat $tmp/config.h
13737 rm -f $tmp/config.h
13739 # Compute $ac_file's index in $config_headers.
13740 _am_stamp_count=1
13741 for _am_header in $config_headers :; do
13742 case $_am_header in
13743 $ac_file | $ac_file:* )
13744 break ;;
13746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13747 esac
13748 done
13749 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13750 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13751 X$ac_file : 'X\(//\)[^/]' \| \
13752 X$ac_file : 'X\(//\)$' \| \
13753 X$ac_file : 'X\(/\)' \| \
13754 . : '\(.\)' 2>/dev/null ||
13755 echo X$ac_file |
13756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13758 /^X\(\/\/\)$/{ s//\1/; q; }
13759 /^X\(\/\).*/{ s//\1/; q; }
13760 s/.*/./; q'`/stamp-h$_am_stamp_count
13761 done
13762 _ACEOF
13763 cat >>$CONFIG_STATUS <<\_ACEOF
13766 # CONFIG_COMMANDS section.
13768 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13769 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13770 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13771 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13772 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773 X"$ac_dest" : 'X\(//\)[^/]' \| \
13774 X"$ac_dest" : 'X\(//\)$' \| \
13775 X"$ac_dest" : 'X\(/\)' \| \
13776 . : '\(.\)' 2>/dev/null ||
13777 echo X"$ac_dest" |
13778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13780 /^X\(\/\/\)$/{ s//\1/; q; }
13781 /^X\(\/\).*/{ s//\1/; q; }
13782 s/.*/./; q'`
13783 { if $as_mkdir_p; then
13784 mkdir -p "$ac_dir"
13785 else
13786 as_dir="$ac_dir"
13787 as_dirs=
13788 while test ! -d "$as_dir"; do
13789 as_dirs="$as_dir $as_dirs"
13790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792 X"$as_dir" : 'X\(//\)[^/]' \| \
13793 X"$as_dir" : 'X\(//\)$' \| \
13794 X"$as_dir" : 'X\(/\)' \| \
13795 . : '\(.\)' 2>/dev/null ||
13796 echo X"$as_dir" |
13797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13799 /^X\(\/\/\)$/{ s//\1/; q; }
13800 /^X\(\/\).*/{ s//\1/; q; }
13801 s/.*/./; q'`
13802 done
13803 test ! -n "$as_dirs" || mkdir $as_dirs
13804 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13805 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13806 { (exit 1); exit 1; }; }; }
13808 ac_builddir=.
13810 if test "$ac_dir" != .; then
13811 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13812 # A "../" for each directory in $ac_dir_suffix.
13813 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13814 else
13815 ac_dir_suffix= ac_top_builddir=
13818 case $srcdir in
13819 .) # No --srcdir option. We are building in place.
13820 ac_srcdir=.
13821 if test -z "$ac_top_builddir"; then
13822 ac_top_srcdir=.
13823 else
13824 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13825 fi ;;
13826 [\\/]* | ?:[\\/]* ) # Absolute path.
13827 ac_srcdir=$srcdir$ac_dir_suffix;
13828 ac_top_srcdir=$srcdir ;;
13829 *) # Relative path.
13830 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13831 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13832 esac
13834 # Do not use `cd foo && pwd` to compute absolute paths, because
13835 # the directories may not exist.
13836 case `pwd` in
13837 .) ac_abs_builddir="$ac_dir";;
13839 case "$ac_dir" in
13840 .) ac_abs_builddir=`pwd`;;
13841 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13842 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13843 esac;;
13844 esac
13845 case $ac_abs_builddir in
13846 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13848 case ${ac_top_builddir}. in
13849 .) ac_abs_top_builddir=$ac_abs_builddir;;
13850 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13851 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13852 esac;;
13853 esac
13854 case $ac_abs_builddir in
13855 .) ac_abs_srcdir=$ac_srcdir;;
13857 case $ac_srcdir in
13858 .) ac_abs_srcdir=$ac_abs_builddir;;
13859 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13860 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13861 esac;;
13862 esac
13863 case $ac_abs_builddir in
13864 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13866 case $ac_top_srcdir in
13867 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13868 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13869 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13870 esac;;
13871 esac
13874 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13875 echo "$as_me: executing $ac_dest commands" >&6;}
13876 case $ac_dest in
13877 default-1 )
13878 # Only add multilib support code if we just rebuilt the top-level
13879 # Makefile.
13880 case " $CONFIG_FILES " in
13881 *" Makefile "*)
13882 ac_file=Makefile . ${multi_basedir}/config-ml.in
13884 esac ;;
13885 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13886 # Strip MF so we end up with the name of the file.
13887 mf=`echo "$mf" | sed -e 's/:.*$//'`
13888 # Check whether this is an Automake generated Makefile or not.
13889 # We used to match only the files named `Makefile.in', but
13890 # some people rename them; so instead we look at the file content.
13891 # Grep'ing the first line is not enough: some people post-process
13892 # each Makefile.in and add a new line on top of each file to say so.
13893 # So let's grep whole file.
13894 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13895 dirpart=`(dirname "$mf") 2>/dev/null ||
13896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13897 X"$mf" : 'X\(//\)[^/]' \| \
13898 X"$mf" : 'X\(//\)$' \| \
13899 X"$mf" : 'X\(/\)' \| \
13900 . : '\(.\)' 2>/dev/null ||
13901 echo X"$mf" |
13902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13904 /^X\(\/\/\)$/{ s//\1/; q; }
13905 /^X\(\/\).*/{ s//\1/; q; }
13906 s/.*/./; q'`
13907 else
13908 continue
13910 # Extract the definition of DEPDIR, am__include, and am__quote
13911 # from the Makefile without running `make'.
13912 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13913 test -z "$DEPDIR" && continue
13914 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13915 test -z "am__include" && continue
13916 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13917 # When using ansi2knr, U may be empty or an underscore; expand it
13918 U=`sed -n 's/^U = //p' < "$mf"`
13919 # Find all dependency output files, they are included files with
13920 # $(DEPDIR) in their names. We invoke sed twice because it is the
13921 # simplest approach to changing $(DEPDIR) to its actual value in the
13922 # expansion.
13923 for file in `sed -n "
13924 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13925 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13926 # Make sure the directory exists.
13927 test -f "$dirpart/$file" && continue
13928 fdir=`(dirname "$file") 2>/dev/null ||
13929 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13930 X"$file" : 'X\(//\)[^/]' \| \
13931 X"$file" : 'X\(//\)$' \| \
13932 X"$file" : 'X\(/\)' \| \
13933 . : '\(.\)' 2>/dev/null ||
13934 echo X"$file" |
13935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13937 /^X\(\/\/\)$/{ s//\1/; q; }
13938 /^X\(\/\).*/{ s//\1/; q; }
13939 s/.*/./; q'`
13940 { if $as_mkdir_p; then
13941 mkdir -p $dirpart/$fdir
13942 else
13943 as_dir=$dirpart/$fdir
13944 as_dirs=
13945 while test ! -d "$as_dir"; do
13946 as_dirs="$as_dir $as_dirs"
13947 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13949 X"$as_dir" : 'X\(//\)[^/]' \| \
13950 X"$as_dir" : 'X\(//\)$' \| \
13951 X"$as_dir" : 'X\(/\)' \| \
13952 . : '\(.\)' 2>/dev/null ||
13953 echo X"$as_dir" |
13954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13956 /^X\(\/\/\)$/{ s//\1/; q; }
13957 /^X\(\/\).*/{ s//\1/; q; }
13958 s/.*/./; q'`
13959 done
13960 test ! -n "$as_dirs" || mkdir $as_dirs
13961 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13962 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13963 { (exit 1); exit 1; }; }; }
13965 # echo "creating $dirpart/$file"
13966 echo '# dummy' > "$dirpart/$file"
13967 done
13968 done
13970 libtool )
13972 # See if we are running on zsh, and set the options which allow our
13973 # commands through without removal of \ escapes.
13974 if test -n "${ZSH_VERSION+set}" ; then
13975 setopt NO_GLOB_SUBST
13978 cfgfile="${ofile}T"
13979 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13980 $RM "$cfgfile"
13982 cat <<_LT_EOF >> "$cfgfile"
13983 #! $SHELL
13985 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13986 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13990 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13991 # 2006, 2007 Free Software Foundation, Inc.
13993 # This file is part of GNU Libtool:
13994 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13996 # This program is free software; you can redistribute it and/or modify
13997 # it under the terms of the GNU General Public License as published by
13998 # the Free Software Foundation; either version 2 of the License, or
13999 # (at your option) any later version.
14001 # This program is distributed in the hope that it will be useful, but
14002 # WITHOUT ANY WARRANTY; without even the implied warranty of
14003 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14004 # General Public License for more details.
14006 # You should have received a copy of the GNU General Public License
14007 # along with this program; if not, a copy can be downloaded from
14008 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14009 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14010 # MA 02110-1301, USA.
14012 # As a special exception to the GNU General Public License, if you
14013 # distribute this file as part of a program that contains a
14014 # configuration script generated by Autoconf, you may include it under
14015 # the same distribution terms that you use for the rest of that program.
14018 # The names of the tagged configurations supported by this script.
14019 available_tags=""
14021 # ### BEGIN LIBTOOL CONFIG
14023 # Which release of libtool.m4 was used?
14024 macro_version=$macro_version
14025 macro_revision=$macro_revision
14027 # Whether or not to build shared libraries.
14028 build_libtool_libs=$enable_shared
14030 # Whether or not to build static libraries.
14031 build_old_libs=$enable_static
14033 # What type of objects to build.
14034 pic_mode=$pic_mode
14036 # Whether or not to optimize for fast installation.
14037 fast_install=$enable_fast_install
14039 # The host system.
14040 host_alias=$host_alias
14041 host=$host
14042 host_os=$host_os
14044 # The build system.
14045 build_alias=$build_alias
14046 build=$build
14047 build_os=$build_os
14049 # A sed program that does not truncate output.
14050 SED=$lt_SED
14052 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14053 Xsed="\$SED -e 1s/^X//"
14055 # A grep program that handles long lines.
14056 GREP=$lt_GREP
14058 # An ERE matcher.
14059 EGREP=$lt_EGREP
14061 # A literal string matcher.
14062 FGREP=$lt_FGREP
14064 # A BSD- or MS-compatible name lister.
14065 NM=$lt_NM
14067 # Whether we need soft or hard links.
14068 LN_S=$lt_LN_S
14070 # What is the maximum length of a command?
14071 max_cmd_len=$max_cmd_len
14073 # Object file suffix (normally "o").
14074 objext=$ac_objext
14076 # Executable file suffix (normally "").
14077 exeext=$exeext
14079 # whether the shell understands "unset".
14080 lt_unset=$lt_unset
14082 # turn spaces into newlines.
14083 SP2NL=$lt_lt_SP2NL
14085 # turn newlines into spaces.
14086 NL2SP=$lt_lt_NL2SP
14088 # How to create reloadable object files.
14089 reload_flag=$lt_reload_flag
14090 reload_cmds=$lt_reload_cmds
14092 # Method to check whether dependent libraries are shared objects.
14093 deplibs_check_method=$lt_deplibs_check_method
14095 # Command to use when deplibs_check_method == "file_magic".
14096 file_magic_cmd=$lt_file_magic_cmd
14098 # The archiver.
14099 AR=$lt_AR
14100 AR_FLAGS=$lt_AR_FLAGS
14102 # A symbol stripping program.
14103 STRIP=$lt_STRIP
14105 # Commands used to install an old-style archive.
14106 RANLIB=$lt_RANLIB
14107 old_postinstall_cmds=$lt_old_postinstall_cmds
14108 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14110 # A C compiler.
14111 LTCC=$lt_CC
14113 # LTCC compiler flags.
14114 LTCFLAGS=$lt_CFLAGS
14116 # Take the output of nm and produce a listing of raw symbols and C names.
14117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14119 # Transform the output of nm in a proper C declaration.
14120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14122 # Transform the output of nm in a C name address pair.
14123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14125 # The name of the directory that contains temporary libtool files.
14126 objdir=$objdir
14128 # Shell to use when invoking shell scripts.
14129 SHELL=$lt_SHELL
14131 # An echo program that does not interpret backslashes.
14132 ECHO=$lt_ECHO
14134 # Used to examine libraries when file_magic_cmd begins with "file".
14135 MAGIC_CMD=$MAGIC_CMD
14137 # Must we lock files when doing compilation?
14138 need_locks=$lt_need_locks
14140 # Old archive suffix (normally "a").
14141 libext=$libext
14143 # Shared library suffix (normally ".so").
14144 shrext_cmds=$lt_shrext_cmds
14146 # The commands to extract the exported symbol list from a shared archive.
14147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14149 # Variables whose values should be saved in libtool wrapper scripts and
14150 # restored at link time.
14151 variables_saved_for_relink=$lt_variables_saved_for_relink
14153 # Do we need the "lib" prefix for modules?
14154 need_lib_prefix=$need_lib_prefix
14156 # Do we need a version for libraries?
14157 need_version=$need_version
14159 # Library versioning type.
14160 version_type=$version_type
14162 # Shared library runtime path variable.
14163 runpath_var=$runpath_var
14165 # Shared library path variable.
14166 shlibpath_var=$shlibpath_var
14168 # Is shlibpath searched before the hard-coded library search path?
14169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14171 # Format of library name prefix.
14172 libname_spec=$lt_libname_spec
14174 # List of archive names. First name is the real one, the rest are links.
14175 # The last name is the one that the linker finds with -lNAME
14176 library_names_spec=$lt_library_names_spec
14178 # The coded name of the library, if different from the real name.
14179 soname_spec=$lt_soname_spec
14181 # Command to use after installation of a shared archive.
14182 postinstall_cmds=$lt_postinstall_cmds
14184 # Command to use after uninstallation of a shared archive.
14185 postuninstall_cmds=$lt_postuninstall_cmds
14187 # Commands used to finish a libtool library installation in a directory.
14188 finish_cmds=$lt_finish_cmds
14190 # As "finish_cmds", except a single script fragment to be evaled but
14191 # not shown.
14192 finish_eval=$lt_finish_eval
14194 # Whether we should hardcode library paths into libraries.
14195 hardcode_into_libs=$hardcode_into_libs
14197 # Compile-time system search path for libraries.
14198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14200 # Run-time system search path for libraries.
14201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14203 # Whether dlopen is supported.
14204 dlopen_support=$enable_dlopen
14206 # Whether dlopen of programs is supported.
14207 dlopen_self=$enable_dlopen_self
14209 # Whether dlopen of statically linked programs is supported.
14210 dlopen_self_static=$enable_dlopen_self_static
14212 # Commands to strip libraries.
14213 old_striplib=$lt_old_striplib
14214 striplib=$lt_striplib
14217 # The linker used to build libraries.
14218 LD=$lt_LD
14220 # Commands used to build an old-style archive.
14221 old_archive_cmds=$lt_old_archive_cmds
14223 # A language specific compiler.
14224 CC=$lt_compiler
14226 # Is the compiler the GNU compiler?
14227 with_gcc=$GCC
14229 # Compiler flag to turn off builtin functions.
14230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14232 # How to pass a linker flag through the compiler.
14233 wl=$lt_lt_prog_compiler_wl
14235 # Additional compiler flags for building library objects.
14236 pic_flag=$lt_lt_prog_compiler_pic
14238 # Compiler flag to prevent dynamic linking.
14239 link_static_flag=$lt_lt_prog_compiler_static
14241 # Does compiler simultaneously support -c and -o options?
14242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14244 # Whether or not to add -lc for building shared libraries.
14245 build_libtool_need_lc=$archive_cmds_need_lc
14247 # Whether or not to disallow shared libs when runtime libs are static.
14248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14250 # Compiler flag to allow reflexive dlopens.
14251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14253 # Compiler flag to generate shared objects directly from archives.
14254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14256 # Whether the compiler copes with passing no objects directly.
14257 compiler_needs_object=$lt_compiler_needs_object
14259 # Create an old-style archive from a shared archive.
14260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14262 # Create a temporary old-style archive to link instead of a shared archive.
14263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14265 # Commands used to build a shared archive.
14266 archive_cmds=$lt_archive_cmds
14267 archive_expsym_cmds=$lt_archive_expsym_cmds
14269 # Commands used to build a loadable module if different from building
14270 # a shared archive.
14271 module_cmds=$lt_module_cmds
14272 module_expsym_cmds=$lt_module_expsym_cmds
14274 # Whether we are building with GNU ld or not.
14275 with_gnu_ld=$lt_with_gnu_ld
14277 # Flag that allows shared libraries with undefined symbols to be built.
14278 allow_undefined_flag=$lt_allow_undefined_flag
14280 # Flag that enforces no undefined symbols.
14281 no_undefined_flag=$lt_no_undefined_flag
14283 # Flag to hardcode \$libdir into a binary during linking.
14284 # This must work even if \$libdir does not exist
14285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14287 # If ld is used when linking, flag to hardcode \$libdir into a binary
14288 # during linking. This must work even if \$libdir does not exist.
14289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14291 # Whether we need a single "-rpath" flag with a separated argument.
14292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14295 # DIR into the resulting binary.
14296 hardcode_direct=$hardcode_direct
14298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14299 # DIR into the resulting binary and the resulting library dependency is
14300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14301 # library is relocated.
14302 hardcode_direct_absolute=$hardcode_direct_absolute
14304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14305 # into the resulting binary.
14306 hardcode_minus_L=$hardcode_minus_L
14308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14309 # into the resulting binary.
14310 hardcode_shlibpath_var=$hardcode_shlibpath_var
14312 # Set to "yes" if building a shared library automatically hardcodes DIR
14313 # into the library and all subsequent libraries and executables linked
14314 # against it.
14315 hardcode_automatic=$hardcode_automatic
14317 # Set to yes if linker adds runtime paths of dependent libraries
14318 # to runtime path list.
14319 inherit_rpath=$inherit_rpath
14321 # Whether libtool must link a program against all its dependency libraries.
14322 link_all_deplibs=$link_all_deplibs
14324 # Fix the shell variable \$srcfile for the compiler.
14325 fix_srcfile_path=$lt_fix_srcfile_path
14327 # Set to "yes" if exported symbols are required.
14328 always_export_symbols=$always_export_symbols
14330 # The commands to list exported symbols.
14331 export_symbols_cmds=$lt_export_symbols_cmds
14333 # Symbols that should not be listed in the preloaded symbols.
14334 exclude_expsyms=$lt_exclude_expsyms
14336 # Symbols that must always be exported.
14337 include_expsyms=$lt_include_expsyms
14339 # Commands necessary for linking programs (against libraries) with templates.
14340 prelink_cmds=$lt_prelink_cmds
14342 # Specify filename containing input files.
14343 file_list_spec=$lt_file_list_spec
14345 # How to hardcode a shared library path into an executable.
14346 hardcode_action=$hardcode_action
14348 # ### END LIBTOOL CONFIG
14350 _LT_EOF
14352 case $host_os in
14353 aix3*)
14354 cat <<\_LT_EOF >> "$cfgfile"
14355 # AIX sometimes has problems with the GCC collect2 program. For some
14356 # reason, if we set the COLLECT_NAMES environment variable, the problems
14357 # vanish in a puff of smoke.
14358 if test "X${COLLECT_NAMES+set}" != Xset; then
14359 COLLECT_NAMES=
14360 export COLLECT_NAMES
14362 _LT_EOF
14364 esac
14367 ltmain="$ac_aux_dir/ltmain.sh"
14370 # We use sed instead of cat because bash on DJGPP gets confused if
14371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14372 # text mode, it properly converts lines to CR/LF. This bash problem
14373 # is reportedly fixed, but why not run on old versions too?
14374 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14375 || (rm -f "$cfgfile"; exit 1)
14377 case $xsi_shell in
14378 yes)
14379 cat << \_LT_EOF >> "$cfgfile"
14380 # func_dirname file append nondir_replacement
14381 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14382 # otherwise set result to NONDIR_REPLACEMENT.
14383 func_dirname ()
14385 case ${1} in
14386 */*) func_dirname_result="${1%/*}${2}" ;;
14387 * ) func_dirname_result="${3}" ;;
14388 esac
14391 # func_basename file
14392 func_basename ()
14394 func_basename_result="${1##*/}"
14397 # func_stripname prefix suffix name
14398 # strip PREFIX and SUFFIX off of NAME.
14399 # PREFIX and SUFFIX must not contain globbing or regex special
14400 # characters, hashes, percent signs, but SUFFIX may contain a leading
14401 # dot (in which case that matches only a dot).
14402 func_stripname ()
14404 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14405 # positional parameters, so assign one to ordinary parameter first.
14406 func_stripname_result=${3}
14407 func_stripname_result=${func_stripname_result#"${1}"}
14408 func_stripname_result=${func_stripname_result%"${2}"}
14411 # func_opt_split
14412 func_opt_split ()
14414 func_opt_split_opt=${1%%=*}
14415 func_opt_split_arg=${1#*=}
14418 # func_lo2o object
14419 func_lo2o ()
14421 case ${1} in
14422 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14423 *) func_lo2o_result=${1} ;;
14424 esac
14426 _LT_EOF
14428 *) # Bourne compatible functions.
14429 cat << \_LT_EOF >> "$cfgfile"
14430 # func_dirname file append nondir_replacement
14431 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14432 # otherwise set result to NONDIR_REPLACEMENT.
14433 func_dirname ()
14435 # Extract subdirectory from the argument.
14436 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14437 if test "X$func_dirname_result" = "X${1}"; then
14438 func_dirname_result="${3}"
14439 else
14440 func_dirname_result="$func_dirname_result${2}"
14444 # func_basename file
14445 func_basename ()
14447 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14450 # func_stripname prefix suffix name
14451 # strip PREFIX and SUFFIX off of NAME.
14452 # PREFIX and SUFFIX must not contain globbing or regex special
14453 # characters, hashes, percent signs, but SUFFIX may contain a leading
14454 # dot (in which case that matches only a dot).
14455 # func_strip_suffix prefix name
14456 func_stripname ()
14458 case ${2} in
14459 .*) func_stripname_result=`$ECHO "X${3}" \
14460 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14461 *) func_stripname_result=`$ECHO "X${3}" \
14462 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14463 esac
14466 # sed scripts:
14467 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14468 my_sed_long_arg='1s/^-[^=]*=//'
14470 # func_opt_split
14471 func_opt_split ()
14473 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14474 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14477 # func_lo2o object
14478 func_lo2o ()
14480 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14482 _LT_EOF
14483 esac
14485 case $lt_shell_append in
14486 yes)
14487 cat << \_LT_EOF >> "$cfgfile"
14489 # func_append var value
14490 # Append VALUE to the end of shell variable VAR.
14491 func_append ()
14493 eval "$1+=\$2"
14495 _LT_EOF
14498 cat << \_LT_EOF >> "$cfgfile"
14500 # func_append var value
14501 # Append VALUE to the end of shell variable VAR.
14502 func_append ()
14504 eval "$1=\$$1\$2"
14506 _LT_EOF
14508 esac
14511 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14512 || (rm -f "$cfgfile"; exit 1)
14514 mv -f "$cfgfile" "$ofile" ||
14515 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14516 chmod +x "$ofile"
14519 esac
14520 done
14521 _ACEOF
14523 cat >>$CONFIG_STATUS <<\_ACEOF
14525 { (exit 0); exit 0; }
14526 _ACEOF
14527 chmod +x $CONFIG_STATUS
14528 ac_clean_files=$ac_clean_files_save
14531 # configure is writing to config.log, and then calls config.status.
14532 # config.status does its own redirection, appending to config.log.
14533 # Unfortunately, on DOS this fails, as config.log is still kept open
14534 # by configure, so config.status won't be able to write to it; its
14535 # output is simply discarded. So we exec the FD to /dev/null,
14536 # effectively closing config.log, so it can be properly (re)opened and
14537 # appended to by config.status. When coming back to configure, we
14538 # need to make the FD available again.
14539 if test "$no_create" != yes; then
14540 ac_cs_success=:
14541 ac_config_status_args=
14542 test "$silent" = yes &&
14543 ac_config_status_args="$ac_config_status_args --quiet"
14544 exec 5>/dev/null
14545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14546 exec 5>>config.log
14547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14548 # would make configure fail if this is the last instruction.
14549 $ac_cs_success || { (exit 1); exit 1; }