Merge -r 127928:132243 from trunk
[official-gcc.git] / libmudflap / configure
blob70ec63d3363e4b16a102d9ebcd9856f707238b1d
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 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5953 if test -n $lt_cv_sys_max_cmd_len; then
5954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5956 else
5957 # Make teststring a little bigger before we do anything with it.
5958 # a 1K string should be a reasonable start.
5959 for i in 1 2 3 4 5 6 7 8 ; do
5960 teststring=$teststring$teststring
5961 done
5962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5963 # If test is not a shell built-in, we'll probably end up computing a
5964 # maximum length that is only half of the actual maximum length, but
5965 # we can't tell.
5966 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5967 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5968 test $i != 17 # 1/2 MB should be enough
5970 i=`expr $i + 1`
5971 teststring=$teststring$teststring
5972 done
5973 # Only check the string length outside the loop.
5974 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5975 teststring=
5976 # Add a significant safety factor because C++ compilers can tack on
5977 # massive amounts of additional arguments before passing them to the
5978 # linker. It appears as though 1/2 is a usable value.
5979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5982 esac
5986 if test -n $lt_cv_sys_max_cmd_len ; then
5987 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5988 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5989 else
5990 echo "$as_me:$LINENO: result: none" >&5
5991 echo "${ECHO_T}none" >&6
5993 max_cmd_len=$lt_cv_sys_max_cmd_len
6000 : ${CP="cp -f"}
6001 : ${MV="mv -f"}
6002 : ${RM="rm -f"}
6004 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6005 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6006 # Try some XSI features
6007 xsi_shell=no
6008 ( _lt_dummy="a/b/c"
6009 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6010 = c,a/b,, ) >/dev/null 2>&1 \
6011 && xsi_shell=yes
6012 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6013 echo "${ECHO_T}$xsi_shell" >&6
6016 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6017 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6018 lt_shell_append=no
6019 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6020 >/dev/null 2>&1 \
6021 && lt_shell_append=yes
6022 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6023 echo "${ECHO_T}$lt_shell_append" >&6
6026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6027 lt_unset=unset
6028 else
6029 lt_unset=false
6036 # test EBCDIC or ASCII
6037 case `echo X|tr X '\101'` in
6038 A) # ASCII based system
6039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6040 lt_SP2NL='tr \040 \012'
6041 lt_NL2SP='tr \015\012 \040\040'
6043 *) # EBCDIC based system
6044 lt_SP2NL='tr \100 \n'
6045 lt_NL2SP='tr \r\n \100\100'
6047 esac
6057 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6058 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6059 if test "${lt_cv_ld_reload_flag+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 lt_cv_ld_reload_flag='-r'
6064 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6065 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6066 reload_flag=$lt_cv_ld_reload_flag
6067 case $reload_flag in
6068 "" | " "*) ;;
6069 *) reload_flag=" $reload_flag" ;;
6070 esac
6071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6072 case $host_os in
6073 darwin*)
6074 if test "$GCC" = yes; then
6075 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6076 else
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6080 esac
6091 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6092 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6093 if test "${lt_cv_deplibs_check_method+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 lt_cv_file_magic_cmd='$MAGIC_CMD'
6097 lt_cv_file_magic_test_file=
6098 lt_cv_deplibs_check_method='unknown'
6099 # Need to set the preceding variable on all platforms that support
6100 # interlibrary dependencies.
6101 # 'none' -- dependencies not supported.
6102 # `unknown' -- same as none, but documents that we really don't know.
6103 # 'pass_all' -- all dependencies passed with no checks.
6104 # 'test_compile' -- check by making test program.
6105 # 'file_magic [[regex]]' -- check by looking for files in library path
6106 # which responds to the $file_magic_cmd with a given extended regex.
6107 # If you have `file' or equivalent on your system and you're not sure
6108 # whether `pass_all' will *always* work, you probably want this one.
6110 case $host_os in
6111 aix[4-9]*)
6112 lt_cv_deplibs_check_method=pass_all
6115 beos*)
6116 lt_cv_deplibs_check_method=pass_all
6119 bsdi[45]*)
6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6121 lt_cv_file_magic_cmd='/usr/bin/file -L'
6122 lt_cv_file_magic_test_file=/shlib/libc.so
6125 cygwin*)
6126 # func_win32_libid is a shell function defined in ltmain.sh
6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd='func_win32_libid'
6131 mingw* | pw32*)
6132 # Base MSYS/MinGW do not provide the 'file' command needed by
6133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6134 # unless we find 'file', for example because we are cross-compiling.
6135 if ( file / ) >/dev/null 2>&1; then
6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd='func_win32_libid'
6138 else
6139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6144 darwin* | rhapsody*)
6145 lt_cv_deplibs_check_method=pass_all
6148 freebsd* | dragonfly*)
6149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6150 case $host_cpu in
6151 i*86 )
6152 # Not sure whether the presence of OpenBSD here was a mistake.
6153 # Let's accept both of them until this is cleared up.
6154 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6155 lt_cv_file_magic_cmd=/usr/bin/file
6156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6158 esac
6159 else
6160 lt_cv_deplibs_check_method=pass_all
6164 gnu*)
6165 lt_cv_deplibs_check_method=pass_all
6168 hpux10.20* | hpux11*)
6169 lt_cv_file_magic_cmd=/usr/bin/file
6170 case $host_cpu in
6171 ia64*)
6172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6175 hppa*64*)
6176 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]'
6177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6183 esac
6186 interix[3-9]*)
6187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6191 irix5* | irix6* | nonstopux*)
6192 case $LD in
6193 *-32|*"-32 ") libmagic=32-bit;;
6194 *-n32|*"-n32 ") libmagic=N32;;
6195 *-64|*"-64 ") libmagic=64-bit;;
6196 *) libmagic=never-match;;
6197 esac
6198 lt_cv_deplibs_check_method=pass_all
6201 # This must be Linux ELF.
6202 linux* | k*bsd*-gnu)
6203 lt_cv_deplibs_check_method=pass_all
6206 netbsd*)
6207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6209 else
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6214 newos6*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6216 lt_cv_file_magic_cmd=/usr/bin/file
6217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6220 *nto* | *qnx*)
6221 lt_cv_deplibs_check_method=pass_all
6224 openbsd*)
6225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6227 else
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6232 osf3* | osf4* | osf5*)
6233 lt_cv_deplibs_check_method=pass_all
6236 rdos*)
6237 lt_cv_deplibs_check_method=pass_all
6240 solaris*)
6241 lt_cv_deplibs_check_method=pass_all
6244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6245 lt_cv_deplibs_check_method=pass_all
6248 sysv4 | sysv4.3*)
6249 case $host_vendor in
6250 motorola)
6251 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]'
6252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6254 ncr)
6255 lt_cv_deplibs_check_method=pass_all
6257 sequent)
6258 lt_cv_file_magic_cmd='/bin/file'
6259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6261 sni)
6262 lt_cv_file_magic_cmd='/bin/file'
6263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6264 lt_cv_file_magic_test_file=/lib/libc.so
6266 siemens)
6267 lt_cv_deplibs_check_method=pass_all
6270 lt_cv_deplibs_check_method=pass_all
6272 esac
6275 tpf*)
6276 lt_cv_deplibs_check_method=pass_all
6278 esac
6281 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6282 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6283 file_magic_cmd=$lt_cv_file_magic_cmd
6284 deplibs_check_method=$lt_cv_deplibs_check_method
6285 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ar; ac_word=$2
6301 echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303 if test "${ac_cv_prog_AR+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_AR="${ac_tool_prefix}ar"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6325 AR=$ac_cv_prog_AR
6326 if test -n "$AR"; then
6327 echo "$as_me:$LINENO: result: $AR" >&5
6328 echo "${ECHO_T}$AR" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6335 if test -z "$ac_cv_prog_AR"; then
6336 ac_ct_AR=$AR
6337 # Extract the first word of "ar", so it can be a program name with args.
6338 set dummy ar; ac_word=$2
6339 echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_AR="ar"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6361 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365 if test -n "$ac_ct_AR"; then
6366 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6367 echo "${ECHO_T}$ac_ct_AR" >&6
6368 else
6369 echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6373 AR=$ac_ct_AR
6374 else
6375 AR="$ac_cv_prog_AR"
6378 test -z "$AR" && AR=ar
6379 test -z "$AR_FLAGS" && AR_FLAGS=cru
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}strip; ac_word=$2
6394 echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396 if test "${ac_cv_prog_STRIP+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 if test -n "$STRIP"; then
6400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6418 STRIP=$ac_cv_prog_STRIP
6419 if test -n "$STRIP"; then
6420 echo "$as_me:$LINENO: result: $STRIP" >&5
6421 echo "${ECHO_T}$STRIP" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6
6428 if test -z "$ac_cv_prog_STRIP"; then
6429 ac_ct_STRIP=$STRIP
6430 # Extract the first word of "strip", so it can be a program name with args.
6431 set dummy strip; ac_word=$2
6432 echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 if test -n "$ac_ct_STRIP"; then
6438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_STRIP="strip"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6451 done
6452 done
6454 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6458 if test -n "$ac_ct_STRIP"; then
6459 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6460 echo "${ECHO_T}$ac_ct_STRIP" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6466 STRIP=$ac_ct_STRIP
6467 else
6468 STRIP="$ac_cv_prog_STRIP"
6471 test -z "$STRIP" && STRIP=:
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6481 echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6483 if test "${ac_cv_prog_RANLIB+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 if test -n "$RANLIB"; then
6487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507 echo "$as_me:$LINENO: result: $RANLIB" >&5
6508 echo "${ECHO_T}$RANLIB" >&6
6509 else
6510 echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6
6515 if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518 set dummy ranlib; ac_word=$2
6519 echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_ac_ct_RANLIB="ranlib"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6538 done
6539 done
6541 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545 if test -n "$ac_ct_RANLIB"; then
6546 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6547 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6553 RANLIB=$ac_ct_RANLIB
6554 else
6555 RANLIB="$ac_cv_prog_RANLIB"
6558 test -z "$RANLIB" && RANLIB=:
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6570 if test -n "$RANLIB"; then
6571 case $host_os in
6572 openbsd*)
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6578 esac
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6615 # If no C compiler was specified, use CC.
6616 LTCC=${LTCC-"$CC"}
6618 # If no C compiler flags were specified, use CFLAGS.
6619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6621 # Allow CC to be a program name with arguments.
6622 compiler=$CC
6625 # Check for command to grab the raw symbol name followed by C symbol from nm.
6626 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6627 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6628 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6632 # These are sane defaults that work on at least a few old systems.
6633 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6635 # Character class describing NM global symbol codes.
6636 symcode='[BCDEGRST]'
6638 # Regexp to match symbols that can be accessed directly from C.
6639 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6641 # Define system-specific variables.
6642 case $host_os in
6643 aix*)
6644 symcode='[BCDT]'
6646 cygwin* | mingw* | pw32*)
6647 symcode='[ABCDGISTW]'
6649 hpux*)
6650 if test "$host_cpu" = ia64; then
6651 symcode='[ABCDEGRST]'
6654 irix* | nonstopux*)
6655 symcode='[BCDEGRST]'
6657 osf*)
6658 symcode='[BCDEGQRST]'
6660 solaris*)
6661 symcode='[BDRT]'
6663 sco3.2v5*)
6664 symcode='[DT]'
6666 sysv4.2uw2*)
6667 symcode='[DT]'
6669 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6670 symcode='[ABDT]'
6672 sysv4)
6673 symcode='[DFNSTU]'
6675 esac
6677 # If we're using GNU nm, then use its standard symbol codes.
6678 case `$NM -V 2>&1` in
6679 *GNU* | *'with BFD'*)
6680 symcode='[ABCDGIRSTW]' ;;
6681 esac
6683 # Transform an extracted symbol line into a proper C declaration.
6684 # Some systems (esp. on ia64) link data and code symbols differently,
6685 # so use this general approach.
6686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6688 # Transform an extracted symbol line into symbol name and symbol address
6689 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6691 # Handle CRLF in mingw tool chain
6692 opt_cr=
6693 case $build_os in
6694 mingw*)
6695 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6697 esac
6699 # Try without a prefix underscore, then with it.
6700 for ac_symprfx in "" "_"; do
6702 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6703 symxfrm="\\1 $ac_symprfx\\2 \\2"
6705 # Write the raw and C identifiers.
6706 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6707 # Fake it for dumpbin and say T for any non-static function
6708 # and D for any global variable.
6709 # Also find C++ and __fastcall symbols from MSVC++,
6710 # which start with @ or ?.
6711 lt_cv_sys_global_symbol_pipe="$AWK '"\
6712 " {last_section=section; section=\$ 3};"\
6713 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6714 " \$ 0!~/External *\|/{next};"\
6715 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6716 " {if(hide[section]) next};"\
6717 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6718 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6719 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6720 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6721 " ' prfx=^$ac_symprfx"
6722 else
6723 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6726 # Check to see that the pipe works correctly.
6727 pipe_works=no
6729 rm -f conftest*
6730 cat > conftest.$ac_ext <<_LT_EOF
6731 #ifdef __cplusplus
6732 extern "C" {
6733 #endif
6734 char nm_test_var;
6735 void nm_test_func(void);
6736 void nm_test_func(void){}
6737 #ifdef __cplusplus
6739 #endif
6740 int main(){nm_test_var='a';nm_test_func();return(0);}
6741 _LT_EOF
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; then
6748 # Now try to grab the symbols.
6749 nlist=conftest.nm
6750 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6751 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && test -s "$nlist"; then
6755 # Try sorting and uniquifying the output.
6756 if sort "$nlist" | uniq > "$nlist"T; then
6757 mv -f "$nlist"T "$nlist"
6758 else
6759 rm -f "$nlist"T
6762 # Make sure that we snagged all the symbols we need.
6763 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6764 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6765 cat <<_LT_EOF > conftest.$ac_ext
6766 #ifdef __cplusplus
6767 extern "C" {
6768 #endif
6770 _LT_EOF
6771 # Now generate the symbol file.
6772 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6774 cat <<_LT_EOF >> conftest.$ac_ext
6776 /* The mapping between symbol names and symbols. */
6777 const struct {
6778 const char *name;
6779 void *address;
6781 lt__PROGRAM__LTX_preloaded_symbols[] =
6783 { "@PROGRAM@", (void *) 0 },
6784 _LT_EOF
6785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6786 cat <<\_LT_EOF >> conftest.$ac_ext
6787 {0, (void *) 0}
6790 /* This works around a problem in FreeBSD linker */
6791 #ifdef FREEBSD_WORKAROUND
6792 static const void *lt_preloaded_setup() {
6793 return lt__PROGRAM__LTX_preloaded_symbols;
6795 #endif
6797 #ifdef __cplusplus
6799 #endif
6800 _LT_EOF
6801 # Now try linking the two files.
6802 mv conftest.$ac_objext conftstm.$ac_objext
6803 lt_save_LIBS="$LIBS"
6804 lt_save_CFLAGS="$CFLAGS"
6805 LIBS="conftstm.$ac_objext"
6806 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6812 pipe_works=yes
6814 LIBS="$lt_save_LIBS"
6815 CFLAGS="$lt_save_CFLAGS"
6816 else
6817 echo "cannot find nm_test_func in $nlist" >&5
6819 else
6820 echo "cannot find nm_test_var in $nlist" >&5
6822 else
6823 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6825 else
6826 echo "$progname: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 rm -f conftest* conftst*
6831 # Do not use the global_symbol_pipe unless it works.
6832 if test "$pipe_works" = yes; then
6833 break
6834 else
6835 lt_cv_sys_global_symbol_pipe=
6837 done
6841 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6842 lt_cv_sys_global_symbol_to_cdecl=
6844 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6845 echo "$as_me:$LINENO: result: failed" >&5
6846 echo "${ECHO_T}failed" >&6
6847 else
6848 echo "$as_me:$LINENO: result: ok" >&5
6849 echo "${ECHO_T}ok" >&6
6868 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then
6870 enableval="$enable_libtool_lock"
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6893 esac
6895 rm -rf conftest*
6897 *-*-irix6*)
6898 # Find out which ABI we are using.
6899 echo '#line 6899 "configure"' > conftest.$ac_ext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; then
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6922 *N32*)
6923 LD="${LD-ld} -n32"
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6928 esac
6931 rm -rf conftest*
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6949 x86_64-*linux*)
6950 LD="${LD-ld} -m elf_i386"
6952 ppc64-*linux*|powerpc64-*linux*)
6953 LD="${LD-ld} -m elf32ppclinux"
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6961 esac
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6971 ppc*-*linux*|powerpc*-*linux*)
6972 LD="${LD-ld} -m elf64ppc"
6974 s390*-*linux*|s390*-*tpf*)
6975 LD="${LD-ld} -m elf64_s390"
6977 sparc*-*linux*)
6978 LD="${LD-ld} -m elf64_sparc"
6980 esac
6982 esac
6984 rm -rf conftest*
6987 *-*-sco3.2v5*)
6988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989 SAVE_CFLAGS="$CFLAGS"
6990 CFLAGS="$CFLAGS -belf"
6991 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6992 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6993 if test "${lt_cv_cc_needs_belf+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7010 main ()
7014 return 0;
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag"
7027 || test ! -s conftest.err'
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); }; } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 lt_cv_cc_needs_belf=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 lt_cv_cc_needs_belf=no
7046 rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 ac_ext=c
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7056 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7059 CFLAGS="$SAVE_CFLAGS"
7062 sparc*-*solaris*)
7063 # Find out which ABI we are using.
7064 echo 'int i;' > conftest.$ac_ext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; then
7070 case `/usr/bin/file conftest.o` in
7071 *64-bit*)
7072 case $lt_cv_prog_gnu_ld in
7073 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7074 *) LD="${LD-ld} -64" ;;
7075 esac
7077 esac
7079 rm -rf conftest*
7081 esac
7083 need_locks="$enable_libtool_lock"
7086 for ac_header in dlfcn.h
7088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7089 echo "$as_me:$LINENO: checking for $ac_header" >&5
7090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7102 #include <$ac_header>
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
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); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 eval "$as_ac_Header=yes"
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 eval "$as_ac_Header=no"
7133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7138 cat >>confdefs.h <<_ACEOF
7139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 _ACEOF
7144 done
7148 # This can be used to rebuild libtool when needed
7149 LIBTOOL_DEPS="$ltmain"
7151 # Always use our own libtool.
7152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7178 test -z "$LN_S" && LN_S="ln -s"
7193 if test -n "${ZSH_VERSION+set}" ; then
7194 setopt NO_GLOB_SUBST
7197 echo "$as_me:$LINENO: checking for objdir" >&5
7198 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7199 if test "${lt_cv_objdir+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 rm -f .libs 2>/dev/null
7203 mkdir .libs 2>/dev/null
7204 if test -d .libs; then
7205 lt_cv_objdir=.libs
7206 else
7207 # MS-DOS does not allow filenames that begin with a dot.
7208 lt_cv_objdir=_libs
7210 rmdir .libs 2>/dev/null
7212 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7213 echo "${ECHO_T}$lt_cv_objdir" >&6
7214 objdir=$lt_cv_objdir
7220 cat >>confdefs.h <<_ACEOF
7221 #define LT_OBJDIR "$lt_cv_objdir/"
7222 _ACEOF
7240 case $host_os in
7241 aix3*)
7242 # AIX sometimes has problems with the GCC collect2 program. For some
7243 # reason, if we set the COLLECT_NAMES environment variable, the problems
7244 # vanish in a puff of smoke.
7245 if test "X${COLLECT_NAMES+set}" != Xset; then
7246 COLLECT_NAMES=
7247 export COLLECT_NAMES
7250 esac
7252 # Sed substitution that helps us do robust quoting. It backslashifies
7253 # metacharacters that are still active within double-quoted strings.
7254 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7256 # Same as above, but do not quote variable references.
7257 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7259 # Sed substitution to delay expansion of an escaped shell variable in a
7260 # double_quote_subst'ed string.
7261 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7263 # Sed substitution to delay expansion of an escaped single quote.
7264 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7266 # Sed substitution to avoid accidental globbing in evaled expressions
7267 no_glob_subst='s/\*/\\\*/g'
7269 # Global variables:
7270 ofile=libtool
7271 can_build_shared=yes
7273 # All known linkers require a `.a' archive for static linking (except MSVC,
7274 # which needs '.lib').
7275 libext=a
7277 with_gnu_ld="$lt_cv_prog_gnu_ld"
7279 old_CC="$CC"
7280 old_CFLAGS="$CFLAGS"
7282 # Set sane defaults for various variables
7283 test -z "$CC" && CC=cc
7284 test -z "$LTCC" && LTCC=$CC
7285 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7286 test -z "$LD" && LD=ld
7287 test -z "$ac_objext" && ac_objext=o
7289 for cc_temp in $compiler""; do
7290 case $cc_temp in
7291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7293 \-*) ;;
7294 *) break;;
7295 esac
7296 done
7297 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7300 # Only perform the check for file, if the check method requires it
7301 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7302 case $deplibs_check_method in
7303 file_magic*)
7304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7305 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7306 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 case $MAGIC_CMD in
7311 [\\/*] | ?:[\\/]*)
7312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7315 lt_save_MAGIC_CMD="$MAGIC_CMD"
7316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7318 for ac_dir in $ac_dummy; do
7319 IFS="$lt_save_ifs"
7320 test -z "$ac_dir" && ac_dir=.
7321 if test -f $ac_dir/${ac_tool_prefix}file; then
7322 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7323 if test -n "$file_magic_test_file"; then
7324 case $deplibs_check_method in
7325 "file_magic "*)
7326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7329 $EGREP "$file_magic_regex" > /dev/null; then
7331 else
7332 cat <<_LT_EOF 1>&2
7334 *** Warning: the command libtool uses to detect shared libraries,
7335 *** $file_magic_cmd, produces output that libtool cannot recognize.
7336 *** The result is that libtool may fail to recognize shared libraries
7337 *** as such. This will affect the creation of libtool libraries that
7338 *** depend on shared libraries, but programs linked with such libtool
7339 *** libraries will work regardless of this problem. Nevertheless, you
7340 *** may want to report the problem to your system manager and/or to
7341 *** bug-libtool@gnu.org
7343 _LT_EOF
7344 fi ;;
7345 esac
7347 break
7349 done
7350 IFS="$lt_save_ifs"
7351 MAGIC_CMD="$lt_save_MAGIC_CMD"
7353 esac
7356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357 if test -n "$MAGIC_CMD"; then
7358 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7359 echo "${ECHO_T}$MAGIC_CMD" >&6
7360 else
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7369 if test -z "$lt_cv_path_MAGIC_CMD"; then
7370 if test -n "$ac_tool_prefix"; then
7371 echo "$as_me:$LINENO: checking for file" >&5
7372 echo $ECHO_N "checking for file... $ECHO_C" >&6
7373 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 case $MAGIC_CMD in
7377 [\\/*] | ?:[\\/]*)
7378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7381 lt_save_MAGIC_CMD="$MAGIC_CMD"
7382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7384 for ac_dir in $ac_dummy; do
7385 IFS="$lt_save_ifs"
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f $ac_dir/file; then
7388 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7389 if test -n "$file_magic_test_file"; then
7390 case $deplibs_check_method in
7391 "file_magic "*)
7392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7395 $EGREP "$file_magic_regex" > /dev/null; then
7397 else
7398 cat <<_LT_EOF 1>&2
7400 *** Warning: the command libtool uses to detect shared libraries,
7401 *** $file_magic_cmd, produces output that libtool cannot recognize.
7402 *** The result is that libtool may fail to recognize shared libraries
7403 *** as such. This will affect the creation of libtool libraries that
7404 *** depend on shared libraries, but programs linked with such libtool
7405 *** libraries will work regardless of this problem. Nevertheless, you
7406 *** may want to report the problem to your system manager and/or to
7407 *** bug-libtool@gnu.org
7409 _LT_EOF
7410 fi ;;
7411 esac
7413 break
7415 done
7416 IFS="$lt_save_ifs"
7417 MAGIC_CMD="$lt_save_MAGIC_CMD"
7419 esac
7422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423 if test -n "$MAGIC_CMD"; then
7424 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7425 echo "${ECHO_T}$MAGIC_CMD" >&6
7426 else
7427 echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7432 else
7433 MAGIC_CMD=:
7439 esac
7441 # Use C for the default configuration in the libtool script
7443 lt_save_CC="$CC"
7444 ac_ext=c
7445 ac_cpp='$CPP $CPPFLAGS'
7446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451 # Source file extension for C test sources.
7452 ac_ext=c
7454 # Object file extension for compiled C test sources.
7455 objext=o
7456 objext=$objext
7458 # Code to be used in simple compile tests
7459 lt_simple_compile_test_code="int some_variable = 0;"
7461 # Code to be used in simple link tests
7462 lt_simple_link_test_code='int main(){return(0);}'
7470 # If no C compiler was specified, use CC.
7471 LTCC=${LTCC-"$CC"}
7473 # If no C compiler flags were specified, use CFLAGS.
7474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7476 # Allow CC to be a program name with arguments.
7477 compiler=$CC
7479 # Save the default compiler, since it gets overwritten when the other
7480 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7481 compiler_DEFAULT=$CC
7483 # save warnings/boilerplate of simple test code
7484 ac_outfile=conftest.$ac_objext
7485 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487 _lt_compiler_boilerplate=`cat conftest.err`
7488 $RM conftest*
7490 ac_outfile=conftest.$ac_objext
7491 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493 _lt_linker_boilerplate=`cat conftest.err`
7494 $RM conftest*
7497 ## CAVEAT EMPTOR:
7498 ## There is no encapsulation within the following macros, do not change
7499 ## the running order or otherwise move them around unless you know exactly
7500 ## what you are doing...
7501 if test -n "$compiler"; then
7503 lt_prog_compiler_no_builtin_flag=
7505 if test "$GCC" = yes; then
7506 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7508 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7509 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7510 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 lt_cv_prog_compiler_rtti_exceptions=no
7514 ac_outfile=conftest.$ac_objext
7515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7516 lt_compiler_flag="-fno-rtti -fno-exceptions"
7517 # Insert the option either (1) after the last *FLAGS variable, or
7518 # (2) before a word containing "conftest.", or (3) at the end.
7519 # Note that $ac_compile itself does not contain backslashes and begins
7520 # with a dollar sign (not a hyphen), so the echo should work correctly.
7521 # The option is referenced via a variable to avoid confusing sed.
7522 lt_compile=`echo "$ac_compile" | $SED \
7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525 -e 's:$: $lt_compiler_flag:'`
7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
7527 (eval "$lt_compile" 2>conftest.err)
7528 ac_status=$?
7529 cat conftest.err >&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 if (exit $ac_status) && test -s "$ac_outfile"; then
7532 # The compiler can only warn and ignore the option if not recognized
7533 # So say no if there are warnings other than the usual output.
7534 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7537 lt_cv_prog_compiler_rtti_exceptions=yes
7540 $RM conftest*
7543 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7544 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7548 else
7559 lt_prog_compiler_wl=
7560 lt_prog_compiler_pic=
7561 lt_prog_compiler_static=
7563 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7566 if test "$GCC" = yes; then
7567 lt_prog_compiler_wl='-Wl,'
7568 lt_prog_compiler_static='-static'
7570 case $host_os in
7571 aix*)
7572 # All AIX code is PIC.
7573 if test "$host_cpu" = ia64; then
7574 # AIX 5 now supports IA64 processor
7575 lt_prog_compiler_static='-Bstatic'
7579 amigaos*)
7580 if test "$host_cpu" = m68k; then
7581 # FIXME: we need at least 68020 code to build shared libraries, but
7582 # adding the `-m68020' flag to GCC prevents building anything better,
7583 # like `-m68040'.
7584 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589 # PIC is the default for these OSes.
7592 mingw* | cygwin* | pw32* | os2*)
7593 # This hack is so that the source file can tell whether it is being
7594 # built for inclusion in a dll (and should export symbols for example).
7595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7596 # (--disable-auto-import) libraries
7597 lt_prog_compiler_pic='-DDLL_EXPORT'
7600 darwin* | rhapsody*)
7601 # PIC is the default on this platform
7602 # Common symbols not allowed in MH_DYLIB files
7603 lt_prog_compiler_pic='-fno-common'
7606 hpux*)
7607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7608 # not for PA HP-UX.
7609 case $host_cpu in
7610 hppa*64*|ia64*)
7611 # +Z the default
7614 lt_prog_compiler_pic='-fPIC'
7616 esac
7619 interix[3-9]*)
7620 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7621 # Instead, we relocate shared libraries at runtime.
7624 msdosdjgpp*)
7625 # Just because we use GCC doesn't mean we suddenly get shared libraries
7626 # on systems that don't support them.
7627 lt_prog_compiler_can_build_shared=no
7628 enable_shared=no
7631 *nto* | *qnx*)
7632 # QNX uses GNU C++, but need to define -shared option too, otherwise
7633 # it will coredump.
7634 lt_prog_compiler_pic='-fPIC -shared'
7637 sysv4*MP*)
7638 if test -d /usr/nec; then
7639 lt_prog_compiler_pic=-Kconform_pic
7644 lt_prog_compiler_pic='-fPIC'
7646 esac
7647 else
7648 # PORTME Check for flag to pass linker flags through the system compiler.
7649 case $host_os in
7650 aix*)
7651 lt_prog_compiler_wl='-Wl,'
7652 if test "$host_cpu" = ia64; then
7653 # AIX 5 now supports IA64 processor
7654 lt_prog_compiler_static='-Bstatic'
7655 else
7656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7659 darwin*)
7660 # PIC is the default on this platform
7661 # Common symbols not allowed in MH_DYLIB files
7662 case $cc_basename in
7663 xlc*)
7664 lt_prog_compiler_pic='-qnocommon'
7665 lt_prog_compiler_wl='-Wl,'
7667 esac
7670 mingw* | cygwin* | pw32* | os2*)
7671 # This hack is so that the source file can tell whether it is being
7672 # built for inclusion in a dll (and should export symbols for example).
7673 lt_prog_compiler_pic='-DDLL_EXPORT'
7676 hpux9* | hpux10* | hpux11*)
7677 lt_prog_compiler_wl='-Wl,'
7678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679 # not for PA HP-UX.
7680 case $host_cpu in
7681 hppa*64*|ia64*)
7682 # +Z the default
7685 lt_prog_compiler_pic='+Z'
7687 esac
7688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7689 lt_prog_compiler_static='${wl}-a ${wl}archive'
7692 irix5* | irix6* | nonstopux*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # PIC (with -KPIC) is the default.
7695 lt_prog_compiler_static='-non_shared'
7698 linux* | k*bsd*-gnu)
7699 case $cc_basename in
7700 icc* | ecc*)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-static'
7705 pgcc* | pgf77* | pgf90* | pgf95*)
7706 # Portland Group compilers (*not* the Pentium gcc compiler,
7707 # which looks to be a dead project)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-fpic'
7710 lt_prog_compiler_static='-Bstatic'
7712 ccc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All Alpha code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7718 case `$CC -V 2>&1 | sed 5q` in
7719 *Sun\ C*)
7720 # Sun C 5.9
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl='-Wl,'
7725 *Sun\ F*)
7726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 lt_prog_compiler_wl=''
7731 esac
7733 esac
7736 newsos6)
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7741 *nto* | *qnx*)
7742 # QNX uses GNU C++, but need to define -shared option too, otherwise
7743 # it will coredump.
7744 lt_prog_compiler_pic='-fPIC -shared'
7747 osf3* | osf4* | osf5*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # All OSF/1 code is PIC.
7750 lt_prog_compiler_static='-non_shared'
7753 rdos*)
7754 lt_prog_compiler_static='-non_shared'
7757 solaris*)
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 case $cc_basename in
7761 f77* | f90* | f95*)
7762 lt_prog_compiler_wl='-Qoption ld ';;
7764 lt_prog_compiler_wl='-Wl,';;
7765 esac
7768 sunos4*)
7769 lt_prog_compiler_wl='-Qoption ld '
7770 lt_prog_compiler_pic='-PIC'
7771 lt_prog_compiler_static='-Bstatic'
7774 sysv4 | sysv4.2uw2* | sysv4.3*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-KPIC'
7777 lt_prog_compiler_static='-Bstatic'
7780 sysv4*MP*)
7781 if test -d /usr/nec ;then
7782 lt_prog_compiler_pic='-Kconform_pic'
7783 lt_prog_compiler_static='-Bstatic'
7787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-KPIC'
7790 lt_prog_compiler_static='-Bstatic'
7793 unicos*)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_can_build_shared=no
7798 uts4*)
7799 lt_prog_compiler_pic='-pic'
7800 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_can_build_shared=no
7806 esac
7809 case $host_os in
7810 # For platforms which do not support PIC, -DPIC is meaningless:
7811 *djgpp*)
7812 lt_prog_compiler_pic=
7815 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7817 esac
7818 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7819 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7827 # Check to make sure the PIC flag actually works.
7829 if test -n "$lt_prog_compiler_pic"; then
7830 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7831 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7832 if test "${lt_prog_compiler_pic_works+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 lt_prog_compiler_pic_works=no
7836 ac_outfile=conftest.$ac_objext
7837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7839 # Insert the option either (1) after the last *FLAGS variable, or
7840 # (2) before a word containing "conftest.", or (3) at the end.
7841 # Note that $ac_compile itself does not contain backslashes and begins
7842 # with a dollar sign (not a hyphen), so the echo should work correctly.
7843 # The option is referenced via a variable to avoid confusing sed.
7844 lt_compile=`echo "$ac_compile" | $SED \
7845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847 -e 's:$: $lt_compiler_flag:'`
7848 (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7849 (eval "$lt_compile" 2>conftest.err)
7850 ac_status=$?
7851 cat conftest.err >&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 if (exit $ac_status) && test -s "$ac_outfile"; then
7854 # The compiler can only warn and ignore the option if not recognized
7855 # So say no if there are warnings other than the usual output.
7856 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_prog_compiler_pic_works=yes
7862 $RM conftest*
7865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7866 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7868 if test x"$lt_prog_compiler_pic_works" = xyes; then
7869 case $lt_prog_compiler_pic in
7870 "" | " "*) ;;
7871 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7872 esac
7873 else
7874 lt_prog_compiler_pic=
7875 lt_prog_compiler_can_build_shared=no
7886 # Check to make sure the static flag actually works.
7888 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7889 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7890 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7891 if test "${lt_prog_compiler_static_works+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 lt_prog_compiler_static_works=no
7895 save_LDFLAGS="$LDFLAGS"
7896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7899 # The linker can only warn and ignore the option if not recognized
7900 # So say no if there are warnings
7901 if test -s conftest.err; then
7902 # Append any errors to the config.log.
7903 cat conftest.err 1>&5
7904 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906 if diff conftest.exp conftest.er2 >/dev/null; then
7907 lt_prog_compiler_static_works=yes
7909 else
7910 lt_prog_compiler_static_works=yes
7913 $RM conftest*
7914 LDFLAGS="$save_LDFLAGS"
7917 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7918 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7920 if test x"$lt_prog_compiler_static_works" = xyes; then
7922 else
7923 lt_prog_compiler_static=
7932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7934 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 lt_cv_prog_compiler_c_o=no
7938 $RM -r conftest 2>/dev/null
7939 mkdir conftest
7940 cd conftest
7941 mkdir out
7942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944 lt_compiler_flag="-o out/conftest2.$ac_objext"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 lt_compile=`echo "$ac_compile" | $SED \
7950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7952 -e 's:$: $lt_compiler_flag:'`
7953 (eval echo "\"\$as_me:7953: $lt_compile\"" >&5)
7954 (eval "$lt_compile" 2>out/conftest.err)
7955 ac_status=$?
7956 cat out/conftest.err >&5
7957 echo "$as_me:7957: \$? = $ac_status" >&5
7958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7959 then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings
7962 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_c_o=yes
7968 chmod u+w . 2>&5
7969 $RM conftest*
7970 # SGI C++ compiler will create directory out/ii_files/ for
7971 # template instantiation
7972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7973 $RM out/* && rmdir out
7974 cd ..
7975 $RM -r conftest
7976 $RM conftest*
7979 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7987 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7988 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 lt_cv_prog_compiler_c_o=no
7993 $RM -r conftest 2>/dev/null
7994 mkdir conftest
7995 cd conftest
7996 mkdir out
7997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7999 lt_compiler_flag="-o out/conftest2.$ac_objext"
8000 # Insert the option either (1) after the last *FLAGS variable, or
8001 # (2) before a word containing "conftest.", or (3) at the end.
8002 # Note that $ac_compile itself does not contain backslashes and begins
8003 # with a dollar sign (not a hyphen), so the echo should work correctly.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
8008 (eval echo "\"\$as_me:8008: $lt_compile\"" >&5)
8009 (eval "$lt_compile" 2>out/conftest.err)
8010 ac_status=$?
8011 cat out/conftest.err >&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014 then
8015 # The compiler can only warn and ignore the option if not recognized
8016 # So say no if there are warnings
8017 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8020 lt_cv_prog_compiler_c_o=yes
8023 chmod u+w . 2>&5
8024 $RM conftest*
8025 # SGI C++ compiler will create directory out/ii_files/ for
8026 # template instantiation
8027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8028 $RM out/* && rmdir out
8029 cd ..
8030 $RM -r conftest
8031 $RM conftest*
8034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8040 hard_links="nottested"
8041 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8042 # do not overwrite the value of need_locks provided by the user
8043 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8045 hard_links=yes
8046 $RM conftest*
8047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8048 touch conftest.a
8049 ln conftest.a conftest.b 2>&5 || hard_links=no
8050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8051 echo "$as_me:$LINENO: result: $hard_links" >&5
8052 echo "${ECHO_T}$hard_links" >&6
8053 if test "$hard_links" = no; then
8054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8056 need_locks=warn
8058 else
8059 need_locks=no
8067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8070 runpath_var=
8071 allow_undefined_flag=
8072 always_export_symbols=no
8073 archive_cmds=
8074 archive_expsym_cmds=
8075 compiler_needs_object=no
8076 enable_shared_with_static_runtimes=no
8077 export_dynamic_flag_spec=
8078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8079 hardcode_automatic=no
8080 hardcode_direct=no
8081 hardcode_direct_absolute=no
8082 hardcode_libdir_flag_spec=
8083 hardcode_libdir_flag_spec_ld=
8084 hardcode_libdir_separator=
8085 hardcode_minus_L=no
8086 hardcode_shlibpath_var=unsupported
8087 inherit_rpath=no
8088 link_all_deplibs=unknown
8089 module_cmds=
8090 module_expsym_cmds=
8091 old_archive_from_new_cmds=
8092 old_archive_from_expsyms_cmds=
8093 thread_safe_flag_spec=
8094 whole_archive_flag_spec=
8095 # include_expsyms should be a list of space-separated symbols to be *always*
8096 # included in the symbol list
8097 include_expsyms=
8098 # exclude_expsyms can be an extended regexp of symbols to exclude
8099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8101 # as well as any symbol that contains `d'.
8102 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8104 # platforms (ab)use it in PIC code, but their linkers get confused if
8105 # the symbol is explicitly referenced. Since portable code cannot
8106 # rely on this symbol name, it's probably fine to never include it in
8107 # preloaded symbol tables.
8108 extract_expsyms_cmds=
8110 case $host_os in
8111 cygwin* | mingw* | pw32*)
8112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8113 # When not using gcc, we currently assume that we are using
8114 # Microsoft Visual C++.
8115 if test "$GCC" != yes; then
8116 with_gnu_ld=no
8119 interix*)
8120 # we just hope/assume this is gcc and not c89 (= MSVC++)
8121 with_gnu_ld=yes
8123 openbsd*)
8124 with_gnu_ld=no
8126 esac
8128 ld_shlibs=yes
8129 if test "$with_gnu_ld" = yes; then
8130 # If archive_cmds runs LD, not CC, wlarc should be empty
8131 wlarc='${wl}'
8133 # Set some defaults for GNU ld with shared library support. These
8134 # are reset later if shared libraries are not supported. Putting them
8135 # here allows them to be overridden if necessary.
8136 runpath_var=LD_RUN_PATH
8137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8138 export_dynamic_flag_spec='${wl}--export-dynamic'
8139 # ancient GNU ld didn't support --whole-archive et. al.
8140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8142 else
8143 whole_archive_flag_spec=
8145 supports_anon_versioning=no
8146 case `$LD -v 2>&1` in
8147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8150 *\ 2.11.*) ;; # other 2.11 versions
8151 *) supports_anon_versioning=yes ;;
8152 esac
8154 # See if GNU ld supports shared libraries.
8155 case $host_os in
8156 aix[3-9]*)
8157 # On AIX/PPC, the GNU linker is very broken
8158 if test "$host_cpu" != ia64; then
8159 ld_shlibs=no
8160 cat <<_LT_EOF 1>&2
8162 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8163 *** to be unable to reliably create shared libraries on AIX.
8164 *** Therefore, libtool is disabling shared libraries support. If you
8165 *** really care for shared libraries, you may want to modify your PATH
8166 *** so that a non-GNU linker is found, and then restart.
8168 _LT_EOF
8172 amigaos*)
8173 if test "$host_cpu" = m68k; then
8174 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)'
8175 hardcode_libdir_flag_spec='-L$libdir'
8176 hardcode_minus_L=yes
8179 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8180 # that the semantics of dynamic libraries on AmigaOS, at least up
8181 # to version 4, is to share data among multiple programs linked
8182 # with the same dynamic library. Since this doesn't match the
8183 # behavior of shared libraries on other platforms, we can't use
8184 # them.
8185 ld_shlibs=no
8188 beos*)
8189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8190 allow_undefined_flag=unsupported
8191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8192 # support --undefined. This deserves some investigation. FIXME
8193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 else
8195 ld_shlibs=no
8199 cygwin* | mingw* | pw32*)
8200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8201 # as there is no search path for DLLs.
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 allow_undefined_flag=unsupported
8204 always_export_symbols=no
8205 enable_shared_with_static_runtimes=yes
8206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8210 # If the export-symbols file already is a .def file (1st line
8211 # is EXPORTS), use it as is; otherwise, prepend...
8212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8213 cp $export_symbols $output_objdir/$soname.def;
8214 else
8215 echo EXPORTS > $output_objdir/$soname.def;
8216 cat $export_symbols >> $output_objdir/$soname.def;
8218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8219 else
8220 ld_shlibs=no
8224 interix[3-9]*)
8225 hardcode_direct=no
8226 hardcode_shlibpath_var=no
8227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8228 export_dynamic_flag_spec='${wl}-E'
8229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8230 # Instead, shared libraries are loaded at an image base (0x10000000 by
8231 # default) and relocated if they conflict, which is a slow very memory
8232 # consuming and fragmenting process. To avoid this, we pick a random,
8233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8236 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'
8239 gnu* | linux* | tpf* | k*bsd*-gnu)
8240 tmp_diet=no
8241 if test "$host_os" = linux-dietlibc; then
8242 case $cc_basename in
8243 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8244 esac
8246 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8247 && test "$tmp_diet" = no
8248 then
8249 tmp_addflag=
8250 case $cc_basename,$host_cpu in
8251 pgcc*) # Portland Group C compiler
8252 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'
8253 tmp_addflag=' $pic_flag'
8255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8256 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'
8257 tmp_addflag=' $pic_flag -Mnomain' ;;
8258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8259 tmp_addflag=' -i_dynamic' ;;
8260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8261 tmp_addflag=' -i_dynamic -nofor_main' ;;
8262 ifc* | ifort*) # Intel Fortran compiler
8263 tmp_addflag=' -nofor_main' ;;
8264 esac
8265 case `$CC -V 2>&1 | sed 5q` in
8266 *Sun\ C*) # Sun C 5.9
8267 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'
8268 compiler_needs_object=yes
8269 tmp_sharedflag='-G' ;;
8270 *Sun\ F*) # Sun Fortran 8.3
8271 tmp_sharedflag='-G' ;;
8273 tmp_sharedflag='-shared' ;;
8274 esac
8275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 if test "x$supports_anon_versioning" = xyes; then
8278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8280 echo "local: *; };" >> $output_objdir/$libname.ver~
8281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8283 else
8284 ld_shlibs=no
8288 netbsd*)
8289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8291 wlarc=
8292 else
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8298 solaris*)
8299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8300 ld_shlibs=no
8301 cat <<_LT_EOF 1>&2
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems. Therefore, libtool
8305 *** is disabling shared libraries support. We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer. Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8310 _LT_EOF
8311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314 else
8315 ld_shlibs=no
8319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320 case `$LD -v 2>&1` in
8321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8322 ld_shlibs=no
8323 cat <<_LT_EOF 1>&2
8325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326 *** reliably create shared libraries on SCO systems. Therefore, libtool
8327 *** is disabling shared libraries support. We urge you to upgrade GNU
8328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8329 *** your PATH or compiler configuration so that the native linker is
8330 *** used, and then restart.
8332 _LT_EOF
8335 # For security reasons, it is highly recommended that you always
8336 # use absolute paths for naming shared libraries, and exclude the
8337 # DT_RUNPATH tag from executables and libraries. But doing so
8338 # requires that you compile everything twice, which is a pain.
8339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8343 else
8344 ld_shlibs=no
8347 esac
8350 sunos4*)
8351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8352 wlarc=
8353 hardcode_direct=yes
8354 hardcode_shlibpath_var=no
8358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361 else
8362 ld_shlibs=no
8365 esac
8367 if test "$ld_shlibs" = no; then
8368 runpath_var=
8369 hardcode_libdir_flag_spec=
8370 export_dynamic_flag_spec=
8371 whole_archive_flag_spec=
8373 else
8374 # PORTME fill in a description of your system's linker (not GNU ld)
8375 case $host_os in
8376 aix3*)
8377 allow_undefined_flag=unsupported
8378 always_export_symbols=yes
8379 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'
8380 # Note: this linker hardcodes the directories in LIBPATH if there
8381 # are no directories specified by -L.
8382 hardcode_minus_L=yes
8383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8384 # Neither direct hardcoding nor static linking is supported with a
8385 # broken collect2.
8386 hardcode_direct=unsupported
8390 aix[4-9]*)
8391 if test "$host_cpu" = ia64; then
8392 # On IA64, the linker does run time linking by default, so we don't
8393 # have to do anything special.
8394 aix_use_runtimelinking=no
8395 exp_sym_flag='-Bexport'
8396 no_entry_flag=""
8397 else
8398 # If we're using GNU nm, then we don't want the "-C" option.
8399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8401 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'
8402 else
8403 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'
8405 aix_use_runtimelinking=no
8407 # Test if we are trying to use run time linking or normal
8408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8409 # need to do runtime linking.
8410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8411 for ld_flag in $LDFLAGS; do
8412 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8413 aix_use_runtimelinking=yes
8414 break
8416 done
8418 esac
8420 exp_sym_flag='-bexport'
8421 no_entry_flag='-bnoentry'
8424 # When large executables or shared objects are built, AIX ld can
8425 # have problems creating the table of contents. If linking a library
8426 # or program results in "error TOC overflow" add -mminimal-toc to
8427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8430 archive_cmds=''
8431 hardcode_direct=yes
8432 hardcode_direct_absolute=yes
8433 hardcode_libdir_separator=':'
8434 link_all_deplibs=yes
8435 file_list_spec='${wl}-f,'
8437 if test "$GCC" = yes; then
8438 case $host_os in aix4.[012]|aix4.[012].*)
8439 # We only want to do this on AIX 4.2 and lower, the check
8440 # below for broken collect2 doesn't work under 4.3+
8441 collect2name=`${CC} -print-prog-name=collect2`
8442 if test -f "$collect2name" &&
8443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8444 then
8445 # We have reworked collect2
8447 else
8448 # We have old collect2
8449 hardcode_direct=unsupported
8450 # It fails to find uninstalled libraries when the uninstalled
8451 # path is not listed in the libpath. Setting hardcode_minus_L
8452 # to unsupported forces relinking
8453 hardcode_minus_L=yes
8454 hardcode_libdir_flag_spec='-L$libdir'
8455 hardcode_libdir_separator=
8458 esac
8459 shared_flag='-shared'
8460 if test "$aix_use_runtimelinking" = yes; then
8461 shared_flag="$shared_flag "'${wl}-G'
8463 else
8464 # not using gcc
8465 if test "$host_cpu" = ia64; then
8466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8467 # chokes on -Wl,-G. The following line is correct:
8468 shared_flag='-G'
8469 else
8470 if test "$aix_use_runtimelinking" = yes; then
8471 shared_flag='${wl}-G'
8472 else
8473 shared_flag='${wl}-bM:SRE'
8478 # It seems that -bexpall does not export symbols beginning with
8479 # underscore (_), so it is better to generate a list of symbols to export.
8480 always_export_symbols=yes
8481 if test "$aix_use_runtimelinking" = yes; then
8482 # Warning - without using the other runtime loading flags (-brtl),
8483 # -berok will link without error, but may produce a broken library.
8484 allow_undefined_flag='-berok'
8485 # Determine the default libpath from the value encoded in an
8486 # empty executable.
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8495 main ()
8499 return 0;
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
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); }; } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8525 lt_aix_libpath_sed='
8526 /Import File Strings/,/^$/ {
8527 /^0/ {
8528 s/^0 *\(.*\)$/\1/
8532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8533 # Check for a 64-bit object if we didn't find anything.
8534 if test -z "$aix_libpath"; then
8535 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 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"
8548 else
8549 if test "$host_cpu" = ia64; then
8550 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8551 allow_undefined_flag="-z nodefs"
8552 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"
8553 else
8554 # Determine the default libpath from the value encoded in an
8555 # empty executable.
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8564 main ()
8568 return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
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); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8594 lt_aix_libpath_sed='
8595 /Import File Strings/,/^$/ {
8596 /^0/ {
8597 s/^0 *\(.*\)$/\1/
8601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8602 # Check for a 64-bit object if we didn't find anything.
8603 if test -z "$aix_libpath"; then
8604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8611 rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616 # Warning - without using the other run time loading flags,
8617 # -berok will link without error, but may produce a broken library.
8618 no_undefined_flag=' ${wl}-bernotok'
8619 allow_undefined_flag=' ${wl}-berok'
8620 # Exported symbols can be pulled into shared objects from archives
8621 whole_archive_flag_spec='$convenience'
8622 archive_cmds_need_lc=yes
8623 # This is similar to how AIX traditionally builds its shared libraries.
8624 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'
8629 amigaos*)
8630 if test "$host_cpu" = m68k; then
8631 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)'
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8635 # see comment about different semantics on the GNU ld section
8636 ld_shlibs=no
8639 bsdi[45]*)
8640 export_dynamic_flag_spec=-rdynamic
8643 cygwin* | mingw* | pw32*)
8644 # When not using gcc, we currently assume that we are using
8645 # Microsoft Visual C++.
8646 # hardcode_libdir_flag_spec is actually meaningless, as there is
8647 # no search path for DLLs.
8648 hardcode_libdir_flag_spec=' '
8649 allow_undefined_flag=unsupported
8650 # Tell ltmain to make .lib files, not .a files.
8651 libext=lib
8652 # Tell ltmain to make .dll files, not .so files.
8653 shrext_cmds=".dll"
8654 # FIXME: Setting linknames here is a bad hack.
8655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8656 # The linker will automatically build a .lib file if we build a DLL.
8657 old_archive_from_new_cmds='true'
8658 # FIXME: Should let the user specify the lib program.
8659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8660 fix_srcfile_path='`cygpath -w "$srcfile"`'
8661 enable_shared_with_static_runtimes=yes
8664 darwin* | rhapsody*)
8665 case $host_os in
8666 rhapsody* | darwin1.[012])
8667 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8669 *) # Darwin 1.3 on
8670 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8671 10.[012])
8672 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8674 10.*)
8675 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8677 esac
8679 esac
8680 archive_cmds_need_lc=no
8681 hardcode_direct=no
8682 hardcode_automatic=yes
8683 hardcode_shlibpath_var=unsupported
8684 whole_archive_flag_spec=''
8685 link_all_deplibs=yes
8686 if test "$GCC" = yes ; then
8687 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 lt_cv_apple_cc_single_mod=no
8691 if test -z "${LT_MULTI_MODULE}"; then
8692 # By default we will add the -single_module flag. You can override
8693 # by either setting the environment variable LT_MULTI_MODULE
8694 # non-empty at configure time, or by adding -multi-module to the
8695 # link flags.
8696 echo "int foo(void){return 1;}" > conftest.c
8697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8698 -dynamiclib ${wl}-single_module conftest.c
8699 if test -f libconftest.dylib; then
8700 lt_cv_apple_cc_single_mod=yes
8701 rm libconftest.dylib
8703 rm conftest.$ac_ext
8707 output_verbose_link_cmd=echo
8708 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8709 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8710 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}'
8711 else
8712 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8713 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}'
8715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8716 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}'
8717 else
8718 case $cc_basename in
8719 xlc*)
8720 output_verbose_link_cmd=echo
8721 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8722 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8724 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}'
8725 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}'
8728 ld_shlibs=no
8730 esac
8734 dgux*)
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_shlibpath_var=no
8740 freebsd1*)
8741 ld_shlibs=no
8744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8745 # support. Future versions do this automatically, but an explicit c++rt0.o
8746 # does not break anything, and helps significantly (at the cost of a little
8747 # extra space).
8748 freebsd2.2*)
8749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8750 hardcode_libdir_flag_spec='-R$libdir'
8751 hardcode_direct=yes
8752 hardcode_shlibpath_var=no
8755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8756 freebsd2*)
8757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_direct=yes
8759 hardcode_minus_L=yes
8760 hardcode_shlibpath_var=no
8763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8764 freebsd* | dragonfly*)
8765 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8766 hardcode_libdir_flag_spec='-R$libdir'
8767 hardcode_direct=yes
8768 hardcode_shlibpath_var=no
8771 hpux9*)
8772 if test "$GCC" = yes; then
8773 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'
8774 else
8775 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'
8777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779 hardcode_direct=yes
8781 # hardcode_minus_L: Not really in the search PATH,
8782 # but as the default location of the library.
8783 hardcode_minus_L=yes
8784 export_dynamic_flag_spec='${wl}-E'
8787 hpux10*)
8788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790 else
8791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8793 if test "$with_gnu_ld" = no; then
8794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795 hardcode_libdir_flag_spec_ld='+b $libdir'
8796 hardcode_libdir_separator=:
8797 hardcode_direct=yes
8798 hardcode_direct_absolute=yes
8799 export_dynamic_flag_spec='${wl}-E'
8800 # hardcode_minus_L: Not really in the search PATH,
8801 # but as the default location of the library.
8802 hardcode_minus_L=yes
8806 hpux11*)
8807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808 case $host_cpu in
8809 hppa*64*)
8810 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 ia64*)
8813 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8818 esac
8819 else
8820 case $host_cpu in
8821 hppa*64*)
8822 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 ia64*)
8825 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830 esac
8832 if test "$with_gnu_ld" = no; then
8833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834 hardcode_libdir_separator=:
8836 case $host_cpu in
8837 hppa*64*|ia64*)
8838 hardcode_direct=no
8839 hardcode_shlibpath_var=no
8842 hardcode_direct=yes
8843 hardcode_direct_absolute=yes
8844 export_dynamic_flag_spec='${wl}-E'
8846 # hardcode_minus_L: Not really in the search PATH,
8847 # but as the default location of the library.
8848 hardcode_minus_L=yes
8850 esac
8854 irix5* | irix6* | nonstopux*)
8855 if test "$GCC" = yes; then
8856 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'
8857 # Try to use the -exported_symbol ld option, if it does not
8858 # work, assume that -exports_file does not work either and
8859 # implicitly export all symbols.
8860 save_LDFLAGS="$LDFLAGS"
8861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8862 cat >conftest.$ac_ext <<_ACEOF
8863 int foo(void) {}
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -z "$ac_c_werror_flag"
8875 || test ! -s conftest.err'
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); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 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'
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -f conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LDFLAGS="$save_LDFLAGS"
8897 else
8898 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'
8899 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'
8901 archive_cmds_need_lc='no'
8902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903 hardcode_libdir_separator=:
8904 inherit_rpath=yes
8905 link_all_deplibs=yes
8908 netbsd*)
8909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8911 else
8912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8914 hardcode_libdir_flag_spec='-R$libdir'
8915 hardcode_direct=yes
8916 hardcode_shlibpath_var=no
8919 newsos6)
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_direct=yes
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 hardcode_shlibpath_var=no
8927 *nto* | *qnx*)
8930 openbsd*)
8931 hardcode_direct=yes
8932 hardcode_shlibpath_var=no
8933 hardcode_direct_absolute=yes
8934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8938 export_dynamic_flag_spec='${wl}-E'
8939 else
8940 case $host_os in
8941 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_libdir_flag_spec='-R$libdir'
8946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949 esac
8953 os2*)
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 allow_undefined_flag=unsupported
8957 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'
8958 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8961 osf3*)
8962 if test "$GCC" = yes; then
8963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964 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'
8965 else
8966 allow_undefined_flag=' -expect_unresolved \*'
8967 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'
8969 archive_cmds_need_lc='no'
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8974 osf4* | osf5*) # as osf3* with the addition of -msym flag
8975 if test "$GCC" = yes; then
8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 else
8980 allow_undefined_flag=' -expect_unresolved \*'
8981 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'
8982 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~
8983 $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'
8985 # Both c and cxx compiler support -rpath directly
8986 hardcode_libdir_flag_spec='-rpath $libdir'
8988 archive_cmds_need_lc='no'
8989 hardcode_libdir_separator=:
8992 solaris*)
8993 no_undefined_flag=' -z defs'
8994 if test "$GCC" = yes; then
8995 wlarc='${wl}'
8996 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8999 else
9000 case `$CC -V 2>&1` in
9001 *"Compilers 5.0"*)
9002 wlarc=''
9003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9008 wlarc='${wl}'
9009 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9013 esac
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_shlibpath_var=no
9017 case $host_os in
9018 solaris2.[0-5] | solaris2.[0-5].*) ;;
9020 # The compiler driver will combine and reorder linker options,
9021 # but understands `-z linker_flag'. GCC discards it without `$wl',
9022 # but is careful enough not to reorder.
9023 # Supported since Solaris 2.6 (maybe 2.5.1?)
9024 if test "$GCC" = yes; then
9025 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9026 else
9027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9030 esac
9031 link_all_deplibs=yes
9034 sunos4*)
9035 if test "x$host_vendor" = xsequent; then
9036 # Use $CC to link under sequent, because it throws in some extra .o
9037 # files that make .init and .fini sections work.
9038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_direct=yes
9044 hardcode_minus_L=yes
9045 hardcode_shlibpath_var=no
9048 sysv4)
9049 case $host_vendor in
9050 sni)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes # is this really true???
9054 siemens)
9055 ## LD is ld it makes a PLAMLIB
9056 ## CC just makes a GrossModule.
9057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058 reload_cmds='$CC -r -o $output$reload_objs'
9059 hardcode_direct=no
9061 motorola)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9065 esac
9066 runpath_var='LD_RUN_PATH'
9067 hardcode_shlibpath_var=no
9070 sysv4.3*)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var=no
9073 export_dynamic_flag_spec='-Bexport'
9076 sysv4*MP*)
9077 if test -d /usr/nec; then
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 runpath_var=LD_RUN_PATH
9081 hardcode_runpath_var=yes
9082 ld_shlibs=yes
9086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9087 no_undefined_flag='${wl}-z,text'
9088 archive_cmds_need_lc=no
9089 hardcode_shlibpath_var=no
9090 runpath_var='LD_RUN_PATH'
9092 if test "$GCC" = yes; then
9093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 sysv5* | sco3.2v5* | sco5v6*)
9102 # Note: We can NOT use -z defs as we might desire, because we do not
9103 # link with -lc, and that would cause any symbols used from libc to
9104 # always be unresolved, which means just about no library would
9105 # ever link correctly. If we're not using GNU ld we use -z text
9106 # though, which does catch some bad symbols but isn't as heavy-handed
9107 # as -z defs.
9108 no_undefined_flag='${wl}-z,text'
9109 allow_undefined_flag='${wl}-z,nodefs'
9110 archive_cmds_need_lc=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 export_dynamic_flag_spec='${wl}-Bexport'
9116 runpath_var='LD_RUN_PATH'
9118 if test "$GCC" = yes; then
9119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 else
9122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 uts4*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9134 ld_shlibs=no
9136 esac
9138 if test x$host_vendor = xsni; then
9139 case $host in
9140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9143 esac
9147 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9148 echo "${ECHO_T}$ld_shlibs" >&6
9149 test "$ld_shlibs" = no && can_build_shared=no
9151 with_gnu_ld=$with_gnu_ld
9168 # Do we need to explicitly link libc?
9170 case "x$archive_cmds_need_lc" in
9171 x|xyes)
9172 # Assume -lc should be added
9173 archive_cmds_need_lc=yes
9175 if test "$enable_shared" = yes && test "$GCC" = yes; then
9176 case $archive_cmds in
9177 *'~'*)
9178 # FIXME: we may have to deal with multi-command sequences.
9180 '$CC '*)
9181 # Test whether the compiler implicitly links with -lc since on some
9182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9183 # to ld, don't add -lc before -lgcc.
9184 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9185 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } 2>conftest.err; then
9194 soname=conftest
9195 lib=conftest
9196 libobjs=conftest.$ac_objext
9197 deplibs=
9198 wl=$lt_prog_compiler_wl
9199 pic_flag=$lt_prog_compiler_pic
9200 compiler_flags=-v
9201 linker_flags=-v
9202 verstring=
9203 output_objdir=.
9204 libname=conftest
9205 lt_save_allow_undefined_flag=$allow_undefined_flag
9206 allow_undefined_flag=
9207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }
9212 then
9213 archive_cmds_need_lc=no
9214 else
9215 archive_cmds_need_lc=yes
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9221 $RM conftest*
9222 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9223 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9225 esac
9228 esac
9386 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9387 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9388 withGCC=$GCC
9389 if test "$withGCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9404 # Ok, now we have the path, separated by spaces, we can step through it
9405 # and add multilib dir if necessary.
9406 lt_tmp_lt_search_path_spec=
9407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9408 for lt_sys_path in $lt_search_path_spec; do
9409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9411 else
9412 test -d "$lt_sys_path" && \
9413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9415 done
9416 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9417 BEGIN {RS=" "; FS="/|\n";} {
9418 lt_foo="";
9419 lt_count=0;
9420 for (lt_i = NF; lt_i > 0; lt_i--) {
9421 if ($lt_i != "" && $lt_i != ".") {
9422 if ($lt_i == "..") {
9423 lt_count++;
9424 } else {
9425 if (lt_count == 0) {
9426 lt_foo="/" $lt_i lt_foo;
9427 } else {
9428 lt_count--;
9433 if (lt_foo != "") { lt_freq[lt_foo]++; }
9434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9436 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9437 else
9438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9440 library_names_spec=
9441 libname_spec='lib$name'
9442 soname_spec=
9443 shrext_cmds=".so"
9444 postinstall_cmds=
9445 postuninstall_cmds=
9446 finish_cmds=
9447 finish_eval=
9448 shlibpath_var=
9449 shlibpath_overrides_runpath=unknown
9450 version_type=none
9451 dynamic_linker="$host_os ld.so"
9452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9453 need_lib_prefix=unknown
9454 hardcode_into_libs=no
9456 # when you set need_version to no, make sure it does not cause -set_version
9457 # flags to be left without arguments
9458 need_version=unknown
9460 case $host_os in
9461 aix3*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9464 shlibpath_var=LIBPATH
9466 # AIX 3 has no versioning support, so we append a major version to the name.
9467 soname_spec='${libname}${release}${shared_ext}$major'
9470 aix[4-9]*)
9471 version_type=linux
9472 need_lib_prefix=no
9473 need_version=no
9474 hardcode_into_libs=yes
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 supports IA64
9477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 else
9480 # With GCC up to 2.95.x, collect2 would create an import file
9481 # for dependence libraries. The import file would start with
9482 # the line `#! .'. This would cause the generated library to
9483 # depend on `.', always an invalid library. This was fixed in
9484 # development snapshots of GCC prior to 3.0.
9485 case $host_os in
9486 aix4 | aix4.[01] | aix4.[01].*)
9487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9488 echo ' yes '
9489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9491 else
9492 can_build_shared=no
9495 esac
9496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9497 # soname into executable. Probably we can add versioning support to
9498 # collect2, so additional links can be useful in future.
9499 if test "$aix_use_runtimelinking" = yes; then
9500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9501 # instead of lib<name>.a to let people know that these are not
9502 # typical AIX shared libraries.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 else
9505 # We preserve .a as extension for shared libraries through AIX4.2
9506 # and later when we are not doing run time linking.
9507 library_names_spec='${libname}${release}.a $libname.a'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LIBPATH
9514 amigaos*)
9515 if test "$host_cpu" = m68k; then
9516 library_names_spec='$libname.ixlibrary $libname.a'
9517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9518 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'
9519 else
9520 dynamic_linker=no
9524 beos*)
9525 library_names_spec='${libname}${shared_ext}'
9526 dynamic_linker="$host_os ld.so"
9527 shlibpath_var=LIBRARY_PATH
9530 bsdi[45]*)
9531 version_type=linux
9532 need_version=no
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9539 # the default ld.so.conf also contains /usr/contrib/lib and
9540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9541 # libtool to hard-code these into programs
9544 cygwin* | mingw* | pw32*)
9545 version_type=windows
9546 shrext_cmds=".dll"
9547 need_version=no
9548 need_lib_prefix=no
9550 case $withGCC,$host_os in
9551 yes,cygwin* | yes,mingw* | yes,pw32*)
9552 library_names_spec='$libname.dll.a'
9553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9554 postinstall_cmds='base_file=`basename \${file}`~
9555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9556 dldir=$destdir/`dirname \$dlpath`~
9557 test -d \$dldir || mkdir -p \$dldir~
9558 $install_prog $dir/$dlname \$dldir/$dlname~
9559 chmod a+x \$dldir/$dlname~
9560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9564 dlpath=$dir/\$dldll~
9565 $RM \$dlpath'
9566 shlibpath_overrides_runpath=yes
9568 case $host_os in
9569 cygwin*)
9570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9574 mingw*)
9575 # MinGW DLLs use traditional 'lib' prefix
9576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9578 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9579 # It is most probably a Windows format PATH printed by
9580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9581 # path with ; separators, and with drive letters. We can handle the
9582 # drive letters (cygwin fileutils understands them), so leave them,
9583 # especially as we might pass files found there to a mingw objdump,
9584 # which wouldn't understand a cygwinified path. Ahh.
9585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586 else
9587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9590 pw32*)
9591 # pw32 DLLs use 'pw' prefix rather than 'lib'
9592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9594 esac
9598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9600 esac
9601 dynamic_linker='Win32 ld.exe'
9602 # FIXME: first we should search . and the directory the executable is in
9603 shlibpath_var=PATH
9606 darwin* | rhapsody*)
9607 dynamic_linker="$host_os dyld"
9608 version_type=darwin
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9612 soname_spec='${libname}${release}${major}$shared_ext'
9613 shlibpath_overrides_runpath=yes
9614 shlibpath_var=DYLD_LIBRARY_PATH
9615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9621 dgux*)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9630 freebsd1*)
9631 dynamic_linker=no
9634 freebsd* | dragonfly*)
9635 # DragonFly does not have aout. When/if they implement a new
9636 # versioning mechanism, adjust this.
9637 if test -x /usr/bin/objformat; then
9638 objformat=`/usr/bin/objformat`
9639 else
9640 case $host_os in
9641 freebsd[123]*) objformat=aout ;;
9642 *) objformat=elf ;;
9643 esac
9645 version_type=freebsd-$objformat
9646 case $version_type in
9647 freebsd-elf*)
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9649 need_version=no
9650 need_lib_prefix=no
9652 freebsd-*)
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9654 need_version=yes
9656 esac
9657 shlibpath_var=LD_LIBRARY_PATH
9658 case $host_os in
9659 freebsd2*)
9660 shlibpath_overrides_runpath=yes
9662 freebsd3.[01]* | freebsdelf3.[01]*)
9663 shlibpath_overrides_runpath=yes
9664 hardcode_into_libs=yes
9666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9668 shlibpath_overrides_runpath=no
9669 hardcode_into_libs=yes
9671 *) # from 4.6 on, and DragonFly
9672 shlibpath_overrides_runpath=yes
9673 hardcode_into_libs=yes
9675 esac
9678 gnu*)
9679 version_type=linux
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 hardcode_into_libs=yes
9688 hpux9* | hpux10* | hpux11*)
9689 # Give a soname corresponding to the major version so that dld.sl refuses to
9690 # link against other versions.
9691 version_type=sunos
9692 need_lib_prefix=no
9693 need_version=no
9694 case $host_cpu in
9695 ia64*)
9696 shrext_cmds='.so'
9697 hardcode_into_libs=yes
9698 dynamic_linker="$host_os dld.so"
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 if test "X$HPUX_IA64_MODE" = X32; then
9704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9705 else
9706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9710 hppa*64*)
9711 shrext_cmds='.sl'
9712 hardcode_into_libs=yes
9713 dynamic_linker="$host_os dld.sl"
9714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9722 shrext_cmds='.sl'
9723 dynamic_linker="$host_os dld.sl"
9724 shlibpath_var=SHLIB_PATH
9725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9729 esac
9730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9731 postinstall_cmds='chmod 555 $lib'
9734 interix[3-9]*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=no
9743 hardcode_into_libs=yes
9746 irix5* | irix6* | nonstopux*)
9747 case $host_os in
9748 nonstopux*) version_type=nonstopux ;;
9750 if test "$lt_cv_prog_gnu_ld" = yes; then
9751 version_type=linux
9752 else
9753 version_type=irix
9754 fi ;;
9755 esac
9756 need_lib_prefix=no
9757 need_version=no
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9760 case $host_os in
9761 irix5* | nonstopux*)
9762 libsuff= shlibsuff=
9765 case $LD in # libtool.m4 will add one of these switches to LD
9766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9767 libsuff= shlibsuff= libmagic=32-bit;;
9768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9769 libsuff=32 shlibsuff=N32 libmagic=N32;;
9770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9772 *) libsuff= shlibsuff= libmagic=never-match;;
9773 esac
9775 esac
9776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9777 shlibpath_overrides_runpath=no
9778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9780 hardcode_into_libs=yes
9783 # No shared lib support for Linux oldld, aout, or coff.
9784 linux*oldld* | linux*aout* | linux*coff*)
9785 dynamic_linker=no
9788 # This must be Linux ELF.
9789 linux* | k*bsd*-gnu)
9790 version_type=linux
9791 need_lib_prefix=no
9792 need_version=no
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=no
9798 # Some binutils ld are patched to set DT_RUNPATH
9799 save_LDFLAGS=$LDFLAGS
9800 save_libdir=$libdir
9801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9811 main ()
9815 return 0;
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
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); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9841 shlibpath_overrides_runpath=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9849 rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LDFLAGS=$save_LDFLAGS
9852 libdir=$save_libdir
9854 # This implies no fast_install, which is unacceptable.
9855 # Some rework will be needed to allow for fast_install
9856 # before this can be enabled.
9857 hardcode_into_libs=yes
9859 # Append ld.so.conf contents to the search path
9860 if test -f /etc/ld.so.conf; then
9861 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' ' '`
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9865 # We used to test for /lib/ld.so.1 and disable shared libraries on
9866 # powerpc, because MkLinux only supported shared libraries with the
9867 # GNU dynamic linker. Since this was broken with cross compilers,
9868 # most powerpc-linux boxes support dynamic linking these days and
9869 # people can always --disable-shared, the test was removed, and we
9870 # assume the GNU/Linux dynamic linker is in use.
9871 dynamic_linker='GNU/Linux ld.so'
9874 netbsd*)
9875 version_type=sunos
9876 need_lib_prefix=no
9877 need_version=no
9878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9881 dynamic_linker='NetBSD (a.out) ld.so'
9882 else
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 dynamic_linker='NetBSD ld.elf_so'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9892 newsos6)
9893 version_type=linux
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=yes
9899 *nto* | *qnx*)
9900 version_type=qnx
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=no
9907 hardcode_into_libs=yes
9908 dynamic_linker='ldqnx.so'
9911 openbsd*)
9912 version_type=sunos
9913 sys_lib_dlsearch_path_spec="/usr/lib"
9914 need_lib_prefix=no
9915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9916 case $host_os in
9917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9918 *) need_version=no ;;
9919 esac
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924 case $host_os in
9925 openbsd2.[89] | openbsd2.[89].*)
9926 shlibpath_overrides_runpath=no
9929 shlibpath_overrides_runpath=yes
9931 esac
9932 else
9933 shlibpath_overrides_runpath=yes
9937 os2*)
9938 libname_spec='$name'
9939 shrext_cmds=".dll"
9940 need_lib_prefix=no
9941 library_names_spec='$libname${shared_ext} $libname.a'
9942 dynamic_linker='OS/2 ld.exe'
9943 shlibpath_var=LIBPATH
9946 osf3* | osf4* | osf5*)
9947 version_type=osf
9948 need_lib_prefix=no
9949 need_version=no
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9957 rdos*)
9958 dynamic_linker=no
9961 solaris*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9970 # ldd complains unless libraries are executable
9971 postinstall_cmds='chmod +x $lib'
9974 sunos4*)
9975 version_type=sunos
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9980 if test "$with_gnu_ld" = yes; then
9981 need_lib_prefix=no
9983 need_version=yes
9986 sysv4 | sysv4.3*)
9987 version_type=linux
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 case $host_vendor in
9992 sni)
9993 shlibpath_overrides_runpath=no
9994 need_lib_prefix=no
9995 runpath_var=LD_RUN_PATH
9997 siemens)
9998 need_lib_prefix=no
10000 motorola)
10001 need_lib_prefix=no
10002 need_version=no
10003 shlibpath_overrides_runpath=no
10004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10006 esac
10009 sysv4*MP*)
10010 if test -d /usr/nec ;then
10011 version_type=linux
10012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013 soname_spec='$libname${shared_ext}.$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019 version_type=freebsd-elf
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 if test "$with_gnu_ld" = yes; then
10028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10029 else
10030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031 case $host_os in
10032 sco3.2v5*)
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10035 esac
10037 sys_lib_dlsearch_path_spec='/usr/lib'
10040 tpf*)
10041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10051 uts4*)
10052 version_type=linux
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10059 dynamic_linker=no
10061 esac
10062 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10063 echo "${ECHO_T}$dynamic_linker" >&6
10064 test "$dynamic_linker" = no && can_build_shared=no
10066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10067 if test "$GCC" = yes; then
10068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10157 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10159 hardcode_action=
10160 if test -n "$hardcode_libdir_flag_spec" ||
10161 test -n "$runpath_var" ||
10162 test "X$hardcode_automatic" = "Xyes" ; then
10164 # We can hardcode non-existent directories.
10165 if test "$hardcode_direct" != no &&
10166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10167 # have to relink, otherwise we might link with an installed library
10168 # when we should be linking with a yet-to-be-installed one
10169 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10170 test "$hardcode_minus_L" != no; then
10171 # Linking always hardcodes the temporary library directory.
10172 hardcode_action=relink
10173 else
10174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10175 hardcode_action=immediate
10177 else
10178 # We cannot hardcode anything, or else we can only hardcode existing
10179 # directories.
10180 hardcode_action=unsupported
10182 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10183 echo "${ECHO_T}$hardcode_action" >&6
10185 if test "$hardcode_action" = relink ||
10186 test "$inherit_rpath" = yes; then
10187 # Fast installation is not supported
10188 enable_fast_install=no
10189 elif test "$shlibpath_overrides_runpath" = yes ||
10190 test "$enable_shared" = no; then
10191 # Fast installation is not necessary
10192 enable_fast_install=needless
10200 if test "x$enable_dlopen" != xyes; then
10201 enable_dlopen=unknown
10202 enable_dlopen_self=unknown
10203 enable_dlopen_self_static=unknown
10204 else
10205 lt_cv_dlopen=no
10206 lt_cv_dlopen_libs=
10208 case $host_os in
10209 beos*)
10210 lt_cv_dlopen="load_add_on"
10211 lt_cv_dlopen_libs=
10212 lt_cv_dlopen_self=yes
10215 mingw* | pw32*)
10216 lt_cv_dlopen="LoadLibrary"
10217 lt_cv_dlopen_libs=
10220 cygwin*)
10221 lt_cv_dlopen="dlopen"
10222 lt_cv_dlopen_libs=
10225 darwin*)
10226 # if libdl is installed we need to link against it
10227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232 ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-ldl $LIBS"
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h. */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10241 /* Override any gcc2 internal prototype to avoid an error. */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 /* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10247 char dlopen ();
10249 main ()
10251 dlopen ();
10253 return 0;
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
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); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_lib_dl_dlopen=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_cv_lib_dl_dlopen=no
10285 rm -f conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10290 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10291 if test $ac_cv_lib_dl_dlopen = yes; then
10292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10293 else
10295 lt_cv_dlopen="dyld"
10296 lt_cv_dlopen_libs=
10297 lt_cv_dlopen_self=yes
10304 echo "$as_me:$LINENO: checking for shl_load" >&5
10305 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10306 if test "${ac_cv_func_shl_load+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10317 #define shl_load innocuous_shl_load
10319 /* System header to define __stub macros and hopefully few prototypes,
10320 which can conflict with char shl_load (); below.
10321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10322 <limits.h> exists even on freestanding compilers. */
10324 #ifdef __STDC__
10325 # include <limits.h>
10326 #else
10327 # include <assert.h>
10328 #endif
10330 #undef shl_load
10332 /* Override any gcc2 internal prototype to avoid an error. */
10333 #ifdef __cplusplus
10334 extern "C"
10336 #endif
10337 /* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10339 char shl_load ();
10340 /* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10344 choke me
10345 #else
10346 char (*f) () = shl_load;
10347 #endif
10348 #ifdef __cplusplus
10350 #endif
10353 main ()
10355 return f != shl_load;
10357 return 0;
10359 _ACEOF
10360 rm -f conftest.$ac_objext conftest$ac_exeext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag"
10370 || test ! -s conftest.err'
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); }; } &&
10376 { ac_try='test -s conftest$ac_exeext'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_cv_func_shl_load=yes
10383 else
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ac_cv_func_shl_load=no
10389 rm -f conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10392 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10393 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10394 if test $ac_cv_func_shl_load = yes; then
10395 lt_cv_dlopen="shl_load"
10396 else
10397 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10398 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10399 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 ac_check_lib_save_LIBS=$LIBS
10403 LIBS="-ldld $LIBS"
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10411 /* Override any gcc2 internal prototype to avoid an error. */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 /* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417 char shl_load ();
10419 main ()
10421 shl_load ();
10423 return 0;
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
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); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_cv_lib_dld_shl_load=yes
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_cv_lib_dld_shl_load=no
10455 rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10460 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10461 if test $ac_cv_lib_dld_shl_load = yes; then
10462 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10463 else
10464 echo "$as_me:$LINENO: checking for dlopen" >&5
10465 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10466 if test "${ac_cv_func_dlopen+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10477 #define dlopen innocuous_dlopen
10479 /* System header to define __stub macros and hopefully few prototypes,
10480 which can conflict with char dlopen (); below.
10481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10482 <limits.h> exists even on freestanding compilers. */
10484 #ifdef __STDC__
10485 # include <limits.h>
10486 #else
10487 # include <assert.h>
10488 #endif
10490 #undef dlopen
10492 /* Override any gcc2 internal prototype to avoid an error. */
10493 #ifdef __cplusplus
10494 extern "C"
10496 #endif
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10499 char dlopen ();
10500 /* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10504 choke me
10505 #else
10506 char (*f) () = dlopen;
10507 #endif
10508 #ifdef __cplusplus
10510 #endif
10513 main ()
10515 return f != dlopen;
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag"
10530 || test ! -s conftest.err'
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); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_func_dlopen=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_func_dlopen=no
10549 rm -f conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10553 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10554 if test $ac_cv_func_dlopen = yes; then
10555 lt_cv_dlopen="dlopen"
10556 else
10557 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10558 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-ldl $LIBS"
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10571 /* Override any gcc2 internal prototype to avoid an error. */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 /* We use char because int might match the return type of a gcc2
10576 builtin and then its argument prototype would still apply. */
10577 char dlopen ();
10579 main ()
10581 dlopen ();
10583 return 0;
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
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); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_lib_dl_dlopen=yes
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_cv_lib_dl_dlopen=no
10615 rm -f conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10620 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10621 if test $ac_cv_lib_dl_dlopen = yes; then
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623 else
10624 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10625 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10626 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629 ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-lsvld $LIBS"
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h. */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10638 /* Override any gcc2 internal prototype to avoid an error. */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644 char dlopen ();
10646 main ()
10648 dlopen ();
10650 return 0;
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
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); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_svld_dlopen=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ac_cv_lib_svld_dlopen=no
10682 rm -f conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10686 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10687 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10688 if test $ac_cv_lib_svld_dlopen = yes; then
10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10690 else
10691 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10692 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10693 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696 ac_check_lib_save_LIBS=$LIBS
10697 LIBS="-ldld $LIBS"
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10705 /* Override any gcc2 internal prototype to avoid an error. */
10706 #ifdef __cplusplus
10707 extern "C"
10708 #endif
10709 /* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10711 char dld_link ();
10713 main ()
10715 dld_link ();
10717 return 0;
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
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); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_lib_dld_dld_link=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 ac_cv_lib_dld_dld_link=no
10749 rm -f conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10754 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10755 if test $ac_cv_lib_dld_dld_link = yes; then
10756 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10775 esac
10777 if test "x$lt_cv_dlopen" != xno; then
10778 enable_dlopen=yes
10779 else
10780 enable_dlopen=no
10783 case $lt_cv_dlopen in
10784 dlopen)
10785 save_CPPFLAGS="$CPPFLAGS"
10786 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10788 save_LDFLAGS="$LDFLAGS"
10789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10791 save_LIBS="$LIBS"
10792 LIBS="$lt_cv_dlopen_libs $LIBS"
10794 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10795 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10796 if test "${lt_cv_dlopen_self+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 if test "$cross_compiling" = yes; then :
10800 lt_cv_dlopen_self=cross
10801 else
10802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803 lt_status=$lt_dlunknown
10804 cat > conftest.$ac_ext <<_LT_EOF
10805 #line 10805 "configure"
10806 #include "confdefs.h"
10808 #if HAVE_DLFCN_H
10809 #include <dlfcn.h>
10810 #endif
10812 #include <stdio.h>
10814 #ifdef RTLD_GLOBAL
10815 # define LT_DLGLOBAL RTLD_GLOBAL
10816 #else
10817 # ifdef DL_GLOBAL
10818 # define LT_DLGLOBAL DL_GLOBAL
10819 # else
10820 # define LT_DLGLOBAL 0
10821 # endif
10822 #endif
10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825 find out it does not work in some platform. */
10826 #ifndef LT_DLLAZY_OR_NOW
10827 # ifdef RTLD_LAZY
10828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10829 # else
10830 # ifdef DL_LAZY
10831 # define LT_DLLAZY_OR_NOW DL_LAZY
10832 # else
10833 # ifdef RTLD_NOW
10834 # define LT_DLLAZY_OR_NOW RTLD_NOW
10835 # else
10836 # ifdef DL_NOW
10837 # define LT_DLLAZY_OR_NOW DL_NOW
10838 # else
10839 # define LT_DLLAZY_OR_NOW 0
10840 # endif
10841 # endif
10842 # endif
10843 # endif
10844 #endif
10846 #ifdef __cplusplus
10847 extern "C" void exit (int);
10848 #endif
10850 void fnord() { int i=42;}
10851 int main ()
10853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10854 int status = $lt_dlunknown;
10856 if (self)
10858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10859 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10860 /* dlclose (self); */
10862 else
10863 puts (dlerror ());
10865 exit (status);
10867 _LT_EOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10873 (./conftest; exit; ) >&5 2>/dev/null
10874 lt_status=$?
10875 case x$lt_status in
10876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10878 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10879 esac
10880 else :
10881 # compilation failed
10882 lt_cv_dlopen_self=no
10885 rm -fr conftest*
10889 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10890 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10892 if test "x$lt_cv_dlopen_self" = xyes; then
10893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10894 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10895 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10896 if test "${lt_cv_dlopen_self_static+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899 if test "$cross_compiling" = yes; then :
10900 lt_cv_dlopen_self_static=cross
10901 else
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<_LT_EOF
10905 #line 10905 "configure"
10906 #include "confdefs.h"
10908 #if HAVE_DLFCN_H
10909 #include <dlfcn.h>
10910 #endif
10912 #include <stdio.h>
10914 #ifdef RTLD_GLOBAL
10915 # define LT_DLGLOBAL RTLD_GLOBAL
10916 #else
10917 # ifdef DL_GLOBAL
10918 # define LT_DLGLOBAL DL_GLOBAL
10919 # else
10920 # define LT_DLGLOBAL 0
10921 # endif
10922 #endif
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10927 # ifdef RTLD_LAZY
10928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10929 # else
10930 # ifdef DL_LAZY
10931 # define LT_DLLAZY_OR_NOW DL_LAZY
10932 # else
10933 # ifdef RTLD_NOW
10934 # define LT_DLLAZY_OR_NOW RTLD_NOW
10935 # else
10936 # ifdef DL_NOW
10937 # define LT_DLLAZY_OR_NOW DL_NOW
10938 # else
10939 # define LT_DLLAZY_OR_NOW 0
10940 # endif
10941 # endif
10942 # endif
10943 # endif
10944 #endif
10946 #ifdef __cplusplus
10947 extern "C" void exit (int);
10948 #endif
10950 void fnord() { int i=42;}
10951 int main ()
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10956 if (self)
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10962 else
10963 puts (dlerror ());
10965 exit (status);
10967 _LT_EOF
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10974 lt_status=$?
10975 case x$lt_status in
10976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10978 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10979 esac
10980 else :
10981 # compilation failed
10982 lt_cv_dlopen_self_static=no
10985 rm -fr conftest*
10989 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10990 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10993 CPPFLAGS="$save_CPPFLAGS"
10994 LDFLAGS="$save_LDFLAGS"
10995 LIBS="$save_LIBS"
10997 esac
10999 case $lt_cv_dlopen_self in
11000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11001 *) enable_dlopen_self=unknown ;;
11002 esac
11004 case $lt_cv_dlopen_self_static in
11005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11006 *) enable_dlopen_self_static=unknown ;;
11007 esac
11026 striplib=
11027 old_striplib=
11028 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11029 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11030 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11033 echo "$as_me:$LINENO: result: yes" >&5
11034 echo "${ECHO_T}yes" >&6
11035 else
11036 # FIXME - insert some real tests, host_os isn't really good enough
11037 case $host_os in
11038 darwin*)
11039 if test -n "$STRIP" ; then
11040 striplib="$STRIP -x"
11041 old_striplib="$STRIP -S"
11042 echo "$as_me:$LINENO: result: yes" >&5
11043 echo "${ECHO_T}yes" >&6
11044 else
11045 echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6
11050 echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6
11053 esac
11067 # Report which library types will actually be built
11068 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11069 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11070 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11071 echo "${ECHO_T}$can_build_shared" >&6
11073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11075 test "$can_build_shared" = "no" && enable_shared=no
11077 # On AIX, shared libraries and static libraries use the same namespace, and
11078 # are all built from PIC.
11079 case $host_os in
11080 aix3*)
11081 test "$enable_shared" = yes && enable_static=no
11082 if test -n "$RANLIB"; then
11083 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11084 postinstall_cmds='$RANLIB $lib'
11088 aix[4-9]*)
11089 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11090 test "$enable_shared" = yes && enable_static=no
11093 esac
11094 echo "$as_me:$LINENO: result: $enable_shared" >&5
11095 echo "${ECHO_T}$enable_shared" >&6
11097 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11099 # Make sure either enable_shared or enable_static is yes.
11100 test "$enable_shared" = yes || enable_static=yes
11101 echo "$as_me:$LINENO: result: $enable_static" >&5
11102 echo "${ECHO_T}$enable_static" >&6
11108 ac_ext=c
11109 ac_cpp='$CPP $CPPFLAGS'
11110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11114 CC="$lt_save_CC"
11128 ac_config_commands="$ac_config_commands libtool"
11133 # Only expand once:
11139 if test "${ac_cv_header_stdint_h+set}" = set; then
11140 echo "$as_me:$LINENO: checking for stdint.h" >&5
11141 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11142 if test "${ac_cv_header_stdint_h+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11146 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11147 else
11148 # Is the header compilable?
11149 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11150 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 $ac_includes_default
11158 #include <stdint.h>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
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); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_header_compiler=no
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11191 echo "${ECHO_T}$ac_header_compiler" >&6
11193 # Is the header present?
11194 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11195 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <stdint.h>
11203 _ACEOF
11204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null; then
11212 if test -s conftest.err; then
11213 ac_cpp_err=$ac_c_preproc_warn_flag
11214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11215 else
11216 ac_cpp_err=
11218 else
11219 ac_cpp_err=yes
11221 if test -z "$ac_cpp_err"; then
11222 ac_header_preproc=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_header_preproc=no
11229 rm -f conftest.err conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231 echo "${ECHO_T}$ac_header_preproc" >&6
11233 # So? What about this header?
11234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
11236 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11237 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11239 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
11242 no:yes:* )
11243 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11244 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11246 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11248 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11250 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11252 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11254 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11256 cat <<\_ASBOX
11257 ## ------------------------------------- ##
11258 ## Report this to the libmudflap lists. ##
11259 ## ------------------------------------- ##
11260 _ASBOX
11262 sed "s/^/$as_me: WARNING: /" >&2
11264 esac
11265 echo "$as_me:$LINENO: checking for stdint.h" >&5
11266 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11267 if test "${ac_cv_header_stdint_h+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 ac_cv_header_stdint_h=$ac_header_preproc
11272 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11273 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11276 if test $ac_cv_header_stdint_h = yes; then
11277 MF_HAVE_STDINT_H=1
11278 else
11279 MF_HAVE_STDINT_H=0
11284 if test $MF_HAVE_STDINT_H = 1
11285 then
11286 MF_HAVE_UINTPTR_T=1
11287 else
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <sys/types.h>
11296 main ()
11298 uintptr_t k = 0;
11300 return 0;
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
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); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 MF_HAVE_UINTPTR_T=1
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 MF_HAVE_UINTPTR_T=0
11332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11336 if test ! -d pth
11337 then
11338 # libmudflapth objects are built in this subdirectory
11339 mkdir pth
11343 for ac_header in pthread.h
11345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11354 else
11355 # Is the header compilable?
11356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h. */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364 $ac_includes_default
11365 #include <$ac_header>
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
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); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_header_compiler=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_header_compiler=no
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6
11400 # Is the header present?
11401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <$ac_header>
11410 _ACEOF
11411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } >/dev/null; then
11419 if test -s conftest.err; then
11420 ac_cpp_err=$ac_c_preproc_warn_flag
11421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11422 else
11423 ac_cpp_err=
11425 else
11426 ac_cpp_err=yes
11428 if test -z "$ac_cpp_err"; then
11429 ac_header_preproc=yes
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_header_preproc=no
11436 rm -f conftest.err conftest.$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 yes:no: )
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447 ac_header_preproc=yes
11449 no:yes:* )
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 cat <<\_ASBOX
11464 ## ------------------------------------- ##
11465 ## Report this to the libmudflap lists. ##
11466 ## ------------------------------------- ##
11467 _ASBOX
11469 sed "s/^/$as_me: WARNING: /" >&2
11471 esac
11472 echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 eval "$as_ac_Header=\$ac_header_preproc"
11479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486 _ACEOF
11490 done
11493 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11494 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11495 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11496 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11497 echo "${ECHO_T}$target_thread_file" >&6
11499 # We only support posix threads, or no threads at all.
11500 posix_threads=
11501 case ${target_thread_file} in
11502 posix)
11503 posix_threads=yes
11505 single)
11508 echo "${target_thread_file} is an unsupported thread package" 1>&2
11509 exit 1
11511 esac
11515 if test "x$posix_threads" != "x"; then
11516 LIBMUDFLAPTH_TRUE=
11517 LIBMUDFLAPTH_FALSE='#'
11518 else
11519 LIBMUDFLAPTH_TRUE='#'
11520 LIBMUDFLAPTH_FALSE=
11523 if test "x$posix_threads" != "x"
11524 then
11525 build_libmudflapth=1
11526 else
11527 build_libmudflapth=0
11532 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11533 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11534 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldl $LIBS"
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 /* Override any gcc2 internal prototype to avoid an error. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char dlsym ();
11554 main ()
11556 dlsym ();
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
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); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_dl_dlsym=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_cv_lib_dl_dlsym=no
11590 rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11595 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11596 if test $ac_cv_lib_dl_dlsym = yes; then
11597 cat >>confdefs.h <<_ACEOF
11598 #define HAVE_LIBDL 1
11599 _ACEOF
11601 LIBS="-ldl $LIBS"
11606 # Calculate toolexeclibdir
11607 # Also toolexecdir, though it's only used in toolexeclibdir
11608 case ${version_specific_libs} in
11609 yes)
11610 # Need the gcc compiler version to know where to install libraries
11611 # and header files if --enable-version-specific-runtime-libs option
11612 # is selected.
11613 toolexecdir='$(libdir)/gcc/$(target_alias)'
11614 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11617 if test -n "$with_cross_host" &&
11618 test x"$with_cross_host" != x"no"; then
11619 # Install a library built with a cross compiler in tooldir, not libdir.
11620 toolexecdir='$(exec_prefix)/$(target_alias)'
11621 toolexeclibdir='$(toolexecdir)/lib'
11622 else
11623 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11624 toolexeclibdir='$(libdir)'
11626 multi_os_directory=`$CC -print-multi-os-directory`
11627 case $multi_os_directory in
11628 .) ;; # Avoid trailing /.
11629 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11630 esac
11632 esac
11636 includedir=${toolexecdir}/include
11639 pthread_create_version='""'
11640 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11641 # NB: don't check for -lpthread here, because then it would be
11642 # added to LIBS. For the thread-unaware libmudflap.la, we don't
11643 # want it there.
11645 # glibc-related hacks. dlsym() may pick the wrong version of
11646 # interposed functions like pthread_create on modern glibc.
11647 # We need to find the proper symbol version string, and use
11648 # the nonstandard dlvsym().
11650 for ac_func in dlvsym
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11655 if eval "test \"\${$as_ac_var+set}\" = set"; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11679 #undef $ac_func
11681 /* Override any gcc2 internal prototype to avoid an error. */
11682 #ifdef __cplusplus
11683 extern "C"
11685 #endif
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11693 choke me
11694 #else
11695 char (*f) () = $ac_func;
11696 #endif
11697 #ifdef __cplusplus
11699 #endif
11702 main ()
11704 return f != $ac_func;
11706 return 0;
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711 (eval $ac_link) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag"
11719 || test ! -s conftest.err'
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); }; } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11738 rm -f conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 _ACEOF
11749 done
11751 if test -n "$ac_tool_prefix"; then
11752 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11753 set dummy ${ac_tool_prefix}nm; ac_word=$2
11754 echo "$as_me:$LINENO: checking for $ac_word" >&5
11755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11756 if test "${ac_cv_prog_NM+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759 if test -n "$NM"; then
11760 ac_cv_prog_NM="$NM" # Let the user override the test.
11761 else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_NM="${ac_tool_prefix}nm"
11770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 break 2
11773 done
11774 done
11778 NM=$ac_cv_prog_NM
11779 if test -n "$NM"; then
11780 echo "$as_me:$LINENO: result: $NM" >&5
11781 echo "${ECHO_T}$NM" >&6
11782 else
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11788 if test -z "$ac_cv_prog_NM"; then
11789 ac_ct_NM=$NM
11790 # Extract the first word of "nm", so it can be a program name with args.
11791 set dummy nm; ac_word=$2
11792 echo "$as_me:$LINENO: checking for $ac_word" >&5
11793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11794 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 if test -n "$ac_ct_NM"; then
11798 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_ac_ct_NM="nm"
11808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11816 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11817 if test -n "$ac_ct_NM"; then
11818 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11819 echo "${ECHO_T}$ac_ct_NM" >&6
11820 else
11821 echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6
11825 NM=$ac_ct_NM
11826 else
11827 NM="$ac_cv_prog_NM"
11830 if test "x$ac_cv_have_dlvsym" != "x"; then
11831 # Try compiling a simple pthreads program. Find the shared libraries it
11832 # ends up with. Then use "nm" on those libraries to extract the
11833 # default symbol versioning suffix ("@@"), if any. But that's tricky.
11834 # Rather, run nm on the resulting executable. Unfortunately, autoconf
11835 # doesn't appear to have a macro that builds a test executable for
11836 # subsequent analysis ... so we do it by hand here.
11837 cat >> conftest.c << EOF
11838 #include <pthread.h>
11839 int main () { void *p = (void *) & pthread_create; return (int) p; }
11841 oldLIBS="$LIBS"
11842 LIBS="$LIBS -lpthread"
11843 pthread_create_version="\"\""
11844 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11845 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11846 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11847 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11848 if test "x$version" != "x"; then
11849 pthread_create_version="\"$version\""
11852 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11853 echo "${ECHO_T}$pthread_create_version" >&6
11854 LIBS="$oldLIBS"
11858 cat >>confdefs.h <<_ACEOF
11859 #define PTHREAD_CREATE_VERSION $pthread_create_version
11860 _ACEOF
11864 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11865 # similarly to how libstdc++ does it
11866 ac_test_CFLAGS="${CFLAGS+set}"
11867 ac_save_CFLAGS="$CFLAGS"
11869 # Check for -ffunction-sections -fdata-sections
11870 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11871 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11872 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11881 main ()
11883 int foo;
11885 return 0;
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
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); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_fdsections=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 ac_fdsections=no
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 if test "$ac_test_CFLAGS" = set; then
11919 CFLAGS="$ac_save_CFLAGS"
11920 else
11921 # this is the suspicious part
11922 CFLAGS=""
11924 if test x"$ac_fdsections" = x"yes"; then
11925 SECTION_FLAGS='-ffunction-sections -fdata-sections'
11927 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11928 echo "${ECHO_T}$ac_fdsections" >&6
11932 # Check for the name of the symbol used for the entry point.
11933 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11934 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11935 if test "${mudflap_cv_entry_point+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11939 for name in _start __start unknown; do
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 extern char $name[];
11948 main ()
11950 $name[0] = 0;
11952 return 0;
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
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); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 break
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11983 rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 done
11986 mudflap_cv_entry_point="$name"
11988 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
11989 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
11990 if test "$mudflap_cv_entry_point" = unknown; then
11991 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
11992 echo "$as_me: error: none of the known symbol names works" >&2;}
11993 { (exit 1); exit 1; }; }
11996 cat >>confdefs.h <<_ACEOF
11997 #define ENTRY_POINT $mudflap_cv_entry_point
11998 _ACEOF
12002 if test ${multilib} = yes; then
12003 multilib_arg="--enable-multilib"
12004 else
12005 multilib_arg=
12008 # See if we support thread-local storage.
12010 # Check whether --enable-tls or --disable-tls was given.
12011 if test "${enable_tls+set}" = set; then
12012 enableval="$enable_tls"
12014 case "$enableval" in
12015 yes|no) ;;
12016 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12017 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12018 { (exit 1); exit 1; }; } ;;
12019 esac
12021 else
12022 enable_tls=yes
12025 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12026 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12027 if test "${gcc_cv_have_tls+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12031 if test "$cross_compiling" = yes; then
12032 cat >conftest.$ac_ext <<_ACEOF
12033 __thread int a; int b; int main() { return a = b; }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
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); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 gcc_cv_have_tls=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 gcc_cv_have_tls=no
12064 rm -f conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12068 else
12069 cat >conftest.$ac_ext <<_ACEOF
12070 __thread int a; int b; int main() { return a = b; }
12071 _ACEOF
12072 rm -f conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 chktls_save_LDFLAGS="$LDFLAGS"
12084 LDFLAGS="-static $LDFLAGS"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 int main() { return 0; }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
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); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 if test "$cross_compiling" = yes; then
12111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12112 See \`config.log' for more details." >&5
12113 echo "$as_me: error: cannot run test program while cross compiling
12114 See \`config.log' for more details." >&2;}
12115 { (exit 1); exit 1; }; }
12116 else
12117 cat >conftest.$ac_ext <<_ACEOF
12118 __thread int a; int b; int main() { return a = b; }
12119 _ACEOF
12120 rm -f conftest$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 gcc_cv_have_tls=yes
12132 else
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ( exit $ac_status )
12138 gcc_cv_have_tls=no
12140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 gcc_cv_have_tls=yes
12148 rm -f conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LDFLAGS="$chktls_save_LDFLAGS"
12151 if test $gcc_cv_have_tls = yes; then
12152 chktls_save_CFLAGS="$CFLAGS"
12153 thread_CFLAGS=failed
12154 for flag in '' '-pthread' '-lpthread'; do
12155 CFLAGS="$flag $chktls_save_CFLAGS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 #include <pthread.h>
12163 void *g(void *d) { return NULL; }
12165 main ()
12167 pthread_t t; pthread_create(&t,NULL,g,NULL);
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_c_werror_flag"
12182 || test ! -s conftest.err'
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); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 thread_CFLAGS="$flag"
12195 else
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12200 rm -f conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 if test "X$thread_CFLAGS" != Xfailed; then
12203 break
12205 done
12206 CFLAGS="$chktls_save_CFLAGS"
12207 if test "X$thread_CFLAGS" != Xfailed; then
12208 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12209 if test "$cross_compiling" = yes; then
12210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12211 See \`config.log' for more details." >&5
12212 echo "$as_me: error: cannot run test program while cross compiling
12213 See \`config.log' for more details." >&2;}
12214 { (exit 1); exit 1; }; }
12215 else
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <pthread.h>
12223 __thread int a;
12224 static int *a_in_other_thread;
12225 static void *
12226 thread_func (void *arg)
12228 a_in_other_thread = &a;
12229 return (void *)0;
12232 main ()
12234 pthread_t thread;
12235 void *thread_retval;
12236 int *a_in_main_thread;
12237 if (pthread_create (&thread, (pthread_attr_t *)0,
12238 thread_func, (void *)0))
12239 return 0;
12240 a_in_main_thread = &a;
12241 if (pthread_join (thread, &thread_retval))
12242 return 0;
12243 return (a_in_other_thread == a_in_main_thread);
12245 return 0;
12247 _ACEOF
12248 rm -f conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 gcc_cv_have_tls=yes
12260 else
12261 echo "$as_me: program exited with status $ac_status" >&5
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ( exit $ac_status )
12266 gcc_cv_have_tls=no
12268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12270 CFLAGS="$chktls_save_CFLAGS"
12273 else
12274 echo "$as_me: program exited with status $ac_status" >&5
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ( exit $ac_status )
12279 gcc_cv_have_tls=no
12281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12284 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
12285 echo "${ECHO_T}$gcc_cv_have_tls" >&6
12286 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_TLS 1
12290 _ACEOF
12294 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12296 cat >confcache <<\_ACEOF
12297 # This file is a shell script that caches the results of configure
12298 # tests run on this system so they can be shared between configure
12299 # scripts and configure runs, see configure's option --config-cache.
12300 # It is not useful on other systems. If it contains results you don't
12301 # want to keep, you may remove or edit it.
12303 # config.status only pays attention to the cache file if you give it
12304 # the --recheck option to rerun configure.
12306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12308 # following values.
12310 _ACEOF
12312 # The following way of writing the cache mishandles newlines in values,
12313 # but we know of no workaround that is simple, portable, and efficient.
12314 # So, don't put newlines in cache variables' values.
12315 # Ultrix sh set writes to stderr and can't be redirected directly,
12316 # and sets the high bit in the cache file unless we assign to the vars.
12318 (set) 2>&1 |
12319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12320 *ac_space=\ *)
12321 # `set' does not quote correctly, so add quotes (double-quote
12322 # substitution turns \\\\ into \\, and sed turns \\ into \).
12323 sed -n \
12324 "s/'/'\\\\''/g;
12325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12328 # `set' quotes correctly as required by POSIX, so do not add quotes.
12329 sed -n \
12330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12332 esac;
12334 sed '
12335 t clear
12336 : clear
12337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12338 t end
12339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12340 : end' >>confcache
12341 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12342 if test -w $cache_file; then
12343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12344 cat confcache >$cache_file
12345 else
12346 echo "not updating unwritable cache $cache_file"
12349 rm -f confcache
12351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12352 # Let make expand exec_prefix.
12353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12357 # trailing colons and then remove the whole line if VPATH becomes empty
12358 # (actually we leave an empty line to preserve line numbers).
12359 if test "x$srcdir" = x.; then
12360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12361 s/:*\$(srcdir):*/:/;
12362 s/:*\${srcdir}:*/:/;
12363 s/:*@srcdir@:*/:/;
12364 s/^\([^=]*=[ ]*\):*/\1/;
12365 s/:*$//;
12366 s/^[^=]*=[ ]*$//;
12370 DEFS=-DHAVE_CONFIG_H
12372 ac_libobjs=
12373 ac_ltlibobjs=
12374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12375 # 1. Remove the extension, and $U if already installed.
12376 ac_i=`echo "$ac_i" |
12377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12378 # 2. Add them.
12379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12381 done
12382 LIBOBJS=$ac_libobjs
12384 LTLIBOBJS=$ac_ltlibobjs
12387 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12388 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12389 Usually this means the macro was only invoked conditionally." >&5
12390 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12391 Usually this means the macro was only invoked conditionally." >&2;}
12392 { (exit 1); exit 1; }; }
12394 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12395 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12396 Usually this means the macro was only invoked conditionally." >&5
12397 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12398 Usually this means the macro was only invoked conditionally." >&2;}
12399 { (exit 1); exit 1; }; }
12401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12402 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&5
12404 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12405 Usually this means the macro was only invoked conditionally." >&2;}
12406 { (exit 1); exit 1; }; }
12408 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12409 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&5
12411 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12412 Usually this means the macro was only invoked conditionally." >&2;}
12413 { (exit 1); exit 1; }; }
12416 : ${CONFIG_STATUS=./config.status}
12417 ac_clean_files_save=$ac_clean_files
12418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12421 cat >$CONFIG_STATUS <<_ACEOF
12422 #! $SHELL
12423 # Generated by $as_me.
12424 # Run this file to recreate the current configuration.
12425 # Compiler output produced by configure, useful for debugging
12426 # configure, is in config.log if it exists.
12428 debug=false
12429 ac_cs_recheck=false
12430 ac_cs_silent=false
12431 SHELL=\${CONFIG_SHELL-$SHELL}
12432 _ACEOF
12434 cat >>$CONFIG_STATUS <<\_ACEOF
12435 ## --------------------- ##
12436 ## M4sh Initialization. ##
12437 ## --------------------- ##
12439 # Be Bourne compatible
12440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12441 emulate sh
12442 NULLCMD=:
12443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12444 # is contrary to our usage. Disable this feature.
12445 alias -g '${1+"$@"}'='"$@"'
12446 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12447 set -o posix
12449 DUALCASE=1; export DUALCASE # for MKS sh
12451 # Support unset when possible.
12452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12453 as_unset=unset
12454 else
12455 as_unset=false
12459 # Work around bugs in pre-3.0 UWIN ksh.
12460 $as_unset ENV MAIL MAILPATH
12461 PS1='$ '
12462 PS2='> '
12463 PS4='+ '
12465 # NLS nuisances.
12466 for as_var in \
12467 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12468 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12469 LC_TELEPHONE LC_TIME
12471 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12472 eval $as_var=C; export $as_var
12473 else
12474 $as_unset $as_var
12476 done
12478 # Required to use basename.
12479 if expr a : '\(a\)' >/dev/null 2>&1; then
12480 as_expr=expr
12481 else
12482 as_expr=false
12485 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12486 as_basename=basename
12487 else
12488 as_basename=false
12492 # Name of the executable.
12493 as_me=`$as_basename "$0" ||
12494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12495 X"$0" : 'X\(//\)$' \| \
12496 X"$0" : 'X\(/\)$' \| \
12497 . : '\(.\)' 2>/dev/null ||
12498 echo X/"$0" |
12499 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12500 /^X\/\(\/\/\)$/{ s//\1/; q; }
12501 /^X\/\(\/\).*/{ s//\1/; q; }
12502 s/.*/./; q'`
12505 # PATH needs CR, and LINENO needs CR and PATH.
12506 # Avoid depending upon Character Ranges.
12507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12510 as_cr_digits='0123456789'
12511 as_cr_alnum=$as_cr_Letters$as_cr_digits
12513 # The user is always right.
12514 if test "${PATH_SEPARATOR+set}" != set; then
12515 echo "#! /bin/sh" >conf$$.sh
12516 echo "exit 0" >>conf$$.sh
12517 chmod +x conf$$.sh
12518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12519 PATH_SEPARATOR=';'
12520 else
12521 PATH_SEPARATOR=:
12523 rm -f conf$$.sh
12527 as_lineno_1=$LINENO
12528 as_lineno_2=$LINENO
12529 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12530 test "x$as_lineno_1" != "x$as_lineno_2" &&
12531 test "x$as_lineno_3" = "x$as_lineno_2" || {
12532 # Find who we are. Look in the path if we contain no path at all
12533 # relative or not.
12534 case $0 in
12535 *[\\/]* ) as_myself=$0 ;;
12536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12542 done
12545 esac
12546 # We did not find ourselves, most probably we were run as `sh COMMAND'
12547 # in which case we are not to be found in the path.
12548 if test "x$as_myself" = x; then
12549 as_myself=$0
12551 if test ! -f "$as_myself"; then
12552 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12554 { (exit 1); exit 1; }; }
12556 case $CONFIG_SHELL in
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for as_base in sh bash ksh sh5; do
12564 case $as_dir in
12566 if ("$as_dir/$as_base" -c '
12567 as_lineno_1=$LINENO
12568 as_lineno_2=$LINENO
12569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12570 test "x$as_lineno_1" != "x$as_lineno_2" &&
12571 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12572 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12573 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12574 CONFIG_SHELL=$as_dir/$as_base
12575 export CONFIG_SHELL
12576 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12577 fi;;
12578 esac
12579 done
12580 done
12582 esac
12584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12585 # uniformly replaced by the line number. The first 'sed' inserts a
12586 # line-number line before each line; the second 'sed' does the real
12587 # work. The second script uses 'N' to pair each line-number line
12588 # with the numbered line, and appends trailing '-' during
12589 # substitution so that $LINENO is not a special case at line end.
12590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12591 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12592 sed '=' <$as_myself |
12593 sed '
12595 s,$,-,
12596 : loop
12597 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12598 t loop
12599 s,-$,,
12600 s,^['$as_cr_digits']*\n,,
12601 ' >$as_me.lineno &&
12602 chmod +x $as_me.lineno ||
12603 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12605 { (exit 1); exit 1; }; }
12607 # Don't try to exec as it changes $[0], causing all sort of problems
12608 # (the dirname of $[0] is not the place where we might find the
12609 # original and so on. Autoconf is especially sensible to this).
12610 . ./$as_me.lineno
12611 # Exit status is that of the last command.
12612 exit
12616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12617 *c*,-n*) ECHO_N= ECHO_C='
12618 ' ECHO_T=' ' ;;
12619 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12620 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12621 esac
12623 if expr a : '\(a\)' >/dev/null 2>&1; then
12624 as_expr=expr
12625 else
12626 as_expr=false
12629 rm -f conf$$ conf$$.exe conf$$.file
12630 echo >conf$$.file
12631 if ln -s conf$$.file conf$$ 2>/dev/null; then
12632 # We could just check for DJGPP; but this test a) works b) is more generic
12633 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12634 if test -f conf$$.exe; then
12635 # Don't use ln at all; we don't have any links
12636 as_ln_s='cp -p'
12637 else
12638 as_ln_s='ln -s'
12640 elif ln conf$$.file conf$$ 2>/dev/null; then
12641 as_ln_s=ln
12642 else
12643 as_ln_s='cp -p'
12645 rm -f conf$$ conf$$.exe conf$$.file
12647 if mkdir -p . 2>/dev/null; then
12648 as_mkdir_p=:
12649 else
12650 test -d ./-p && rmdir ./-p
12651 as_mkdir_p=false
12654 as_executable_p="test -f"
12656 # Sed expression to map a string onto a valid CPP name.
12657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12659 # Sed expression to map a string onto a valid variable name.
12660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12663 # IFS
12664 # We need space, tab and new line, in precisely that order.
12665 as_nl='
12667 IFS=" $as_nl"
12669 # CDPATH.
12670 $as_unset CDPATH
12672 exec 6>&1
12674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12675 # report actual input values of CONFIG_FILES etc. instead of their
12676 # values after options handling. Logging --version etc. is OK.
12677 exec 5>>config.log
12679 echo
12680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12681 ## Running $as_me. ##
12682 _ASBOX
12683 } >&5
12684 cat >&5 <<_CSEOF
12686 This file was extended by libmudflap $as_me 1.0, which was
12687 generated by GNU Autoconf 2.59. Invocation command line was
12689 CONFIG_FILES = $CONFIG_FILES
12690 CONFIG_HEADERS = $CONFIG_HEADERS
12691 CONFIG_LINKS = $CONFIG_LINKS
12692 CONFIG_COMMANDS = $CONFIG_COMMANDS
12693 $ $0 $@
12695 _CSEOF
12696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12697 echo >&5
12698 _ACEOF
12700 # Files that config.status was made for.
12701 if test -n "$ac_config_files"; then
12702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12705 if test -n "$ac_config_headers"; then
12706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12709 if test -n "$ac_config_links"; then
12710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12713 if test -n "$ac_config_commands"; then
12714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12717 cat >>$CONFIG_STATUS <<\_ACEOF
12719 ac_cs_usage="\
12720 \`$as_me' instantiates files from templates according to the
12721 current configuration.
12723 Usage: $0 [OPTIONS] [FILE]...
12725 -h, --help print this help, then exit
12726 -V, --version print version number, then exit
12727 -q, --quiet do not print progress messages
12728 -d, --debug don't remove temporary files
12729 --recheck update $as_me by reconfiguring in the same conditions
12730 --file=FILE[:TEMPLATE]
12731 instantiate the configuration file FILE
12732 --header=FILE[:TEMPLATE]
12733 instantiate the configuration header FILE
12735 Configuration files:
12736 $config_files
12738 Configuration headers:
12739 $config_headers
12741 Configuration commands:
12742 $config_commands
12744 Report bugs to <bug-autoconf@gnu.org>."
12745 _ACEOF
12747 cat >>$CONFIG_STATUS <<_ACEOF
12748 ac_cs_version="\\
12749 libmudflap config.status 1.0
12750 configured by $0, generated by GNU Autoconf 2.59,
12751 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12753 Copyright (C) 2003 Free Software Foundation, Inc.
12754 This config.status script is free software; the Free Software Foundation
12755 gives unlimited permission to copy, distribute and modify it."
12756 srcdir=$srcdir
12757 INSTALL="$INSTALL"
12758 _ACEOF
12760 cat >>$CONFIG_STATUS <<\_ACEOF
12761 # If no file are specified by the user, then we need to provide default
12762 # value. By we need to know if files were specified by the user.
12763 ac_need_defaults=:
12764 while test $# != 0
12766 case $1 in
12767 --*=*)
12768 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12769 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12770 ac_shift=:
12773 ac_option=$1
12774 ac_optarg=$2
12775 ac_shift=shift
12777 *) # This is not an option, so the user has probably given explicit
12778 # arguments.
12779 ac_option=$1
12780 ac_need_defaults=false;;
12781 esac
12783 case $ac_option in
12784 # Handling of the options.
12785 _ACEOF
12786 cat >>$CONFIG_STATUS <<\_ACEOF
12787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12788 ac_cs_recheck=: ;;
12789 --version | --vers* | -V )
12790 echo "$ac_cs_version"; exit 0 ;;
12791 --he | --h)
12792 # Conflict between --help and --header
12793 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12794 Try \`$0 --help' for more information." >&5
12795 echo "$as_me: error: ambiguous option: $1
12796 Try \`$0 --help' for more information." >&2;}
12797 { (exit 1); exit 1; }; };;
12798 --help | --hel | -h )
12799 echo "$ac_cs_usage"; exit 0 ;;
12800 --debug | --d* | -d )
12801 debug=: ;;
12802 --file | --fil | --fi | --f )
12803 $ac_shift
12804 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12805 ac_need_defaults=false;;
12806 --header | --heade | --head | --hea )
12807 $ac_shift
12808 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12809 ac_need_defaults=false;;
12810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12812 ac_cs_silent=: ;;
12814 # This is an error.
12815 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12816 Try \`$0 --help' for more information." >&5
12817 echo "$as_me: error: unrecognized option: $1
12818 Try \`$0 --help' for more information." >&2;}
12819 { (exit 1); exit 1; }; } ;;
12821 *) ac_config_targets="$ac_config_targets $1" ;;
12823 esac
12824 shift
12825 done
12827 ac_configure_extra_args=
12829 if $ac_cs_silent; then
12830 exec 6>/dev/null
12831 ac_configure_extra_args="$ac_configure_extra_args --silent"
12834 _ACEOF
12835 cat >>$CONFIG_STATUS <<_ACEOF
12836 if \$ac_cs_recheck; then
12837 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12838 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12841 _ACEOF
12843 cat >>$CONFIG_STATUS <<_ACEOF
12845 # INIT-COMMANDS section.
12849 srcdir="$srcdir"
12850 host="$host"
12851 target="$target"
12852 with_multisubdir="$with_multisubdir"
12853 with_multisrctop="$with_multisrctop"
12854 with_target_subdir="$with_target_subdir"
12855 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12856 multi_basedir="$multi_basedir"
12857 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12858 CC="$CC"
12859 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12862 # The HP-UX ksh and POSIX shell print the target directory to stdout
12863 # if CDPATH is set.
12864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12866 sed_quote_subst='$sed_quote_subst'
12867 double_quote_subst='$double_quote_subst'
12868 delay_variable_subst='$delay_variable_subst'
12869 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12870 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12871 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12872 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12873 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12874 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12875 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12876 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12877 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12878 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12879 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12880 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12881 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12882 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12883 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12884 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12885 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12886 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12887 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12888 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12889 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12890 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12891 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12892 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12893 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12894 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12895 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12896 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12897 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12898 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12899 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12900 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12901 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12902 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12903 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12904 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12905 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12906 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12907 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12908 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12909 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12910 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12911 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12912 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"`'
12913 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12914 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12915 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12916 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12917 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12918 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12919 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12920 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12921 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12922 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12923 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12924 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12925 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12926 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12927 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12928 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12929 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12930 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12931 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12932 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12934 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12935 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12936 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12938 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12939 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12940 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12941 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12942 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12943 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12944 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12945 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12946 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12947 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12948 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12949 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12950 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12951 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12952 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12953 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12954 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12955 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12956 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12957 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12958 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12959 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12960 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12961 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12962 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12963 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12964 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12965 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12966 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12967 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12969 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12970 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12971 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12972 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12973 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12974 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12975 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12976 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12977 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12978 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12979 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12981 LTCC='$LTCC'
12982 LTCFLAGS='$LTCFLAGS'
12983 compiler='$compiler_DEFAULT'
12985 # Quote evaled strings.
12986 for var in SED \
12987 GREP \
12988 EGREP \
12989 FGREP \
12990 LD \
12991 NM \
12992 LN_S \
12993 lt_SP2NL \
12994 lt_NL2SP \
12995 reload_flag \
12996 deplibs_check_method \
12997 file_magic_cmd \
12998 AR \
12999 AR_FLAGS \
13000 STRIP \
13001 RANLIB \
13002 CC \
13003 CFLAGS \
13004 compiler \
13005 lt_cv_sys_global_symbol_pipe \
13006 lt_cv_sys_global_symbol_to_cdecl \
13007 lt_cv_sys_global_symbol_to_c_name_address \
13008 SHELL \
13009 ECHO \
13010 lt_prog_compiler_no_builtin_flag \
13011 lt_prog_compiler_wl \
13012 lt_prog_compiler_pic \
13013 lt_prog_compiler_static \
13014 lt_cv_prog_compiler_c_o \
13015 need_locks \
13016 shrext_cmds \
13017 export_dynamic_flag_spec \
13018 whole_archive_flag_spec \
13019 compiler_needs_object \
13020 with_gnu_ld \
13021 allow_undefined_flag \
13022 no_undefined_flag \
13023 hardcode_libdir_flag_spec \
13024 hardcode_libdir_flag_spec_ld \
13025 hardcode_libdir_separator \
13026 fix_srcfile_path \
13027 exclude_expsyms \
13028 include_expsyms \
13029 file_list_spec \
13030 variables_saved_for_relink \
13031 libname_spec \
13032 library_names_spec \
13033 soname_spec \
13034 finish_eval \
13035 old_striplib \
13036 striplib; do
13037 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13038 *[\\\\\\\`\\"\\\$]*)
13039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13044 esac
13045 done
13047 # Double-quote double-evaled strings.
13048 for var in reload_cmds \
13049 old_postinstall_cmds \
13050 old_postuninstall_cmds \
13051 old_archive_cmds \
13052 extract_expsyms_cmds \
13053 old_archive_from_new_cmds \
13054 old_archive_from_expsyms_cmds \
13055 archive_cmds \
13056 archive_expsym_cmds \
13057 module_cmds \
13058 module_expsym_cmds \
13059 export_symbols_cmds \
13060 prelink_cmds \
13061 postinstall_cmds \
13062 postuninstall_cmds \
13063 finish_cmds \
13064 sys_lib_search_path_spec \
13065 sys_lib_dlsearch_path_spec; do
13066 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13067 *[\\\\\\\`\\"\\\$]*)
13068 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13071 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13073 esac
13074 done
13076 # Fix-up fallback echo if it was mangled by the above quoting rules.
13077 case \$lt_ECHO in
13078 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13080 esac
13082 ac_aux_dir='$ac_aux_dir'
13083 xsi_shell='$xsi_shell'
13084 lt_shell_append='$lt_shell_append'
13086 # See if we are running on zsh, and set the options which allow our
13087 # commands through without removal of \ escapes INIT.
13088 if test -n "\${ZSH_VERSION+set}" ; then
13089 setopt NO_GLOB_SUBST
13093 PACKAGE='$PACKAGE'
13094 VERSION='$VERSION'
13095 TIMESTAMP='$TIMESTAMP'
13096 RM='$RM'
13097 ofile='$ofile'
13102 _ACEOF
13106 cat >>$CONFIG_STATUS <<\_ACEOF
13107 for ac_config_target in $ac_config_targets
13109 case "$ac_config_target" in
13110 # Handling of arguments.
13111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13112 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13113 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13114 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13115 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13116 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13117 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13119 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13120 { (exit 1); exit 1; }; };;
13121 esac
13122 done
13124 # If the user did not use the arguments to specify the items to instantiate,
13125 # then the envvar interface is used. Set only those that are not.
13126 # We use the long form for the default assignment because of an extremely
13127 # bizarre bug on SunOS 4.1.3.
13128 if $ac_need_defaults; then
13129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13134 # Have a temporary directory for convenience. Make it in the build tree
13135 # simply because there is no reason to put it here, and in addition,
13136 # creating and moving files from /tmp can sometimes cause problems.
13137 # Create a temporary directory, and hook for its removal unless debugging.
13138 $debug ||
13140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13141 trap '{ (exit 1); exit 1; }' 1 2 13 15
13144 # Create a (secure) tmp directory for tmp files.
13147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13148 test -n "$tmp" && test -d "$tmp"
13149 } ||
13151 tmp=./confstat$$-$RANDOM
13152 (umask 077 && mkdir $tmp)
13153 } ||
13155 echo "$me: cannot create a temporary directory in ." >&2
13156 { (exit 1); exit 1; }
13159 _ACEOF
13161 cat >>$CONFIG_STATUS <<_ACEOF
13164 # CONFIG_FILES section.
13167 # No need to generate the scripts if there are no CONFIG_FILES.
13168 # This happens for instance when ./config.status config.h
13169 if test -n "\$CONFIG_FILES"; then
13170 # Protect against being on the right side of a sed subst in config.status.
13171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13173 s,@SHELL@,$SHELL,;t t
13174 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13175 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13176 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13177 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13178 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13179 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13180 s,@exec_prefix@,$exec_prefix,;t t
13181 s,@prefix@,$prefix,;t t
13182 s,@program_transform_name@,$program_transform_name,;t t
13183 s,@bindir@,$bindir,;t t
13184 s,@sbindir@,$sbindir,;t t
13185 s,@libexecdir@,$libexecdir,;t t
13186 s,@datadir@,$datadir,;t t
13187 s,@sysconfdir@,$sysconfdir,;t t
13188 s,@sharedstatedir@,$sharedstatedir,;t t
13189 s,@localstatedir@,$localstatedir,;t t
13190 s,@libdir@,$libdir,;t t
13191 s,@includedir@,$includedir,;t t
13192 s,@oldincludedir@,$oldincludedir,;t t
13193 s,@infodir@,$infodir,;t t
13194 s,@mandir@,$mandir,;t t
13195 s,@build_alias@,$build_alias,;t t
13196 s,@host_alias@,$host_alias,;t t
13197 s,@target_alias@,$target_alias,;t t
13198 s,@DEFS@,$DEFS,;t t
13199 s,@ECHO_C@,$ECHO_C,;t t
13200 s,@ECHO_N@,$ECHO_N,;t t
13201 s,@ECHO_T@,$ECHO_T,;t t
13202 s,@LIBS@,$LIBS,;t t
13203 s,@build@,$build,;t t
13204 s,@build_cpu@,$build_cpu,;t t
13205 s,@build_vendor@,$build_vendor,;t t
13206 s,@build_os@,$build_os,;t t
13207 s,@host@,$host,;t t
13208 s,@host_cpu@,$host_cpu,;t t
13209 s,@host_vendor@,$host_vendor,;t t
13210 s,@host_os@,$host_os,;t t
13211 s,@target@,$target,;t t
13212 s,@target_cpu@,$target_cpu,;t t
13213 s,@target_vendor@,$target_vendor,;t t
13214 s,@target_os@,$target_os,;t t
13215 s,@target_noncanonical@,$target_noncanonical,;t t
13216 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13217 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13219 s,@CYGPATH_W@,$CYGPATH_W,;t t
13220 s,@PACKAGE@,$PACKAGE,;t t
13221 s,@VERSION@,$VERSION,;t t
13222 s,@ACLOCAL@,$ACLOCAL,;t t
13223 s,@AUTOCONF@,$AUTOCONF,;t t
13224 s,@AUTOMAKE@,$AUTOMAKE,;t t
13225 s,@AUTOHEADER@,$AUTOHEADER,;t t
13226 s,@MAKEINFO@,$MAKEINFO,;t t
13227 s,@install_sh@,$install_sh,;t t
13228 s,@STRIP@,$STRIP,;t t
13229 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13230 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13231 s,@mkdir_p@,$mkdir_p,;t t
13232 s,@AWK@,$AWK,;t t
13233 s,@SET_MAKE@,$SET_MAKE,;t t
13234 s,@am__leading_dot@,$am__leading_dot,;t t
13235 s,@AMTAR@,$AMTAR,;t t
13236 s,@am__tar@,$am__tar,;t t
13237 s,@am__untar@,$am__untar,;t t
13238 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13239 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13240 s,@MAINT@,$MAINT,;t t
13241 s,@multi_basedir@,$multi_basedir,;t t
13242 s,@CC@,$CC,;t t
13243 s,@ac_ct_CC@,$ac_ct_CC,;t t
13244 s,@EXEEXT@,$EXEEXT,;t t
13245 s,@OBJEXT@,$OBJEXT,;t t
13246 s,@DEPDIR@,$DEPDIR,;t t
13247 s,@am__include@,$am__include,;t t
13248 s,@am__quote@,$am__quote,;t t
13249 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13250 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13251 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13252 s,@CCDEPMODE@,$CCDEPMODE,;t t
13253 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13254 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13255 s,@CFLAGS@,$CFLAGS,;t t
13256 s,@CPP@,$CPP,;t t
13257 s,@CPPFLAGS@,$CPPFLAGS,;t t
13258 s,@EGREP@,$EGREP,;t t
13259 s,@LIBTOOL@,$LIBTOOL,;t t
13260 s,@SED@,$SED,;t t
13261 s,@FGREP@,$FGREP,;t t
13262 s,@GREP@,$GREP,;t t
13263 s,@LD@,$LD,;t t
13264 s,@DUMPBIN@,$DUMPBIN,;t t
13265 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13266 s,@NM@,$NM,;t t
13267 s,@LN_S@,$LN_S,;t t
13268 s,@AR@,$AR,;t t
13269 s,@ac_ct_AR@,$ac_ct_AR,;t t
13270 s,@RANLIB@,$RANLIB,;t t
13271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13272 s,@lt_ECHO@,$lt_ECHO,;t t
13273 s,@enable_shared@,$enable_shared,;t t
13274 s,@enable_static@,$enable_static,;t t
13275 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13276 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13277 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13278 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13279 s,@build_libmudflapth@,$build_libmudflapth,;t t
13280 s,@toolexecdir@,$toolexecdir,;t t
13281 s,@toolexeclibdir@,$toolexeclibdir,;t t
13282 s,@ac_ct_NM@,$ac_ct_NM,;t t
13283 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13284 s,@LIBOBJS@,$LIBOBJS,;t t
13285 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13286 CEOF
13288 _ACEOF
13290 cat >>$CONFIG_STATUS <<\_ACEOF
13291 # Split the substitutions into bite-sized pieces for seds with
13292 # small command number limits, like on Digital OSF/1 and HP-UX.
13293 ac_max_sed_lines=48
13294 ac_sed_frag=1 # Number of current file.
13295 ac_beg=1 # First line for current file.
13296 ac_end=$ac_max_sed_lines # Line after last line for current file.
13297 ac_more_lines=:
13298 ac_sed_cmds=
13299 while $ac_more_lines; do
13300 if test $ac_beg -gt 1; then
13301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13302 else
13303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13305 if test ! -s $tmp/subs.frag; then
13306 ac_more_lines=false
13307 else
13308 # The purpose of the label and of the branching condition is to
13309 # speed up the sed processing (if there are no `@' at all, there
13310 # is no need to browse any of the substitutions).
13311 # These are the two extra sed commands mentioned above.
13312 (echo ':t
13313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13314 if test -z "$ac_sed_cmds"; then
13315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13316 else
13317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13319 ac_sed_frag=`expr $ac_sed_frag + 1`
13320 ac_beg=$ac_end
13321 ac_end=`expr $ac_end + $ac_max_sed_lines`
13323 done
13324 if test -z "$ac_sed_cmds"; then
13325 ac_sed_cmds=cat
13327 fi # test -n "$CONFIG_FILES"
13329 _ACEOF
13330 cat >>$CONFIG_STATUS <<\_ACEOF
13331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13333 case $ac_file in
13334 - | *:- | *:-:* ) # input from stdin
13335 cat >$tmp/stdin
13336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13340 * ) ac_file_in=$ac_file.in ;;
13341 esac
13343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13344 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13346 X"$ac_file" : 'X\(//\)[^/]' \| \
13347 X"$ac_file" : 'X\(//\)$' \| \
13348 X"$ac_file" : 'X\(/\)' \| \
13349 . : '\(.\)' 2>/dev/null ||
13350 echo X"$ac_file" |
13351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13353 /^X\(\/\/\)$/{ s//\1/; q; }
13354 /^X\(\/\).*/{ s//\1/; q; }
13355 s/.*/./; q'`
13356 { if $as_mkdir_p; then
13357 mkdir -p "$ac_dir"
13358 else
13359 as_dir="$ac_dir"
13360 as_dirs=
13361 while test ! -d "$as_dir"; do
13362 as_dirs="$as_dir $as_dirs"
13363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13365 X"$as_dir" : 'X\(//\)[^/]' \| \
13366 X"$as_dir" : 'X\(//\)$' \| \
13367 X"$as_dir" : 'X\(/\)' \| \
13368 . : '\(.\)' 2>/dev/null ||
13369 echo X"$as_dir" |
13370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13372 /^X\(\/\/\)$/{ s//\1/; q; }
13373 /^X\(\/\).*/{ s//\1/; q; }
13374 s/.*/./; q'`
13375 done
13376 test ! -n "$as_dirs" || mkdir $as_dirs
13377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13379 { (exit 1); exit 1; }; }; }
13381 ac_builddir=.
13383 if test "$ac_dir" != .; then
13384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13385 # A "../" for each directory in $ac_dir_suffix.
13386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13387 else
13388 ac_dir_suffix= ac_top_builddir=
13391 case $srcdir in
13392 .) # No --srcdir option. We are building in place.
13393 ac_srcdir=.
13394 if test -z "$ac_top_builddir"; then
13395 ac_top_srcdir=.
13396 else
13397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13398 fi ;;
13399 [\\/]* | ?:[\\/]* ) # Absolute path.
13400 ac_srcdir=$srcdir$ac_dir_suffix;
13401 ac_top_srcdir=$srcdir ;;
13402 *) # Relative path.
13403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13405 esac
13407 # Do not use `cd foo && pwd` to compute absolute paths, because
13408 # the directories may not exist.
13409 case `pwd` in
13410 .) ac_abs_builddir="$ac_dir";;
13412 case "$ac_dir" in
13413 .) ac_abs_builddir=`pwd`;;
13414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13416 esac;;
13417 esac
13418 case $ac_abs_builddir in
13419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13421 case ${ac_top_builddir}. in
13422 .) ac_abs_top_builddir=$ac_abs_builddir;;
13423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13425 esac;;
13426 esac
13427 case $ac_abs_builddir in
13428 .) ac_abs_srcdir=$ac_srcdir;;
13430 case $ac_srcdir in
13431 .) ac_abs_srcdir=$ac_abs_builddir;;
13432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13434 esac;;
13435 esac
13436 case $ac_abs_builddir in
13437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13439 case $ac_top_srcdir in
13440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13443 esac;;
13444 esac
13447 case $INSTALL in
13448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13449 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13450 esac
13452 if test x"$ac_file" != x-; then
13453 { echo "$as_me:$LINENO: creating $ac_file" >&5
13454 echo "$as_me: creating $ac_file" >&6;}
13455 rm -f "$ac_file"
13457 # Let's still pretend it is `configure' which instantiates (i.e., don't
13458 # use $as_me), people would be surprised to read:
13459 # /* config.h. Generated by config.status. */
13460 if test x"$ac_file" = x-; then
13461 configure_input=
13462 else
13463 configure_input="$ac_file. "
13465 configure_input=$configure_input"Generated from `echo $ac_file_in |
13466 sed 's,.*/,,'` by configure."
13468 # First look for the input files in the build tree, otherwise in the
13469 # src tree.
13470 ac_file_inputs=`IFS=:
13471 for f in $ac_file_in; do
13472 case $f in
13473 -) echo $tmp/stdin ;;
13474 [\\/$]*)
13475 # Absolute (can't be DOS-style, as IFS=:)
13476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13477 echo "$as_me: error: cannot find input file: $f" >&2;}
13478 { (exit 1); exit 1; }; }
13479 echo "$f";;
13480 *) # Relative
13481 if test -f "$f"; then
13482 # Build tree
13483 echo "$f"
13484 elif test -f "$srcdir/$f"; then
13485 # Source tree
13486 echo "$srcdir/$f"
13487 else
13488 # /dev/null tree
13489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13490 echo "$as_me: error: cannot find input file: $f" >&2;}
13491 { (exit 1); exit 1; }; }
13492 fi;;
13493 esac
13494 done` || { (exit 1); exit 1; }
13495 _ACEOF
13496 cat >>$CONFIG_STATUS <<_ACEOF
13497 sed "$ac_vpsub
13498 $extrasub
13499 _ACEOF
13500 cat >>$CONFIG_STATUS <<\_ACEOF
13502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13503 s,@configure_input@,$configure_input,;t t
13504 s,@srcdir@,$ac_srcdir,;t t
13505 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13506 s,@top_srcdir@,$ac_top_srcdir,;t t
13507 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13508 s,@builddir@,$ac_builddir,;t t
13509 s,@abs_builddir@,$ac_abs_builddir,;t t
13510 s,@top_builddir@,$ac_top_builddir,;t t
13511 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13512 s,@INSTALL@,$ac_INSTALL,;t t
13513 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13514 rm -f $tmp/stdin
13515 if test x"$ac_file" != x-; then
13516 mv $tmp/out $ac_file
13517 else
13518 cat $tmp/out
13519 rm -f $tmp/out
13522 done
13523 _ACEOF
13524 cat >>$CONFIG_STATUS <<\_ACEOF
13527 # CONFIG_HEADER section.
13530 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13531 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13533 # ac_d sets the value in "#define NAME VALUE" lines.
13534 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13535 ac_dB='[ ].*$,\1#\2'
13536 ac_dC=' '
13537 ac_dD=',;t'
13538 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13539 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13540 ac_uB='$,\1#\2define\3'
13541 ac_uC=' '
13542 ac_uD=',;t'
13544 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13546 case $ac_file in
13547 - | *:- | *:-:* ) # input from stdin
13548 cat >$tmp/stdin
13549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13553 * ) ac_file_in=$ac_file.in ;;
13554 esac
13556 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13557 echo "$as_me: creating $ac_file" >&6;}
13559 # First look for the input files in the build tree, otherwise in the
13560 # src tree.
13561 ac_file_inputs=`IFS=:
13562 for f in $ac_file_in; do
13563 case $f in
13564 -) echo $tmp/stdin ;;
13565 [\\/$]*)
13566 # Absolute (can't be DOS-style, as IFS=:)
13567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13568 echo "$as_me: error: cannot find input file: $f" >&2;}
13569 { (exit 1); exit 1; }; }
13570 # Do quote $f, to prevent DOS paths from being IFS'd.
13571 echo "$f";;
13572 *) # Relative
13573 if test -f "$f"; then
13574 # Build tree
13575 echo "$f"
13576 elif test -f "$srcdir/$f"; then
13577 # Source tree
13578 echo "$srcdir/$f"
13579 else
13580 # /dev/null tree
13581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13582 echo "$as_me: error: cannot find input file: $f" >&2;}
13583 { (exit 1); exit 1; }; }
13584 fi;;
13585 esac
13586 done` || { (exit 1); exit 1; }
13587 # Remove the trailing spaces.
13588 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13590 _ACEOF
13592 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13593 # `conftest.undefs', that substitutes the proper values into
13594 # config.h.in to produce config.h. The first handles `#define'
13595 # templates, and the second `#undef' templates.
13596 # And first: Protect against being on the right side of a sed subst in
13597 # config.status. Protect against being in an unquoted here document
13598 # in config.status.
13599 rm -f conftest.defines conftest.undefs
13600 # Using a here document instead of a string reduces the quoting nightmare.
13601 # Putting comments in sed scripts is not portable.
13603 # `end' is used to avoid that the second main sed command (meant for
13604 # 0-ary CPP macros) applies to n-ary macro definitions.
13605 # See the Autoconf documentation for `clear'.
13606 cat >confdef2sed.sed <<\_ACEOF
13607 s/[\\&,]/\\&/g
13608 s,[\\$`],\\&,g
13609 t clear
13610 : clear
13611 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13612 t end
13613 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13614 : end
13615 _ACEOF
13616 # If some macros were called several times there might be several times
13617 # the same #defines, which is useless. Nevertheless, we may not want to
13618 # sort them, since we want the *last* AC-DEFINE to be honored.
13619 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13620 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13621 rm -f confdef2sed.sed
13623 # This sed command replaces #undef with comments. This is necessary, for
13624 # example, in the case of _POSIX_SOURCE, which is predefined and required
13625 # on some systems where configure will not decide to define it.
13626 cat >>conftest.undefs <<\_ACEOF
13627 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13628 _ACEOF
13630 # Break up conftest.defines because some shells have a limit on the size
13631 # of here documents, and old seds have small limits too (100 cmds).
13632 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13633 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13634 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13635 echo ' :' >>$CONFIG_STATUS
13636 rm -f conftest.tail
13637 while grep . conftest.defines >/dev/null
13639 # Write a limited-size here document to $tmp/defines.sed.
13640 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13641 # Speed up: don't consider the non `#define' lines.
13642 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13643 # Work around the forget-to-reset-the-flag bug.
13644 echo 't clr' >>$CONFIG_STATUS
13645 echo ': clr' >>$CONFIG_STATUS
13646 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13647 echo 'CEOF
13648 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13649 rm -f $tmp/in
13650 mv $tmp/out $tmp/in
13651 ' >>$CONFIG_STATUS
13652 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13653 rm -f conftest.defines
13654 mv conftest.tail conftest.defines
13655 done
13656 rm -f conftest.defines
13657 echo ' fi # grep' >>$CONFIG_STATUS
13658 echo >>$CONFIG_STATUS
13660 # Break up conftest.undefs because some shells have a limit on the size
13661 # of here documents, and old seds have small limits too (100 cmds).
13662 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13663 rm -f conftest.tail
13664 while grep . conftest.undefs >/dev/null
13666 # Write a limited-size here document to $tmp/undefs.sed.
13667 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13668 # Speed up: don't consider the non `#undef'
13669 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13670 # Work around the forget-to-reset-the-flag bug.
13671 echo 't clr' >>$CONFIG_STATUS
13672 echo ': clr' >>$CONFIG_STATUS
13673 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13674 echo 'CEOF
13675 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13676 rm -f $tmp/in
13677 mv $tmp/out $tmp/in
13678 ' >>$CONFIG_STATUS
13679 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13680 rm -f conftest.undefs
13681 mv conftest.tail conftest.undefs
13682 done
13683 rm -f conftest.undefs
13685 cat >>$CONFIG_STATUS <<\_ACEOF
13686 # Let's still pretend it is `configure' which instantiates (i.e., don't
13687 # use $as_me), people would be surprised to read:
13688 # /* config.h. Generated by config.status. */
13689 if test x"$ac_file" = x-; then
13690 echo "/* Generated by configure. */" >$tmp/config.h
13691 else
13692 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13694 cat $tmp/in >>$tmp/config.h
13695 rm -f $tmp/in
13696 if test x"$ac_file" != x-; then
13697 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13699 echo "$as_me: $ac_file is unchanged" >&6;}
13700 else
13701 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13703 X"$ac_file" : 'X\(//\)[^/]' \| \
13704 X"$ac_file" : 'X\(//\)$' \| \
13705 X"$ac_file" : 'X\(/\)' \| \
13706 . : '\(.\)' 2>/dev/null ||
13707 echo X"$ac_file" |
13708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13710 /^X\(\/\/\)$/{ s//\1/; q; }
13711 /^X\(\/\).*/{ s//\1/; q; }
13712 s/.*/./; q'`
13713 { if $as_mkdir_p; then
13714 mkdir -p "$ac_dir"
13715 else
13716 as_dir="$ac_dir"
13717 as_dirs=
13718 while test ! -d "$as_dir"; do
13719 as_dirs="$as_dir $as_dirs"
13720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13722 X"$as_dir" : 'X\(//\)[^/]' \| \
13723 X"$as_dir" : 'X\(//\)$' \| \
13724 X"$as_dir" : 'X\(/\)' \| \
13725 . : '\(.\)' 2>/dev/null ||
13726 echo X"$as_dir" |
13727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13729 /^X\(\/\/\)$/{ s//\1/; q; }
13730 /^X\(\/\).*/{ s//\1/; q; }
13731 s/.*/./; q'`
13732 done
13733 test ! -n "$as_dirs" || mkdir $as_dirs
13734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13736 { (exit 1); exit 1; }; }; }
13738 rm -f $ac_file
13739 mv $tmp/config.h $ac_file
13741 else
13742 cat $tmp/config.h
13743 rm -f $tmp/config.h
13745 # Compute $ac_file's index in $config_headers.
13746 _am_stamp_count=1
13747 for _am_header in $config_headers :; do
13748 case $_am_header in
13749 $ac_file | $ac_file:* )
13750 break ;;
13752 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13753 esac
13754 done
13755 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13756 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13757 X$ac_file : 'X\(//\)[^/]' \| \
13758 X$ac_file : 'X\(//\)$' \| \
13759 X$ac_file : 'X\(/\)' \| \
13760 . : '\(.\)' 2>/dev/null ||
13761 echo X$ac_file |
13762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13764 /^X\(\/\/\)$/{ s//\1/; q; }
13765 /^X\(\/\).*/{ s//\1/; q; }
13766 s/.*/./; q'`/stamp-h$_am_stamp_count
13767 done
13768 _ACEOF
13769 cat >>$CONFIG_STATUS <<\_ACEOF
13772 # CONFIG_COMMANDS section.
13774 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13775 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13776 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13777 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13778 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779 X"$ac_dest" : 'X\(//\)[^/]' \| \
13780 X"$ac_dest" : 'X\(//\)$' \| \
13781 X"$ac_dest" : 'X\(/\)' \| \
13782 . : '\(.\)' 2>/dev/null ||
13783 echo X"$ac_dest" |
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786 /^X\(\/\/\)$/{ s//\1/; q; }
13787 /^X\(\/\).*/{ s//\1/; q; }
13788 s/.*/./; q'`
13789 { if $as_mkdir_p; then
13790 mkdir -p "$ac_dir"
13791 else
13792 as_dir="$ac_dir"
13793 as_dirs=
13794 while test ! -d "$as_dir"; do
13795 as_dirs="$as_dir $as_dirs"
13796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13798 X"$as_dir" : 'X\(//\)[^/]' \| \
13799 X"$as_dir" : 'X\(//\)$' \| \
13800 X"$as_dir" : 'X\(/\)' \| \
13801 . : '\(.\)' 2>/dev/null ||
13802 echo X"$as_dir" |
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13805 /^X\(\/\/\)$/{ s//\1/; q; }
13806 /^X\(\/\).*/{ s//\1/; q; }
13807 s/.*/./; q'`
13808 done
13809 test ! -n "$as_dirs" || mkdir $as_dirs
13810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13812 { (exit 1); exit 1; }; }; }
13814 ac_builddir=.
13816 if test "$ac_dir" != .; then
13817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13818 # A "../" for each directory in $ac_dir_suffix.
13819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13820 else
13821 ac_dir_suffix= ac_top_builddir=
13824 case $srcdir in
13825 .) # No --srcdir option. We are building in place.
13826 ac_srcdir=.
13827 if test -z "$ac_top_builddir"; then
13828 ac_top_srcdir=.
13829 else
13830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13831 fi ;;
13832 [\\/]* | ?:[\\/]* ) # Absolute path.
13833 ac_srcdir=$srcdir$ac_dir_suffix;
13834 ac_top_srcdir=$srcdir ;;
13835 *) # Relative path.
13836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13838 esac
13840 # Do not use `cd foo && pwd` to compute absolute paths, because
13841 # the directories may not exist.
13842 case `pwd` in
13843 .) ac_abs_builddir="$ac_dir";;
13845 case "$ac_dir" in
13846 .) ac_abs_builddir=`pwd`;;
13847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13849 esac;;
13850 esac
13851 case $ac_abs_builddir in
13852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13854 case ${ac_top_builddir}. in
13855 .) ac_abs_top_builddir=$ac_abs_builddir;;
13856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13858 esac;;
13859 esac
13860 case $ac_abs_builddir in
13861 .) ac_abs_srcdir=$ac_srcdir;;
13863 case $ac_srcdir in
13864 .) ac_abs_srcdir=$ac_abs_builddir;;
13865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13867 esac;;
13868 esac
13869 case $ac_abs_builddir in
13870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13872 case $ac_top_srcdir in
13873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13876 esac;;
13877 esac
13880 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13881 echo "$as_me: executing $ac_dest commands" >&6;}
13882 case $ac_dest in
13883 default-1 )
13884 # Only add multilib support code if we just rebuilt the top-level
13885 # Makefile.
13886 case " $CONFIG_FILES " in
13887 *" Makefile "*)
13888 ac_file=Makefile . ${multi_basedir}/config-ml.in
13890 esac ;;
13891 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13892 # Strip MF so we end up with the name of the file.
13893 mf=`echo "$mf" | sed -e 's/:.*$//'`
13894 # Check whether this is an Automake generated Makefile or not.
13895 # We used to match only the files named `Makefile.in', but
13896 # some people rename them; so instead we look at the file content.
13897 # Grep'ing the first line is not enough: some people post-process
13898 # each Makefile.in and add a new line on top of each file to say so.
13899 # So let's grep whole file.
13900 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13901 dirpart=`(dirname "$mf") 2>/dev/null ||
13902 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13903 X"$mf" : 'X\(//\)[^/]' \| \
13904 X"$mf" : 'X\(//\)$' \| \
13905 X"$mf" : 'X\(/\)' \| \
13906 . : '\(.\)' 2>/dev/null ||
13907 echo X"$mf" |
13908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13910 /^X\(\/\/\)$/{ s//\1/; q; }
13911 /^X\(\/\).*/{ s//\1/; q; }
13912 s/.*/./; q'`
13913 else
13914 continue
13916 # Extract the definition of DEPDIR, am__include, and am__quote
13917 # from the Makefile without running `make'.
13918 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13919 test -z "$DEPDIR" && continue
13920 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13921 test -z "am__include" && continue
13922 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13923 # When using ansi2knr, U may be empty or an underscore; expand it
13924 U=`sed -n 's/^U = //p' < "$mf"`
13925 # Find all dependency output files, they are included files with
13926 # $(DEPDIR) in their names. We invoke sed twice because it is the
13927 # simplest approach to changing $(DEPDIR) to its actual value in the
13928 # expansion.
13929 for file in `sed -n "
13930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13932 # Make sure the directory exists.
13933 test -f "$dirpart/$file" && continue
13934 fdir=`(dirname "$file") 2>/dev/null ||
13935 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13936 X"$file" : 'X\(//\)[^/]' \| \
13937 X"$file" : 'X\(//\)$' \| \
13938 X"$file" : 'X\(/\)' \| \
13939 . : '\(.\)' 2>/dev/null ||
13940 echo X"$file" |
13941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13943 /^X\(\/\/\)$/{ s//\1/; q; }
13944 /^X\(\/\).*/{ s//\1/; q; }
13945 s/.*/./; q'`
13946 { if $as_mkdir_p; then
13947 mkdir -p $dirpart/$fdir
13948 else
13949 as_dir=$dirpart/$fdir
13950 as_dirs=
13951 while test ! -d "$as_dir"; do
13952 as_dirs="$as_dir $as_dirs"
13953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13955 X"$as_dir" : 'X\(//\)[^/]' \| \
13956 X"$as_dir" : 'X\(//\)$' \| \
13957 X"$as_dir" : 'X\(/\)' \| \
13958 . : '\(.\)' 2>/dev/null ||
13959 echo X"$as_dir" |
13960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13962 /^X\(\/\/\)$/{ s//\1/; q; }
13963 /^X\(\/\).*/{ s//\1/; q; }
13964 s/.*/./; q'`
13965 done
13966 test ! -n "$as_dirs" || mkdir $as_dirs
13967 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13968 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13969 { (exit 1); exit 1; }; }; }
13971 # echo "creating $dirpart/$file"
13972 echo '# dummy' > "$dirpart/$file"
13973 done
13974 done
13976 libtool )
13978 # See if we are running on zsh, and set the options which allow our
13979 # commands through without removal of \ escapes.
13980 if test -n "${ZSH_VERSION+set}" ; then
13981 setopt NO_GLOB_SUBST
13984 cfgfile="${ofile}T"
13985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13986 $RM "$cfgfile"
13988 cat <<_LT_EOF >> "$cfgfile"
13989 #! $SHELL
13991 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13992 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13994 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13997 # 2006, 2007 Free Software Foundation, Inc.
13999 # This file is part of GNU Libtool:
14000 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14002 # This program is free software; you can redistribute it and/or modify
14003 # it under the terms of the GNU General Public License as published by
14004 # the Free Software Foundation; either version 2 of the License, or
14005 # (at your option) any later version.
14007 # This program is distributed in the hope that it will be useful, but
14008 # WITHOUT ANY WARRANTY; without even the implied warranty of
14009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14010 # General Public License for more details.
14012 # You should have received a copy of the GNU General Public License
14013 # along with this program; if not, a copy can be downloaded from
14014 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14015 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14016 # MA 02110-1301, USA.
14018 # As a special exception to the GNU General Public License, if you
14019 # distribute this file as part of a program that contains a
14020 # configuration script generated by Autoconf, you may include it under
14021 # the same distribution terms that you use for the rest of that program.
14024 # The names of the tagged configurations supported by this script.
14025 available_tags=""
14027 # ### BEGIN LIBTOOL CONFIG
14029 # Which release of libtool.m4 was used?
14030 macro_version=$macro_version
14031 macro_revision=$macro_revision
14033 # Whether or not to build shared libraries.
14034 build_libtool_libs=$enable_shared
14036 # Whether or not to build static libraries.
14037 build_old_libs=$enable_static
14039 # What type of objects to build.
14040 pic_mode=$pic_mode
14042 # Whether or not to optimize for fast installation.
14043 fast_install=$enable_fast_install
14045 # The host system.
14046 host_alias=$host_alias
14047 host=$host
14048 host_os=$host_os
14050 # The build system.
14051 build_alias=$build_alias
14052 build=$build
14053 build_os=$build_os
14055 # A sed program that does not truncate output.
14056 SED=$lt_SED
14058 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14059 Xsed="\$SED -e 1s/^X//"
14061 # A grep program that handles long lines.
14062 GREP=$lt_GREP
14064 # An ERE matcher.
14065 EGREP=$lt_EGREP
14067 # A literal string matcher.
14068 FGREP=$lt_FGREP
14070 # A BSD- or MS-compatible name lister.
14071 NM=$lt_NM
14073 # Whether we need soft or hard links.
14074 LN_S=$lt_LN_S
14076 # What is the maximum length of a command?
14077 max_cmd_len=$max_cmd_len
14079 # Object file suffix (normally "o").
14080 objext=$ac_objext
14082 # Executable file suffix (normally "").
14083 exeext=$exeext
14085 # whether the shell understands "unset".
14086 lt_unset=$lt_unset
14088 # turn spaces into newlines.
14089 SP2NL=$lt_lt_SP2NL
14091 # turn newlines into spaces.
14092 NL2SP=$lt_lt_NL2SP
14094 # How to create reloadable object files.
14095 reload_flag=$lt_reload_flag
14096 reload_cmds=$lt_reload_cmds
14098 # Method to check whether dependent libraries are shared objects.
14099 deplibs_check_method=$lt_deplibs_check_method
14101 # Command to use when deplibs_check_method == "file_magic".
14102 file_magic_cmd=$lt_file_magic_cmd
14104 # The archiver.
14105 AR=$lt_AR
14106 AR_FLAGS=$lt_AR_FLAGS
14108 # A symbol stripping program.
14109 STRIP=$lt_STRIP
14111 # Commands used to install an old-style archive.
14112 RANLIB=$lt_RANLIB
14113 old_postinstall_cmds=$lt_old_postinstall_cmds
14114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14116 # A C compiler.
14117 LTCC=$lt_CC
14119 # LTCC compiler flags.
14120 LTCFLAGS=$lt_CFLAGS
14122 # Take the output of nm and produce a listing of raw symbols and C names.
14123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14125 # Transform the output of nm in a proper C declaration.
14126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14128 # Transform the output of nm in a C name address pair.
14129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14131 # The name of the directory that contains temporary libtool files.
14132 objdir=$objdir
14134 # Shell to use when invoking shell scripts.
14135 SHELL=$lt_SHELL
14137 # An echo program that does not interpret backslashes.
14138 ECHO=$lt_ECHO
14140 # Used to examine libraries when file_magic_cmd begins with "file".
14141 MAGIC_CMD=$MAGIC_CMD
14143 # Must we lock files when doing compilation?
14144 need_locks=$lt_need_locks
14146 # Old archive suffix (normally "a").
14147 libext=$libext
14149 # Shared library suffix (normally ".so").
14150 shrext_cmds=$lt_shrext_cmds
14152 # The commands to extract the exported symbol list from a shared archive.
14153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14155 # Variables whose values should be saved in libtool wrapper scripts and
14156 # restored at link time.
14157 variables_saved_for_relink=$lt_variables_saved_for_relink
14159 # Do we need the "lib" prefix for modules?
14160 need_lib_prefix=$need_lib_prefix
14162 # Do we need a version for libraries?
14163 need_version=$need_version
14165 # Library versioning type.
14166 version_type=$version_type
14168 # Shared library runtime path variable.
14169 runpath_var=$runpath_var
14171 # Shared library path variable.
14172 shlibpath_var=$shlibpath_var
14174 # Is shlibpath searched before the hard-coded library search path?
14175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14177 # Format of library name prefix.
14178 libname_spec=$lt_libname_spec
14180 # List of archive names. First name is the real one, the rest are links.
14181 # The last name is the one that the linker finds with -lNAME
14182 library_names_spec=$lt_library_names_spec
14184 # The coded name of the library, if different from the real name.
14185 soname_spec=$lt_soname_spec
14187 # Command to use after installation of a shared archive.
14188 postinstall_cmds=$lt_postinstall_cmds
14190 # Command to use after uninstallation of a shared archive.
14191 postuninstall_cmds=$lt_postuninstall_cmds
14193 # Commands used to finish a libtool library installation in a directory.
14194 finish_cmds=$lt_finish_cmds
14196 # As "finish_cmds", except a single script fragment to be evaled but
14197 # not shown.
14198 finish_eval=$lt_finish_eval
14200 # Whether we should hardcode library paths into libraries.
14201 hardcode_into_libs=$hardcode_into_libs
14203 # Compile-time system search path for libraries.
14204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14206 # Run-time system search path for libraries.
14207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14209 # Whether dlopen is supported.
14210 dlopen_support=$enable_dlopen
14212 # Whether dlopen of programs is supported.
14213 dlopen_self=$enable_dlopen_self
14215 # Whether dlopen of statically linked programs is supported.
14216 dlopen_self_static=$enable_dlopen_self_static
14218 # Commands to strip libraries.
14219 old_striplib=$lt_old_striplib
14220 striplib=$lt_striplib
14223 # The linker used to build libraries.
14224 LD=$lt_LD
14226 # Commands used to build an old-style archive.
14227 old_archive_cmds=$lt_old_archive_cmds
14229 # A language specific compiler.
14230 CC=$lt_compiler
14232 # Is the compiler the GNU compiler?
14233 with_gcc=$GCC
14235 # Compiler flag to turn off builtin functions.
14236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14238 # How to pass a linker flag through the compiler.
14239 wl=$lt_lt_prog_compiler_wl
14241 # Additional compiler flags for building library objects.
14242 pic_flag=$lt_lt_prog_compiler_pic
14244 # Compiler flag to prevent dynamic linking.
14245 link_static_flag=$lt_lt_prog_compiler_static
14247 # Does compiler simultaneously support -c and -o options?
14248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14250 # Whether or not to add -lc for building shared libraries.
14251 build_libtool_need_lc=$archive_cmds_need_lc
14253 # Whether or not to disallow shared libs when runtime libs are static.
14254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14256 # Compiler flag to allow reflexive dlopens.
14257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14259 # Compiler flag to generate shared objects directly from archives.
14260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14262 # Whether the compiler copes with passing no objects directly.
14263 compiler_needs_object=$lt_compiler_needs_object
14265 # Create an old-style archive from a shared archive.
14266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14268 # Create a temporary old-style archive to link instead of a shared archive.
14269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14271 # Commands used to build a shared archive.
14272 archive_cmds=$lt_archive_cmds
14273 archive_expsym_cmds=$lt_archive_expsym_cmds
14275 # Commands used to build a loadable module if different from building
14276 # a shared archive.
14277 module_cmds=$lt_module_cmds
14278 module_expsym_cmds=$lt_module_expsym_cmds
14280 # Whether we are building with GNU ld or not.
14281 with_gnu_ld=$lt_with_gnu_ld
14283 # Flag that allows shared libraries with undefined symbols to be built.
14284 allow_undefined_flag=$lt_allow_undefined_flag
14286 # Flag that enforces no undefined symbols.
14287 no_undefined_flag=$lt_no_undefined_flag
14289 # Flag to hardcode \$libdir into a binary during linking.
14290 # This must work even if \$libdir does not exist
14291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14293 # If ld is used when linking, flag to hardcode \$libdir into a binary
14294 # during linking. This must work even if \$libdir does not exist.
14295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14297 # Whether we need a single "-rpath" flag with a separated argument.
14298 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14300 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14301 # DIR into the resulting binary.
14302 hardcode_direct=$hardcode_direct
14304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14305 # DIR into the resulting binary and the resulting library dependency is
14306 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14307 # library is relocated.
14308 hardcode_direct_absolute=$hardcode_direct_absolute
14310 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14311 # into the resulting binary.
14312 hardcode_minus_L=$hardcode_minus_L
14314 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14315 # into the resulting binary.
14316 hardcode_shlibpath_var=$hardcode_shlibpath_var
14318 # Set to "yes" if building a shared library automatically hardcodes DIR
14319 # into the library and all subsequent libraries and executables linked
14320 # against it.
14321 hardcode_automatic=$hardcode_automatic
14323 # Set to yes if linker adds runtime paths of dependent libraries
14324 # to runtime path list.
14325 inherit_rpath=$inherit_rpath
14327 # Whether libtool must link a program against all its dependency libraries.
14328 link_all_deplibs=$link_all_deplibs
14330 # Fix the shell variable \$srcfile for the compiler.
14331 fix_srcfile_path=$lt_fix_srcfile_path
14333 # Set to "yes" if exported symbols are required.
14334 always_export_symbols=$always_export_symbols
14336 # The commands to list exported symbols.
14337 export_symbols_cmds=$lt_export_symbols_cmds
14339 # Symbols that should not be listed in the preloaded symbols.
14340 exclude_expsyms=$lt_exclude_expsyms
14342 # Symbols that must always be exported.
14343 include_expsyms=$lt_include_expsyms
14345 # Commands necessary for linking programs (against libraries) with templates.
14346 prelink_cmds=$lt_prelink_cmds
14348 # Specify filename containing input files.
14349 file_list_spec=$lt_file_list_spec
14351 # How to hardcode a shared library path into an executable.
14352 hardcode_action=$hardcode_action
14354 # ### END LIBTOOL CONFIG
14356 _LT_EOF
14358 case $host_os in
14359 aix3*)
14360 cat <<\_LT_EOF >> "$cfgfile"
14361 # AIX sometimes has problems with the GCC collect2 program. For some
14362 # reason, if we set the COLLECT_NAMES environment variable, the problems
14363 # vanish in a puff of smoke.
14364 if test "X${COLLECT_NAMES+set}" != Xset; then
14365 COLLECT_NAMES=
14366 export COLLECT_NAMES
14368 _LT_EOF
14370 esac
14373 ltmain="$ac_aux_dir/ltmain.sh"
14376 # We use sed instead of cat because bash on DJGPP gets confused if
14377 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14378 # text mode, it properly converts lines to CR/LF. This bash problem
14379 # is reportedly fixed, but why not run on old versions too?
14380 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14381 || (rm -f "$cfgfile"; exit 1)
14383 case $xsi_shell in
14384 yes)
14385 cat << \_LT_EOF >> "$cfgfile"
14386 # func_dirname file append nondir_replacement
14387 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14388 # otherwise set result to NONDIR_REPLACEMENT.
14389 func_dirname ()
14391 case ${1} in
14392 */*) func_dirname_result="${1%/*}${2}" ;;
14393 * ) func_dirname_result="${3}" ;;
14394 esac
14397 # func_basename file
14398 func_basename ()
14400 func_basename_result="${1##*/}"
14403 # func_stripname prefix suffix name
14404 # strip PREFIX and SUFFIX off of NAME.
14405 # PREFIX and SUFFIX must not contain globbing or regex special
14406 # characters, hashes, percent signs, but SUFFIX may contain a leading
14407 # dot (in which case that matches only a dot).
14408 func_stripname ()
14410 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14411 # positional parameters, so assign one to ordinary parameter first.
14412 func_stripname_result=${3}
14413 func_stripname_result=${func_stripname_result#"${1}"}
14414 func_stripname_result=${func_stripname_result%"${2}"}
14417 # func_opt_split
14418 func_opt_split ()
14420 func_opt_split_opt=${1%%=*}
14421 func_opt_split_arg=${1#*=}
14424 # func_lo2o object
14425 func_lo2o ()
14427 case ${1} in
14428 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14429 *) func_lo2o_result=${1} ;;
14430 esac
14432 _LT_EOF
14434 *) # Bourne compatible functions.
14435 cat << \_LT_EOF >> "$cfgfile"
14436 # func_dirname file append nondir_replacement
14437 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14438 # otherwise set result to NONDIR_REPLACEMENT.
14439 func_dirname ()
14441 # Extract subdirectory from the argument.
14442 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14443 if test "X$func_dirname_result" = "X${1}"; then
14444 func_dirname_result="${3}"
14445 else
14446 func_dirname_result="$func_dirname_result${2}"
14450 # func_basename file
14451 func_basename ()
14453 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14456 # func_stripname prefix suffix name
14457 # strip PREFIX and SUFFIX off of NAME.
14458 # PREFIX and SUFFIX must not contain globbing or regex special
14459 # characters, hashes, percent signs, but SUFFIX may contain a leading
14460 # dot (in which case that matches only a dot).
14461 # func_strip_suffix prefix name
14462 func_stripname ()
14464 case ${2} in
14465 .*) func_stripname_result=`$ECHO "X${3}" \
14466 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14467 *) func_stripname_result=`$ECHO "X${3}" \
14468 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14469 esac
14472 # sed scripts:
14473 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14474 my_sed_long_arg='1s/^-[^=]*=//'
14476 # func_opt_split
14477 func_opt_split ()
14479 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14480 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14483 # func_lo2o object
14484 func_lo2o ()
14486 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14488 _LT_EOF
14489 esac
14491 case $lt_shell_append in
14492 yes)
14493 cat << \_LT_EOF >> "$cfgfile"
14495 # func_append var value
14496 # Append VALUE to the end of shell variable VAR.
14497 func_append ()
14499 eval "$1+=\$2"
14501 _LT_EOF
14504 cat << \_LT_EOF >> "$cfgfile"
14506 # func_append var value
14507 # Append VALUE to the end of shell variable VAR.
14508 func_append ()
14510 eval "$1=\$$1\$2"
14512 _LT_EOF
14514 esac
14517 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14518 || (rm -f "$cfgfile"; exit 1)
14520 mv -f "$cfgfile" "$ofile" ||
14521 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14522 chmod +x "$ofile"
14525 esac
14526 done
14527 _ACEOF
14529 cat >>$CONFIG_STATUS <<\_ACEOF
14531 { (exit 0); exit 0; }
14532 _ACEOF
14533 chmod +x $CONFIG_STATUS
14534 ac_clean_files=$ac_clean_files_save
14537 # configure is writing to config.log, and then calls config.status.
14538 # config.status does its own redirection, appending to config.log.
14539 # Unfortunately, on DOS this fails, as config.log is still kept open
14540 # by configure, so config.status won't be able to write to it; its
14541 # output is simply discarded. So we exec the FD to /dev/null,
14542 # effectively closing config.log, so it can be properly (re)opened and
14543 # appended to by config.status. When coming back to configure, we
14544 # need to make the FD available again.
14545 if test "$no_create" != yes; then
14546 ac_cs_success=:
14547 ac_config_status_args=
14548 test "$silent" = yes &&
14549 ac_config_status_args="$ac_config_status_args --quiet"
14550 exec 5>/dev/null
14551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14552 exec 5>>config.log
14553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554 # would make configure fail if this is the last instruction.
14555 $ac_cs_success || { (exit 1); exit 1; }