]> git.ipfire.org Git - thirdparty/gcc.git/blob - libmudflap/configure
configure.ac: New name of configure.in.
[thirdparty/gcc.git] / libmudflap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libmudflap'
269 PACKAGE_TARNAME='libmudflap'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='libmudflap 1.0'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="mf-runtime.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot libtool_VERSION 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 LN_S RANLIB ac_ct_RANLIB LIBTOOL enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth gcc_version toolexecdir toolexeclibdir NM ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761
762 #
763 # Report the --help message.
764 #
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
769 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
770
771 Usage: $0 [OPTION]... [VAR=VALUE]...
772
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
775
776 Defaults for the options are specified in brackets.
777
778 Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788
789 _ACEOF
790
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
797
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
802
803 For better control, use the options below.
804
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818 _ACEOF
819
820 cat <<\_ACEOF
821
822 Program names:
823 --program-prefix=PREFIX prepend PREFIX to installed program names
824 --program-suffix=SUFFIX append SUFFIX to installed program names
825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
826
827 System types:
828 --build=BUILD configure for building on BUILD [guessed]
829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
830 --target=TARGET configure for building compilers for TARGET [HOST]
831 _ACEOF
832 fi
833
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive ) echo "Configuration of libmudflap 1.0:";;
837 esac
838 cat <<\_ACEOF
839
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
844 --enable-maintainer-mode enable make rules and dependencies not useful
845 (and sometimes confusing) to the casual installer
846 --enable-multilib build many library versions (default)
847 --disable-dependency-tracking speeds up one-time build
848 --enable-dependency-tracking do not reject slow dependency extractors
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
853
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd "$ac_popdir"
961 done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 libmudflap configure 1.0
968 generated by GNU Autoconf 2.59
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by libmudflap $as_me 1.0, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044 for ac_arg
1045 do
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100 {
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113 }
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1275 fi
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1332 fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1348
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1365
1366 fi
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375 echo "$as_me:$LINENO: checking host system type" >&5
1376 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377 if test "${ac_cv_host+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_host_alias=$host_alias
1381 test -z "$ac_cv_host_alias" &&
1382 ac_cv_host_alias=$ac_cv_build_alias
1383 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386 { (exit 1); exit 1; }; }
1387
1388 fi
1389 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390 echo "${ECHO_T}$ac_cv_host" >&6
1391 host=$ac_cv_host
1392 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397 echo "$as_me:$LINENO: checking target system type" >&5
1398 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399 if test "${ac_cv_target+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_target_alias=$target_alias
1403 test "x$ac_cv_target_alias" = "x" &&
1404 ac_cv_target_alias=$ac_cv_host_alias
1405 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1409
1410 fi
1411 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412 echo "${ECHO_T}$ac_cv_target" >&6
1413 target=$ac_cv_target
1414 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419 # The aliases save the names the user supplied, while $host etc.
1420 # will get canonicalized.
1421 test -n "$target_alias" &&
1422 test "$program_prefix$program_suffix$program_transform_name" = \
1423 NONENONEs,x,x, &&
1424 program_prefix=${target_alias}-
1425
1426 am__api_version="1.8"
1427 # Find a good install program. We prefer a C program (faster),
1428 # so one script is as good as another. But avoid the broken or
1429 # incompatible versions:
1430 # SysV /etc/install, /usr/sbin/install
1431 # SunOS /usr/etc/install
1432 # IRIX /sbin/install
1433 # AIX /bin/install
1434 # AmigaOS /C/install, which installs bootblocks on floppy discs
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # OS/2's system install, which has a completely different semantic
1439 # ./install, which can be erroneously created by make from ./install.sh.
1440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1442 if test -z "$INSTALL"; then
1443 if test "${ac_cv_path_install+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 # Account for people who put trailing slashes in PATH elements.
1452 case $as_dir/ in
1453 ./ | .// | /cC/* | \
1454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1456 /usr/ucb/* ) ;;
1457 *)
1458 # OSF1 and SCO ODT 3.0 have their own names for install.
1459 # Don't use installbsd from OSF since it installs stuff as root
1460 # by default.
1461 for ac_prog in ginstall scoinst install; do
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1464 if test $ac_prog = install &&
1465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1466 # AIX install. It has an incompatible calling convention.
1467 :
1468 elif test $ac_prog = install &&
1469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1470 # program-specific install script used by HP pwplus--don't use.
1471 :
1472 else
1473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1474 break 3
1475 fi
1476 fi
1477 done
1478 done
1479 ;;
1480 esac
1481 done
1482
1483
1484 fi
1485 if test "${ac_cv_path_install+set}" = set; then
1486 INSTALL=$ac_cv_path_install
1487 else
1488 # As a last resort, use the slow shell script. We don't cache a
1489 # path for INSTALL within a source directory, because that will
1490 # break other packages using the cache if that directory is
1491 # removed, or if the path is relative.
1492 INSTALL=$ac_install_sh
1493 fi
1494 fi
1495 echo "$as_me:$LINENO: result: $INSTALL" >&5
1496 echo "${ECHO_T}$INSTALL" >&6
1497
1498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499 # It thinks the first close brace ends the variable substitution.
1500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501
1502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1503
1504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505
1506 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1507 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1508 # Just in case
1509 sleep 1
1510 echo timestamp > conftest.file
1511 # Do `set' in a subshell so we don't clobber the current shell's
1512 # arguments. Must try -L first in case configure is actually a
1513 # symlink; some systems play weird games with the mod time of symlinks
1514 # (eg FreeBSD returns the mod time of the symlink's containing
1515 # directory).
1516 if (
1517 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1518 if test "$*" = "X"; then
1519 # -L didn't work.
1520 set X `ls -t $srcdir/configure conftest.file`
1521 fi
1522 rm -f conftest.file
1523 if test "$*" != "X $srcdir/configure conftest.file" \
1524 && test "$*" != "X conftest.file $srcdir/configure"; then
1525
1526 # If neither matched, then we have a broken ls. This can happen
1527 # if, for instance, CONFIG_SHELL is bash and it inherits a
1528 # broken ls alias from the environment. This has actually
1529 # happened. Such a system could not be considered "sane".
1530 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1531 alias in your environment" >&5
1532 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1533 alias in your environment" >&2;}
1534 { (exit 1); exit 1; }; }
1535 fi
1536
1537 test "$2" = conftest.file
1538 )
1539 then
1540 # Ok.
1541 :
1542 else
1543 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1544 Check your system clock" >&5
1545 echo "$as_me: error: newly created file is older than distributed files!
1546 Check your system clock" >&2;}
1547 { (exit 1); exit 1; }; }
1548 fi
1549 echo "$as_me:$LINENO: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1551 test "$program_prefix" != NONE &&
1552 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1553 # Use a double $ so make ignores it.
1554 test "$program_suffix" != NONE &&
1555 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1556 # Double any \ or $. echo might interpret backslashes.
1557 # By default was `s,x,x', remove it if useless.
1558 cat <<\_ACEOF >conftest.sed
1559 s/[\\$]/&&/g;s/;s,x,x,$//
1560 _ACEOF
1561 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1562 rm conftest.sed
1563
1564 # expand $ac_aux_dir to an absolute path
1565 am_aux_dir=`cd $ac_aux_dir && pwd`
1566
1567 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1568 # Use eval to expand $SHELL
1569 if eval "$MISSING --run true"; then
1570 am_missing_run="$MISSING --run "
1571 else
1572 am_missing_run=
1573 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1574 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1575 fi
1576
1577 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1578 # Keeping the `.' argument allows $(mkdir_p) to be used without
1579 # argument. Indeed, we sometimes output rules like
1580 # $(mkdir_p) $(somedir)
1581 # where $(somedir) is conditionally defined.
1582 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1583 # expensive solution, as it forces Make to start a sub-shell.)
1584 mkdir_p='mkdir -p -- .'
1585 else
1586 # On NextStep and OpenStep, the `mkdir' command does not
1587 # recognize any option. It will interpret all options as
1588 # directories to create, and then abort because `.' already
1589 # exists.
1590 for d in ./-p ./--version;
1591 do
1592 test -d $d && rmdir $d
1593 done
1594 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1595 if test -f "$ac_aux_dir/mkinstalldirs"; then
1596 mkdir_p='$(mkinstalldirs)'
1597 else
1598 mkdir_p='$(install_sh) -d'
1599 fi
1600 fi
1601
1602 for ac_prog in gawk mawk nawk awk
1603 do
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_AWK+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$AWK"; then
1612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_AWK="$ac_prog"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 AWK=$ac_cv_prog_AWK
1631 if test -n "$AWK"; then
1632 echo "$as_me:$LINENO: result: $AWK" >&5
1633 echo "${ECHO_T}$AWK" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 test -n "$AWK" && break
1640 done
1641
1642 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1643 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1645 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 cat >conftest.make <<\_ACEOF
1649 all:
1650 @echo 'ac_maketemp="$(MAKE)"'
1651 _ACEOF
1652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1653 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1654 if test -n "$ac_maketemp"; then
1655 eval ac_cv_prog_make_${ac_make}_set=yes
1656 else
1657 eval ac_cv_prog_make_${ac_make}_set=no
1658 fi
1659 rm -f conftest.make
1660 fi
1661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1662 echo "$as_me:$LINENO: result: yes" >&5
1663 echo "${ECHO_T}yes" >&6
1664 SET_MAKE=
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 SET_MAKE="MAKE=${MAKE-make}"
1669 fi
1670
1671 rm -rf .tst 2>/dev/null
1672 mkdir .tst 2>/dev/null
1673 if test -d .tst; then
1674 am__leading_dot=.
1675 else
1676 am__leading_dot=_
1677 fi
1678 rmdir .tst 2>/dev/null
1679
1680 # test to see if srcdir already configured
1681 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1682 test -f $srcdir/config.status; then
1683 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1684 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1685 { (exit 1); exit 1; }; }
1686 fi
1687
1688 # test whether we have cygpath
1689 if test -z "$CYGPATH_W"; then
1690 if (cygpath --version) >/dev/null 2>/dev/null; then
1691 CYGPATH_W='cygpath -w'
1692 else
1693 CYGPATH_W=echo
1694 fi
1695 fi
1696
1697
1698 # Define the identity of the package.
1699 PACKAGE='libmudflap'
1700 VERSION='1.0'
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE "$PACKAGE"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define VERSION "$VERSION"
1710 _ACEOF
1711
1712 # Some tools Automake needs.
1713
1714 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1715
1716
1717 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1718
1719
1720 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1721
1722
1723 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1724
1725
1726 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1727
1728
1729 AMTAR=${AMTAR-"${am_missing_run}tar"}
1730
1731 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1732
1733 # Installed binaries are usually stripped using `strip' when the user
1734 # run `make install-strip'. However `strip' might not be the right
1735 # tool to use in cross-compilation environments, therefore Automake
1736 # will honor the `STRIP' environment variable to overrule this program.
1737 if test "$cross_compiling" != no; then
1738 if test -n "$ac_tool_prefix"; then
1739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1740 set dummy ${ac_tool_prefix}strip; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_STRIP+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 if test -n "$STRIP"; then
1747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1759 fi
1760 done
1761 done
1762
1763 fi
1764 fi
1765 STRIP=$ac_cv_prog_STRIP
1766 if test -n "$STRIP"; then
1767 echo "$as_me:$LINENO: result: $STRIP" >&5
1768 echo "${ECHO_T}$STRIP" >&6
1769 else
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 fi
1773
1774 fi
1775 if test -z "$ac_cv_prog_STRIP"; then
1776 ac_ct_STRIP=$STRIP
1777 # Extract the first word of "strip", so it can be a program name with args.
1778 set dummy strip; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$ac_ct_STRIP"; then
1785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_STRIP="strip"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1797 fi
1798 done
1799 done
1800
1801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1802 fi
1803 fi
1804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1805 if test -n "$ac_ct_STRIP"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1807 echo "${ECHO_T}$ac_ct_STRIP" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813 STRIP=$ac_ct_STRIP
1814 else
1815 STRIP="$ac_cv_prog_STRIP"
1816 fi
1817
1818 fi
1819 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1820
1821 # We need awk for the "check" target. The system "awk" is bad on
1822 # some platforms.
1823
1824
1825
1826
1827 # For libtool versioning info, format is CURRENT:REVISION:AGE
1828 libtool_VERSION=1:0:0
1829
1830
1831 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1832 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1833 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1834 if test "${enable_version_specific_runtime_libs+set}" = set; then
1835 enableval="$enable_version_specific_runtime_libs"
1836 case "$enableval" in
1837 yes) version_specific_libs=yes ;;
1838 no) version_specific_libs=no ;;
1839 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1840 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1841 { (exit 1); exit 1; }; };;
1842 esac
1843 else
1844 version_specific_libs=no
1845 fi;
1846 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1847 echo "${ECHO_T}$version_specific_libs" >&6
1848
1849 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1850 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1851 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1852 if test "${enable_maintainer_mode+set}" = set; then
1853 enableval="$enable_maintainer_mode"
1854 USE_MAINTAINER_MODE=$enableval
1855 else
1856 USE_MAINTAINER_MODE=no
1857 fi;
1858 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1859 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1860
1861
1862 if test $USE_MAINTAINER_MODE = yes; then
1863 MAINTAINER_MODE_TRUE=
1864 MAINTAINER_MODE_FALSE='#'
1865 else
1866 MAINTAINER_MODE_TRUE='#'
1867 MAINTAINER_MODE_FALSE=
1868 fi
1869
1870 MAINT=$MAINTAINER_MODE_TRUE
1871
1872
1873
1874
1875 # Default to --enable-multilib
1876 # Check whether --enable-multilib or --disable-multilib was given.
1877 if test "${enable_multilib+set}" = set; then
1878 enableval="$enable_multilib"
1879 case "$enableval" in
1880 yes) multilib=yes ;;
1881 no) multilib=no ;;
1882 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1883 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1884 { (exit 1); exit 1; }; } ;;
1885 esac
1886 else
1887 multilib=yes
1888 fi;
1889
1890 # We may get other options which we leave undocumented:
1891 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1892 # See config-ml.in if you want the gory details.
1893
1894 if test "$srcdir" = "."; then
1895 if test "$with_target_subdir" != "."; then
1896 multi_basedir="$srcdir/$with_multisrctop../.."
1897 else
1898 multi_basedir="$srcdir/$with_multisrctop.."
1899 fi
1900 else
1901 multi_basedir="$srcdir/.."
1902 fi
1903
1904
1905 ac_config_commands="$ac_config_commands default-1"
1906
1907
1908 target_alias=${target_alias-$target}
1909
1910
1911 ac_config_headers="$ac_config_headers config.h"
1912
1913
1914 ac_ext=c
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919
1920 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1921 # We must force CC to /not/ be precious variables; otherwise
1922 # the wrong, non-multilib-adjusted value will be used in multilibs.
1923 # As a side effect, we have to subst CFLAGS ourselves.
1924
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 CC=$ac_cv_prog_CC
1960 if test -n "$CC"; then
1961 echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1963 else
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968 fi
1969 if test -z "$ac_cv_prog_CC"; then
1970 ac_ct_CC=$CC
1971 # Extract the first word of "gcc", so it can be a program name with args.
1972 set dummy gcc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC="gcc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1991 fi
1992 done
1993 done
1994
1995 fi
1996 fi
1997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2001 else
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006 CC=$ac_ct_CC
2007 else
2008 CC="$ac_cv_prog_CC"
2009 fi
2010
2011 if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}cc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$ac_cv_prog_CC"; then
2050 ac_ct_CC=$CC
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 CC=$ac_ct_CC
2087 else
2088 CC="$ac_cv_prog_CC"
2089 fi
2090
2091 fi
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 ac_prog_rejected=no
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2113 continue
2114 fi
2115 ac_cv_prog_CC="cc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2118 fi
2119 done
2120 done
2121
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2125 shift
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2130 shift
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132 fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2140 else
2141 echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2143 fi
2144
2145 fi
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2148 for ac_prog in cl
2149 do
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 CC=$ac_cv_prog_CC
2177 if test -n "$CC"; then
2178 echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6
2180 else
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185 test -n "$CC" && break
2186 done
2187 fi
2188 if test -z "$CC"; then
2189 ac_ct_CC=$CC
2190 for ac_prog in cl
2191 do
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$ac_ct_CC"; then
2200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_CC="$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219 if test -n "$ac_ct_CC"; then
2220 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221 echo "${ECHO_T}$ac_ct_CC" >&6
2222 else
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 test -n "$ac_ct_CC" && break
2228 done
2229
2230 CC=$ac_ct_CC
2231 fi
2232
2233 fi
2234
2235
2236 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2241
2242 # Provide some information about the compiler.
2243 echo "$as_me:$LINENO:" \
2244 "checking for C compiler version" >&5
2245 ac_compiler=`set X $ac_compile; echo $2`
2246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2247 (eval $ac_compiler --version </dev/null >&5) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }
2251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2252 (eval $ac_compiler -v </dev/null >&5) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2257 (eval $ac_compiler -V </dev/null >&5) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2268
2269 int
2270 main ()
2271 {
2272
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2281 # of exeext.
2282 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2285 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2286 (eval $ac_link_default) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; then
2290 # Find the output, starting from the most likely. This scheme is
2291 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2292 # resort.
2293
2294 # Be careful to initialize this variable, since it used to be cached.
2295 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2296 ac_cv_exeext=
2297 # b.out is created by i960 compilers.
2298 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2299 do
2300 test -f "$ac_file" || continue
2301 case $ac_file in
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2303 ;;
2304 conftest.$ac_ext )
2305 # This is the source file.
2306 ;;
2307 [ab].out )
2308 # We found the default executable, but exeext='' is most
2309 # certainly right.
2310 break;;
2311 *.* )
2312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 # FIXME: I believe we export ac_cv_exeext for Libtool,
2314 # but it would be cool to find out if it's true. Does anybody
2315 # maintain Libtool? --akim.
2316 export ac_cv_exeext
2317 break;;
2318 * )
2319 break;;
2320 esac
2321 done
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: C compiler cannot create executables
2329 See \`config.log' for more details." >&2;}
2330 { (exit 77); exit 77; }; }
2331 fi
2332
2333 ac_exeext=$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6
2336
2337 # Check the compiler produces executables we can run. If not, either
2338 # the compiler is broken, or we cross compile.
2339 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2340 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2341 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2342 # If not cross compiling, check that we can run a simple program.
2343 if test "$cross_compiling" != yes; then
2344 if { ac_try='./$ac_file'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 cross_compiling=no
2351 else
2352 if test "$cross_compiling" = maybe; then
2353 cross_compiling=yes
2354 else
2355 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2362 fi
2363 fi
2364 fi
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2367
2368 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2369 ac_clean_files=$ac_clean_files_save
2370 # Check the compiler produces executables we can run. If not, either
2371 # the compiler is broken, or we cross compile.
2372 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2373 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2374 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2375 echo "${ECHO_T}$cross_compiling" >&6
2376
2377 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2378 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2380 (eval $ac_link) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; then
2384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2386 # work properly (i.e., refer to `conftest.exe'), while it won't with
2387 # `rm'.
2388 for ac_file in conftest.exe conftest conftest.*; do
2389 test -f "$ac_file" || continue
2390 case $ac_file in
2391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 export ac_cv_exeext
2394 break;;
2395 * ) break;;
2396 esac
2397 done
2398 else
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2404 fi
2405
2406 rm -f conftest$ac_cv_exeext
2407 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408 echo "${ECHO_T}$ac_cv_exeext" >&6
2409
2410 rm -f conftest.$ac_ext
2411 EXEEXT=$ac_cv_exeext
2412 ac_exeext=$EXEEXT
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424
2425 int
2426 main ()
2427 {
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2443 break;;
2444 esac
2445 done
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2455 fi
2456
2457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2460 echo "${ECHO_T}$ac_cv_objext" >&6
2461 OBJEXT=$ac_cv_objext
2462 ac_objext=$OBJEXT
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h. */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2474
2475 int
2476 main ()
2477 {
2478 #ifndef __GNUC__
2479 choke me
2480 #endif
2481
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_compiler_gnu=yes
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 ac_compiler_gnu=no
2513 fi
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2516
2517 fi
2518 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2520 GCC=`test $ac_compiler_gnu = yes && echo yes`
2521 ac_test_CFLAGS=${CFLAGS+set}
2522 ac_save_CFLAGS=$CFLAGS
2523 CFLAGS="-g"
2524 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2526 if test "${ac_cv_prog_cc_g+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535
2536 int
2537 main ()
2538 {
2539
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_prog_cc_g=yes
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570 ac_cv_prog_cc_g=no
2571 fi
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2576 if test "$ac_test_CFLAGS" = set; then
2577 CFLAGS=$ac_save_CFLAGS
2578 elif test $ac_cv_prog_cc_g = yes; then
2579 if test "$GCC" = yes; then
2580 CFLAGS="-g -O2"
2581 else
2582 CFLAGS="-g"
2583 fi
2584 else
2585 if test "$GCC" = yes; then
2586 CFLAGS="-O2"
2587 else
2588 CFLAGS=
2589 fi
2590 fi
2591 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2592 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2593 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 ac_cv_prog_cc_stdc=no
2597 ac_save_CC=$CC
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2604 #include <stdarg.h>
2605 #include <stdio.h>
2606 #include <sys/types.h>
2607 #include <sys/stat.h>
2608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2609 struct buf { int x; };
2610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2611 static char *e (p, i)
2612 char **p;
2613 int i;
2614 {
2615 return p[i];
2616 }
2617 static char *f (char * (*g) (char **, int), char **p, ...)
2618 {
2619 char *s;
2620 va_list v;
2621 va_start (v,p);
2622 s = g (p, va_arg (v,int));
2623 va_end (v);
2624 return s;
2625 }
2626
2627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2628 function prototypes and stuff, but not '\xHH' hex character constants.
2629 These don't provoke an error unfortunately, instead are silently treated
2630 as 'x'. The following induces an error, until -std1 is added to get
2631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2632 array size at least. It's necessary to write '\x00'==0 to get something
2633 that's true only with -std1. */
2634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2635
2636 int test (int i, double x);
2637 struct s1 {int (*f) (int a);};
2638 struct s2 {int (*f) (double a);};
2639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2640 int argc;
2641 char **argv;
2642 int
2643 main ()
2644 {
2645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2646 ;
2647 return 0;
2648 }
2649 _ACEOF
2650 # Don't try gcc -ansi; that turns off useful extensions and
2651 # breaks some systems' header files.
2652 # AIX -qlanglvl=ansi
2653 # Ultrix and OSF/1 -std1
2654 # HP-UX 10.20 and later -Ae
2655 # HP-UX older versions -Aa -D_HPUX_SOURCE
2656 # SVR4 -Xc -D__EXTENSIONS__
2657 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2658 do
2659 CC="$ac_save_CC $ac_arg"
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_stdc=$ac_arg
2682 break
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 fi
2688 rm -f conftest.err conftest.$ac_objext
2689 done
2690 rm -f conftest.$ac_ext conftest.$ac_objext
2691 CC=$ac_save_CC
2692
2693 fi
2694
2695 case "x$ac_cv_prog_cc_stdc" in
2696 x|xno)
2697 echo "$as_me:$LINENO: result: none needed" >&5
2698 echo "${ECHO_T}none needed" >&6 ;;
2699 *)
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2702 CC="$CC $ac_cv_prog_cc_stdc" ;;
2703 esac
2704
2705 # Some people use a C++ compiler to compile C. Since we use `exit',
2706 # in C++ we need to declare it. In case someone uses the same compiler
2707 # for both compiling C and C++ we need to have the C++ compiler decide
2708 # the declaration of exit, since it's the most demanding environment.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #ifndef __cplusplus
2711 choke me
2712 #endif
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 for ac_declaration in \
2736 '' \
2737 'extern "C" void std::exit (int) throw (); using std::exit;' \
2738 'extern "C" void std::exit (int); using std::exit;' \
2739 'extern "C" void exit (int) throw ();' \
2740 'extern "C" void exit (int);' \
2741 'void exit (int);'
2742 do
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 $ac_declaration
2750 #include <stdlib.h>
2751 int
2752 main ()
2753 {
2754 exit (42);
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 (eval $ac_try) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 :
2781 else
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 continue
2786 fi
2787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794 $ac_declaration
2795 int
2796 main ()
2797 {
2798 exit (42);
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 break
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 fi
2830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831 done
2832 rm -f conftest*
2833 if test -n "$ac_declaration"; then
2834 echo '#ifdef __cplusplus' >>confdefs.h
2835 echo $ac_declaration >>confdefs.h
2836 echo '#endif' >>confdefs.h
2837 fi
2838
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 fi
2844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 DEPDIR="${am__leading_dot}deps"
2851
2852 ac_config_commands="$ac_config_commands depfiles"
2853
2854
2855 am_make=${MAKE-make}
2856 cat > confinc << 'END'
2857 am__doit:
2858 @echo done
2859 .PHONY: am__doit
2860 END
2861 # If we don't find an include directive, just comment out the code.
2862 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2863 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2864 am__include="#"
2865 am__quote=
2866 _am_result=none
2867 # First try GNU make style include.
2868 echo "include confinc" > confmf
2869 # We grep out `Entering directory' and `Leaving directory'
2870 # messages which can occur if `w' ends up in MAKEFLAGS.
2871 # In particular we don't look at `^make:' because GNU make might
2872 # be invoked under some other name (usually "gmake"), in which
2873 # case it prints its new name instead of `make'.
2874 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2875 am__include=include
2876 am__quote=
2877 _am_result=GNU
2878 fi
2879 # Now try BSD make style include.
2880 if test "$am__include" = "#"; then
2881 echo '.include "confinc"' > confmf
2882 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2883 am__include=.include
2884 am__quote="\""
2885 _am_result=BSD
2886 fi
2887 fi
2888
2889
2890 echo "$as_me:$LINENO: result: $_am_result" >&5
2891 echo "${ECHO_T}$_am_result" >&6
2892 rm -f confinc confmf
2893
2894 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2895 if test "${enable_dependency_tracking+set}" = set; then
2896 enableval="$enable_dependency_tracking"
2897
2898 fi;
2899 if test "x$enable_dependency_tracking" != xno; then
2900 am_depcomp="$ac_aux_dir/depcomp"
2901 AMDEPBACKSLASH='\'
2902 fi
2903
2904
2905 if test "x$enable_dependency_tracking" != xno; then
2906 AMDEP_TRUE=
2907 AMDEP_FALSE='#'
2908 else
2909 AMDEP_TRUE='#'
2910 AMDEP_FALSE=
2911 fi
2912
2913
2914
2915
2916 depcc="$CC" am_compiler_list=
2917
2918 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2919 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2920 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2924 # We make a subdir and do the tests there. Otherwise we can end up
2925 # making bogus files that we don't know about and never remove. For
2926 # instance it was reported that on HP-UX the gcc test will end up
2927 # making a dummy file named `D' -- because `-MD' means `put the output
2928 # in D'.
2929 mkdir conftest.dir
2930 # Copy depcomp to subdir because otherwise we won't find it if we're
2931 # using a relative directory.
2932 cp "$am_depcomp" conftest.dir
2933 cd conftest.dir
2934 # We will build objects and dependencies in a subdirectory because
2935 # it helps to detect inapplicable dependency modes. For instance
2936 # both Tru64's cc and ICC support -MD to output dependencies as a
2937 # side effect of compilation, but ICC will put the dependencies in
2938 # the current directory while Tru64 will put them in the object
2939 # directory.
2940 mkdir sub
2941
2942 am_cv_CC_dependencies_compiler_type=none
2943 if test "$am_compiler_list" = ""; then
2944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2945 fi
2946 for depmode in $am_compiler_list; do
2947 # Setup a source with many dependencies, because some compilers
2948 # like to wrap large dependency lists on column 80 (with \), and
2949 # we should not choose a depcomp mode which is confused by this.
2950 #
2951 # We need to recreate these files for each test, as the compiler may
2952 # overwrite some of them when testing with obscure command lines.
2953 # This happens at least with the AIX C compiler.
2954 : > sub/conftest.c
2955 for i in 1 2 3 4 5 6; do
2956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2958 # Solaris 8's {/usr,}/bin/sh.
2959 touch sub/conftst$i.h
2960 done
2961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2962
2963 case $depmode in
2964 nosideeffect)
2965 # after this tag, mechanisms are not by side-effect, so they'll
2966 # only be used when explicitly requested
2967 if test "x$enable_dependency_tracking" = xyes; then
2968 continue
2969 else
2970 break
2971 fi
2972 ;;
2973 none) break ;;
2974 esac
2975 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2976 # mode. It turns out that the SunPro C++ compiler does not properly
2977 # handle `-M -o', and we need to detect this.
2978 if depmode=$depmode \
2979 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2980 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2981 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2982 >/dev/null 2>conftest.err &&
2983 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2984 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2985 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2986 # icc doesn't choke on unknown options, it will just issue warnings
2987 # or remarks (even with -Werror). So we grep stderr for any message
2988 # that says an option was ignored or not supported.
2989 # When given -MP, icc 7.0 and 7.1 complain thusly:
2990 # icc: Command line warning: ignoring option '-M'; no argument required
2991 # The diagnosis changed in icc 8.0:
2992 # icc: Command line remark: option '-MP' not supported
2993 if (grep 'ignoring option' conftest.err ||
2994 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2995 am_cv_CC_dependencies_compiler_type=$depmode
2996 break
2997 fi
2998 fi
2999 done
3000
3001 cd ..
3002 rm -rf conftest.dir
3003 else
3004 am_cv_CC_dependencies_compiler_type=none
3005 fi
3006
3007 fi
3008 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3009 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3010 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3011
3012
3013
3014 if
3015 test "x$enable_dependency_tracking" != xno \
3016 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3017 am__fastdepCC_TRUE=
3018 am__fastdepCC_FALSE='#'
3019 else
3020 am__fastdepCC_TRUE='#'
3021 am__fastdepCC_FALSE=
3022 fi
3023
3024
3025
3026
3027
3028
3029 if test "x$GCC" != "xyes"; then
3030 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3031 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3041 # On Suns, sometimes $CPP names a directory.
3042 if test -n "$CPP" && test -d "$CPP"; then
3043 CPP=
3044 fi
3045 if test -z "$CPP"; then
3046 if test "${ac_cv_prog_CPP+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 # Double quotes because CPP needs to be expanded
3050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3051 do
3052 ac_preproc_ok=false
3053 for ac_c_preproc_warn_flag in '' yes
3054 do
3055 # Use a header file that comes with gcc, so configuring glibc
3056 # with a fresh cross-compiler works.
3057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3058 # <limits.h> exists even on freestanding compilers.
3059 # On the NeXT, cc -E runs the code through the compiler's parser,
3060 # not just through cpp. "Syntax error" is here to catch this case.
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #ifdef __STDC__
3068 # include <limits.h>
3069 #else
3070 # include <assert.h>
3071 #endif
3072 Syntax error
3073 _ACEOF
3074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev/null; then
3082 if test -s conftest.err; then
3083 ac_cpp_err=$ac_c_preproc_warn_flag
3084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3085 else
3086 ac_cpp_err=
3087 fi
3088 else
3089 ac_cpp_err=yes
3090 fi
3091 if test -z "$ac_cpp_err"; then
3092 :
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 # Broken: fails on valid input.
3098 continue
3099 fi
3100 rm -f conftest.err conftest.$ac_ext
3101
3102 # OK, works on sane cases. Now check whether non-existent headers
3103 # can be detected and how.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #include <ac_nonexistent.h>
3111 _ACEOF
3112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } >/dev/null; then
3120 if test -s conftest.err; then
3121 ac_cpp_err=$ac_c_preproc_warn_flag
3122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3123 else
3124 ac_cpp_err=
3125 fi
3126 else
3127 ac_cpp_err=yes
3128 fi
3129 if test -z "$ac_cpp_err"; then
3130 # Broken: success on invalid input.
3131 continue
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 # Passes both tests.
3137 ac_preproc_ok=:
3138 break
3139 fi
3140 rm -f conftest.err conftest.$ac_ext
3141
3142 done
3143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144 rm -f conftest.err conftest.$ac_ext
3145 if $ac_preproc_ok; then
3146 break
3147 fi
3148
3149 done
3150 ac_cv_prog_CPP=$CPP
3151
3152 fi
3153 CPP=$ac_cv_prog_CPP
3154 else
3155 ac_cv_prog_CPP=$CPP
3156 fi
3157 echo "$as_me:$LINENO: result: $CPP" >&5
3158 echo "${ECHO_T}$CPP" >&6
3159 ac_preproc_ok=false
3160 for ac_c_preproc_warn_flag in '' yes
3161 do
3162 # Use a header file that comes with gcc, so configuring glibc
3163 # with a fresh cross-compiler works.
3164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3165 # <limits.h> exists even on freestanding compilers.
3166 # On the NeXT, cc -E runs the code through the compiler's parser,
3167 # not just through cpp. "Syntax error" is here to catch this case.
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #ifdef __STDC__
3175 # include <limits.h>
3176 #else
3177 # include <assert.h>
3178 #endif
3179 Syntax error
3180 _ACEOF
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3192 else
3193 ac_cpp_err=
3194 fi
3195 else
3196 ac_cpp_err=yes
3197 fi
3198 if test -z "$ac_cpp_err"; then
3199 :
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 # Broken: fails on valid input.
3205 continue
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 # OK, works on sane cases. Now check whether non-existent headers
3210 # can be detected and how.
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #include <ac_nonexistent.h>
3218 _ACEOF
3219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null; then
3227 if test -s conftest.err; then
3228 ac_cpp_err=$ac_c_preproc_warn_flag
3229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3230 else
3231 ac_cpp_err=
3232 fi
3233 else
3234 ac_cpp_err=yes
3235 fi
3236 if test -z "$ac_cpp_err"; then
3237 # Broken: success on invalid input.
3238 continue
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 # Passes both tests.
3244 ac_preproc_ok=:
3245 break
3246 fi
3247 rm -f conftest.err conftest.$ac_ext
3248
3249 done
3250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3251 rm -f conftest.err conftest.$ac_ext
3252 if $ac_preproc_ok; then
3253 :
3254 else
3255 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3256 See \`config.log' for more details." >&5
3257 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3258 See \`config.log' for more details." >&2;}
3259 { (exit 1); exit 1; }; }
3260 fi
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
3269 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3270 # symbol interposition. We disable shared libraries for these.
3271 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3272 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3273
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280
3281 #define _GNU_SOURCE
3282 #include <dlfcn.h>
3283
3284 int
3285 main ()
3286 {
3287 void *foo = dlsym (RTLD_NEXT, "exit");
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 enable_shared=no
3322 fi
3323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3324
3325
3326 echo "$as_me:$LINENO: checking for egrep" >&5
3327 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3328 if test "${ac_cv_prog_egrep+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3332 then ac_cv_prog_egrep='grep -E'
3333 else ac_cv_prog_egrep='egrep'
3334 fi
3335 fi
3336 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3337 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3338 EGREP=$ac_cv_prog_egrep
3339
3340
3341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3343 if test "${ac_cv_header_stdc+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <stdlib.h>
3353 #include <stdarg.h>
3354 #include <string.h>
3355 #include <float.h>
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_header_stdc=yes
3387 else
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 ac_cv_header_stdc=no
3392 fi
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394
3395 if test $ac_cv_header_stdc = yes; then
3396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <string.h>
3404
3405 _ACEOF
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 $EGREP "memchr" >/dev/null 2>&1; then
3408 :
3409 else
3410 ac_cv_header_stdc=no
3411 fi
3412 rm -f conftest*
3413
3414 fi
3415
3416 if test $ac_cv_header_stdc = yes; then
3417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <stdlib.h>
3425
3426 _ACEOF
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 $EGREP "free" >/dev/null 2>&1; then
3429 :
3430 else
3431 ac_cv_header_stdc=no
3432 fi
3433 rm -f conftest*
3434
3435 fi
3436
3437 if test $ac_cv_header_stdc = yes; then
3438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3439 if test "$cross_compiling" = yes; then
3440 :
3441 else
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <ctype.h>
3449 #if ((' ' & 0x0FF) == 0x020)
3450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3452 #else
3453 # define ISLOWER(c) \
3454 (('a' <= (c) && (c) <= 'i') \
3455 || ('j' <= (c) && (c) <= 'r') \
3456 || ('s' <= (c) && (c) <= 'z'))
3457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3458 #endif
3459
3460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3461 int
3462 main ()
3463 {
3464 int i;
3465 for (i = 0; i < 256; i++)
3466 if (XOR (islower (i), ISLOWER (i))
3467 || toupper (i) != TOUPPER (i))
3468 exit(2);
3469 exit (0);
3470 }
3471 _ACEOF
3472 rm -f conftest$ac_exeext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3474 (eval $ac_link) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 :
3484 else
3485 echo "$as_me: program exited with status $ac_status" >&5
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 ( exit $ac_status )
3490 ac_cv_header_stdc=no
3491 fi
3492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3493 fi
3494 fi
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3497 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3498 if test $ac_cv_header_stdc = yes; then
3499
3500 cat >>confdefs.h <<\_ACEOF
3501 #define STDC_HEADERS 1
3502 _ACEOF
3503
3504 fi
3505
3506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3517 inttypes.h stdint.h unistd.h
3518 do
3519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3520 echo "$as_me:$LINENO: checking for $ac_header" >&5
3521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 $ac_includes_default
3532
3533 #include <$ac_header>
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 eval "$as_ac_Header=yes"
3557 else
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 eval "$as_ac_Header=no"
3562 fi
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 fi
3565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3568 cat >>confdefs.h <<_ACEOF
3569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3570 _ACEOF
3571
3572 fi
3573
3574 done
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588 for ac_header in stdint.h execinfo.h signal.h dlfcn.h \
3589 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h sys/socket.h ctype.h
3590 do
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo "$as_me:$LINENO: checking for $ac_header" >&5
3594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 fi
3598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3600 else
3601 # Is the header compilable?
3602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 $ac_includes_default
3611 #include <$ac_header>
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_header_compiler=yes
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 ac_header_compiler=no
3640 fi
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3643 echo "${ECHO_T}$ac_header_compiler" >&6
3644
3645 # Is the header present?
3646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <$ac_header>
3655 _ACEOF
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3667 else
3668 ac_cpp_err=
3669 fi
3670 else
3671 ac_cpp_err=yes
3672 fi
3673 if test -z "$ac_cpp_err"; then
3674 ac_header_preproc=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_header_preproc=no
3680 fi
3681 rm -f conftest.err conftest.$ac_ext
3682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3683 echo "${ECHO_T}$ac_header_preproc" >&6
3684
3685 # So? What about this header?
3686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3687 yes:no: )
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3692 ac_header_preproc=yes
3693 ;;
3694 no:yes:* )
3695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3707 (
3708 cat <<\_ASBOX
3709 ## ------------------------------------- ##
3710 ## Report this to the libmudflap lists. ##
3711 ## ------------------------------------- ##
3712 _ASBOX
3713 ) |
3714 sed "s/^/$as_me: WARNING: /" >&2
3715 ;;
3716 esac
3717 echo "$as_me:$LINENO: checking for $ac_header" >&5
3718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 eval "$as_ac_Header=\$ac_header_preproc"
3723 fi
3724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3726
3727 fi
3728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3729 cat >>confdefs.h <<_ACEOF
3730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3731 _ACEOF
3732
3733 fi
3734
3735 done
3736
3737
3738
3739
3740
3741 for ac_func in backtrace backtrace_symbols gettimeofday signal
3742 do
3743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3744 echo "$as_me:$LINENO: checking for $ac_func" >&5
3745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3746 if eval "test \"\${$as_ac_var+set}\" = set"; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3757 #define $ac_func innocuous_$ac_func
3758
3759 /* System header to define __stub macros and hopefully few prototypes,
3760 which can conflict with char $ac_func (); below.
3761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3762 <limits.h> exists even on freestanding compilers. */
3763
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769
3770 #undef $ac_func
3771
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 #ifdef __cplusplus
3774 extern "C"
3775 {
3776 #endif
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3779 char $ac_func ();
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784 choke me
3785 #else
3786 char (*f) () = $ac_func;
3787 #endif
3788 #ifdef __cplusplus
3789 }
3790 #endif
3791
3792 int
3793 main ()
3794 {
3795 return f != $ac_func;
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext conftest$ac_exeext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_var=yes"
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 eval "$as_ac_var=no"
3827 fi
3828 rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830 fi
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833 if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3836 _ACEOF
3837
3838 fi
3839 done
3840
3841
3842
3843
3844
3845
3846 for ac_func in fopen64 fseeko64 ftello64 stat64
3847 do
3848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3849 echo "$as_me:$LINENO: checking for $ac_func" >&5
3850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3851 if eval "test \"\${$as_ac_var+set}\" = set"; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3862 #define $ac_func innocuous_$ac_func
3863
3864 /* System header to define __stub macros and hopefully few prototypes,
3865 which can conflict with char $ac_func (); below.
3866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 <limits.h> exists even on freestanding compilers. */
3868
3869 #ifdef __STDC__
3870 # include <limits.h>
3871 #else
3872 # include <assert.h>
3873 #endif
3874
3875 #undef $ac_func
3876
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 #ifdef __cplusplus
3879 extern "C"
3880 {
3881 #endif
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3884 char $ac_func ();
3885 /* The GNU C library defines this for functions which it implements
3886 to always fail with ENOSYS. Some functions are actually named
3887 something starting with __ and the normal name is an alias. */
3888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3889 choke me
3890 #else
3891 char (*f) () = $ac_func;
3892 #endif
3893 #ifdef __cplusplus
3894 }
3895 #endif
3896
3897 int
3898 main ()
3899 {
3900 return f != $ac_func;
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907 (eval $ac_link) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest$ac_exeext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 eval "$as_ac_var=yes"
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 eval "$as_ac_var=no"
3932 fi
3933 rm -f conftest.err conftest.$ac_objext \
3934 conftest$ac_exeext conftest.$ac_ext
3935 fi
3936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3938 if test `eval echo '${'$as_ac_var'}'` = yes; then
3939 cat >>confdefs.h <<_ACEOF
3940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3941 _ACEOF
3942
3943 fi
3944 done
3945
3946
3947
3948
3949
3950
3951
3952 for ac_func in strnlen memrchr strncpy memmem sethostname
3953 do
3954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3955 echo "$as_me:$LINENO: checking for $ac_func" >&5
3956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3957 if eval "test \"\${$as_ac_var+set}\" = set"; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3968 #define $ac_func innocuous_$ac_func
3969
3970 /* System header to define __stub macros and hopefully few prototypes,
3971 which can conflict with char $ac_func (); below.
3972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 <limits.h> exists even on freestanding compilers. */
3974
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980
3981 #undef $ac_func
3982
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 #ifdef __cplusplus
3985 extern "C"
3986 {
3987 #endif
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3990 char $ac_func ();
3991 /* The GNU C library defines this for functions which it implements
3992 to always fail with ENOSYS. Some functions are actually named
3993 something starting with __ and the normal name is an alias. */
3994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3995 choke me
3996 #else
3997 char (*f) () = $ac_func;
3998 #endif
3999 #ifdef __cplusplus
4000 }
4001 #endif
4002
4003 int
4004 main ()
4005 {
4006 return f != $ac_func;
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext conftest$ac_exeext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4013 (eval $ac_link) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest$ac_exeext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_var=yes"
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 eval "$as_ac_var=no"
4038 fi
4039 rm -f conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4041 fi
4042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4044 if test `eval echo '${'$as_ac_var'}'` = yes; then
4045 cat >>confdefs.h <<_ACEOF
4046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4047 _ACEOF
4048
4049 fi
4050 done
4051
4052
4053
4054
4055
4056 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4057 do
4058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4059 echo "$as_me:$LINENO: checking for $ac_func" >&5
4060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4061 if eval "test \"\${$as_ac_var+set}\" = set"; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4072 #define $ac_func innocuous_$ac_func
4073
4074 /* System header to define __stub macros and hopefully few prototypes,
4075 which can conflict with char $ac_func (); below.
4076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 <limits.h> exists even on freestanding compilers. */
4078
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084
4085 #undef $ac_func
4086
4087 /* Override any gcc2 internal prototype to avoid an error. */
4088 #ifdef __cplusplus
4089 extern "C"
4090 {
4091 #endif
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char $ac_func ();
4095 /* The GNU C library defines this for functions which it implements
4096 to always fail with ENOSYS. Some functions are actually named
4097 something starting with __ and the normal name is an alias. */
4098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4099 choke me
4100 #else
4101 char (*f) () = $ac_func;
4102 #endif
4103 #ifdef __cplusplus
4104 }
4105 #endif
4106
4107 int
4108 main ()
4109 {
4110 return f != $ac_func;
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext conftest$ac_exeext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117 (eval $ac_link) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 eval "$as_ac_var=yes"
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4140
4141 eval "$as_ac_var=no"
4142 fi
4143 rm -f conftest.err conftest.$ac_objext \
4144 conftest$ac_exeext conftest.$ac_ext
4145 fi
4146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4148 if test `eval echo '${'$as_ac_var'}'` = yes; then
4149 cat >>confdefs.h <<_ACEOF
4150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4151 _ACEOF
4152
4153 fi
4154 done
4155
4156
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 #include <sys/ipc.h>
4165 #include <sys/sem.h>
4166 int
4167 main ()
4168 {
4169 union semun foo;
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 mf_have_semun=1
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 mf_have_semun=0
4201 fi
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 if test $mf_have_semun = 1
4204 then
4205
4206 cat >>confdefs.h <<\_ACEOF
4207 #define HAVE_UNION_SEMUN 1
4208 _ACEOF
4209
4210 fi
4211
4212
4213 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
4214 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #define _POSIX_PII_SOCKET
4222 #include <sys/types.h>
4223 #include <sys/socket.h>
4224 int
4225 main ()
4226 {
4227 socklen_t x = 5;
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253
4254 cat >>confdefs.h <<\_ACEOF
4255 #define HAVE_SOCKLEN_T 1
4256 _ACEOF
4257
4258 echo "$as_me:$LINENO: result: yes" >&5
4259 echo "${ECHO_T}yes" >&6
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269
4270 # Check whether --enable-shared or --disable-shared was given.
4271 if test "${enable_shared+set}" = set; then
4272 enableval="$enable_shared"
4273 p=${PACKAGE-default}
4274 case $enableval in
4275 yes) enable_shared=yes ;;
4276 no) enable_shared=no ;;
4277 *)
4278 enable_shared=no
4279 # Look at the argument we got. We use all the common list separators.
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4281 for pkg in $enableval; do
4282 if test "X$pkg" = "X$p"; then
4283 enable_shared=yes
4284 fi
4285 done
4286 IFS="$ac_save_ifs"
4287 ;;
4288 esac
4289 else
4290 enable_shared=yes
4291 fi;
4292 # Check whether --enable-static or --disable-static was given.
4293 if test "${enable_static+set}" = set; then
4294 enableval="$enable_static"
4295 p=${PACKAGE-default}
4296 case $enableval in
4297 yes) enable_static=yes ;;
4298 no) enable_static=no ;;
4299 *)
4300 enable_static=no
4301 # Look at the argument we got. We use all the common list separators.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4303 for pkg in $enableval; do
4304 if test "X$pkg" = "X$p"; then
4305 enable_static=yes
4306 fi
4307 done
4308 IFS="$ac_save_ifs"
4309 ;;
4310 esac
4311 else
4312 enable_static=yes
4313 fi;
4314 # Check whether --enable-fast-install or --disable-fast-install was given.
4315 if test "${enable_fast_install+set}" = set; then
4316 enableval="$enable_fast_install"
4317 p=${PACKAGE-default}
4318 case $enableval in
4319 yes) enable_fast_install=yes ;;
4320 no) enable_fast_install=no ;;
4321 *)
4322 enable_fast_install=no
4323 # Look at the argument we got. We use all the common list separators.
4324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4325 for pkg in $enableval; do
4326 if test "X$pkg" = "X$p"; then
4327 enable_fast_install=yes
4328 fi
4329 done
4330 IFS="$ac_save_ifs"
4331 ;;
4332 esac
4333 else
4334 enable_fast_install=yes
4335 fi;
4336
4337 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4338 if test "${with_gnu_ld+set}" = set; then
4339 withval="$with_gnu_ld"
4340 test "$withval" = no || with_gnu_ld=yes
4341 else
4342 with_gnu_ld=no
4343 fi;
4344 ac_prog=ld
4345 if test "$GCC" = yes; then
4346 # Check if gcc -print-prog-name=ld gives a path.
4347 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4348 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4349 case $host in
4350 *-*-mingw*)
4351 # gcc leaves a trailing carriage return which upsets mingw
4352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4353 *)
4354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4355 esac
4356 case $ac_prog in
4357 # Accept absolute paths.
4358 [\\/]* | [A-Za-z]:[\\/]*)
4359 re_direlt='/[^/][^/]*/\.\./'
4360 # Canonicalize the path of ld
4361 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4362 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4363 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4364 done
4365 test -z "$LD" && LD="$ac_prog"
4366 ;;
4367 "")
4368 # If it fails, then pretend we aren't using GCC.
4369 ac_prog=ld
4370 ;;
4371 *)
4372 # If it is relative, then search for the first ld in PATH.
4373 with_gnu_ld=unknown
4374 ;;
4375 esac
4376 elif test "$with_gnu_ld" = yes; then
4377 echo "$as_me:$LINENO: checking for GNU ld" >&5
4378 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4379 else
4380 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4381 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4382 fi
4383 if test "${lt_cv_path_LD+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if test -z "$LD"; then
4387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4388 for ac_dir in $PATH; do
4389 test -z "$ac_dir" && ac_dir=.
4390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4391 lt_cv_path_LD="$ac_dir/$ac_prog"
4392 # Check to see if the program is GNU ld. I'd rather use --version,
4393 # but apparently some GNU ld's only accept -v.
4394 # Break only if it was the GNU/non-GNU ld that we prefer.
4395 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4396 test "$with_gnu_ld" != no && break
4397 else
4398 test "$with_gnu_ld" != yes && break
4399 fi
4400 fi
4401 done
4402 IFS="$ac_save_ifs"
4403 else
4404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4405 fi
4406 fi
4407
4408 LD="$lt_cv_path_LD"
4409 if test -n "$LD"; then
4410 echo "$as_me:$LINENO: result: $LD" >&5
4411 echo "${ECHO_T}$LD" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4415 fi
4416 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4417 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4418 { (exit 1); exit 1; }; }
4419 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4420 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4421 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4425 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4426 lt_cv_prog_gnu_ld=yes
4427 else
4428 lt_cv_prog_gnu_ld=no
4429 fi
4430 fi
4431 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4432 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4433 with_gnu_ld=$lt_cv_prog_gnu_ld
4434
4435
4436 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4437 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4438 if test "${lt_cv_ld_reload_flag+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 lt_cv_ld_reload_flag='-r'
4442 fi
4443 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4444 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4445 reload_flag=$lt_cv_ld_reload_flag
4446 test -n "$reload_flag" && reload_flag=" $reload_flag"
4447
4448 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4450 if test "${lt_cv_path_NM+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 if test -n "$NM"; then
4454 # Let the user override the test.
4455 lt_cv_path_NM="$NM"
4456 else
4457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4458 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4459 test -z "$ac_dir" && ac_dir=.
4460 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4461 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4462 # Check to see if the nm accepts a BSD-compat flag.
4463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4464 # nm: unknown option "B" ignored
4465 # Tru64's nm complains that /dev/null is an invalid object file
4466 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4467 lt_cv_path_NM="$tmp_nm -B"
4468 break
4469 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4470 lt_cv_path_NM="$tmp_nm -p"
4471 break
4472 else
4473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4474 continue # so that we can try to find one that supports BSD flags
4475 fi
4476 fi
4477 done
4478 IFS="$ac_save_ifs"
4479 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4480 fi
4481 fi
4482
4483 NM="$lt_cv_path_NM"
4484 echo "$as_me:$LINENO: result: $NM" >&5
4485 echo "${ECHO_T}$NM" >&6
4486
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 LN_S=$as_ln_s
4490 if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4493 else
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4496 fi
4497
4498 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4499 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4500 lt_cv_file_magic_cmd='$MAGIC_CMD'
4501 lt_cv_file_magic_test_file=
4502 lt_cv_deplibs_check_method='unknown'
4503 # Need to set the preceding variable on all platforms that support
4504 # interlibrary dependencies.
4505 # 'none' -- dependencies not supported.
4506 # `unknown' -- same as none, but documents that we really don't know.
4507 # 'pass_all' -- all dependencies passed with no checks.
4508 # 'test_compile' -- check by making test program.
4509 # 'file_magic [regex]' -- check by looking for files in library path
4510 # which responds to the $file_magic_cmd with a given egrep regex.
4511 # If you have `file' or equivalent on your system and you're not sure
4512 # whether `pass_all' will *always* work, you probably want this one.
4513
4514 case $host_os in
4515 aix*)
4516 lt_cv_deplibs_check_method=pass_all
4517 ;;
4518
4519 beos*)
4520 lt_cv_deplibs_check_method=pass_all
4521 ;;
4522
4523 bsdi4*)
4524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4525 lt_cv_file_magic_cmd='/usr/bin/file -L'
4526 lt_cv_file_magic_test_file=/shlib/libc.so
4527 ;;
4528
4529 cygwin* | mingw* |pw32*)
4530 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4531 lt_cv_file_magic_cmd='$OBJDUMP -f'
4532 ;;
4533
4534 darwin* | rhapsody*)
4535 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4536 lt_cv_file_magic_cmd='/usr/bin/file -L'
4537 case "$host_os" in
4538 rhapsody* | darwin1.012)
4539 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4540 ;;
4541 *) # Darwin 1.3 on
4542 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4543 ;;
4544 esac
4545 ;;
4546
4547 freebsd* )
4548 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4549 case $host_cpu in
4550 i*86 )
4551 # Not sure whether the presence of OpenBSD here was a mistake.
4552 # Let's accept both of them until this is cleared up.
4553 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4554 lt_cv_file_magic_cmd=/usr/bin/file
4555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4556 ;;
4557 esac
4558 else
4559 lt_cv_deplibs_check_method=pass_all
4560 fi
4561 ;;
4562
4563 gnu*)
4564 lt_cv_deplibs_check_method=pass_all
4565 ;;
4566
4567 hpux10.20*|hpux11*)
4568 case $host_cpu in
4569 hppa*)
4570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4571 lt_cv_file_magic_cmd=/usr/bin/file
4572 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4573 ;;
4574 ia64*)
4575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4576 lt_cv_file_magic_cmd=/usr/bin/file
4577 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4578 ;;
4579 esac
4580 ;;
4581
4582 irix5* | irix6*)
4583 case $host_os in
4584 irix5*)
4585 # this will be overridden with pass_all, but let us keep it just in case
4586 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4587 ;;
4588 *)
4589 case $LD in
4590 *-32|*"-32 ") libmagic=32-bit;;
4591 *-n32|*"-n32 ") libmagic=N32;;
4592 *-64|*"-64 ") libmagic=64-bit;;
4593 *) libmagic=never-match;;
4594 esac
4595 # this will be overridden with pass_all, but let us keep it just in case
4596 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4597 ;;
4598 esac
4599 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4600 lt_cv_deplibs_check_method=pass_all
4601 ;;
4602
4603 # This must be Linux ELF.
4604 linux-gnu*)
4605 case $host_cpu in
4606 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64* | sh*)
4607 lt_cv_deplibs_check_method=pass_all ;;
4608 # NB 2003-06-03: According to Alexandre Oliva, x86_64 should not be
4609 # in this list. However, it works around a libtool problem that
4610 # wrongly excludes -ldl/-lpthread from the libmudflap(th) dependencies.
4611 *)
4612 # glibc up to 2.1.1 does not perform some relocations on ARM
4613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4614 esac
4615 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4616 ;;
4617
4618 netbsd*)
4619 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4620 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4621 else
4622 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4623 fi
4624 ;;
4625
4626 newsos6)
4627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4628 lt_cv_file_magic_cmd=/usr/bin/file
4629 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4630 ;;
4631
4632 osf3* | osf4* | osf5*)
4633 # this will be overridden with pass_all, but let us keep it just in case
4634 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4635 lt_cv_file_magic_test_file=/shlib/libc.so
4636 lt_cv_deplibs_check_method=pass_all
4637 ;;
4638
4639 sco3.2v5*)
4640 lt_cv_deplibs_check_method=pass_all
4641 ;;
4642
4643 solaris*)
4644 lt_cv_deplibs_check_method=pass_all
4645 lt_cv_file_magic_test_file=/lib/libc.so
4646 ;;
4647
4648 sysv5uw[78]* | sysv4*uw2*)
4649 lt_cv_deplibs_check_method=pass_all
4650 ;;
4651
4652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4653 case $host_vendor in
4654 ncr)
4655 lt_cv_deplibs_check_method=pass_all
4656 ;;
4657 motorola)
4658 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]'
4659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4660 ;;
4661 esac
4662 ;;
4663 esac
4664 file_magic_cmd=$lt_cv_file_magic_cmd
4665 deplibs_check_method=$lt_cv_deplibs_check_method
4666 # NB: See above NB ... this is to make sure that the overriden
4667 # local libtool variant doesn't pollute the upstream cache
4668 unset lt_cv_file_magic_cmd
4669 unset lt_cv_deplibs_check_method
4670 echo "$as_me:$LINENO: result: $deplibs_check_method" >&5
4671 echo "${ECHO_T}$deplibs_check_method" >&6
4672
4673
4674
4675 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4676
4677 # Only perform the check for file, if the check method requires it
4678 case $deplibs_check_method in
4679 file_magic*)
4680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4681 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4682 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4683 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 case $MAGIC_CMD in
4687 /*)
4688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4689 ;;
4690 ?:/*)
4691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4692 ;;
4693 *)
4694 ac_save_MAGIC_CMD="$MAGIC_CMD"
4695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 ac_dummy="/usr/bin:$PATH"
4697 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/${ac_tool_prefix}file; then
4700 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4701 if test -n "$file_magic_test_file"; then
4702 case $deplibs_check_method in
4703 "file_magic "*)
4704 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4707 egrep "$file_magic_regex" > /dev/null; then
4708 :
4709 else
4710 cat <<EOF 1>&2
4711
4712 *** Warning: the command libtool uses to detect shared libraries,
4713 *** $file_magic_cmd, produces output that libtool cannot recognize.
4714 *** The result is that libtool may fail to recognize shared libraries
4715 *** as such. This will affect the creation of libtool libraries that
4716 *** depend on shared libraries, but programs linked with such libtool
4717 *** libraries will work regardless of this problem. Nevertheless, you
4718 *** may want to report the problem to your system manager and/or to
4719 *** bug-libtool@gnu.org
4720
4721 EOF
4722 fi ;;
4723 esac
4724 fi
4725 break
4726 fi
4727 done
4728 IFS="$ac_save_ifs"
4729 MAGIC_CMD="$ac_save_MAGIC_CMD"
4730 ;;
4731 esac
4732 fi
4733
4734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4735 if test -n "$MAGIC_CMD"; then
4736 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4737 echo "${ECHO_T}$MAGIC_CMD" >&6
4738 else
4739 echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4741 fi
4742
4743 if test -z "$lt_cv_path_MAGIC_CMD"; then
4744 if test -n "$ac_tool_prefix"; then
4745 echo "$as_me:$LINENO: checking for file" >&5
4746 echo $ECHO_N "checking for file... $ECHO_C" >&6
4747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 case $MAGIC_CMD in
4751 /*)
4752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4753 ;;
4754 ?:/*)
4755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4756 ;;
4757 *)
4758 ac_save_MAGIC_CMD="$MAGIC_CMD"
4759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4760 ac_dummy="/usr/bin:$PATH"
4761 for ac_dir in $ac_dummy; do
4762 test -z "$ac_dir" && ac_dir=.
4763 if test -f $ac_dir/file; then
4764 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4765 if test -n "$file_magic_test_file"; then
4766 case $deplibs_check_method in
4767 "file_magic "*)
4768 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4771 egrep "$file_magic_regex" > /dev/null; then
4772 :
4773 else
4774 cat <<EOF 1>&2
4775
4776 *** Warning: the command libtool uses to detect shared libraries,
4777 *** $file_magic_cmd, produces output that libtool cannot recognize.
4778 *** The result is that libtool may fail to recognize shared libraries
4779 *** as such. This will affect the creation of libtool libraries that
4780 *** depend on shared libraries, but programs linked with such libtool
4781 *** libraries will work regardless of this problem. Nevertheless, you
4782 *** may want to report the problem to your system manager and/or to
4783 *** bug-libtool@gnu.org
4784
4785 EOF
4786 fi ;;
4787 esac
4788 fi
4789 break
4790 fi
4791 done
4792 IFS="$ac_save_ifs"
4793 MAGIC_CMD="$ac_save_MAGIC_CMD"
4794 ;;
4795 esac
4796 fi
4797
4798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4799 if test -n "$MAGIC_CMD"; then
4800 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4801 echo "${ECHO_T}$MAGIC_CMD" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6
4805 fi
4806
4807 else
4808 MAGIC_CMD=:
4809 fi
4810 fi
4811
4812 fi
4813 ;;
4814 esac
4815
4816 if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_prog_RANLIB+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 if test -n "$RANLIB"; then
4825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840
4841 fi
4842 fi
4843 RANLIB=$ac_cv_prog_RANLIB
4844 if test -n "$RANLIB"; then
4845 echo "$as_me:$LINENO: result: $RANLIB" >&5
4846 echo "${ECHO_T}$RANLIB" >&6
4847 else
4848 echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6
4850 fi
4851
4852 fi
4853 if test -z "$ac_cv_prog_RANLIB"; then
4854 ac_ct_RANLIB=$RANLIB
4855 # Extract the first word of "ranlib", so it can be a program name with args.
4856 set dummy ranlib; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$ac_ct_RANLIB"; then
4863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_ac_ct_RANLIB="ranlib"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878
4879 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4880 fi
4881 fi
4882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4883 if test -n "$ac_ct_RANLIB"; then
4884 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4885 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4886 else
4887 echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6
4889 fi
4890
4891 RANLIB=$ac_ct_RANLIB
4892 else
4893 RANLIB="$ac_cv_prog_RANLIB"
4894 fi
4895
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}strip; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_prog_STRIP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 if test -n "$STRIP"; then
4905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918 done
4919 done
4920
4921 fi
4922 fi
4923 STRIP=$ac_cv_prog_STRIP
4924 if test -n "$STRIP"; then
4925 echo "$as_me:$LINENO: result: $STRIP" >&5
4926 echo "${ECHO_T}$STRIP" >&6
4927 else
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932 fi
4933 if test -z "$ac_cv_prog_STRIP"; then
4934 ac_ct_STRIP=$STRIP
4935 # Extract the first word of "strip", so it can be a program name with args.
4936 set dummy strip; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 if test -n "$ac_ct_STRIP"; then
4943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_ac_ct_STRIP="strip"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956 done
4957 done
4958
4959 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4960 fi
4961 fi
4962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4963 if test -n "$ac_ct_STRIP"; then
4964 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4965 echo "${ECHO_T}$ac_ct_STRIP" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4969 fi
4970
4971 STRIP=$ac_ct_STRIP
4972 else
4973 STRIP="$ac_cv_prog_STRIP"
4974 fi
4975
4976
4977 # Check for any special flags to pass to ltconfig.
4978 libtool_flags="--cache-file=$cache_file"
4979 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4980 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4981 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4982 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4983 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4984
4985
4986 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4987 if test "${enable_libtool_lock+set}" = set; then
4988 enableval="$enable_libtool_lock"
4989
4990 fi;
4991 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4992 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4993
4994
4995 # Check whether --with-pic or --without-pic was given.
4996 if test "${with_pic+set}" = set; then
4997 withval="$with_pic"
4998 pic_mode="$withval"
4999 else
5000 pic_mode=default
5001 fi;
5002 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5003 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5004
5005 # Some flags need to be propagated to the compiler or linker for good
5006 # libtool support.
5007 case $host in
5008 *-*-irix6*)
5009 # Find out which ABI we are using.
5010 echo '#line 5010 "configure"' > conftest.$ac_ext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; then
5016 case `/usr/bin/file conftest.$ac_objext` in
5017 *32-bit*)
5018 LD="${LD-ld} -32"
5019 ;;
5020 *N32*)
5021 LD="${LD-ld} -n32"
5022 ;;
5023 *64-bit*)
5024 LD="${LD-ld} -64"
5025 ;;
5026 esac
5027 fi
5028 rm -rf conftest*
5029 ;;
5030
5031 ia64-*-hpux*)
5032 # Find out which ABI we are using.
5033 echo 'int i;' > conftest.$ac_ext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; then
5039 case "`/usr/bin/file conftest.o`" in
5040 *ELF-32*)
5041 HPUX_IA64_MODE="32"
5042 ;;
5043 *ELF-64*)
5044 HPUX_IA64_MODE="64"
5045 ;;
5046 esac
5047 fi
5048 rm -rf conftest*
5049 ;;
5050
5051 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5052 # Find out which ABI we are using.
5053 echo 'int i;' > conftest.$ac_ext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; then
5059 case "`/usr/bin/file conftest.o`" in
5060 *32-bit*)
5061 case $host in
5062 x86_64-*linux*)
5063 LD="${LD-ld} -m elf_i386"
5064 ;;
5065 ppc64-*linux*)
5066 LD="${LD-ld} -m elf32ppclinux"
5067 ;;
5068 s390x-*linux*)
5069 LD="${LD-ld} -m elf_s390"
5070 ;;
5071 sparc64-*linux*)
5072 LD="${LD-ld} -m elf32_sparc"
5073 ;;
5074 esac
5075 ;;
5076 *64-bit*)
5077 case $host in
5078 x86_64-*linux*)
5079 LD="${LD-ld} -m elf_x86_64"
5080 ;;
5081 ppc*-*linux*|powerpc*-*linux*)
5082 LD="${LD-ld} -m elf64ppc"
5083 ;;
5084 s390*-*linux*)
5085 LD="${LD-ld} -m elf64_s390"
5086 ;;
5087 sparc*-*linux*)
5088 LD="${LD-ld} -m elf64_sparc"
5089 ;;
5090 esac
5091 ;;
5092 esac
5093 fi
5094 rm -rf conftest*
5095 ;;
5096
5097 *-*-sco3.2v5*)
5098 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5099 SAVE_CFLAGS="$CFLAGS"
5100 CFLAGS="$CFLAGS -belf"
5101 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5102 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5103 if test "${lt_cv_cc_needs_belf+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106
5107
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest.$ac_objext conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 lt_cv_cc_needs_belf=yes
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 lt_cv_cc_needs_belf=no
5156 fi
5157 rm -f conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159 ac_ext=c
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164
5165 fi
5166 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5167 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5168 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5169 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5170 CFLAGS="$SAVE_CFLAGS"
5171 fi
5172 ;;
5173
5174
5175 esac
5176
5177
5178 # Save cache, so that ltconfig can load it
5179 cat >confcache <<\_ACEOF
5180 # This file is a shell script that caches the results of configure
5181 # tests run on this system so they can be shared between configure
5182 # scripts and configure runs, see configure's option --config-cache.
5183 # It is not useful on other systems. If it contains results you don't
5184 # want to keep, you may remove or edit it.
5185 #
5186 # config.status only pays attention to the cache file if you give it
5187 # the --recheck option to rerun configure.
5188 #
5189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5191 # following values.
5192
5193 _ACEOF
5194
5195 # The following way of writing the cache mishandles newlines in values,
5196 # but we know of no workaround that is simple, portable, and efficient.
5197 # So, don't put newlines in cache variables' values.
5198 # Ultrix sh set writes to stderr and can't be redirected directly,
5199 # and sets the high bit in the cache file unless we assign to the vars.
5200 {
5201 (set) 2>&1 |
5202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5203 *ac_space=\ *)
5204 # `set' does not quote correctly, so add quotes (double-quote
5205 # substitution turns \\\\ into \\, and sed turns \\ into \).
5206 sed -n \
5207 "s/'/'\\\\''/g;
5208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5209 ;;
5210 *)
5211 # `set' quotes correctly as required by POSIX, so do not add quotes.
5212 sed -n \
5213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5214 ;;
5215 esac;
5216 } |
5217 sed '
5218 t clear
5219 : clear
5220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5221 t end
5222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5223 : end' >>confcache
5224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5225 if test -w $cache_file; then
5226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5227 cat confcache >$cache_file
5228 else
5229 echo "not updating unwritable cache $cache_file"
5230 fi
5231 fi
5232 rm -f confcache
5233
5234 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5235 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5236 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5237 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5238 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5239 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5240 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5241 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5242 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5243 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5244 echo "$as_me: error: libtool configure failed" >&2;}
5245 { (exit 1); exit 1; }; }
5246
5247 # Reload cache, that may have been modified by ltconfig
5248 if test -r "$cache_file"; then
5249 # Some versions of bash will fail to source /dev/null (special
5250 # files actually), so we avoid doing that.
5251 if test -f "$cache_file"; then
5252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5253 echo "$as_me: loading cache $cache_file" >&6;}
5254 case $cache_file in
5255 [\\/]* | ?:[\\/]* ) . $cache_file;;
5256 *) . ./$cache_file;;
5257 esac
5258 fi
5259 else
5260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5261 echo "$as_me: creating cache $cache_file" >&6;}
5262 >$cache_file
5263 fi
5264
5265
5266 # This can be used to rebuild libtool when needed
5267 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5268
5269 # Always use our own libtool.
5270 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5271
5272 # Redirect the config.log output again, so that the ltconfig log is not
5273 # clobbered by the next message.
5274 exec 5>>./config.log
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284 if test "${ac_cv_header_stdint_h+set}" = set; then
5285 echo "$as_me:$LINENO: checking for stdint.h" >&5
5286 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5287 if test "${ac_cv_header_stdint_h+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 fi
5290 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
5291 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
5292 else
5293 # Is the header compilable?
5294 echo "$as_me:$LINENO: checking stdint.h usability" >&5
5295 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5303 #include <stdint.h>
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307 (eval $ac_compile) 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_header_compiler=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_header_compiler=no
5332 fi
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5335 echo "${ECHO_T}$ac_header_compiler" >&6
5336
5337 # Is the header present?
5338 echo "$as_me:$LINENO: checking stdint.h presence" >&5
5339 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <stdint.h>
5347 _ACEOF
5348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } >/dev/null; then
5356 if test -s conftest.err; then
5357 ac_cpp_err=$ac_c_preproc_warn_flag
5358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5359 else
5360 ac_cpp_err=
5361 fi
5362 else
5363 ac_cpp_err=yes
5364 fi
5365 if test -z "$ac_cpp_err"; then
5366 ac_header_preproc=yes
5367 else
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 ac_header_preproc=no
5372 fi
5373 rm -f conftest.err conftest.$ac_ext
5374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5375 echo "${ECHO_T}$ac_header_preproc" >&6
5376
5377 # So? What about this header?
5378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5379 yes:no: )
5380 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
5381 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
5383 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
5384 ac_header_preproc=yes
5385 ;;
5386 no:yes:* )
5387 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
5388 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
5390 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
5392 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
5394 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
5396 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
5398 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
5399 (
5400 cat <<\_ASBOX
5401 ## ------------------------------------- ##
5402 ## Report this to the libmudflap lists. ##
5403 ## ------------------------------------- ##
5404 _ASBOX
5405 ) |
5406 sed "s/^/$as_me: WARNING: /" >&2
5407 ;;
5408 esac
5409 echo "$as_me:$LINENO: checking for stdint.h" >&5
5410 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5411 if test "${ac_cv_header_stdint_h+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 ac_cv_header_stdint_h=$ac_header_preproc
5415 fi
5416 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
5417 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
5418
5419 fi
5420 if test $ac_cv_header_stdint_h = yes; then
5421 MF_HAVE_STDINT_H=1
5422 else
5423 MF_HAVE_STDINT_H=0
5424 fi
5425
5426
5427
5428 if test $MF_HAVE_STDINT_H = 1
5429 then
5430 MF_HAVE_UINTPTR_T=1
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 int
5440 main ()
5441 {
5442 uintptr_t k = 0;
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 MF_HAVE_UINTPTR_T=1
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 MF_HAVE_UINTPTR_T=0
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 fi
5477
5478
5479 if test ! -d pth
5480 then
5481 # libmudflapth objects are built in this subdirectory
5482 mkdir pth
5483 fi
5484
5485 pthread_create_version='""'
5486 if test "${ac_cv_header_pthread_h+set}" = set; then
5487 echo "$as_me:$LINENO: checking for pthread.h" >&5
5488 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5489 if test "${ac_cv_header_pthread_h+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 fi
5492 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5493 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5494 else
5495 # Is the header compilable?
5496 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5497 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 #include <pthread.h>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_header_compiler=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_header_compiler=no
5534 fi
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6
5538
5539 # Is the header present?
5540 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5541 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <pthread.h>
5549 _ACEOF
5550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null; then
5558 if test -s conftest.err; then
5559 ac_cpp_err=$ac_c_preproc_warn_flag
5560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5561 else
5562 ac_cpp_err=
5563 fi
5564 else
5565 ac_cpp_err=yes
5566 fi
5567 if test -z "$ac_cpp_err"; then
5568 ac_header_preproc=yes
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 ac_header_preproc=no
5574 fi
5575 rm -f conftest.err conftest.$ac_ext
5576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5577 echo "${ECHO_T}$ac_header_preproc" >&6
5578
5579 # So? What about this header?
5580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5581 yes:no: )
5582 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5583 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5585 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5586 ac_header_preproc=yes
5587 ;;
5588 no:yes:* )
5589 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5590 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5592 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5594 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5596 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5598 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5600 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5601 (
5602 cat <<\_ASBOX
5603 ## ------------------------------------- ##
5604 ## Report this to the libmudflap lists. ##
5605 ## ------------------------------------- ##
5606 _ASBOX
5607 ) |
5608 sed "s/^/$as_me: WARNING: /" >&2
5609 ;;
5610 esac
5611 echo "$as_me:$LINENO: checking for pthread.h" >&5
5612 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5613 if test "${ac_cv_header_pthread_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 ac_cv_header_pthread_h=$ac_header_preproc
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5619 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5620
5621 fi
5622 if test $ac_cv_header_pthread_h = yes; then
5623
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define HAVE_PTHREAD_H 1
5627 _ACEOF
5628
5629 ac_have_pthread_h=yes
5630
5631 else
5632
5633 ac_have_pthread_h=
5634
5635 fi
5636
5637
5638
5639
5640 if test "x$ac_have_pthread_h" != "x"; then
5641 LIBMUDFLAPTH_TRUE=
5642 LIBMUDFLAPTH_FALSE='#'
5643 else
5644 LIBMUDFLAPTH_TRUE='#'
5645 LIBMUDFLAPTH_FALSE=
5646 fi
5647
5648 if test "x$ac_have_pthread_h" != "x"
5649 then
5650 build_libmudflapth=1
5651 else
5652 build_libmudflapth=0
5653 fi
5654
5655
5656
5657 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5658 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5659 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 ac_check_lib_save_LIBS=$LIBS
5663 LIBS="-ldl $LIBS"
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 #ifdef __cplusplus
5673 extern "C"
5674 #endif
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5677 char dlsym ();
5678 int
5679 main ()
5680 {
5681 dlsym ();
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_lib_dl_dlsym=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_cv_lib_dl_dlsym=no
5713 fi
5714 rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5717 fi
5718 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
5719 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5720 if test $ac_cv_lib_dl_dlsym = yes; then
5721 cat >>confdefs.h <<_ACEOF
5722 #define HAVE_LIBDL 1
5723 _ACEOF
5724
5725 LIBS="-ldl $LIBS"
5726
5727 fi
5728
5729
5730 # Process the option "--enable-version-specific-runtime-libs"
5731 gcc_version_trigger=${srcdir}/../gcc/version.c
5732 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
5733 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
5734
5735
5736 # Calculate toolexeclibdir
5737 # Also toolexecdir, though it's only used in toolexeclibdir
5738 case ${version_specific_libs} in
5739 yes)
5740 # Need the gcc compiler version to know where to install libraries
5741 # and header files if --enable-version-specific-runtime-libs option
5742 # is selected.
5743 toolexecdir='$(libdir)/gcc/$(target_alias)'
5744 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
5745 ;;
5746 no)
5747 if test -n "$with_cross_host" &&
5748 test x"$with_cross_host" != x"no"; then
5749 # Install a library built with a cross compiler in tooldir, not libdir.
5750 toolexecdir='$(exec_prefix)/$(target_alias)'
5751 toolexeclibdir='$(toolexecdir)/lib'
5752 else
5753 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5754 toolexeclibdir='$(libdir)'
5755 fi
5756 multi_os_directory=`$CC -print-multi-os-directory`
5757 case $multi_os_directory in
5758 .) ;; # Avoid trailing /.
5759 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5760 esac
5761 ;;
5762 esac
5763
5764
5765
5766 if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != "x"; then
5767 # NB: don't check for -lpthread here, because then it would be
5768 # added to LIBS. For the thread-unaware libmudflap.la, we don't
5769 # want it there.
5770
5771 # glibc-related hacks. dlsym() may pick the wrong version of
5772 # interposed functions like pthread_create on modern glibc.
5773 # We need to find the proper symbol version string, and use
5774 # the nonstandard dlvsym().
5775
5776 for ac_func in dlvsym
5777 do
5778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5779 echo "$as_me:$LINENO: checking for $ac_func" >&5
5780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5781 if eval "test \"\${$as_ac_var+set}\" = set"; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5792 #define $ac_func innocuous_$ac_func
5793
5794 /* System header to define __stub macros and hopefully few prototypes,
5795 which can conflict with char $ac_func (); below.
5796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 <limits.h> exists even on freestanding compilers. */
5798
5799 #ifdef __STDC__
5800 # include <limits.h>
5801 #else
5802 # include <assert.h>
5803 #endif
5804
5805 #undef $ac_func
5806
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 #ifdef __cplusplus
5809 extern "C"
5810 {
5811 #endif
5812 /* We use char because int might match the return type of a gcc2
5813 builtin and then its argument prototype would still apply. */
5814 char $ac_func ();
5815 /* The GNU C library defines this for functions which it implements
5816 to always fail with ENOSYS. Some functions are actually named
5817 something starting with __ and the normal name is an alias. */
5818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5819 choke me
5820 #else
5821 char (*f) () = $ac_func;
5822 #endif
5823 #ifdef __cplusplus
5824 }
5825 #endif
5826
5827 int
5828 main ()
5829 {
5830 return f != $ac_func;
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 eval "$as_ac_var=yes"
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 eval "$as_ac_var=no"
5862 fi
5863 rm -f conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5865 fi
5866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5868 if test `eval echo '${'$as_ac_var'}'` = yes; then
5869 cat >>confdefs.h <<_ACEOF
5870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5871 _ACEOF
5872
5873 fi
5874 done
5875
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}nm; ac_word=$2
5879 echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881 if test "${ac_cv_prog_NM+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 if test -n "$NM"; then
5885 ac_cv_prog_NM="$NM" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_NM="${ac_tool_prefix}nm"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900
5901 fi
5902 fi
5903 NM=$ac_cv_prog_NM
5904 if test -n "$NM"; then
5905 echo "$as_me:$LINENO: result: $NM" >&5
5906 echo "${ECHO_T}$NM" >&6
5907 else
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912 fi
5913 if test -z "$ac_cv_prog_NM"; then
5914 ac_ct_NM=$NM
5915 # Extract the first word of "nm", so it can be a program name with args.
5916 set dummy nm; ac_word=$2
5917 echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5919 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 if test -n "$ac_ct_NM"; then
5923 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_NM="nm"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938
5939 fi
5940 fi
5941 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5942 if test -n "$ac_ct_NM"; then
5943 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5944 echo "${ECHO_T}$ac_ct_NM" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948 fi
5949
5950 NM=$ac_ct_NM
5951 else
5952 NM="$ac_cv_prog_NM"
5953 fi
5954
5955 if test "x$ac_cv_have_dlvsym" != "x"; then
5956 # Try compiling a simple pthreads program. Find the shared libraries it
5957 # ends up with. Then use "nm" on those libraries to extract the
5958 # default symbol versioning suffix ("@@"), if any. But that's tricky.
5959 # Rather, run nm on the resulting executable. Unfortunately, autoconf
5960 # doesn't appear to have a macro that builds a test executable for
5961 # subsequent analysis ... so we do it by hand here.
5962 cat >> conftest.c << EOF
5963 #include <pthread.h>
5964 int main () { void *p = (void *) & pthread_create; return (int) p; }
5965 EOF
5966 oldLIBS="$LIBS"
5967 LIBS="$LIBS -lpthread"
5968 pthread_create_version="\"\""
5969 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
5970 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
5971 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
5972 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
5973 if test "x$version" != "x"; then
5974 pthread_create_version="\"$version\""
5975 fi
5976 fi
5977 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
5978 echo "${ECHO_T}$pthread_create_version" >&6
5979 LIBS="$oldLIBS"
5980 fi
5981 fi
5982
5983 cat >>confdefs.h <<_ACEOF
5984 #define PTHREAD_CREATE_VERSION $pthread_create_version
5985 _ACEOF
5986
5987
5988
5989 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5990 # similarly to how libstdc++ does it
5991 ac_test_CFLAGS="${CFLAGS+set}"
5992 ac_save_CFLAGS="$CFLAGS"
5993
5994 # Check for -ffunction-sections -fdata-sections
5995 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5996 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
5997 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004
6005 int
6006 main ()
6007 {
6008 int foo;
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_fdsections=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_fdsections=no
6040 fi
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 if test "$ac_test_CFLAGS" = set; then
6043 CFLAGS="$ac_save_CFLAGS"
6044 else
6045 # this is the suspicious part
6046 CFLAGS=""
6047 fi
6048 if test x"$ac_fdsections" = x"yes"; then
6049 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6050 fi
6051 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
6052 echo "${ECHO_T}$ac_fdsections" >&6
6053
6054
6055
6056 if test ${multilib} = yes; then
6057 multilib_arg="--enable-multilib"
6058 else
6059 multilib_arg=
6060 fi
6061
6062 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp mf-runtime.h"
6063
6064 cat >confcache <<\_ACEOF
6065 # This file is a shell script that caches the results of configure
6066 # tests run on this system so they can be shared between configure
6067 # scripts and configure runs, see configure's option --config-cache.
6068 # It is not useful on other systems. If it contains results you don't
6069 # want to keep, you may remove or edit it.
6070 #
6071 # config.status only pays attention to the cache file if you give it
6072 # the --recheck option to rerun configure.
6073 #
6074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6076 # following values.
6077
6078 _ACEOF
6079
6080 # The following way of writing the cache mishandles newlines in values,
6081 # but we know of no workaround that is simple, portable, and efficient.
6082 # So, don't put newlines in cache variables' values.
6083 # Ultrix sh set writes to stderr and can't be redirected directly,
6084 # and sets the high bit in the cache file unless we assign to the vars.
6085 {
6086 (set) 2>&1 |
6087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6088 *ac_space=\ *)
6089 # `set' does not quote correctly, so add quotes (double-quote
6090 # substitution turns \\\\ into \\, and sed turns \\ into \).
6091 sed -n \
6092 "s/'/'\\\\''/g;
6093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6094 ;;
6095 *)
6096 # `set' quotes correctly as required by POSIX, so do not add quotes.
6097 sed -n \
6098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6099 ;;
6100 esac;
6101 } |
6102 sed '
6103 t clear
6104 : clear
6105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6106 t end
6107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6108 : end' >>confcache
6109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6110 if test -w $cache_file; then
6111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6112 cat confcache >$cache_file
6113 else
6114 echo "not updating unwritable cache $cache_file"
6115 fi
6116 fi
6117 rm -f confcache
6118
6119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6120 # Let make expand exec_prefix.
6121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6122
6123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6125 # trailing colons and then remove the whole line if VPATH becomes empty
6126 # (actually we leave an empty line to preserve line numbers).
6127 if test "x$srcdir" = x.; then
6128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6129 s/:*\$(srcdir):*/:/;
6130 s/:*\${srcdir}:*/:/;
6131 s/:*@srcdir@:*/:/;
6132 s/^\([^=]*=[ ]*\):*/\1/;
6133 s/:*$//;
6134 s/^[^=]*=[ ]*$//;
6135 }'
6136 fi
6137
6138 DEFS=-DHAVE_CONFIG_H
6139
6140 ac_libobjs=
6141 ac_ltlibobjs=
6142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6143 # 1. Remove the extension, and $U if already installed.
6144 ac_i=`echo "$ac_i" |
6145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6146 # 2. Add them.
6147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6149 done
6150 LIBOBJS=$ac_libobjs
6151
6152 LTLIBOBJS=$ac_ltlibobjs
6153
6154
6155 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6156 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6157 Usually this means the macro was only invoked conditionally." >&5
6158 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6159 Usually this means the macro was only invoked conditionally." >&2;}
6160 { (exit 1); exit 1; }; }
6161 fi
6162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6163 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6164 Usually this means the macro was only invoked conditionally." >&5
6165 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6166 Usually this means the macro was only invoked conditionally." >&2;}
6167 { (exit 1); exit 1; }; }
6168 fi
6169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6171 Usually this means the macro was only invoked conditionally." >&5
6172 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6173 Usually this means the macro was only invoked conditionally." >&2;}
6174 { (exit 1); exit 1; }; }
6175 fi
6176 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
6177 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
6178 Usually this means the macro was only invoked conditionally." >&5
6179 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
6180 Usually this means the macro was only invoked conditionally." >&2;}
6181 { (exit 1); exit 1; }; }
6182 fi
6183
6184 : ${CONFIG_STATUS=./config.status}
6185 ac_clean_files_save=$ac_clean_files
6186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6187 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6188 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6189 cat >$CONFIG_STATUS <<_ACEOF
6190 #! $SHELL
6191 # Generated by $as_me.
6192 # Run this file to recreate the current configuration.
6193 # Compiler output produced by configure, useful for debugging
6194 # configure, is in config.log if it exists.
6195
6196 debug=false
6197 ac_cs_recheck=false
6198 ac_cs_silent=false
6199 SHELL=\${CONFIG_SHELL-$SHELL}
6200 _ACEOF
6201
6202 cat >>$CONFIG_STATUS <<\_ACEOF
6203 ## --------------------- ##
6204 ## M4sh Initialization. ##
6205 ## --------------------- ##
6206
6207 # Be Bourne compatible
6208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6209 emulate sh
6210 NULLCMD=:
6211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6212 # is contrary to our usage. Disable this feature.
6213 alias -g '${1+"$@"}'='"$@"'
6214 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6215 set -o posix
6216 fi
6217 DUALCASE=1; export DUALCASE # for MKS sh
6218
6219 # Support unset when possible.
6220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6221 as_unset=unset
6222 else
6223 as_unset=false
6224 fi
6225
6226
6227 # Work around bugs in pre-3.0 UWIN ksh.
6228 $as_unset ENV MAIL MAILPATH
6229 PS1='$ '
6230 PS2='> '
6231 PS4='+ '
6232
6233 # NLS nuisances.
6234 for as_var in \
6235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6237 LC_TELEPHONE LC_TIME
6238 do
6239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6240 eval $as_var=C; export $as_var
6241 else
6242 $as_unset $as_var
6243 fi
6244 done
6245
6246 # Required to use basename.
6247 if expr a : '\(a\)' >/dev/null 2>&1; then
6248 as_expr=expr
6249 else
6250 as_expr=false
6251 fi
6252
6253 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6254 as_basename=basename
6255 else
6256 as_basename=false
6257 fi
6258
6259
6260 # Name of the executable.
6261 as_me=`$as_basename "$0" ||
6262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6263 X"$0" : 'X\(//\)$' \| \
6264 X"$0" : 'X\(/\)$' \| \
6265 . : '\(.\)' 2>/dev/null ||
6266 echo X/"$0" |
6267 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6268 /^X\/\(\/\/\)$/{ s//\1/; q; }
6269 /^X\/\(\/\).*/{ s//\1/; q; }
6270 s/.*/./; q'`
6271
6272
6273 # PATH needs CR, and LINENO needs CR and PATH.
6274 # Avoid depending upon Character Ranges.
6275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6278 as_cr_digits='0123456789'
6279 as_cr_alnum=$as_cr_Letters$as_cr_digits
6280
6281 # The user is always right.
6282 if test "${PATH_SEPARATOR+set}" != set; then
6283 echo "#! /bin/sh" >conf$$.sh
6284 echo "exit 0" >>conf$$.sh
6285 chmod +x conf$$.sh
6286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6287 PATH_SEPARATOR=';'
6288 else
6289 PATH_SEPARATOR=:
6290 fi
6291 rm -f conf$$.sh
6292 fi
6293
6294
6295 as_lineno_1=$LINENO
6296 as_lineno_2=$LINENO
6297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6298 test "x$as_lineno_1" != "x$as_lineno_2" &&
6299 test "x$as_lineno_3" = "x$as_lineno_2" || {
6300 # Find who we are. Look in the path if we contain no path at all
6301 # relative or not.
6302 case $0 in
6303 *[\\/]* ) as_myself=$0 ;;
6304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6310 done
6311
6312 ;;
6313 esac
6314 # We did not find ourselves, most probably we were run as `sh COMMAND'
6315 # in which case we are not to be found in the path.
6316 if test "x$as_myself" = x; then
6317 as_myself=$0
6318 fi
6319 if test ! -f "$as_myself"; then
6320 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6321 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6322 { (exit 1); exit 1; }; }
6323 fi
6324 case $CONFIG_SHELL in
6325 '')
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for as_base in sh bash ksh sh5; do
6332 case $as_dir in
6333 /*)
6334 if ("$as_dir/$as_base" -c '
6335 as_lineno_1=$LINENO
6336 as_lineno_2=$LINENO
6337 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6338 test "x$as_lineno_1" != "x$as_lineno_2" &&
6339 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6340 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6341 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6342 CONFIG_SHELL=$as_dir/$as_base
6343 export CONFIG_SHELL
6344 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6345 fi;;
6346 esac
6347 done
6348 done
6349 ;;
6350 esac
6351
6352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6353 # uniformly replaced by the line number. The first 'sed' inserts a
6354 # line-number line before each line; the second 'sed' does the real
6355 # work. The second script uses 'N' to pair each line-number line
6356 # with the numbered line, and appends trailing '-' during
6357 # substitution so that $LINENO is not a special case at line end.
6358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6359 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6360 sed '=' <$as_myself |
6361 sed '
6362 N
6363 s,$,-,
6364 : loop
6365 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6366 t loop
6367 s,-$,,
6368 s,^['$as_cr_digits']*\n,,
6369 ' >$as_me.lineno &&
6370 chmod +x $as_me.lineno ||
6371 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6373 { (exit 1); exit 1; }; }
6374
6375 # Don't try to exec as it changes $[0], causing all sort of problems
6376 # (the dirname of $[0] is not the place where we might find the
6377 # original and so on. Autoconf is especially sensible to this).
6378 . ./$as_me.lineno
6379 # Exit status is that of the last command.
6380 exit
6381 }
6382
6383
6384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6385 *c*,-n*) ECHO_N= ECHO_C='
6386 ' ECHO_T=' ' ;;
6387 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6388 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6389 esac
6390
6391 if expr a : '\(a\)' >/dev/null 2>&1; then
6392 as_expr=expr
6393 else
6394 as_expr=false
6395 fi
6396
6397 rm -f conf$$ conf$$.exe conf$$.file
6398 echo >conf$$.file
6399 if ln -s conf$$.file conf$$ 2>/dev/null; then
6400 # We could just check for DJGPP; but this test a) works b) is more generic
6401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6402 if test -f conf$$.exe; then
6403 # Don't use ln at all; we don't have any links
6404 as_ln_s='cp -p'
6405 else
6406 as_ln_s='ln -s'
6407 fi
6408 elif ln conf$$.file conf$$ 2>/dev/null; then
6409 as_ln_s=ln
6410 else
6411 as_ln_s='cp -p'
6412 fi
6413 rm -f conf$$ conf$$.exe conf$$.file
6414
6415 if mkdir -p . 2>/dev/null; then
6416 as_mkdir_p=:
6417 else
6418 test -d ./-p && rmdir ./-p
6419 as_mkdir_p=false
6420 fi
6421
6422 as_executable_p="test -f"
6423
6424 # Sed expression to map a string onto a valid CPP name.
6425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6426
6427 # Sed expression to map a string onto a valid variable name.
6428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6429
6430
6431 # IFS
6432 # We need space, tab and new line, in precisely that order.
6433 as_nl='
6434 '
6435 IFS=" $as_nl"
6436
6437 # CDPATH.
6438 $as_unset CDPATH
6439
6440 exec 6>&1
6441
6442 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6443 # report actual input values of CONFIG_FILES etc. instead of their
6444 # values after options handling. Logging --version etc. is OK.
6445 exec 5>>config.log
6446 {
6447 echo
6448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6449 ## Running $as_me. ##
6450 _ASBOX
6451 } >&5
6452 cat >&5 <<_CSEOF
6453
6454 This file was extended by libmudflap $as_me 1.0, which was
6455 generated by GNU Autoconf 2.59. Invocation command line was
6456
6457 CONFIG_FILES = $CONFIG_FILES
6458 CONFIG_HEADERS = $CONFIG_HEADERS
6459 CONFIG_LINKS = $CONFIG_LINKS
6460 CONFIG_COMMANDS = $CONFIG_COMMANDS
6461 $ $0 $@
6462
6463 _CSEOF
6464 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6465 echo >&5
6466 _ACEOF
6467
6468 # Files that config.status was made for.
6469 if test -n "$ac_config_files"; then
6470 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6471 fi
6472
6473 if test -n "$ac_config_headers"; then
6474 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6475 fi
6476
6477 if test -n "$ac_config_links"; then
6478 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6479 fi
6480
6481 if test -n "$ac_config_commands"; then
6482 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6483 fi
6484
6485 cat >>$CONFIG_STATUS <<\_ACEOF
6486
6487 ac_cs_usage="\
6488 \`$as_me' instantiates files from templates according to the
6489 current configuration.
6490
6491 Usage: $0 [OPTIONS] [FILE]...
6492
6493 -h, --help print this help, then exit
6494 -V, --version print version number, then exit
6495 -q, --quiet do not print progress messages
6496 -d, --debug don't remove temporary files
6497 --recheck update $as_me by reconfiguring in the same conditions
6498 --file=FILE[:TEMPLATE]
6499 instantiate the configuration file FILE
6500 --header=FILE[:TEMPLATE]
6501 instantiate the configuration header FILE
6502
6503 Configuration files:
6504 $config_files
6505
6506 Configuration headers:
6507 $config_headers
6508
6509 Configuration commands:
6510 $config_commands
6511
6512 Report bugs to <bug-autoconf@gnu.org>."
6513 _ACEOF
6514
6515 cat >>$CONFIG_STATUS <<_ACEOF
6516 ac_cs_version="\\
6517 libmudflap config.status 1.0
6518 configured by $0, generated by GNU Autoconf 2.59,
6519 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6520
6521 Copyright (C) 2003 Free Software Foundation, Inc.
6522 This config.status script is free software; the Free Software Foundation
6523 gives unlimited permission to copy, distribute and modify it."
6524 srcdir=$srcdir
6525 INSTALL="$INSTALL"
6526 _ACEOF
6527
6528 cat >>$CONFIG_STATUS <<\_ACEOF
6529 # If no file are specified by the user, then we need to provide default
6530 # value. By we need to know if files were specified by the user.
6531 ac_need_defaults=:
6532 while test $# != 0
6533 do
6534 case $1 in
6535 --*=*)
6536 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6537 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6538 ac_shift=:
6539 ;;
6540 -*)
6541 ac_option=$1
6542 ac_optarg=$2
6543 ac_shift=shift
6544 ;;
6545 *) # This is not an option, so the user has probably given explicit
6546 # arguments.
6547 ac_option=$1
6548 ac_need_defaults=false;;
6549 esac
6550
6551 case $ac_option in
6552 # Handling of the options.
6553 _ACEOF
6554 cat >>$CONFIG_STATUS <<\_ACEOF
6555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6556 ac_cs_recheck=: ;;
6557 --version | --vers* | -V )
6558 echo "$ac_cs_version"; exit 0 ;;
6559 --he | --h)
6560 # Conflict between --help and --header
6561 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6562 Try \`$0 --help' for more information." >&5
6563 echo "$as_me: error: ambiguous option: $1
6564 Try \`$0 --help' for more information." >&2;}
6565 { (exit 1); exit 1; }; };;
6566 --help | --hel | -h )
6567 echo "$ac_cs_usage"; exit 0 ;;
6568 --debug | --d* | -d )
6569 debug=: ;;
6570 --file | --fil | --fi | --f )
6571 $ac_shift
6572 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6573 ac_need_defaults=false;;
6574 --header | --heade | --head | --hea )
6575 $ac_shift
6576 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6577 ac_need_defaults=false;;
6578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6580 ac_cs_silent=: ;;
6581
6582 # This is an error.
6583 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6584 Try \`$0 --help' for more information." >&5
6585 echo "$as_me: error: unrecognized option: $1
6586 Try \`$0 --help' for more information." >&2;}
6587 { (exit 1); exit 1; }; } ;;
6588
6589 *) ac_config_targets="$ac_config_targets $1" ;;
6590
6591 esac
6592 shift
6593 done
6594
6595 ac_configure_extra_args=
6596
6597 if $ac_cs_silent; then
6598 exec 6>/dev/null
6599 ac_configure_extra_args="$ac_configure_extra_args --silent"
6600 fi
6601
6602 _ACEOF
6603 cat >>$CONFIG_STATUS <<_ACEOF
6604 if \$ac_cs_recheck; then
6605 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6606 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6607 fi
6608
6609 _ACEOF
6610
6611 cat >>$CONFIG_STATUS <<_ACEOF
6612 #
6613 # INIT-COMMANDS section.
6614 #
6615
6616
6617 srcdir="$srcdir"
6618 host="$host"
6619 target="$target"
6620 with_multisubdir="$with_multisubdir"
6621 with_multisrctop="$with_multisrctop"
6622 with_target_subdir="$with_target_subdir"
6623 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6624 multi_basedir="$multi_basedir"
6625 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6626 CC="$CC"
6627 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6628
6629 _ACEOF
6630
6631
6632
6633 cat >>$CONFIG_STATUS <<\_ACEOF
6634 for ac_config_target in $ac_config_targets
6635 do
6636 case "$ac_config_target" in
6637 # Handling of arguments.
6638 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6639 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6640 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
6641 "mf-runtime.h" ) CONFIG_FILES="$CONFIG_FILES mf-runtime.h" ;;
6642 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6643 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6644 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6645 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6646 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6647 { (exit 1); exit 1; }; };;
6648 esac
6649 done
6650
6651 # If the user did not use the arguments to specify the items to instantiate,
6652 # then the envvar interface is used. Set only those that are not.
6653 # We use the long form for the default assignment because of an extremely
6654 # bizarre bug on SunOS 4.1.3.
6655 if $ac_need_defaults; then
6656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6659 fi
6660
6661 # Have a temporary directory for convenience. Make it in the build tree
6662 # simply because there is no reason to put it here, and in addition,
6663 # creating and moving files from /tmp can sometimes cause problems.
6664 # Create a temporary directory, and hook for its removal unless debugging.
6665 $debug ||
6666 {
6667 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6668 trap '{ (exit 1); exit 1; }' 1 2 13 15
6669 }
6670
6671 # Create a (secure) tmp directory for tmp files.
6672
6673 {
6674 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6675 test -n "$tmp" && test -d "$tmp"
6676 } ||
6677 {
6678 tmp=./confstat$$-$RANDOM
6679 (umask 077 && mkdir $tmp)
6680 } ||
6681 {
6682 echo "$me: cannot create a temporary directory in ." >&2
6683 { (exit 1); exit 1; }
6684 }
6685
6686 _ACEOF
6687
6688 cat >>$CONFIG_STATUS <<_ACEOF
6689
6690 #
6691 # CONFIG_FILES section.
6692 #
6693
6694 # No need to generate the scripts if there are no CONFIG_FILES.
6695 # This happens for instance when ./config.status config.h
6696 if test -n "\$CONFIG_FILES"; then
6697 # Protect against being on the right side of a sed subst in config.status.
6698 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6699 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6700 s,@SHELL@,$SHELL,;t t
6701 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6702 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6703 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6704 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6705 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6706 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6707 s,@exec_prefix@,$exec_prefix,;t t
6708 s,@prefix@,$prefix,;t t
6709 s,@program_transform_name@,$program_transform_name,;t t
6710 s,@bindir@,$bindir,;t t
6711 s,@sbindir@,$sbindir,;t t
6712 s,@libexecdir@,$libexecdir,;t t
6713 s,@datadir@,$datadir,;t t
6714 s,@sysconfdir@,$sysconfdir,;t t
6715 s,@sharedstatedir@,$sharedstatedir,;t t
6716 s,@localstatedir@,$localstatedir,;t t
6717 s,@libdir@,$libdir,;t t
6718 s,@includedir@,$includedir,;t t
6719 s,@oldincludedir@,$oldincludedir,;t t
6720 s,@infodir@,$infodir,;t t
6721 s,@mandir@,$mandir,;t t
6722 s,@build_alias@,$build_alias,;t t
6723 s,@host_alias@,$host_alias,;t t
6724 s,@target_alias@,$target_alias,;t t
6725 s,@DEFS@,$DEFS,;t t
6726 s,@ECHO_C@,$ECHO_C,;t t
6727 s,@ECHO_N@,$ECHO_N,;t t
6728 s,@ECHO_T@,$ECHO_T,;t t
6729 s,@LIBS@,$LIBS,;t t
6730 s,@build@,$build,;t t
6731 s,@build_cpu@,$build_cpu,;t t
6732 s,@build_vendor@,$build_vendor,;t t
6733 s,@build_os@,$build_os,;t t
6734 s,@host@,$host,;t t
6735 s,@host_cpu@,$host_cpu,;t t
6736 s,@host_vendor@,$host_vendor,;t t
6737 s,@host_os@,$host_os,;t t
6738 s,@target@,$target,;t t
6739 s,@target_cpu@,$target_cpu,;t t
6740 s,@target_vendor@,$target_vendor,;t t
6741 s,@target_os@,$target_os,;t t
6742 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6743 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6744 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6745 s,@CYGPATH_W@,$CYGPATH_W,;t t
6746 s,@PACKAGE@,$PACKAGE,;t t
6747 s,@VERSION@,$VERSION,;t t
6748 s,@ACLOCAL@,$ACLOCAL,;t t
6749 s,@AUTOCONF@,$AUTOCONF,;t t
6750 s,@AUTOMAKE@,$AUTOMAKE,;t t
6751 s,@AUTOHEADER@,$AUTOHEADER,;t t
6752 s,@MAKEINFO@,$MAKEINFO,;t t
6753 s,@AMTAR@,$AMTAR,;t t
6754 s,@install_sh@,$install_sh,;t t
6755 s,@STRIP@,$STRIP,;t t
6756 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6757 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6758 s,@mkdir_p@,$mkdir_p,;t t
6759 s,@AWK@,$AWK,;t t
6760 s,@SET_MAKE@,$SET_MAKE,;t t
6761 s,@am__leading_dot@,$am__leading_dot,;t t
6762 s,@libtool_VERSION@,$libtool_VERSION,;t t
6763 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6764 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6765 s,@MAINT@,$MAINT,;t t
6766 s,@multi_basedir@,$multi_basedir,;t t
6767 s,@CC@,$CC,;t t
6768 s,@ac_ct_CC@,$ac_ct_CC,;t t
6769 s,@EXEEXT@,$EXEEXT,;t t
6770 s,@OBJEXT@,$OBJEXT,;t t
6771 s,@DEPDIR@,$DEPDIR,;t t
6772 s,@am__include@,$am__include,;t t
6773 s,@am__quote@,$am__quote,;t t
6774 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6775 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6776 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6777 s,@CCDEPMODE@,$CCDEPMODE,;t t
6778 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6779 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6780 s,@CFLAGS@,$CFLAGS,;t t
6781 s,@CPP@,$CPP,;t t
6782 s,@CPPFLAGS@,$CPPFLAGS,;t t
6783 s,@EGREP@,$EGREP,;t t
6784 s,@LN_S@,$LN_S,;t t
6785 s,@RANLIB@,$RANLIB,;t t
6786 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6787 s,@LIBTOOL@,$LIBTOOL,;t t
6788 s,@enable_shared@,$enable_shared,;t t
6789 s,@enable_static@,$enable_static,;t t
6790 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
6791 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
6792 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
6793 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
6794 s,@build_libmudflapth@,$build_libmudflapth,;t t
6795 s,@gcc_version@,$gcc_version,;t t
6796 s,@toolexecdir@,$toolexecdir,;t t
6797 s,@toolexeclibdir@,$toolexeclibdir,;t t
6798 s,@NM@,$NM,;t t
6799 s,@ac_ct_NM@,$ac_ct_NM,;t t
6800 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
6801 s,@LIBOBJS@,$LIBOBJS,;t t
6802 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6803 CEOF
6804
6805 _ACEOF
6806
6807 cat >>$CONFIG_STATUS <<\_ACEOF
6808 # Split the substitutions into bite-sized pieces for seds with
6809 # small command number limits, like on Digital OSF/1 and HP-UX.
6810 ac_max_sed_lines=48
6811 ac_sed_frag=1 # Number of current file.
6812 ac_beg=1 # First line for current file.
6813 ac_end=$ac_max_sed_lines # Line after last line for current file.
6814 ac_more_lines=:
6815 ac_sed_cmds=
6816 while $ac_more_lines; do
6817 if test $ac_beg -gt 1; then
6818 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6819 else
6820 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6821 fi
6822 if test ! -s $tmp/subs.frag; then
6823 ac_more_lines=false
6824 else
6825 # The purpose of the label and of the branching condition is to
6826 # speed up the sed processing (if there are no `@' at all, there
6827 # is no need to browse any of the substitutions).
6828 # These are the two extra sed commands mentioned above.
6829 (echo ':t
6830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6831 if test -z "$ac_sed_cmds"; then
6832 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6833 else
6834 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6835 fi
6836 ac_sed_frag=`expr $ac_sed_frag + 1`
6837 ac_beg=$ac_end
6838 ac_end=`expr $ac_end + $ac_max_sed_lines`
6839 fi
6840 done
6841 if test -z "$ac_sed_cmds"; then
6842 ac_sed_cmds=cat
6843 fi
6844 fi # test -n "$CONFIG_FILES"
6845
6846 _ACEOF
6847 cat >>$CONFIG_STATUS <<\_ACEOF
6848 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6850 case $ac_file in
6851 - | *:- | *:-:* ) # input from stdin
6852 cat >$tmp/stdin
6853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6857 * ) ac_file_in=$ac_file.in ;;
6858 esac
6859
6860 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6861 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6863 X"$ac_file" : 'X\(//\)[^/]' \| \
6864 X"$ac_file" : 'X\(//\)$' \| \
6865 X"$ac_file" : 'X\(/\)' \| \
6866 . : '\(.\)' 2>/dev/null ||
6867 echo X"$ac_file" |
6868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6870 /^X\(\/\/\)$/{ s//\1/; q; }
6871 /^X\(\/\).*/{ s//\1/; q; }
6872 s/.*/./; q'`
6873 { if $as_mkdir_p; then
6874 mkdir -p "$ac_dir"
6875 else
6876 as_dir="$ac_dir"
6877 as_dirs=
6878 while test ! -d "$as_dir"; do
6879 as_dirs="$as_dir $as_dirs"
6880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6882 X"$as_dir" : 'X\(//\)[^/]' \| \
6883 X"$as_dir" : 'X\(//\)$' \| \
6884 X"$as_dir" : 'X\(/\)' \| \
6885 . : '\(.\)' 2>/dev/null ||
6886 echo X"$as_dir" |
6887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6889 /^X\(\/\/\)$/{ s//\1/; q; }
6890 /^X\(\/\).*/{ s//\1/; q; }
6891 s/.*/./; q'`
6892 done
6893 test ! -n "$as_dirs" || mkdir $as_dirs
6894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6896 { (exit 1); exit 1; }; }; }
6897
6898 ac_builddir=.
6899
6900 if test "$ac_dir" != .; then
6901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6902 # A "../" for each directory in $ac_dir_suffix.
6903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6904 else
6905 ac_dir_suffix= ac_top_builddir=
6906 fi
6907
6908 case $srcdir in
6909 .) # No --srcdir option. We are building in place.
6910 ac_srcdir=.
6911 if test -z "$ac_top_builddir"; then
6912 ac_top_srcdir=.
6913 else
6914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6915 fi ;;
6916 [\\/]* | ?:[\\/]* ) # Absolute path.
6917 ac_srcdir=$srcdir$ac_dir_suffix;
6918 ac_top_srcdir=$srcdir ;;
6919 *) # Relative path.
6920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6922 esac
6923
6924 # Do not use `cd foo && pwd` to compute absolute paths, because
6925 # the directories may not exist.
6926 case `pwd` in
6927 .) ac_abs_builddir="$ac_dir";;
6928 *)
6929 case "$ac_dir" in
6930 .) ac_abs_builddir=`pwd`;;
6931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6933 esac;;
6934 esac
6935 case $ac_abs_builddir in
6936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6937 *)
6938 case ${ac_top_builddir}. in
6939 .) ac_abs_top_builddir=$ac_abs_builddir;;
6940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6942 esac;;
6943 esac
6944 case $ac_abs_builddir in
6945 .) ac_abs_srcdir=$ac_srcdir;;
6946 *)
6947 case $ac_srcdir in
6948 .) ac_abs_srcdir=$ac_abs_builddir;;
6949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6951 esac;;
6952 esac
6953 case $ac_abs_builddir in
6954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6955 *)
6956 case $ac_top_srcdir in
6957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6960 esac;;
6961 esac
6962
6963
6964 case $INSTALL in
6965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6966 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6967 esac
6968
6969 # Let's still pretend it is `configure' which instantiates (i.e., don't
6970 # use $as_me), people would be surprised to read:
6971 # /* config.h. Generated by config.status. */
6972 if test x"$ac_file" = x-; then
6973 configure_input=
6974 else
6975 configure_input="$ac_file. "
6976 fi
6977 configure_input=$configure_input"Generated from `echo $ac_file_in |
6978 sed 's,.*/,,'` by configure."
6979
6980 # First look for the input files in the build tree, otherwise in the
6981 # src tree.
6982 ac_file_inputs=`IFS=:
6983 for f in $ac_file_in; do
6984 case $f in
6985 -) echo $tmp/stdin ;;
6986 [\\/$]*)
6987 # Absolute (can't be DOS-style, as IFS=:)
6988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6989 echo "$as_me: error: cannot find input file: $f" >&2;}
6990 { (exit 1); exit 1; }; }
6991 echo "$f";;
6992 *) # Relative
6993 if test -f "$f"; then
6994 # Build tree
6995 echo "$f"
6996 elif test -f "$srcdir/$f"; then
6997 # Source tree
6998 echo "$srcdir/$f"
6999 else
7000 # /dev/null tree
7001 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7002 echo "$as_me: error: cannot find input file: $f" >&2;}
7003 { (exit 1); exit 1; }; }
7004 fi;;
7005 esac
7006 done` || { (exit 1); exit 1; }
7007
7008 if test x"$ac_file" != x-; then
7009 { echo "$as_me:$LINENO: creating $ac_file" >&5
7010 echo "$as_me: creating $ac_file" >&6;}
7011 rm -f "$ac_file"
7012 fi
7013 _ACEOF
7014 cat >>$CONFIG_STATUS <<_ACEOF
7015 sed "$ac_vpsub
7016 $extrasub
7017 _ACEOF
7018 cat >>$CONFIG_STATUS <<\_ACEOF
7019 :t
7020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7021 s,@configure_input@,$configure_input,;t t
7022 s,@srcdir@,$ac_srcdir,;t t
7023 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7024 s,@top_srcdir@,$ac_top_srcdir,;t t
7025 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7026 s,@builddir@,$ac_builddir,;t t
7027 s,@abs_builddir@,$ac_abs_builddir,;t t
7028 s,@top_builddir@,$ac_top_builddir,;t t
7029 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7030 s,@INSTALL@,$ac_INSTALL,;t t
7031 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7032 rm -f $tmp/stdin
7033 if test x"$ac_file" != x-; then
7034 mv $tmp/out $ac_file
7035 else
7036 cat $tmp/out
7037 rm -f $tmp/out
7038 fi
7039
7040 done
7041 _ACEOF
7042 cat >>$CONFIG_STATUS <<\_ACEOF
7043
7044 #
7045 # CONFIG_HEADER section.
7046 #
7047
7048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7050 #
7051 # ac_d sets the value in "#define NAME VALUE" lines.
7052 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7053 ac_dB='[ ].*$,\1#\2'
7054 ac_dC=' '
7055 ac_dD=',;t'
7056 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7057 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7058 ac_uB='$,\1#\2define\3'
7059 ac_uC=' '
7060 ac_uD=',;t'
7061
7062 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7064 case $ac_file in
7065 - | *:- | *:-:* ) # input from stdin
7066 cat >$tmp/stdin
7067 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7069 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7071 * ) ac_file_in=$ac_file.in ;;
7072 esac
7073
7074 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7075 echo "$as_me: creating $ac_file" >&6;}
7076
7077 # First look for the input files in the build tree, otherwise in the
7078 # src tree.
7079 ac_file_inputs=`IFS=:
7080 for f in $ac_file_in; do
7081 case $f in
7082 -) echo $tmp/stdin ;;
7083 [\\/$]*)
7084 # Absolute (can't be DOS-style, as IFS=:)
7085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7086 echo "$as_me: error: cannot find input file: $f" >&2;}
7087 { (exit 1); exit 1; }; }
7088 # Do quote $f, to prevent DOS paths from being IFS'd.
7089 echo "$f";;
7090 *) # Relative
7091 if test -f "$f"; then
7092 # Build tree
7093 echo "$f"
7094 elif test -f "$srcdir/$f"; then
7095 # Source tree
7096 echo "$srcdir/$f"
7097 else
7098 # /dev/null tree
7099 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7100 echo "$as_me: error: cannot find input file: $f" >&2;}
7101 { (exit 1); exit 1; }; }
7102 fi;;
7103 esac
7104 done` || { (exit 1); exit 1; }
7105 # Remove the trailing spaces.
7106 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7107
7108 _ACEOF
7109
7110 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7111 # `conftest.undefs', that substitutes the proper values into
7112 # config.h.in to produce config.h. The first handles `#define'
7113 # templates, and the second `#undef' templates.
7114 # And first: Protect against being on the right side of a sed subst in
7115 # config.status. Protect against being in an unquoted here document
7116 # in config.status.
7117 rm -f conftest.defines conftest.undefs
7118 # Using a here document instead of a string reduces the quoting nightmare.
7119 # Putting comments in sed scripts is not portable.
7120 #
7121 # `end' is used to avoid that the second main sed command (meant for
7122 # 0-ary CPP macros) applies to n-ary macro definitions.
7123 # See the Autoconf documentation for `clear'.
7124 cat >confdef2sed.sed <<\_ACEOF
7125 s/[\\&,]/\\&/g
7126 s,[\\$`],\\&,g
7127 t clear
7128 : clear
7129 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7130 t end
7131 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7132 : end
7133 _ACEOF
7134 # If some macros were called several times there might be several times
7135 # the same #defines, which is useless. Nevertheless, we may not want to
7136 # sort them, since we want the *last* AC-DEFINE to be honored.
7137 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7138 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7139 rm -f confdef2sed.sed
7140
7141 # This sed command replaces #undef with comments. This is necessary, for
7142 # example, in the case of _POSIX_SOURCE, which is predefined and required
7143 # on some systems where configure will not decide to define it.
7144 cat >>conftest.undefs <<\_ACEOF
7145 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7146 _ACEOF
7147
7148 # Break up conftest.defines because some shells have a limit on the size
7149 # of here documents, and old seds have small limits too (100 cmds).
7150 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7151 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7152 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7153 echo ' :' >>$CONFIG_STATUS
7154 rm -f conftest.tail
7155 while grep . conftest.defines >/dev/null
7156 do
7157 # Write a limited-size here document to $tmp/defines.sed.
7158 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7159 # Speed up: don't consider the non `#define' lines.
7160 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7161 # Work around the forget-to-reset-the-flag bug.
7162 echo 't clr' >>$CONFIG_STATUS
7163 echo ': clr' >>$CONFIG_STATUS
7164 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7165 echo 'CEOF
7166 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7167 rm -f $tmp/in
7168 mv $tmp/out $tmp/in
7169 ' >>$CONFIG_STATUS
7170 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7171 rm -f conftest.defines
7172 mv conftest.tail conftest.defines
7173 done
7174 rm -f conftest.defines
7175 echo ' fi # grep' >>$CONFIG_STATUS
7176 echo >>$CONFIG_STATUS
7177
7178 # Break up conftest.undefs because some shells have a limit on the size
7179 # of here documents, and old seds have small limits too (100 cmds).
7180 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7181 rm -f conftest.tail
7182 while grep . conftest.undefs >/dev/null
7183 do
7184 # Write a limited-size here document to $tmp/undefs.sed.
7185 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7186 # Speed up: don't consider the non `#undef'
7187 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7188 # Work around the forget-to-reset-the-flag bug.
7189 echo 't clr' >>$CONFIG_STATUS
7190 echo ': clr' >>$CONFIG_STATUS
7191 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7192 echo 'CEOF
7193 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7194 rm -f $tmp/in
7195 mv $tmp/out $tmp/in
7196 ' >>$CONFIG_STATUS
7197 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7198 rm -f conftest.undefs
7199 mv conftest.tail conftest.undefs
7200 done
7201 rm -f conftest.undefs
7202
7203 cat >>$CONFIG_STATUS <<\_ACEOF
7204 # Let's still pretend it is `configure' which instantiates (i.e., don't
7205 # use $as_me), people would be surprised to read:
7206 # /* config.h. Generated by config.status. */
7207 if test x"$ac_file" = x-; then
7208 echo "/* Generated by configure. */" >$tmp/config.h
7209 else
7210 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7211 fi
7212 cat $tmp/in >>$tmp/config.h
7213 rm -f $tmp/in
7214 if test x"$ac_file" != x-; then
7215 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7216 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7217 echo "$as_me: $ac_file is unchanged" >&6;}
7218 else
7219 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7221 X"$ac_file" : 'X\(//\)[^/]' \| \
7222 X"$ac_file" : 'X\(//\)$' \| \
7223 X"$ac_file" : 'X\(/\)' \| \
7224 . : '\(.\)' 2>/dev/null ||
7225 echo X"$ac_file" |
7226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7228 /^X\(\/\/\)$/{ s//\1/; q; }
7229 /^X\(\/\).*/{ s//\1/; q; }
7230 s/.*/./; q'`
7231 { if $as_mkdir_p; then
7232 mkdir -p "$ac_dir"
7233 else
7234 as_dir="$ac_dir"
7235 as_dirs=
7236 while test ! -d "$as_dir"; do
7237 as_dirs="$as_dir $as_dirs"
7238 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7240 X"$as_dir" : 'X\(//\)[^/]' \| \
7241 X"$as_dir" : 'X\(//\)$' \| \
7242 X"$as_dir" : 'X\(/\)' \| \
7243 . : '\(.\)' 2>/dev/null ||
7244 echo X"$as_dir" |
7245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7247 /^X\(\/\/\)$/{ s//\1/; q; }
7248 /^X\(\/\).*/{ s//\1/; q; }
7249 s/.*/./; q'`
7250 done
7251 test ! -n "$as_dirs" || mkdir $as_dirs
7252 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7254 { (exit 1); exit 1; }; }; }
7255
7256 rm -f $ac_file
7257 mv $tmp/config.h $ac_file
7258 fi
7259 else
7260 cat $tmp/config.h
7261 rm -f $tmp/config.h
7262 fi
7263 # Compute $ac_file's index in $config_headers.
7264 _am_stamp_count=1
7265 for _am_header in $config_headers :; do
7266 case $_am_header in
7267 $ac_file | $ac_file:* )
7268 break ;;
7269 * )
7270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7271 esac
7272 done
7273 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7274 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7275 X$ac_file : 'X\(//\)[^/]' \| \
7276 X$ac_file : 'X\(//\)$' \| \
7277 X$ac_file : 'X\(/\)' \| \
7278 . : '\(.\)' 2>/dev/null ||
7279 echo X$ac_file |
7280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7282 /^X\(\/\/\)$/{ s//\1/; q; }
7283 /^X\(\/\).*/{ s//\1/; q; }
7284 s/.*/./; q'`/stamp-h$_am_stamp_count
7285 done
7286 _ACEOF
7287 cat >>$CONFIG_STATUS <<\_ACEOF
7288
7289 #
7290 # CONFIG_COMMANDS section.
7291 #
7292 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7293 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7294 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7295 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7296 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7297 X"$ac_dest" : 'X\(//\)[^/]' \| \
7298 X"$ac_dest" : 'X\(//\)$' \| \
7299 X"$ac_dest" : 'X\(/\)' \| \
7300 . : '\(.\)' 2>/dev/null ||
7301 echo X"$ac_dest" |
7302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7304 /^X\(\/\/\)$/{ s//\1/; q; }
7305 /^X\(\/\).*/{ s//\1/; q; }
7306 s/.*/./; q'`
7307 { if $as_mkdir_p; then
7308 mkdir -p "$ac_dir"
7309 else
7310 as_dir="$ac_dir"
7311 as_dirs=
7312 while test ! -d "$as_dir"; do
7313 as_dirs="$as_dir $as_dirs"
7314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7316 X"$as_dir" : 'X\(//\)[^/]' \| \
7317 X"$as_dir" : 'X\(//\)$' \| \
7318 X"$as_dir" : 'X\(/\)' \| \
7319 . : '\(.\)' 2>/dev/null ||
7320 echo X"$as_dir" |
7321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7323 /^X\(\/\/\)$/{ s//\1/; q; }
7324 /^X\(\/\).*/{ s//\1/; q; }
7325 s/.*/./; q'`
7326 done
7327 test ! -n "$as_dirs" || mkdir $as_dirs
7328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7330 { (exit 1); exit 1; }; }; }
7331
7332 ac_builddir=.
7333
7334 if test "$ac_dir" != .; then
7335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7336 # A "../" for each directory in $ac_dir_suffix.
7337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7338 else
7339 ac_dir_suffix= ac_top_builddir=
7340 fi
7341
7342 case $srcdir in
7343 .) # No --srcdir option. We are building in place.
7344 ac_srcdir=.
7345 if test -z "$ac_top_builddir"; then
7346 ac_top_srcdir=.
7347 else
7348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7349 fi ;;
7350 [\\/]* | ?:[\\/]* ) # Absolute path.
7351 ac_srcdir=$srcdir$ac_dir_suffix;
7352 ac_top_srcdir=$srcdir ;;
7353 *) # Relative path.
7354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7356 esac
7357
7358 # Do not use `cd foo && pwd` to compute absolute paths, because
7359 # the directories may not exist.
7360 case `pwd` in
7361 .) ac_abs_builddir="$ac_dir";;
7362 *)
7363 case "$ac_dir" in
7364 .) ac_abs_builddir=`pwd`;;
7365 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7366 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7367 esac;;
7368 esac
7369 case $ac_abs_builddir in
7370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7371 *)
7372 case ${ac_top_builddir}. in
7373 .) ac_abs_top_builddir=$ac_abs_builddir;;
7374 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7375 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7376 esac;;
7377 esac
7378 case $ac_abs_builddir in
7379 .) ac_abs_srcdir=$ac_srcdir;;
7380 *)
7381 case $ac_srcdir in
7382 .) ac_abs_srcdir=$ac_abs_builddir;;
7383 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7384 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7385 esac;;
7386 esac
7387 case $ac_abs_builddir in
7388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7389 *)
7390 case $ac_top_srcdir in
7391 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7392 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7393 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7394 esac;;
7395 esac
7396
7397
7398 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7399 echo "$as_me: executing $ac_dest commands" >&6;}
7400 case $ac_dest in
7401 default-1 )
7402 # Only add multilib support code if we just rebuilt the top-level
7403 # Makefile.
7404 case " $CONFIG_FILES " in
7405 *" Makefile "*)
7406 ac_file=Makefile . ${multi_basedir}/config-ml.in
7407 ;;
7408 esac ;;
7409 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7410 # Strip MF so we end up with the name of the file.
7411 mf=`echo "$mf" | sed -e 's/:.*$//'`
7412 # Check whether this is an Automake generated Makefile or not.
7413 # We used to match only the files named `Makefile.in', but
7414 # some people rename them; so instead we look at the file content.
7415 # Grep'ing the first line is not enough: some people post-process
7416 # each Makefile.in and add a new line on top of each file to say so.
7417 # So let's grep whole file.
7418 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7419 dirpart=`(dirname "$mf") 2>/dev/null ||
7420 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7421 X"$mf" : 'X\(//\)[^/]' \| \
7422 X"$mf" : 'X\(//\)$' \| \
7423 X"$mf" : 'X\(/\)' \| \
7424 . : '\(.\)' 2>/dev/null ||
7425 echo X"$mf" |
7426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7428 /^X\(\/\/\)$/{ s//\1/; q; }
7429 /^X\(\/\).*/{ s//\1/; q; }
7430 s/.*/./; q'`
7431 else
7432 continue
7433 fi
7434 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7435 # Extract the definition of DEP_FILES from the Makefile without
7436 # running `make'.
7437 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7438 test -z "$DEPDIR" && continue
7439 # When using ansi2knr, U may be empty or an underscore; expand it
7440 U=`sed -n 's/^U = //p' < "$mf"`
7441 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7442 # We invoke sed twice because it is the simplest approach to
7443 # changing $(DEPDIR) to its actual value in the expansion.
7444 for file in `sed -n '
7445 /^DEP_FILES = .*\\\\$/ {
7446 s/^DEP_FILES = //
7447 :loop
7448 s/\\\\$//
7449 p
7450 n
7451 /\\\\$/ b loop
7452 p
7453 }
7454 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7456 # Make sure the directory exists.
7457 test -f "$dirpart/$file" && continue
7458 fdir=`(dirname "$file") 2>/dev/null ||
7459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7460 X"$file" : 'X\(//\)[^/]' \| \
7461 X"$file" : 'X\(//\)$' \| \
7462 X"$file" : 'X\(/\)' \| \
7463 . : '\(.\)' 2>/dev/null ||
7464 echo X"$file" |
7465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7467 /^X\(\/\/\)$/{ s//\1/; q; }
7468 /^X\(\/\).*/{ s//\1/; q; }
7469 s/.*/./; q'`
7470 { if $as_mkdir_p; then
7471 mkdir -p $dirpart/$fdir
7472 else
7473 as_dir=$dirpart/$fdir
7474 as_dirs=
7475 while test ! -d "$as_dir"; do
7476 as_dirs="$as_dir $as_dirs"
7477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7479 X"$as_dir" : 'X\(//\)[^/]' \| \
7480 X"$as_dir" : 'X\(//\)$' \| \
7481 X"$as_dir" : 'X\(/\)' \| \
7482 . : '\(.\)' 2>/dev/null ||
7483 echo X"$as_dir" |
7484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7486 /^X\(\/\/\)$/{ s//\1/; q; }
7487 /^X\(\/\).*/{ s//\1/; q; }
7488 s/.*/./; q'`
7489 done
7490 test ! -n "$as_dirs" || mkdir $as_dirs
7491 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7492 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7493 { (exit 1); exit 1; }; }; }
7494
7495 # echo "creating $dirpart/$file"
7496 echo '# dummy' > "$dirpart/$file"
7497 done
7498 done
7499 ;;
7500 esac
7501 done
7502 _ACEOF
7503
7504 cat >>$CONFIG_STATUS <<\_ACEOF
7505
7506 { (exit 0); exit 0; }
7507 _ACEOF
7508 chmod +x $CONFIG_STATUS
7509 ac_clean_files=$ac_clean_files_save
7510
7511
7512 # configure is writing to config.log, and then calls config.status.
7513 # config.status does its own redirection, appending to config.log.
7514 # Unfortunately, on DOS this fails, as config.log is still kept open
7515 # by configure, so config.status won't be able to write to it; its
7516 # output is simply discarded. So we exec the FD to /dev/null,
7517 # effectively closing config.log, so it can be properly (re)opened and
7518 # appended to by config.status. When coming back to configure, we
7519 # need to make the FD available again.
7520 if test "$no_create" != yes; then
7521 ac_cs_success=:
7522 ac_config_status_args=
7523 test "$silent" = yes &&
7524 ac_config_status_args="$ac_config_status_args --quiet"
7525 exec 5>/dev/null
7526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7527 exec 5>>config.log
7528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7529 # would make configure fail if this is the last instruction.
7530 $ac_cs_success || { (exit 1); exit 1; }
7531 fi
7532